@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

:root {
  --paper: #f7f8fb;
  --white: #ffffff;
  --ink: #151724;
  --muted: #5d6475;
  --quiet: #8a91a3;
  --line: #e1e5ee;
  --line-strong: #c8cfdd;
  --blue: #2563eb;
  --indigo: #4f46e5;
  --teal: #0f9f8f;
  --green: #18a05e;
  --amber: #b87913;
  --navy: #172033;
  --soft-blue: #edf4ff;
  --soft-teal: #e9f8f5;
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --shadow: 0 24px 70px rgba(36, 48, 77, .13);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font-display: Sora, ui-sans-serif, system-ui, sans-serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(180deg, #fff 0%, var(--paper) 620px, #fff 100%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input, textarea { color: inherit; font: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { border-radius: 4px; outline: 2px solid var(--blue); outline-offset: 3px; }
.shell { margin: 0 auto; max-width: 1200px; padding: 0 28px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0; margin: 0; }
p { margin: 0; }
.eyebrow {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 0 21px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  background: linear-gradient(110deg, var(--indigo), var(--blue) 58%, var(--teal));
  box-shadow: 0 14px 30px rgba(37, 99, 235, .22);
  color: #fff;
}
.button-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.button-ghost:hover { border-color: var(--blue); color: var(--blue); }

.nav {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(225, 229, 238, .9);
  display: flex;
  height: 76px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand { align-items: center; display: inline-flex; gap: 11px; }
.brand img { height: 28px; width: 28px; }
.brand span { color: var(--navy); font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.nav-links, .nav-actions { align-items: center; display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 700; }
.nav-links a:hover { color: var(--blue); }
.locale {
  appearance: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  min-height: 38px;
  padding: 0 15px;
}

.hero {
  padding-bottom: 52px;
  padding-top: 72px;
}
.hero-grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr);
}
.hero h1 {
  color: #111827;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  max-width: 760px;
}
.hero-copy {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 610px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.hero-map {
  min-height: 440px;
  position: relative;
}
.flow-stage {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, rgba(79,70,229,.32), rgba(15,159,143,.28)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 440px;
  overflow: hidden;
  position: relative;
}
.flow-stage-grid {
  background-image: radial-gradient(rgba(37, 99, 235, .12) 1px, transparent 1px);
  background-size: 26px 26px;
  inset: 0;
  opacity: .72;
  position: absolute;
}
.flow-lines { height: 100%; inset: 0; position: absolute; width: 100%; }
.flow-lines path { fill: none; stroke: #c6d0e4; stroke-width: 2; }
.flow-dot circle { fill: #7c4df2; filter: drop-shadow(0 0 6px rgba(79, 70, 229, .42)); }
.flow-dot.out circle { fill: #22bfd6; }
.systems-nodes, .outcomes-nodes { display: grid; gap: 12px; position: absolute; top: 74px; }
.systems-nodes { left: 30px; }
.outcomes-nodes { right: 30px; top: 112px; }
.flow-node {
  align-items: center;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 9px 24px rgba(31, 41, 55, .07);
  color: var(--navy);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  min-height: 43px;
  padding: 0 12px;
  white-space: nowrap;
  width: 152px;
}
.flow-source { animation: cardPop .55s both; color: var(--muted); }
.flow-source.s2 { animation-delay: .08s; }
.flow-source.s3 { animation-delay: .16s; }
.flow-source.s4 { animation-delay: .24s; }
.node-dot {
  background: #9aa6ba;
  border-radius: 50%;
  flex: none;
  height: 7px;
  width: 7px;
}
.outcome { animation: cardPop .55s both .35s; color: var(--navy); width: 178px; }
.outcome.o2 { animation-delay: .46s; }
.outcome.o3 { animation-delay: .57s; }
.outcome-check {
  align-items: center;
  background: var(--soft-teal);
  border-radius: 50%;
  color: var(--green);
  display: inline-flex;
  flex: none;
  font-size: 15px;
  height: 18px;
  justify-content: center;
  width: 18px;
}
.ai-hub {
  align-items: center;
  background: #fff;
  border: 1px solid #d6ddec;
  border-radius: 50%;
  box-shadow: 0 24px 60px rgba(37,99,235,.18);
  color: var(--blue);
  display: flex;
  flex-direction: column;
  height: 112px;
  justify-content: center;
  left: 50%;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 112px;
  z-index: 3;
}
.flow-hub-logo { height: 52px; width: 52px; }
.ai-hub small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-top: 7px;
  text-transform: uppercase;
}
.hub-spark {
  animation: glowPulse 2.4s ease-in-out infinite;
  border: 1px solid rgba(37,99,235,.24);
  border-radius: 50%;
  height: 132px;
  pointer-events: none;
  position: absolute;
  width: 132px;
}
@keyframes cardPop { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes glowPulse { 50% { opacity: .35; transform: scale(1.14); } }

.section { padding: 104px 0; }
.section-tight { padding: 86px 0; }
.section-tint {
  background: linear-gradient(180deg, #f3f6fb, #fff);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.section-head { margin-bottom: 44px; max-width: 740px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { color: var(--navy); font-size: clamp(29px, 3vw, 42px); line-height: 1.16; margin: 10px 0 15px; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.7; max-width: 64ch; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }

.gap-body { max-width: 650px; }
.chip-field { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 46px; }
.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31,41,55,.05);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 15px;
}
.gap-arrow { display: none; }

.layer-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: 48px;
  overflow-x: auto;
  padding: 34px;
}
.layer-track {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr 36px 1fr;
  min-width: 880px;
}
.layer-col { align-items: center; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.layer-node {
  background: linear-gradient(180deg, #fff, #f9fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  height: 100%;
  padding: 20px 14px;
  width: 100%;
}
.layer-node.accent { border-color: rgba(37,99,235,.42); box-shadow: inset 0 0 0 1px rgba(37,99,235,.08); }
.layer-index { color: var(--blue); font-family: var(--font-display); font-size: 12px; font-weight: 800; }
.layer-node h3 { color: var(--navy); font-size: 15px; margin: 10px 0 7px; }
.layer-node p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.layer-connector { align-items: center; color: #98a4b8; display: flex; justify-content: center; }
.layer-connector svg { height: 14px; width: 34px; }
.layer-gate {
  background: var(--soft-teal);
  border: 1px solid rgba(15,159,143,.25);
  border-radius: 999px;
  color: #087366;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .05em;
  margin-top: 10px;
  padding: 6px 11px;
  text-transform: uppercase;
  white-space: nowrap;
}

.step-track { display: grid; gap: 0; grid-template-columns: repeat(5, 1fr); margin-top: 48px; }
.step {
  border-top: 2px solid var(--line-strong);
  padding: 21px 22px 0 0;
  position: relative;
}
.step::before {
  background: var(--blue);
  border-radius: 50%;
  content: '';
  height: 11px;
  left: -5px;
  position: absolute;
  top: -6.5px;
  width: 11px;
}
.step:first-child::before { display: none; }
.step h3 { color: var(--navy); font-size: 17px; margin: 0 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; }

.bento { display: grid; gap: 16px; grid-auto-rows: 164px; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.bento-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(31,41,55,.05);
  display: flex;
  flex-direction: column;
  gap: 9px;
  justify-content: flex-end;
  padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.bento-card:hover { border-color: #b8c4d8; box-shadow: 0 18px 42px rgba(31,41,55,.09); transform: translateY(-3px); }
.bento-card.large { background: linear-gradient(145deg, #fff, var(--soft-blue)); grid-column: span 2; grid-row: span 2; }
.bento-card.wide { grid-column: span 2; }
.bento-card.tint { background: linear-gradient(145deg, #fff, var(--soft-teal)); }
.bento-card .glyph { color: var(--blue); font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.bento-card h3 { color: var(--navy); font-size: 16px; }
.bento-card.large h3 { font-size: 22px; }
.bento-card p { color: var(--muted); font-size: 13px; line-height: 1.52; }
.bento-card.large p { font-size: 14px; max-width: 36ch; }

.roster { border-top: 1px solid var(--line); margin-top: 44px; }
.roster-row {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px 170px 1fr;
  padding: 22px 0;
}
.roster-name { color: var(--navy); font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.roster-role { color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.roster-desc { color: var(--muted); font-size: 14.5px; }
.system-strip { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.system-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.system-tile h4 { color: var(--navy); font-family: var(--font-display); font-size: 13px; margin: 0 0 8px; text-transform: uppercase; }
.system-tile p { color: var(--muted); font-size: 13px; }

.safety-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; margin-top: 50px; }
.trail {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(31,41,55,.06);
  font-size: 12.5px;
  padding: 24px;
}
.trail-line { align-items: baseline; color: var(--muted); display: flex; gap: 10px; padding: 10px 0; }
.trail-line + .trail-line { border-top: 1px solid var(--line); }
.verdict { color: var(--green); flex: none; font-weight: 800; }
.verdict.pending { color: var(--amber); }
.principle-list { display: flex; flex-direction: column; gap: 25px; }
.principle-item h3 { color: var(--navy); font-size: 16px; margin: 0 0 6px; }
.principle-item p { color: var(--muted); font-size: 14px; }

.path-strip { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: 44px 0 58px; }
.path-stop { border-left: 2px solid var(--line-strong); padding-left: 18px; }
.path-stop .num { color: var(--blue); font-size: 12px; font-weight: 800; }
.path-stop h3 { color: var(--navy); font-size: 16px; margin: 8px 0 6px; }
.path-stop p { color: var(--muted); font-size: 13.5px; }
.cta {
  background: linear-gradient(145deg, #102036, #1d3151);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: #fff;
  overflow: hidden;
  padding: 54px;
  position: relative;
}
.cta::before {
  background: radial-gradient(circle, rgba(81, 202, 183, .28), transparent 62%);
  content: '';
  height: 360px;
  position: absolute;
  right: -130px;
  top: -120px;
  width: 360px;
}
.cta-grid { display: grid; gap: 44px; grid-template-columns: .9fr 1.1fr; position: relative; }
.cta h2 { font-size: 32px; line-height: 1.22; }
.cta-copy { color: rgba(255,255,255,.74); font-size: 15.5px; margin-top: 14px; max-width: 42ch; }
.contact-form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.contact-form label { color: rgba(255,255,255,.78); display: grid; font-size: 12.5px; font-weight: 700; gap: 7px; }
.contact-form input, .contact-form textarea {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm);
  color: var(--ink);
  min-height: 46px;
  outline: 0;
  padding: 11px 14px;
  resize: vertical;
}
.contact-form textarea { min-height: 96px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #81d8cf; box-shadow: 0 0 0 3px rgba(129,216,207,.22); }
.contact-submit { justify-self: start; margin-top: 4px; }
.form-status { color: #b8f3df; font-size: 13.5px; font-weight: 700; min-height: 18px; }
.form-trap { left: -9999px; position: absolute; }

.footer { border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; padding: 38px 0; }
.footer-row { align-items: center; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--blue); }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-map { margin: 0 auto; max-width: none; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.large { grid-row: span 1; }
  .safety-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .step-track { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .roster-row { grid-template-columns: 1fr; gap: 6px; }
  .path-strip, .system-strip { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding: 0 20px; }
  .nav { height: 66px; }
  .hero { padding-bottom: 36px; padding-top: 46px; }
  .hero h1 { font-size: 32px; line-height: 1.12; }
  .hero-copy { font-size: 16px; line-height: 1.65; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { font-size: 13px; padding: 0 16px; width: 100%; }
  .hero-map, .flow-stage { min-height: 420px; }
  .flow-stage { border-radius: 14px; }
  .flow-lines { display: none; }
  .systems-nodes { left: 12px; top: 56px; }
  .outcomes-nodes { right: 12px; top: 96px; }
  .flow-node { font-size: 9.5px; min-height: 35px; padding: 0 8px; width: 116px; }
  .outcome { white-space: normal; width: 118px; }
  .ai-hub { height: 88px; width: 88px; }
  .flow-hub-logo { height: 42px; width: 42px; }
  .ai-hub small { font-size: 6px; }
  .hub-spark { height: 104px; width: 104px; }
  .section { padding: 72px 0; }
  .section-head h2 { font-size: 29px; }
  .layer-track { min-width: 720px; }
  .bento { grid-auto-rows: auto; grid-template-columns: 1fr; }
  .bento-card, .bento-card.large, .bento-card.wide { grid-column: span 1; min-height: 150px; }
  .cta { border-radius: 14px; padding: 32px 22px; }
  .cta-grid, .form-row { grid-template-columns: 1fr; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .nav-actions .locale, .nav-actions .button { display: none; }
  .brand img { height: 26px; width: 26px; }
  .step-track { grid-template-columns: 1fr; }
  .step:first-child::before { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
