:root {
  --bg: #0b1020;
  --bg-alt: #121a33;
  --surface: #1a2444;
  --text: #e8edf8;
  --muted: #c8d2e6;
  --line: #2b365f;
  --brand: #4e6f9f;
  --brand-strong: #3f5f8d;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg) 0%, #0c1328 40%, #0b1020 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(11, 16, 32, 0.78);
  border-bottom: 1px solid rgba(43, 54, 95, 0.7);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: white;
  font-weight: 800;
  font-size: 0.82rem;
}

.brand-text {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  text-decoration: none;
  color: #d6def0;
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}

.nav-toggle span + span {
  margin-top: 6px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 6.5rem 0 4.5rem;
  background: #071225;
  border-bottom: 1px solid rgba(43, 54, 95, 0.45);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 38%, rgba(110,160,255,0.08), transparent 0 320px),
    radial-gradient(circle at 74% 34%, rgba(90, 140, 255, 0.10), transparent 0 240px),
    radial-gradient(circle at 79% 60%, rgba(90, 140, 255, 0.06), transparent 0 180px),
    linear-gradient(to right, rgba(7, 18, 37, 0.42) 0%, rgba(7, 18, 37, 0.15) 42%, rgba(7, 18, 37, 0.05) 62%, rgba(7, 18, 37, 0.12) 100%);
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(70, 110, 200, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70, 110, 200, 0.07) 1px, transparent 1px);
  background-size: 52px 52px;

  mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,0.5) 6%,
    rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%,
    rgba(0,0,0,0.5) 94%, transparent 100%
  );

  -webkit-mask-image: linear-gradient(to bottom,
    transparent 0%, rgba(0,0,0,0.5) 6%,
    rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%,
    rgba(0,0,0,0.5) 94%, transparent 100%
  );
  z-index: 0;
}

.hero-signals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* Point cores — compact triangle in center-right */
    radial-gradient(circle at 62% 30%, rgba(220,235,255,0.95) 0 1.5px, rgba(160,200,255,0.35) 3px, transparent 8px),
    radial-gradient(circle at 72% 50%, rgba(220,235,255,0.92) 0 1.5px, rgba(160,200,255,0.32) 3px, transparent 8px),
    radial-gradient(circle at 56% 58%, rgba(220,235,255,0.88) 0 1.5px, rgba(160,200,255,0.28) 3px, transparent 8px),
    /* Grid-illumination glow — lights up nearby grid lines */
    radial-gradient(circle at 62% 30%, rgba(80,140,255,0.18) 0, rgba(60,120,220,0.06) 60px, transparent 120px),
    radial-gradient(circle at 72% 50%, rgba(80,140,255,0.16) 0, rgba(60,120,220,0.05) 55px, transparent 110px),
    radial-gradient(circle at 56% 58%, rgba(80,140,255,0.14) 0, rgba(60,120,220,0.04) 50px, transparent 100px);
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 1160px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: #9bc1ff;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.1rem);
  line-height: 1.1;
  max-width: 24ch;
  letter-spacing: -0.025em;
}

.lead {
  margin-top: 1.1rem;
  max-width: 58ch;
  color: #cfd8ea;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  border: 1px solid transparent;
  min-height: 42px;
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.section {
  padding: 4rem 0;
  border-top: 1px solid rgba(43, 54, 95, 0.35);
}

.section-alt {
  background: linear-gradient(180deg, rgba(18, 26, 51, 0.65), rgba(12, 19, 40, 0.45));
}

.section p {
  color: var(--muted);
  max-width: 72ch;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: rgba(31,44,80,0.92);
  border: 1px solid rgba(112,135,201,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 24px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 16px 32px rgba(0,0,0,0.35);
}

.card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.55rem;
}

.card p {
  margin: 0;
}

.note {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.contact-email {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-email a {
  color: #9bc1ff;
  text-decoration: none;
}

.site-footer {
  border-top: 1px solid rgba(43, 54, 95, 0.8);
  padding: 1rem 0 2rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .grid.three,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(12, 19, 40, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem;
    display: none;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.6rem 0;
  }
}