:root {
  --navy-950: #06121e;
  --navy-900: #081827;
  --navy-800: #10283c;
  --navy-700: #1b3c55;
  --teal-600: #0f766e;
  --teal-500: #14a394;
  --teal-300: #72d7ca;
  --orange-500: #f28b30;
  --orange-300: #ffc174;
  --blue-100: #e9f1f7;
  --paper: #f7f8f6;
  --white: #ffffff;
  --ink: #102231;
  --muted: #5d7080;
  --line: rgba(15, 53, 74, .14);
  --shadow: 0 24px 70px rgba(4, 24, 38, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 999; padding: 10px 16px; background: var(--orange-500); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: rgba(6, 18, 30, .91);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand small { color: var(--teal-300); font-size: .75em; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--navy-950); background: linear-gradient(135deg, var(--teal-300), var(--orange-300)); border-radius: 13px; font-weight: 900; font-size: .8rem; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #d9e7ee; text-decoration: none; font-size: .9rem; font-weight: 650; }
nav a:hover { color: var(--white); }
.nav-cta { padding: 9px 15px; border: 1px solid rgba(114,215,202,.45); border-radius: 999px; }
.menu-button { display: none; width: 44px; height: 44px; padding: 10px; background: transparent; border: 0; }
.menu-button span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--white); }

