:root {
  color-scheme: dark;
  --midnight: #010B26;
  --navy: #02225C;
  --deep: #041A47;
  --panel: #07224F;
  --line: #17407F;
  --electric: #2F7BFF;
  --cyan: #3EE6FF;
  --silver: #E8EEF6;
  --muted: #A7B6D3;
  --ink: #02153D;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--midnight);
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: calc(100px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--midnight); color: var(--silver); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: #9AF2FF; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.view[hidden] { display: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* nav */
.nav-shell { position: sticky; top: calc(14px + env(safe-area-inset-top, 0px)); z-index: 30; padding: 0 16px; display: flex; justify-content: center; }
.nav { display: flex; align-items: center; gap: 24px; width: 100%; max-width: 1080px; padding: 8px 8px 8px 12px; border-radius: 16px; background: rgba(1, 11, 38, 0.72); border: 1px solid rgba(62, 230, 255, 0.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--silver); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: 19px; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 20px; flex: 1 1 auto; }
.nav-links a { color: #C3CFE6; text-decoration: none; font-size: 15px; padding: 10px 2px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--silver); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #C3CFE6; }
.nav-x:hover { color: var(--silver); background: rgba(62, 230, 255, 0.1); }
.nav-actions .nav-deploy { display: none; }
@media (max-width: 960px) { .nav-links { display: none; } .nav-actions .nav-deploy { display: inline-flex; } }
@media (max-width: 420px) { .nav-actions .nav-deploy { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--silver); color: var(--ink); }
.btn-primary:hover { background: #FFFFFF; color: var(--ink); }
.btn-electric { background: var(--electric); color: #FFFFFF; }
.btn-electric:hover { background: #4A8DFF; color: #FFFFFF; }
.btn-ghost { background: rgba(1, 11, 38, 0.5); border-color: rgba(232, 238, 246, 0.3); color: var(--silver); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--silver); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; }

/* ocean */
.ocean { position: absolute; inset: 0; overflow: hidden; }
.ocean canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* hero */
.hero { position: relative; margin-top: -78px; min-height: 860px; display: flex; align-items: center; overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding-top: 150px; padding-bottom: 110px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-style: italic; font-size: clamp(44px, 5.8vw, 84px); line-height: 0.95; letter-spacing: -0.01em; text-transform: uppercase; }
.hero h1 .line2 { display: block; color: transparent; -webkit-text-stroke: 1.5px var(--silver); }
.hero p.lede { margin: 26px 0 0; max-width: 560px; font-size: 19px; color: #C9D5EA; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.ticker { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--cyan); }
.ticker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero-mark { position: relative; justify-self: center; width: min(460px, 100%); aspect-ratio: 1; }
.hero-mark img { position: absolute; inset: 6% 0 0 0; width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(62, 230, 255, 0.35)); animation: leap 6s ease-in-out infinite; }
@keyframes leap { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(10px, -14px) rotate(-3deg); } }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 130px; }
  .hero-mark { width: 260px; order: -1; justify-self: start; }
  .hero { min-height: 0; }
}

/* sections */
section { position: relative; }
.sec { padding: 120px 0; }
.sec-tight { padding: 90px 0; }
.bg-midnight { background: var(--midnight); }
.bg-navy { background: var(--navy); }
.bg-deep { background: var(--deep); }
.bg-silver { background: var(--silver); color: var(--ink); }
.h2 { margin: 0; font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -0.01em; }
.sub { margin: 18px 0 0; max-width: 640px; font-size: 18px; color: var(--muted); }
.bg-silver .sub { color: #3E4F75; }
.head { margin-bottom: 52px; }
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card { padding: 30px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.card h3 { margin: 18px 0 10px; font-family: var(--display); font-weight: 700; font-stretch: 108%; font-size: 22px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card svg { width: 28px; height: 28px; color: var(--cyan); }

/* dashboard metrics */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid #C9D4E8; background: #FFFFFF; }
.metric { padding: 28px 24px; border-right: 1px solid #DCE3F0; border-bottom: 1px solid #DCE3F0; }
.metric strong { display: block; font-family: var(--display); font-stretch: 110%; font-size: 20px; color: var(--ink); }
.metric span { display: block; margin-top: 6px; font-size: 15px; color: #3E4F75; }
.metric svg { width: 26px; height: 26px; color: var(--electric); margin-bottom: 14px; }

/* predator */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.tab { min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--silver); font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--electric); border-color: var(--electric); }
.panel { padding: 36px; border-radius: 20px; background: var(--midnight); border: 1px solid var(--line); }
.panel h3 { margin: 0 0 12px; font-family: var(--display); font-stretch: 112%; font-size: 28px; }
.panel p { margin: 0; color: #C9D5EA; }
.cond { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cond li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); font-size: 15px; color: #C9D5EA; }
.cond li b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--cyan); flex: 0 0 auto; padding-top: 2px; }

/* schools diagram */
.school { position: relative; display: grid; gap: 16px; }
.lead { padding: 22px; border-radius: 16px; background: var(--electric); color: #FFFFFF; text-align: center; }
.lead strong { display: block; font-family: var(--display); font-stretch: 112%; font-size: 20px; }
.lead span { font-size: 14px; opacity: .9; }
.signal { height: 34px; display: grid; grid-template-columns: repeat(3, 1fr); }
.signal i { justify-self: center; width: 2px; height: 100%; background: linear-gradient(var(--electric), var(--cyan)); position: relative; overflow: hidden; }
.signal i::after { content: ""; position: absolute; left: -2px; width: 6px; height: 10px; border-radius: 3px; background: #FFFFFF; animation: pulse 1.6s linear infinite; }
.signal i:nth-child(2)::after { animation-delay: .5s; }
.signal i:nth-child(3)::after { animation-delay: 1s; }
@keyframes pulse { from { top: -10px; } to { top: 34px; } }
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.agent { padding: 18px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); text-align: center; }
.agent strong { display: block; font-size: 16px; }
.agent span { font-size: 13px; color: var(--muted); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 14px 22px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 18px; letter-spacing: 0.04em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li { padding: 30px; border-radius: 18px; background: #FFFFFF; border: 1px solid #C9D4E8; }
.steps .n { font-family: var(--mono); font-size: 14px; color: var(--electric); }
.steps h3 { margin: 14px 0 10px; font-family: var(--display); font-stretch: 110%; font-size: 24px; color: var(--ink); }
.steps p { margin: 0; color: #3E4F75; }

/* flywheel */
.fly { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: f; }
.fly li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); font-size: 17px; }
.fly li::before { counter-increment: f; content: counter(f); flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--electric); font-family: var(--display); font-weight: 800; }
.fly .again { padding: 4px 22px; background: none; border: none; color: var(--muted); font-size: 15px; }
.fly .again::before { display: none; }
.note { margin: 24px 0 0; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 15px; color: #C9D5EA; }

/* faq */
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0; background: none; border: none; color: var(--silver); font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.faq-q .sign { flex: 0 0 auto; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); color: var(--cyan); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .sign { transform: rotate(45deg); }
.faq-a { margin: 0 0 22px; max-width: 700px; color: #C9D5EA; }
.aside { padding: 32px; border-radius: 20px; background: var(--midnight); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.aside h3 { margin: 0; font-family: var(--display); font-stretch: 110%; font-size: 24px; }
.aside p { margin: 0; color: var(--muted); font-size: 15px; }

/* cta band */
.band { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.band-inner { position: relative; padding: 96px 56px; display: grid; gap: 28px; justify-items: start; }
.band h2 { max-width: 640px; }
@media (max-width: 640px) { .band-inner { padding: 64px 26px; } }

/* footer */
footer { padding: 64px 0 48px; background: var(--midnight); border-top: 1px solid #0E2A60; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.foot p { margin: 14px 0 0; max-width: 380px; color: var(--muted); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-cols div { display: grid; gap: 10px; align-content: start; }
.foot-cols b { font-weight: 700; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--silver); }
.legal { margin-top: 48px; font-size: 13px; color: #8797BC; }

/* deploy page */
.deploy-hero { position: relative; margin-top: -78px; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.deploy-hero .wrap { position: relative; padding-top: 150px; padding-bottom: 150px; }
.deploy-hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; font-style: italic; text-transform: uppercase; font-size: clamp(42px, 6vw, 80px); line-height: 0.95; }
.form-wrap { position: relative; margin-top: -100px; padding: 0 24px 120px; }
.form { max-width: 720px; margin: 0 auto; padding: 40px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); display: grid; gap: 28px; }
@media (max-width: 640px) { .form { padding: 24px; } }
.field { display: grid; gap: 10px; }
.field > label, .legend { font-size: 15px; font-weight: 700; color: #DCE4F5; }
.hint { font-size: 14px; color: var(--muted); }
.input { width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; background: var(--midnight); border: 1px solid #22477F; color: var(--silver); font-size: 16px; }
.input::placeholder { color: #7486AD; }
textarea.input { resize: vertical; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
fieldset { margin: 0; padding: 22px; border-radius: 16px; border: 1px solid #22477F; display: grid; gap: 16px; }
legend { padding: 0 8px; }
.toggle-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #22477F; background: var(--midnight); color: var(--silver); font-weight: 600; cursor: pointer; }
.pick[aria-pressed="true"] { background: var(--electric); border-color: var(--electric); }
.range-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #DCE4F5; }
.range-head output { font-family: var(--mono); color: var(--cyan); font-size: 14px; }
input[type=range] { width: 100%; accent-color: var(--cyan); }
.switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.switch label { font-size: 15px; color: #DCE4F5; }
.switch small { display: block; color: var(--muted); font-size: 14px; }
.switch input { width: 22px; height: 22px; accent-color: var(--electric); flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark img, .signal i::after { animation: none; }
}
