/* NAVIGA AI — corporate site styles */
:root {
  --ink: #0a0e16;
  --navy: #0d1524;
  --surface: #111a2b;
  --surface-2: #16213a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ebf1;
  --muted: #9aa3b4;
  --accent: #4a86ff;
  --accent-soft: rgba(74, 134, 255, 0.14);
  --paper: #f4f3ef;
  --paper-2: #eae8e2;
  --paper-ink: #0e1420;
  --paper-muted: #545c6b;
  --paper-line: rgba(14, 20, 32, 0.12);
  --radius: 14px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 22, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.14em; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand b { color: var(--accent); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--font-sans);
  padding: 14px 22px; border-radius: 10px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3a74ee; }
.btn-ghost { border-color: rgba(255,255,255,0.22); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); }
.nav .btn { padding: 10px 16px; font-size: 14px; color: #fff; }
.btn svg { width: 16px; height: 16px; }
.light .btn-ghost { border-color: var(--paper-line); color: var(--paper-ink); }
.light .btn-ghost:hover { border-color: rgba(14,20,32,0.35); }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.light { background: var(--paper); color: var(--paper-ink); }
.light-2 { background: var(--paper-2); color: var(--paper-ink); }
.navy { background: var(--navy); }
.eyebrow { font: 500 12.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: block; }
.light .eyebrow, .light-2 .eyebrow { color: #2f62d8; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 48px); }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 18.5px; }
.light .section-head p, .light-2 .section-head p { color: var(--paper-muted); }
.lead { font-size: clamp(18px, 1.6vw, 20.5px); color: var(--muted); }
.light .lead, .light-2 .lead { color: var(--paper-muted); }

/* ---------- Hero ---------- */
.hero { padding: clamp(88px, 13vw, 168px) 0 clamp(80px, 11vw, 140px); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 75% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); max-width: 19ch; }
.hero .lead { margin-top: 28px; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-visual { position: absolute; right: calc(var(--gutter) * -1); top: 50%; transform: translateY(-50%); width: min(44vw, 560px); opacity: .9; pointer-events: none; }
.page-hero { padding: clamp(80px, 11vw, 136px) 0 clamp(56px, 8vw, 96px); }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 64px); max-width: 18ch; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.light .card, .light-2 .card { background: #fff; border-color: var(--paper-line); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); font-size: 16px; }
.light .card p, .light-2 .card p { color: var(--paper-muted); }
.card .num { font: 500 13px/1 var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.light .card .num, .light-2 .card .num { color: #2f62d8; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.card li { padding-left: 18px; position: relative; color: var(--text); }
.light .card li, .light-2 .card li { color: var(--paper-ink); }
.card li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1.5px; background: var(--accent); }
.card .more { margin-top: auto; padding-top: 10px; font-size: 14.5px; font-weight: 500; color: var(--accent); text-decoration: none; }
.light .card .more { color: #2f62d8; }
.card-link { text-decoration: none; transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: rgba(74,134,255,.5); }

.icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.light .icon, .light-2 .icon { background: rgba(47,98,216,.09); color: #2f62d8; }
.icon svg { width: 21px; height: 21px; }

/* Pillar rows */
.pillars { border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 90px 1fr 1.1fr; gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); align-items: start; }
.light .pillars, .light .pillar { border-color: var(--paper-line); }
.pillar .num { font: 500 14px/1.6 var(--font-mono); color: var(--accent); }
.light .pillar .num { color: #2f62d8; }
.pillar h3 { font-size: clamp(22px, 2.4vw, 28px); }
.pillar p { color: var(--muted); }
.light .pillar p { color: var(--paper-muted); }
.pillar ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; font-size: 15px; }
.pillar li { padding-left: 18px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 1.5px; background: var(--accent); }

/* Challenges list */
.challenges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--paper-line); border-left: 1px solid var(--paper-line); }
.challenges div { padding: 28px; border-right: 1px solid var(--paper-line); border-bottom: 1px solid var(--paper-line); }
.challenges h3 { font-size: 18px; margin-bottom: 8px; }
.challenges p { color: var(--paper-muted); font-size: 15.5px; }

/* Industry cards */
.industry { position: relative; overflow: hidden; min-height: 300px; }
.industry .tag { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.industry h3 { font-size: 24px; }

/* Differentiators */
.diff { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.diff-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.diff-list div { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.diff-list h3 { font-size: 19px; margin-bottom: 6px; }
.diff-list p { color: var(--muted); font-size: 16px; }
.quote { font-family: var(--font-display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; letter-spacing: -0.015em; }
.quote em { font-style: normal; color: var(--accent); }

/* Status badge */
.status { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid currentColor; width: fit-content; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { color: #1f9d6b; }
.status.rd { color: #2f62d8; }
.status.research { color: #7a5bd6; }
.status.concept { color: #a06a12; }
.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

/* Architecture stack */
.arch { display: grid; gap: 10px; max-width: 880px; }
.arch-layer { display: grid; grid-template-columns: 56px 1fr 1.3fr; gap: 20px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, rgba(74,134,255,0.07), rgba(74,134,255,0) 60%), var(--surface); position: relative; }
.arch-layer .num { font: 500 13px/1 var(--font-mono); color: var(--accent); }
.arch-layer h3 { font-size: 18px; }
.arch-layer p { color: var(--muted); font-size: 15px; }
.arch-layer + .arch-layer::before { content: ""; position: absolute; left: 51px; top: -11px; width: 1px; height: 11px; background: var(--accent); opacity: .6; }
.arch-layer.gov { background: linear-gradient(90deg, rgba(31,157,107,0.1), rgba(31,157,107,0) 60%), var(--surface); }

/* Leadership */
.leader { display: grid; grid-template-columns: 240px 1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.portrait { width: 100%; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--paper-line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.02); }
.leader h3 { font-size: clamp(26px, 3vw, 34px); }
.leader .role { color: #2f62d8; font: 500 13px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 22px; }
.leader p + p { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 30px; border-top: 1px solid var(--paper-line); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--paper-line); font-size: 15px; padding-right: 16px; }
.facts strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.facts span { color: var(--paper-muted); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.links a { font-size: 14px; text-decoration: none; padding: 9px 14px; border: 1px solid var(--paper-line); border-radius: 8px; }
.links a:hover { border-color: #2f62d8; color: #2f62d8; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trust-grid div { background: var(--navy); padding: 26px 22px; }
.trust-grid h3 { font-size: 16.5px; margin: 14px 0 6px; }
.trust-grid p { color: var(--muted); font-size: 14.5px; }
.note { margin-top: 24px; font-size: 14.5px; color: var(--muted); max-width: 820px; }
.light .note, .light-2 .note { color: var(--paper-muted); }

/* Publications */
.pubs { display: grid; gap: 0; border-top: 1px solid var(--paper-line); }
.pub { display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--paper-line); align-items: baseline; }
.pub .year { font: 500 14px/1 var(--font-mono); color: #2f62d8; }
.pub h3 { font-size: 18px; line-height: 1.35; }
.pub p { color: var(--paper-muted); font-size: 15px; margin-top: 4px; }
.pub a { font-size: 14px; color: #2f62d8; white-space: nowrap; }

/* CTA band */
.cta-band { background: var(--navy); border-top: 1px solid var(--line); text-align: left; }
.cta-band .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.cta-band h2 { font-size: clamp(32px, 4.4vw, 52px); max-width: 16ch; }
.cta-band p { color: var(--muted); margin-top: 20px; max-width: 58ch; }
.cta-band .hero-cta { justify-content: flex-end; margin: 0; }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; color: var(--paper-ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--paper-ink);
  background: #fff; border: 1px solid var(--paper-line); border-radius: 10px; padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #2f62d8; box-shadow: 0 0 0 3px rgba(47,98,216,.15); }
.form-note { font-size: 14px; color: var(--paper-muted); }
.aside-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 30px; }
.aside-card h3 { font-size: 20px; margin-bottom: 14px; }
.aside-card p, .aside-card li { color: var(--paper-muted); font-size: 15.5px; }
.aside-card a { color: #2f62d8; }
.aside-card + .aside-card { margin-top: 18px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 10px; }

/* Footer */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 14.5px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-tag { margin-top: 18px; max-width: 34ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { opacity: .35; }
  .pillar { grid-template-columns: 60px 1fr; }
  .pillar ul { grid-column: 2; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { display: grid; place-items: center; }
  .g3, .g2, .diff, .leader, .contact-grid, .cta-band .wrap { grid-template-columns: 1fr; }
  .challenges { grid-template-columns: 1fr 1fr; }
  .cta-band .hero-cta { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .leader .portrait { max-width: 220px; }
  .hero-visual { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .g4, .challenges, .trust-grid, .form, .facts { grid-template-columns: 1fr; }
  .pillar { grid-template-columns: 1fr; gap: 14px; }
  .pillar ul { grid-column: auto; grid-template-columns: 1fr; }
  .arch-layer { grid-template-columns: 40px 1fr; }
  .arch-layer p { grid-column: 2; }
  .arch-layer + .arch-layer::before { left: 35px; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .card { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}
.diff-list .num { font: 500 13px/1.8 var(--font-mono); color: var(--accent); }
.pillar h3 + p { margin-top: 10px; }
.page-hero .lead { margin-top: 24px; max-width: 64ch; }

/* Credentials strip */
.creds { background: var(--navy); border-bottom: 1px solid var(--line); padding: 22px 0; }
.creds .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; font-size: 14.5px; color: var(--muted); }
.creds strong { color: var(--text); font-weight: 500; }
.creds-label { font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.creds span + span:not(.creds-label) { position: relative; }
@media (max-width: 600px) { .creds .wrap { flex-direction: column; align-items: flex-start; gap: 10px; } }
.nav .lang-switch { font: 500 12.5px/1 var(--font-mono); letter-spacing: .08em; border: 1px solid var(--line); padding: 8px 10px; margin-left: 6px; }
.nav .lang-switch:hover { border-color: rgba(255,255,255,.35); }
@media (max-width: 900px) { .nav .lang-switch { margin: 6px 0 0; text-align: center; } }