.section-pad { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr); align-items: center; gap: clamp(38px, 6vw, 90px); min-height: calc(100vh - 76px); padding-top: 90px; padding-bottom: 90px; }
.hero::before { content: ""; position: absolute; inset: 76px 0 auto; z-index: -1; height: 720px; background: radial-gradient(circle at 76% 28%, rgba(20,163,148,.14), transparent 29%), radial-gradient(circle at 16% 44%, rgba(242,139,48,.09), transparent 25%); pointer-events: none; }
.eyebrow { margin: 0 0 14px; color: var(--teal-600); font-size: .78rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(2.75rem, 6vw, 5.7rem); line-height: .98; letter-spacing: -.065em; }
h1 span { color: var(--teal-600); }
.hero-lead { max-width: 680px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 14px; text-decoration: none; font-weight: 800; }
.button-primary { color: var(--white); background: var(--teal-600); box-shadow: 0 12px 26px rgba(15,118,110,.2); }
.button-primary:hover { background: #0b655f; transform: translateY(-1px); }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.hero-tags, .skill-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero-tags li, .skill-cloud span { padding: 7px 11px; color: var(--navy-700); background: var(--blue-100); border-radius: 999px; font-size: .78rem; font-weight: 750; }

.hero-visual { position: relative; min-height: 570px; isolation: isolate; }
.visual-glow { position: absolute; inset: 12% 5%; z-index: -2; background: radial-gradient(circle, rgba(20,163,148,.26), transparent 60%); filter: blur(22px); }
.hero-visual::before { content: ""; position: absolute; inset: 30px 20px; z-index: -1; border: 1px solid rgba(15,118,110,.15); border-radius: 48% 52% 42% 58%; transform: rotate(-8deg); }
.system-card { position: absolute; padding: 20px; background: rgba(255,255,255,.9); border: 1px solid rgba(16,60,85,.13); border-radius: 22px; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.system-card strong { display: block; font-size: 1.08rem; }
.system-card small { color: var(--muted); }
.card-kicker { display: block; margin-bottom: 6px; color: var(--teal-600); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.source-card { top: 4%; left: 1%; width: 58%; }
.source-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.source-list span { padding: 7px 9px; background: var(--blue-100); border-radius: 8px; font-size: .72rem; font-weight: 700; }
.engine-card { top: 38%; left: 27%; width: 54%; padding-left: 80px; }
.pulse-orbit { position: absolute; left: 20px; top: 50%; width: 44px; height: 44px; border: 1px solid var(--teal-300); border-radius: 50%; transform: translateY(-50%); animation: orbit 3s ease-in-out infinite; }
.pulse-orbit span { position: absolute; inset: 10px; background: var(--teal-500); border-radius: 50%; box-shadow: 0 0 0 8px rgba(20,163,148,.1); }
.output-card { right: 0; bottom: 4%; width: 57%; }
.status-dot { float: right; width: 10px; height: 10px; background: #35b978; border-radius: 50%; box-shadow: 0 0 0 6px rgba(53,185,120,.12); }
.mini-bars { display: flex; align-items: end; gap: 7px; height: 42px; margin-top: 12px; }
.mini-bars i { flex: 1; height: 35%; background: var(--teal-300); border-radius: 4px 4px 2px 2px; }
.mini-bars i:nth-child(2) { height: 58%; }.mini-bars i:nth-child(3) { height: 78%; }.mini-bars i:nth-child(4) { height: 100%; background: var(--teal-600); }
.flow-line { position: absolute; z-index: -1; width: 36%; height: 2px; background: linear-gradient(90deg, var(--teal-500), var(--orange-500)); transform-origin: left; }
.flow-one { top: 32%; left: 28%; transform: rotate(42deg); }
.flow-two { top: 61%; left: 54%; transform: rotate(52deg); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 120px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); }
.metric { padding: 28px; background: var(--white); }
.metric strong { display: block; color: var(--navy-800); font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.04em; }
.metric span { color: var(--muted); font-size: .88rem; }

.section { padding-top: 120px; padding-bottom: 120px; }
.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2, .profile h2 { margin-bottom: 18px; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.section-heading > p:last-child, .profile-copy > p { color: var(--muted); font-size: 1.05rem; }
.challenge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.challenge-card { min-height: 250px; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: 22px; }
.challenge-card h3 { margin: 28px 0 10px; }
.challenge-card p { color: var(--muted); font-size: .92rem; }
.icon-box { display: grid; place-items: center; width: 46px; height: 46px; color: var(--teal-600); background: rgba(20,163,148,.11); border-radius: 14px; font-weight: 900; }

.section-dark { color: var(--white); background: var(--navy-950); }
.section-flow { background: linear-gradient(180deg, #eaf1f2 0%, #f7f8f6 100%); }
.flow-demo { background: linear-gradient(145deg, rgba(15,118,110,.22), rgba(16,40,60,.14)); border-color: rgba(15,118,110,.18); }
.flow-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 16px; }
.flow-note { margin: 0; color: var(--muted); font-size: .8rem; }
.section-heading-light p:not(.eyebrow) { color: #aabdc9; }
.section-dark .eyebrow { color: var(--teal-300); }
.demo-frame { overflow: hidden; padding: 12px; background: linear-gradient(145deg, rgba(114,215,202,.24), rgba(242,139,48,.15)); border: 1px solid rgba(255,255,255,.1); border-radius: 28px; }
.demo-frame img { width: 100%; border-radius: 18px; }
.demo-note { margin: 15px 0 0; color: #8ea7b5; text-align: center; font-size: .78rem; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: journey; }
.timeline li { display: flex; gap: 18px; min-height: 170px; padding: 25px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; }
.timeline li > span { color: var(--orange-500); font-size: .8rem; font-weight: 900; letter-spacing: .08em; }
.timeline h3 { margin-bottom: 8px; }.timeline p { color: var(--muted); font-size: .9rem; }

.section-soft { background: #eaf1f2; }
.diagnostic-layout { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: clamp(40px, 8vw, 120px); }
.sticky-heading { position: sticky; top: 116px; align-self: start; }
.quality-list { display: grid; gap: 10px; }
.quality-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 18px; padding: 22px; background: rgba(255,255,255,.72); border: 1px solid rgba(15,53,74,.1); border-radius: 18px; }
.quality-row > span { color: var(--orange-500); font-weight: 900; }.quality-row h3 { margin: 0; }.quality-row p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }.quality-row strong { color: var(--teal-600); font-size: .75rem; text-align: right; }

.gap-groups { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 16px; }
.gap-group { overflow: hidden; padding: 26px; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--teal-500); border-radius: 22px; box-shadow: 0 16px 42px rgba(4,24,38,.07); }
.gap-group.gap-data { border-top-color: var(--orange-500); }
.gap-group.gap-tech { border-top-color: #4169a1; }
.gap-title { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gap-title > span { display: grid; place-items: center; flex: 0 0 44px; height: 44px; color: var(--white); background: var(--navy-800); border-radius: 14px; font-size: .75rem; font-weight: 900; }
.gap-title small { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.gap-title h3 { margin: 0; }
.gap-group ul { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.gap-group li { color: var(--muted); font-size: .88rem; }
.gap-group li strong { display: block; color: var(--teal-600); font-size: .7rem; letter-spacing: .06em; }
.cascade { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; padding: 22px; color: var(--white); background: var(--navy-800); border-radius: 20px; }
.cascade span { padding: 8px 12px; background: rgba(255,255,255,.07); border-radius: 10px; font-size: .82rem; font-weight: 750; text-align: center; }
.cascade i { color: var(--orange-300); font-style: normal; font-weight: 900; }

.section-tobe { background: linear-gradient(145deg, #e9f3f1, #f7f8f6 52%, #f7eee5); }
.control-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: controls; }
.control-flow li { position: relative; min-height: 210px; padding: 22px; background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 20px; }
.control-flow li:not(:last-child)::after { content: "→"; position: absolute; top: 30px; right: -12px; z-index: 2; display: grid; place-items: center; width: 24px; height: 24px; color: var(--white); background: var(--teal-600); border-radius: 50%; font-size: .8rem; }
.control-flow li > span { color: var(--orange-500); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.control-flow h3 { margin: 25px 0 8px; }
.control-flow p { margin: 0; color: var(--muted); font-size: .86rem; }
.tobe-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.control-panel { padding: 28px; color: var(--white); background: var(--navy-800); border-radius: 22px; }
.control-panel .eyebrow { color: var(--teal-300); }
.control-panel ul { display: grid; gap: 8px; margin: 0; padding-left: 20px; color: #d7e6ec; }
.control-panel h3 { font-size: 1.5rem; }
.control-panel p:not(.eyebrow) { color: #bdd0da; }
.control-panel strong { display: block; margin-top: 20px; padding: 12px 14px; color: var(--navy-950); background: var(--teal-300); border-radius: 12px; font-size: .82rem; }
.ai-telemetry { background: linear-gradient(145deg, var(--teal-600), #0b4d50); }
.ai-telemetry .eyebrow { color: #b9fff3; }

.kpi-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 18px; background: rgba(114,215,202,.07); border: 1px solid rgba(114,215,202,.13); border-radius: 18px; }
.kpi-strip span { padding: 8px 11px; color: #dcebf0; background: rgba(255,255,255,.07); border-radius: 999px; font-size: .76rem; font-weight: 750; }

.ecosystem { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr auto 1.1fr; align-items: center; gap: 12px; }
.eco-node { min-height: 150px; display: flex; flex-direction: column; justify-content: center; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; text-align: center; }
.eco-node small { color: var(--muted); }.eco-node strong { font-size: 1.15rem; }.eco-node em { margin-top: 8px; color: var(--teal-600); font-size: .72rem; font-style: normal; font-weight: 800; }
.eco-node.featured { border-color: rgba(15,118,110,.35); box-shadow: 0 16px 40px rgba(15,118,110,.12); }
.eco-arrow { color: var(--orange-500); font-size: 1.5rem; font-weight: 900; }
.ai-callout { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 30px; padding: 28px; color: var(--white); background: var(--navy-800); border-radius: 22px; }
.ai-callout h3 { margin-bottom: 8px; }.ai-callout p { margin: 0; color: #bad0dc; }
.ai-badge { display: grid; place-items: center; width: 64px; height: 64px; background: linear-gradient(135deg, var(--teal-500), var(--orange-500)); border-radius: 18px; font-weight: 950; }

.outcome-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.outcome { display: flex; gap: 15px; align-items: flex-start; padding: 22px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 18px; }
.outcome span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; color: var(--navy-950); background: var(--teal-300); border-radius: 50%; font-weight: 900; }.outcome p { margin: 2px 0 0; color: #d4e1e7; }
.integrity-note { margin-top: 24px; padding: 25px; border-left: 4px solid var(--orange-500); background: rgba(242,139,48,.08); }.integrity-note p { margin: 6px 0 0; color: #bdd0da; }

.profile { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 8vw, 100px); align-items: center; }
.profile-card { display: grid; gap: 18px; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.profile-card > div { display: grid; }.profile-card small { color: var(--muted); }.avatar { display: grid; place-items: center; width: 68px; height: 68px; color: var(--white); background: var(--navy-800); border-radius: 22px; font-weight: 900; }
.text-link { color: var(--teal-600); text-align: center; text-decoration: none; font-weight: 800; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px max(24px, calc((100vw - var(--max)) / 2)); color: #9fb4c0; background: var(--navy-950); font-size: .8rem; } footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes orbit { 50% { transform: translateY(-50%) scale(1.08); box-shadow: 0 0 0 9px rgba(20,163,148,.08); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 980px) {
  nav { gap: 15px; } nav a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 72px; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(620px, 100%); min-height: 520px; margin: -10px auto 0; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .ecosystem { grid-template-columns: 1fr 1fr; }
  .eco-arrow { display: none; }
  .gap-groups { grid-template-columns: 1fr 1fr; }
  .gap-tech { grid-column: 1 / -1; }
  .control-flow { grid-template-columns: repeat(3, 1fr); }
  .control-flow li:not(:last-child)::after { display: none; }
}

@media (max-width: 700px) {
  .section-pad { width: min(100% - 32px, var(--max)); }
  .topbar { min-height: 66px; padding-inline: 16px; }
  .brand small { display: none; }
  .menu-button { display: block; }
  nav { position: absolute; top: 66px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 3px; padding: 12px; background: var(--navy-900); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a:not(.nav-cta) { display: block; }
  nav a { padding: 12px; }.nav-cta { text-align: center; }
  .hero { gap: 26px; padding-top: 56px; padding-bottom: 40px; }
  h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }.button { width: 100%; }
  .hero-visual { min-height: 430px; }
  .source-card { width: 73%; }.engine-card { top: 39%; left: 10%; width: 80%; }.output-card { width: 72%; }
  .flow-one { left: 24%; }.flow-two { left: 46%; }
  .metrics { margin-bottom: 72px; }.metric { padding: 22px; }
  .section { padding-block: 82px; }.section-heading { margin-bottom: 36px; }
  .challenge-grid, .timeline, .outcome-grid, .profile { grid-template-columns: 1fr; }
  .challenge-card { min-height: 0; }
  .diagnostic-layout { grid-template-columns: 1fr; gap: 24px; }.sticky-heading { position: static; }
  .quality-row { grid-template-columns: 36px 1fr; }.quality-row strong { grid-column: 2; text-align: left; }
  .ecosystem { grid-template-columns: 1fr; }.eco-node { min-height: 110px; }
  .ai-callout { grid-template-columns: 1fr; }.ai-badge { width: 54px; height: 54px; }
  .flow-actions { align-items: flex-start; flex-direction: column; }
  .gap-groups, .control-flow, .tobe-panels { grid-template-columns: 1fr; }
  .gap-tech { grid-column: auto; }
  .cascade { align-items: stretch; flex-direction: column; }
  .cascade i { transform: rotate(90deg); text-align: center; }
  .control-flow li { min-height: 0; }
  .control-flow h3 { margin-top: 12px; }
  footer { flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
  .section-pad { width: min(100% - 24px, var(--max)); }
  .brand-mark { width: 36px; height: 36px; }
  .hero { padding-top: 42px; }
  .hero-visual { min-height: 390px; }
  .system-card { padding: 16px; }.engine-card { padding-left: 70px; }.pulse-orbit { left: 16px; }
  .metrics { grid-template-columns: 1fr 1fr; border-radius: 18px; }.metric { padding: 18px 15px; }.metric span { font-size: .76rem; }
  .section { padding-block: 68px; }
  .challenge-card, .timeline li, .quality-row, .outcome, .profile-card { border-radius: 16px; }
  .demo-frame { padding: 6px; border-radius: 18px; }.demo-frame img { border-radius: 13px; }
}
