/* =========================================================
   UltraViolet AI — landing page
   Light paper ground, ink sections, ultraviolet accent.
   ========================================================= */

:root {
  color-scheme: light;
  /* palette */
  --paper: #F5F6FA;
  --paper-2: #ECEEF5;
  --ink: #0E1433;
  --navy: #2C45A5;
  --navy-deep: #16275F;
  --uv: #081DF5;          /* electric blue */
  --uv-light: #FFB39E;    /* accent text on navy */
  --orange: #DE5735;

  /* context tokens (light sections) */
  --bg: var(--paper);
  --fg: #0E1433;
  --fg-2: #2A3150;
  --muted: #5E6275;
  --dim: #8B90A6;
  --line: #DDE0EA;
  --line-strong: #C3C8D8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --accent: var(--uv);
  --on-accent: #FFFFFF;
  --orange-mark: var(--orange);
  --ok: #17865A;
  --warn: #B85A00;

  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* dark (ink) sections re-map the same tokens */
.dark {
  color-scheme: dark;
  --bg: var(--navy);
  --fg: #FFFFFF;
  --fg-2: #E3E7F8;
  --muted: #C9D1F2;
  --dim: #97A5DB;
  --line: #4459B2;
  --line-strong: #6275C0;
  --surface: #243B93;
  --surface-2: #22388C;
  --accent: var(--uv-light);
  --on-accent: #0E1433;
  --orange-mark: #FF9B7F;
  --ok: #7CE0A8;
  --warn: #FFC98A;
  background: var(--bg);
  color: var(--fg);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, blockquote { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- utilities ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.accent { color: var(--accent); }
.eyebrow.accent { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow.accent::before { content: ''; width: 8px; height: 8px; flex: none; background: var(--orange-mark); }
.agents__row .eyebrow.accent::before, .four-col .eyebrow.accent::before, .three-col .eyebrow.accent::before, .card .eyebrow.accent::before, .feature .eyebrow.accent::before, .footer__col .eyebrow.accent::before { width: 6px; height: 6px; }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.small { font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; font-family: var(--font-mono); font-size: 13px; border-radius: 999px; }
.skip-link:focus { top: 16px; }

/* ---------- buttons (pill) ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .1em;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 500; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn--ink { background: var(--uv); color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--fg); background: transparent; }
.btn--outline:hover { border-color: var(--fg); }
.btn--accent { background: var(--orange); color: #0E1433; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn .arrow { display: inline-block; margin-left: .4em; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }
.btn .fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn--ink .fill { background: var(--navy); }
.btn--outline .fill { background: var(--navy); }
.btn--outline:hover { color: #fff; }
.btn--accent .fill { background: #FFFFFF; }
.btn:hover .fill { transform: none; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.4); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--fg); border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; width: fit-content; transition: border-color .2s, color .2s; }
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover { border-color: var(--accent); color: var(--accent); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ---------- headings ---------- */
.h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; font-weight: 400; letter-spacing: -.035em; text-wrap: balance; max-width: 18ch; }
.section__head--left .h2 { max-width: 20ch; }
.h2--sm { font-size: clamp(32px, 4.4vw, 52px); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow: hidden; background: var(--paper); padding-bottom: clamp(72px, 9vw, 112px); }
.hero__waves {
  position: absolute; right: 0; bottom: 0; width: min(800px, 70vw); height: auto; color: var(--uv);
  pointer-events: none;
  transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0); transition: transform .6s var(--ease);
}
.hero__waves path { stroke-opacity: var(--o, .4); }
.hero__source { opacity: .12; transform-origin: 800px 820px; animation: glow 4s ease-in-out infinite; }

.nav { position: relative; z-index: 5; height: 84px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; color: var(--navy); transition: color .3s; }
.logo:hover { color: var(--uv); }
.dark .logo { color: #FFFFFF; }
.dark .logo:hover { color: var(--uv-light); }
.uvai-logo { display: block; height: 26px; width: auto; }
.footer__brand .uvai-logo { height: 30px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { font-size: 14px; color: var(--fg-2); position: relative; }
.nav__links a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--fg); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__links .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 999px; min-height: 44px; padding: 0 18px; font-size: 13px; cursor: pointer; }

.hero__content { position: relative; padding-top: clamp(56px, 9vw, 104px); display: flex; flex-direction: column; gap: 28px; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; color: var(--fg-2); }
.dot { width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent); animation: blink 2s infinite; }
.hero__title { font-size: clamp(46px, 7.6vw, 104px); line-height: .98; font-weight: 400; letter-spacing: -.045em; max-width: 15ch; text-wrap: balance; }
.hero__lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 56ch; color: var(--fg-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.hero__content > * { opacity: 0; transform: translateY(20px); animation: rise .8s var(--ease) forwards; }
.hero__content > *:nth-child(3) { animation-delay: .35s; }
.hero__content > *:nth-child(4) { animation-delay: .5s; }
.hero__content > .hero__title { animation: none; opacity: 1; transform: none; }

/* =========================================================
   TICKER
   ========================================================= */
.ticker { height: 56px; overflow: hidden; display: flex; align-items: center; white-space: nowrap; background: var(--navy); color: #C9D1F2; }
.ticker__track { display: flex; gap: 48px; padding-right: 48px; animation: marquee 45s linear infinite; }
.ticker__track i { font-style: normal; color: #FF9B7F; }
.ticker span { transition: color .2s; }
.ticker span:hover { color: #fff; }
.ticker:hover .ticker__track { animation-play-state: paused; }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(80px, 10vw, 128px); }
.section--rule { border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin-bottom: 56px; }
.section__head .h2 { margin-inline: auto; }
.section__head--left { align-items: flex-start; text-align: left; margin-bottom: 64px; }
.section__head--left .h2 { margin-inline: 0; }
.section-dark .section__head .lede { color: var(--muted); }

/* ---------- proof stats ---------- */
.proof { padding-block: 40px 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stat { padding: 32px 24px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(38px, 4.4vw, 56px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .3s, transform .4s var(--ease); }
.stat__label { font-size: 14px; color: var(--muted); }
.stat:hover .stat__num { color: var(--accent); transform: translateX(4px); }
.stat__num--swap { display: flex; align-items: baseline; gap: .12em; }
.stat__num--swap .from { color: var(--dim); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--orange) 70%, transparent); }
.stat__num--swap .arrow { font-size: .6em; color: var(--orange); display: inline-block; }
.is-visible .stat__num--swap .arrow { animation: nudge 1.6s var(--ease) 1s 2; }
.proof__note { font-size: 12px; color: var(--muted); letter-spacing: .04em; padding-top: 16px; text-align: center; }

/* ---------- category grid ---------- */
.own-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.own-grid__radar { grid-row: span 2; background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 40px; min-height: 420px; }
.own-grid__radar svg { width: 100%; max-width: 300px; }
.radar-sweep { transform-origin: 150px 150px; animation: spin 6s linear infinite; }
.pulse { transform-origin: 150px 150px; animation: pulse 2.4s var(--ease) infinite; }
.blip { opacity: 0; animation: blip 6s linear infinite; animation-delay: var(--d, 0s); }
.card { background: var(--surface); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 23px; transition: transform .4s var(--ease); }
.card:hover h3 { transform: translateX(6px); }
.card p, .three-col p, .four-col p, .feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- dark sections ---------- */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--uv) 45%, transparent), transparent 70%);
}
.section-dark > .container { position: relative; }

/* diagram */
.diagram-wrap { overflow-x: auto; margin-bottom: 56px; }
.diagram { width: 100%; min-width: 620px; max-width: 900px; margin: 0 auto; height: auto; }
.svg-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; }
.node rect { fill: var(--bg); stroke: var(--line-strong); transition: fill .3s, stroke .3s; }
.node text { fill: var(--fg-2); font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; text-anchor: middle; transition: fill .3s; }
.node .node__n { fill: var(--accent); }
.node:hover rect { fill: color-mix(in srgb, var(--accent) 16%, var(--bg)); stroke: var(--accent); }
.node:hover text { fill: #fff; }
.core-pulse { fill: none; transform-box: fill-box; transform-origin: center; animation: corePulse 2.4s var(--ease) infinite; }
.diagram .flow line { stroke-dasharray: 6 6; animation: dash 1.2s linear infinite; }
.diagram .flow { transition: opacity .8s .4s; }
.diagram:not(.is-visible) .flow { opacity: 0; }
.diagram .packets { opacity: 0; transition: opacity .6s .9s; }
.diagram.is-visible .packets { opacity: 1; }

.four-col { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 48px; }
.four-col > div { padding: 28px 24px 0; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.four-col > div:first-child { padding-left: 0; }
.four-col > div:last-child { border-right: 0; }
.section-dark .text-link { margin-inline: auto; display: flex; }

/* ---------- agents ---------- */
.agents { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.agents__tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.agents__tab {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; gap: 12px; padding: 28px 32px;
  border-bottom: 1px solid var(--line); border-left: 3px solid transparent;
  transition: background .3s, border-color .3s;
}
.agents__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.agents__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.agents__count { font-size: 12px; color: var(--muted); }
.agents__title { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; color: var(--dim); transition: color .3s; }
.agents__tab:hover .agents__title { color: var(--fg-2); }
.agents__tab.is-active { background: var(--surface-2); border-left-color: var(--accent); }
.agents__tab.is-active .agents__title { color: var(--fg); font-weight: 500; }
.agents__more { margin: auto 32px 28px; padding-top: 28px; }
.agents__panel {
  padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 440px;
  background-color: var(--paper-2);
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 14%, transparent) 1px, transparent 1px); background-size: 18px 18px;
}
.roster { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 30px 60px -40px rgba(20, 35, 110, .35); animation: fadeUp .5s var(--ease); transition: transform .5s var(--ease), box-shadow .5s; }
.roster:hover { transform: translateY(-4px); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--uv) 45%, transparent); }
.roster__head { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; padding: 12px 14px 14px; color: var(--fg-2); }
.agent { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border-top: 1px solid var(--line); opacity: 0; animation: fadeUp .5s var(--ease) forwards; }
.agent:nth-child(2) { animation-delay: .05s; } .agent:nth-child(3) { animation-delay: .12s; } .agent:nth-child(4) { animation-delay: .19s; } .agent:nth-child(5) { animation-delay: .26s; }
.agent__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--navy); background: color-mix(in srgb, var(--navy) 10%, var(--surface)); transition: background .3s, color .3s; }
.agent:hover .agent__icon { background: var(--orange); color: #fff; }
.agent__name { font-size: 15px; font-weight: 500; }
.agent__desc { font-size: 13px; color: var(--muted); }
.chip::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; background: var(--orange); vertical-align: 1px; }
.chip { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--fg-2); white-space: nowrap; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature {
  border: 1px solid var(--line); background: var(--surface); padding: 32px; border-radius: 16px;
  display: flex; flex-direction: column; gap: 12px; min-height: 210px;
  transform-style: preserve-3d; will-change: transform;
}
.feature:hover { border-color: var(--accent); }
.feature .eyebrow { transition: letter-spacing .3s var(--ease); }
.feature:hover .eyebrow { letter-spacing: .2em; }

/* ---------- control / terminal ---------- */
.control { display: flex; align-items: center; gap: 32px; }
.control__notes { flex: 1 1 0; display: flex; flex-direction: column; gap: 64px; }
.control__notes--left { text-align: right; }
.control__notes li { display: flex; flex-direction: column; gap: 6px; }
.control__notes .eyebrow { color: var(--fg); }
.control__notes p { font-size: 14px; color: var(--muted); }
.terminal { flex: 0 1 640px; min-width: 0; border: 1px solid var(--line-strong); background: var(--navy-deep); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 120px -40px rgba(8, 12, 50, .6); }
.terminal__bar { height: 42px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.terminal__bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.terminal__title { flex: 1; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .1em; margin-right: 46px; }
.terminal__body { padding: 22px 24px; font-size: 13px; line-height: 1.85; color: var(--fg-2); height: 430px; overflow: hidden; }
.terminal__body .line { white-space: pre-wrap; }
.terminal__status { height: 36px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 11px; color: var(--muted); }
.t-accent { color: var(--accent); } .t-muted { color: var(--muted); } .t-ok { color: var(--ok); } .t-warn { color: var(--warn); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: text-bottom; background: var(--fg); animation: blink 1s steps(1) infinite; }

/* ---------- quote ---------- */
.quote { padding-block: clamp(80px, 10vw, 128px); }
.quote blockquote { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.quote__text { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; letter-spacing: -.025em; max-width: 26ch; text-wrap: balance; }

/* ---------- trust ---------- */
.split { display: flex; align-items: center; gap: clamp(40px, 8vw, 96px); margin-bottom: 64px; }
.split__art { flex: 0 1 460px; width: 100%; height: auto; }
.split__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.spin { transform-origin: 230px 200px; animation: spin 20s linear infinite; }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.three-col > div { padding: 32px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.three-col > div:first-child { padding-left: 0; }
.three-col > div:last-child { border-right: 0; padding-right: 0; }

/* ---------- pilot ---------- */
.pilot { position: relative; overflow: hidden; padding-block: clamp(88px, 11vw, 136px); }
.pilot::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 360px at 50% 110%, color-mix(in srgb, var(--uv) 55%, transparent), transparent 70%); }
.pilot__inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.pilot__inner .h2 { max-width: 22ch; }
.pilot__steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 13px; }
.pilot__steps li { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-2); }
.pilot__steps span { color: var(--accent); }
.pilot__form { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; width: 100%; }
.pilot__form input {
  width: min(340px, 100%); min-height: 52px; padding: 0 22px; font-size: 15px; font-family: var(--font-sans);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg);
  transition: border-color .2s, box-shadow .2s;
}
.pilot__form input::placeholder { color: var(--dim); }
.pilot__form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.pilot__form input[aria-invalid="true"] { border-color: #F08A7A; }
.pilot__form .btn { min-height: 52px; }
.pilot__msg { min-height: 18px; font-size: 13px; color: var(--muted); }
.pilot__msg.is-ok { color: var(--ok); }
.pilot__msg.is-err { color: #F08A7A; }
.pilot__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.contact:hover { border-color: var(--accent); background: var(--surface); }
.contact__mail { font-size: 16px; user-select: all; }
.contact .arrow { color: var(--accent); transition: transform .3s var(--ease); }
.contact:hover .arrow { transform: translateX(4px); }
.dash { position: absolute; height: 3px; background: var(--accent); border-radius: 3px; }
.dash--1 { left: 0; top: 48px; width: 220px; }
.dash--2 { left: 120px; top: 70px; width: 90px; opacity: .5; }
.dash--3 { right: 0; bottom: 48px; width: 260px; }
.dash--4 { right: 180px; bottom: 70px; width: 120px; opacity: .5; }

/* ---------- faq ---------- */
.faq-wrap { max-width: calc(960px + var(--gutter) * 2); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 16px; padding: 24px 0; font-size: 19px; color: var(--fg); }
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq__n { font-size: 13px; transition: transform .3s var(--ease); }
.faq__q:hover .faq__n { transform: translateX(4px); }
.faq__text { flex: 1; }
.faq__icon { position: relative; width: 14px; height: 14px; flex: none; }
.faq__icon::before, .faq__icon::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--muted); transition: transform .3s var(--ease), background .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: var(--accent); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 0 24px 36px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 68ch; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ---------- final cta ---------- */
.cta { position: relative; overflow: hidden; padding-top: clamp(88px, 10vw, 120px); padding-bottom: 280px; }
.cta__grid { position: absolute; left: 0; bottom: 0; width: 100%; height: 380px; transform: translateX(calc(var(--gx, 0) * 1px)); transition: transform .8s var(--ease); }
.cta__rows { animation: floor 3s linear infinite; }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 32px; text-align: center; }
.cta__mark { color: #FFFFFF; animation: bob 4s ease-in-out infinite; }
.cta__mark .uvai-logo { height: 44px; }
.cta__title { font-size: clamp(44px, 7vw, 96px); line-height: .98; font-weight: 400; letter-spacing: -.045em; text-wrap: balance; }
.cta__ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; font-size: 13px; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding-bottom: clamp(120px, 17vw, 250px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
.footer__col { padding: 44px 28px; display: flex; flex-direction: column; gap: 14px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.footer__col:last-child { border-right: 1px solid var(--line); }
.footer__col p { font-size: 14px; line-height: 1.6; }
.footer__col a:not(.logo) { font-size: 15px; width: fit-content; color: var(--fg-2); transition: color .2s; }
.footer__col a:not(.logo):hover { color: var(--accent); }
.footer__brand .logo { margin-bottom: 6px; }
.footer__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: 11px; color: var(--dim); letter-spacing: .08em; }
.footer__tags { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__tags i { font-style: normal; color: var(--orange-mark); }
.footer__wordmark { position: absolute; left: 50%; bottom: 0; width: min(92%, 1200px); transform: translate(-50%, 22%); pointer-events: none; }
.footer__logo {
  width: 100%; height: auto; color: rgba(255,255,255,.07); pointer-events: auto;
  transform: translateY(40%); opacity: 0;
  transition: transform 1.3s var(--ease), opacity 1.3s var(--ease), color .5s;
}
.footer.is-visible .footer__logo { transform: none; opacity: 1; }
.footer.is-visible .footer__logo:hover { color: color-mix(in srgb, var(--orange) 55%, transparent); }

/* =========================================================
   ANIMATION LAYER
   ========================================================= */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 90; pointer-events: none; background: var(--orange); transform-origin: left; transform: scaleX(var(--p, 0)); }
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; mix-blend-mode: difference; display: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor__ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s; }
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.1); }
.cursor.is-down .cursor__ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

/* word reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms + 120ms); }
.is-visible .w > span { transform: none; }

/* scroll reveal + stagger */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.stagger { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease), background .3s, border-color .3s; transition-delay: calc(var(--i, 0) * 90ms); }
.is-visible.stagger > *, .is-visible .stagger > * { opacity: 1; transform: none; }
.stagger > .revealed { transition: opacity .8s var(--ease), transform .45s var(--ease), background .3s, border-color .3s; transition-delay: 0s; }

/* hero wave draw */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .2s); }

/* spotlight */
.spot { background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%); }

/* back to top */
.to-top {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: var(--navy); color: #fff; border: 1px solid #4459B2;
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--uv); }
.to-top:hover svg:first-child { animation: nudgeUp .6s var(--ease); }
.to-top__ring { position: absolute; inset: -1px; width: 52px; height: 52px; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: var(--orange); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .3; } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes dash { to { stroke-dashoffset: -12; } }
@keyframes floor { from { transform: translateY(0); } to { transform: translateY(20px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes blip { 0%, 4% { opacity: 0; } 6% { opacity: 1; } 40% { opacity: .15; } 100% { opacity: 0; } }
@keyframes corePulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.18, 1.5); opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes nudgeUp { 0% { transform: translateY(0); } 40% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(8px); } }
@keyframes glow { 0%, 100% { transform: scale(1); opacity: .12; } 50% { transform: scale(1.5); opacity: .2; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .control { flex-direction: column; }
  .control__notes, .control__notes--left { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; text-align: left; width: 100%; }
  .control__notes li { flex: 1 1 180px; }
  .terminal { width: 100%; flex-basis: auto; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; border-right: 1px solid var(--line); }
  .footer__col:nth-child(4) { border-right: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__links {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px 20px 20px;
    box-shadow: 0 30px 60px -30px rgba(20, 35, 110, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .own-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .own-grid__radar { grid-row: auto; grid-column: 1 / -1; min-height: 300px; }
  .four-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .four-col > div, .four-col > div:first-child { padding: 24px 20px 24px 0; border-right: 0; }
  .agents { grid-template-columns: 1fr; }
  .agents__tabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .agents__more { margin: 20px 32px 24px; padding-top: 0; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { flex-direction: column; align-items: flex-start; }
  .split__art { max-width: 460px; margin-inline: auto; }
  .three-col { grid-template-columns: 1fr; }
  .three-col > div, .three-col > div:first-child, .three-col > div:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .own-grid { grid-template-columns: 1fr; }
  .card { padding: 28px; }
  .four-col { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .agents__panel { padding: 20px 12px; min-height: 0; }
  .agent { grid-template-columns: auto 1fr; }
  .agent .chip { grid-column: 2; justify-self: start; }
  .terminal__body { font-size: 11.5px; padding: 18px; height: 400px; }
  .terminal__title { margin-right: 0; font-size: 10px; }
  .faq__q { font-size: 17px; }
  .faq__a p { padding-left: 0; }
  .dash--1, .dash--3 { width: 120px; }
  .dash--2, .dash--4 { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col:nth-child(3), .footer__col:nth-child(5) { border-right: 1px solid var(--line); }
  .footer__col:nth-child(4) { border-right: 0; }
  .hero__waves { width: 110vw; opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__content > *, .w > span, .stagger > *, .footer__logo, .agent { opacity: 1 !important; transform: none !important; }
  .draw path { stroke-dashoffset: 0; }
  .diagram .packets, .diagram .flow { opacity: 1; }
  .cursor { display: none !important; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   DARK EDITION — Rig-style treatment
   Black ground, hairline grid, orange hero, square corners.
   ========================================================= */
:root {
  color-scheme: dark;
  --paper: #F5F6FA;
  --paper-2: #FFFFFF;
  --ink: #F5F6FA;
  --orange: #DE5735;
  --uv: #DE5735;
  --uv-light: #DE5735;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #F5F6FA;
  --fg: #0E1433;
  --fg-2: #3A4160;
  --muted: #5E6275;
  --dim: #8B90A6;
  --line: #DDE0EA;
  --line-strong: #C3C8D8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --accent: #DE5735;
  --on-accent: #F5F6FA;
  --orange-mark: #DE5735;
  --ok: #6FCF97;
  --warn: #F2B35B;
}
.dark {
  --bg: #F5F6FA;
  --fg: #0E1433;
  --fg-2: #3A4160;
  --muted: #5E6275;
  --dim: #8B90A6;
  --line: #DDE0EA;
  --line-strong: #C3C8D8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --accent: #DE5735;
  --on-accent: #F5F6FA;
  --orange-mark: #DE5735;
  --ok: #6FCF97;
  --warn: #F2B35B;
}
html, body { background: #F5F6FA; }
::selection { background: #DE5735; color: #F5F6FA; }
.section-dark, .pilot, .cta, .footer, .quote { border-top: 1px solid var(--line); }
.section-dark::before, .pilot::before { display: none; }

/* square corners everywhere */
.btn, .nav__toggle, .pilot__form input, .pilot__steps li, .contact, .chip, .skip-link { border-radius: 4px; }
.own-grid, .agents, .feature, .roster, .terminal, .agent__icon { border-radius: 0; }
.agent__icon { border-radius: 2px; }

/* eyebrows: // prefix instead of a square */
.eyebrow { letter-spacing: .14em; }
.eyebrow.accent::before { content: '//'; width: auto; height: auto; background: none; color: var(--accent); }
.agents__row .eyebrow.accent::before, .four-col .eyebrow.accent::before, .three-col .eyebrow.accent::before,
.card .eyebrow.accent::before, .feature .eyebrow.accent::before, .footer__col .eyebrow.accent::before { content: '→'; width: auto; height: auto; }

/* ---------- HERO: solid orange, black type, tonal line art ---------- */
.hero { background: var(--orange); color: #F5F6FA; --fg: #F5F6FA; --fg-2: #3A4160; --line-strong: #F5F6FA; }
.hero__waves { color: #F5F6FA; width: min(820px, 64vw); }
.hero__waves path { stroke-opacity: .16; }
.hero__rules line { stroke-opacity: .14; }
.hero__source { fill: #F5F6FA; opacity: .1; animation: none; }
.hero .logo, .hero .logo:hover { color: #F5F6FA; }
.hero .uvai-logo { height: 28px; }
.nav__links a:not(.btn) { color: #F5F6FA; font-family: var(--font-mono); font-size: 13px; }
.hero__eyebrow { color: #F5F6FA; }
.dot { background: #F5F6FA; box-shadow: none; border-radius: 50%; }
.hero__title { font-weight: 500; font-size: clamp(48px, 8.4vw, 112px); line-height: .95; max-width: 17ch; }
.hero__lede { color: #3A4160; }
.hero .btn { font-family: var(--font-mono); font-size: 14px; }
.btn--ink { background: #F5F6FA; color: #0E1433; }
.btn--ink .fill { background: #2C45A5; }
.hero .btn--outline { border-color: #F5F6FA; color: #F5F6FA; }
.hero .btn--outline .fill { background: #F5F6FA; }
.hero .btn--outline:hover { color: #0E1433; }
.nav__toggle { border-color: #F5F6FA; color: #F5F6FA; }

/* ---------- buttons elsewhere ---------- */
.btn { font-family: var(--font-mono); font-size: 14px; }
.btn--accent { background: var(--orange); color: #F5F6FA; }
.btn--accent .fill { background: #0E1433; }
.btn--outline { border-color: var(--line-strong); color: var(--fg); }
.btn--outline .fill { background: var(--fg); }

/* ---------- ticker ---------- */
.ticker { background: #F5F6FA; color: var(--muted); border-bottom: 1px solid var(--line); }
.ticker__track i { color: var(--orange); }

/* ---------- headings ---------- */
.h2 { font-weight: 400; letter-spacing: -.035em; }
.cta__title { font-weight: 500; }

/* ---------- proof / stats ---------- */
.stat__num--swap .from { color: var(--dim); }

/* ---------- category grid ---------- */
.own-grid__radar, .card { background: #F5F6FA; }
.card:hover { background: var(--surface); }

/* ---------- agents ---------- */
.agents { background: #F5F6FA; }
.agents__tab.is-active { background: var(--surface-2); }
.agents__panel { background-color: #F5F6FA; background-image: radial-gradient(#D5D9E6 1px, transparent 1px); background-size: 16px 16px; }
.roster { background: #F5F6FA; border-color: var(--orange); box-shadow: none; }
.roster:hover { box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--orange) 45%, transparent); }
.agent__icon { color: var(--orange); background: color-mix(in srgb, var(--orange) 14%, #F5F6FA); }
.agent:hover .agent__icon { background: var(--orange); color: #F5F6FA; }

/* ---------- features ---------- */
.feature { background: var(--surface); }

/* ---------- terminal ---------- */
.terminal { background: #0E1433; box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--orange) 30%, transparent); }

/* ---------- pilot ---------- */
.pilot__form input { background: var(--surface-2); font-family: var(--font-mono); font-size: 14px; }
.contact:hover { background: var(--surface); }

/* ---------- cta + footer ---------- */
.cta__mark { color: var(--orange); }
.footer.is-visible .footer__logo:hover { color: color-mix(in srgb, var(--orange) 60%, transparent); }
.footer__logo { color: rgba(244, 241, 236, .06); }

/* ---------- chrome ---------- */
.progress { background: #fff; mix-blend-mode: difference; }
.to-top { background: var(--surface-2); border-color: var(--line); color: var(--fg); }
.to-top:hover { background: var(--orange); color: #F5F6FA; }
.to-top__ring circle { stroke: var(--orange); }

@media (max-width: 900px) {
  .nav__links { background: #F5F6FA; border-color: var(--line); border-radius: 4px; }
  .nav__links a:not(.btn) { color: #0E1433; border-bottom-color: var(--line); }
  .nav__links .btn { background: var(--orange); color: #F5F6FA; }
  .hero__waves { width: 120vw; }
}

/* =========================================================
   HERO v2 — full-bleed dark hero, sweeping lit ribbons,
   headline bottom-left, supporting copy bottom-right
   ========================================================= */
.hero.hero2 {
  --fg: #0E1433; --fg-2: #3A4160; --line-strong: #C3C8D8;
  position: relative; overflow: hidden; isolation: isolate;
  background: #F5F6FA; color: #0E1433;
  min-height: clamp(700px, 100svh, 980px);
  display: flex; flex-direction: column; padding-bottom: clamp(48px, 7vw, 88px);
}
.hero2__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(1200px 800px at 85% 30%, #FFFFFF 0%, #EEF1F9 45%, #F5F6FA 75%); }
.hero__ribbons {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translate3d(calc(var(--rx, 0) * 1px), calc(var(--ry, 0) * 1px), 0) scale(1.04);
  transition: transform .8s var(--ease);
}
.ribbon path { stroke-linecap: butt; }
.ribbon path[pathLength="1"] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.ribbon--back path { animation-delay: .1s !important; }
.ribbon--mid path { animation-delay: .35s !important; }
.ribbon--front path[pathLength="1"] { animation-delay: .6s !important; }
.ribbon--back { opacity: .8; animation: sway 14s ease-in-out infinite alternate; transform-origin: 1300px 900px; }
.ribbon--mid { animation: sway 18s ease-in-out infinite alternate-reverse; transform-origin: 1100px 920px; }
.ribbon--front { animation: sway 16s ease-in-out infinite alternate; transform-origin: 1040px 990px; }
.ribbon__light { stroke-dasharray: 70 1000; stroke-dashoffset: 1070; opacity: 0; animation: streak 5s cubic-bezier(.45, 0, .2, 1) 2.4s infinite; }
.stars circle { opacity: .15; animation: twinkle 4s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hero2__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(245,246,250,.92) 0%, rgba(245,246,250,.55) 38%, rgba(245,246,250,0) 62%),
    linear-gradient(0deg, rgba(245,246,250,.85) 0%, rgba(245,246,250,0) 38%);
}
.hero2__grain {
  position: absolute; inset: -50%; opacity: .11; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}

/* nav: logo left, links in a dark pill, two buttons right */
.hero2 .nav { height: 88px; }
.hero2 .logo, .hero2 .logo:hover { color: #0E1433; }
.hero2 .logo:hover { color: var(--orange); }
.hero2 .nav__links { gap: 10px; }
.nav__pill {
  display: flex; align-items: center; gap: 4px; padding: 6px;
  background: rgba(255,255,255,.78); border: 1px solid #DDE0EA; border-radius: 6px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero2 .nav__pill a {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #3A4160; padding: 10px 14px; border-radius: 4px; transition: background .2s, color .2s;
}
.hero2 .nav__pill a::after { display: none; }
.hero2 .nav__pill a:hover { background: #ECEEF5; color: #0E1433; }
.hero2 .nav__links .btn { min-height: 44px; padding: 0 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.btn--light { background: #FFFFFF; color: #F5F6FA; }
.btn--light .fill { background: #FFFFFF; }
.btn--dark { background: #FFFFFF; color: #0E1433; border-color: #C3C8D8; }
.btn--dark .fill { background: #ECEEF5; }
.hero2 .nav__toggle { border-color: #C3C8D8; color: #0E1433; }

/* content: bottom aligned, two columns */
.hero2__content {
  margin-top: auto; padding-top: 80px;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: end;
}
.hero2__left { display: flex; flex-direction: column; gap: 24px; }
.hero2__right { display: flex; flex-direction: column; gap: 24px; padding-bottom: 10px; }
.hero2 .hero__eyebrow { color: #3A4160; }
.hero2 .dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(222, 87, 53, .2); }
.hero2 .hero__title {
  font-size: clamp(46px, 6.6vw, 100px); font-weight: 300; line-height: 1.02; letter-spacing: -.035em;
  max-width: 15ch; color: #0E1433;
}
.hero2 .hl { color: var(--orange); }
.hero2 .hero__lede { color: #3A4160; font-size: 17px; max-width: 40ch; }
.hero2 .hero__ctas { padding-top: 0; }
.hero2 .hero__ctas .btn { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero2 .hero__content > * { opacity: 0; transform: translateY(20px); animation: rise .9s var(--ease) forwards; }
.hero2 .hero__content > .hero2__left { animation-delay: .1s; }
.hero2 .hero__content > .hero2__right { animation-delay: .7s; }
.hero2 .hero2__left > * { animation: none; opacity: 1; transform: none; }

@keyframes streak {
  0% { stroke-dashoffset: 1070; opacity: 0; }
  8% { opacity: 1; }
  70% { opacity: 1; }
  85%, 100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes sway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes twinkle { 0%, 100% { opacity: .1; } 50% { opacity: .7; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

@media (max-width: 900px) {
  .hero2__content { grid-template-columns: 1fr; gap: 28px; }
  .hero2 .nav__links { background: #F5F6FA; }
  .nav__pill { flex-direction: column; align-items: stretch; background: none; border: 0; padding: 0; backdrop-filter: none; }
  .hero2 .nav__pill a { padding: 14px 0; border-bottom: 1px solid #DDE0EA; border-radius: 0; font-size: 13px; }
  .hero2 .nav__links .btn { margin-top: 12px; }
  .hero2__shade { background: linear-gradient(0deg, rgba(245,246,250,.95) 0%, rgba(245,246,250,.6) 50%, rgba(245,246,250,.2) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon path[pathLength="1"] { stroke-dashoffset: 0; }
  .ribbon__light { display: none; }
  .hero2 .hero__content > * { opacity: 1; transform: none; }
}

/* ---------- Hero v2: live 3D render ---------- */
.hero2__bg { background: radial-gradient(900px 620px at 76% 40%, #FFFFFF 0%, #EEF1F9 42%, #F5F6FA 76%); }
.hero3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 2.4s var(--ease); }
.hero3d.is-ready { opacity: 1; }
.hero2__shade {
  background:
    linear-gradient(90deg, rgba(245,246,250,.9) 0%, rgba(245,246,250,.5) 34%, rgba(245,246,250,0) 58%),
    linear-gradient(0deg, rgba(245,246,250,.92) 0%, rgba(245,246,250,.55) 22%, rgba(245,246,250,0) 46%),
    linear-gradient(180deg, rgba(245,246,250,.6) 0%, rgba(245,246,250,0) 18%);
}

/* ---------- Hero parallax (driven by --sp, 0 → 1 as the hero scrolls away) ---------- */
.hero2 { --sp: 0; }
.hero2 .hero3d { transform: translate3d(0, calc(var(--sp) * 180px), 0); will-change: transform; }
.hero2__shade { opacity: calc(1 + var(--sp) * .4); }
.hero2 .hero__eyebrow { transform: translate3d(0, calc(var(--sp) * -30px), 0); }
.hero2 .hero__title { transform: translate3d(0, calc(var(--sp) * -80px), 0); will-change: transform; }
.hero2__right .hero__lede { transform: translate3d(0, calc(var(--sp) * -150px), 0); }
.hero2__right .hero__ctas { transform: translate3d(0, calc(var(--sp) * -190px), 0); }
.hero2__left, .hero2__right { transition: none; }
.hero2 .hero2__content > .hero2__left > *, .hero2 .hero2__right > * { opacity: calc(1 - var(--sp) * 1.4); }
@media (max-width: 900px) {
  .hero2 .hero__title { transform: translate3d(0, calc(var(--sp) * -40px), 0); }
  .hero2__right .hero__lede, .hero2__right .hero__ctas { transform: translate3d(0, calc(var(--sp) * -70px), 0); }
}

/* =========================================================
   Hero copy position + stronger render
   ========================================================= */
.hero.hero2 { min-height: clamp(680px, 92svh, 920px); }
.hero2__content { margin-top: auto; margin-bottom: auto; padding-top: 24px; transform: translateY(4vh); }
.hero2__shade {
  background:
    linear-gradient(90deg, rgba(245,246,250,.82) 0%, rgba(245,246,250,.35) 32%, rgba(245,246,250,0) 52%),
    linear-gradient(0deg, rgba(245,246,250,.85) 0%, rgba(245,246,250,.3) 18%, rgba(245,246,250,0) 36%),
    linear-gradient(180deg, rgba(245,246,250,.5) 0%, rgba(245,246,250,0) 14%);
}

/* =========================================================
   Section renders (same material + light as the hero)
   ========================================================= */
.scene3d { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 2s var(--ease); }
.scene3d.is-ready { opacity: 1; }

/* trust: the ring replaces the flat boundary diagram */
.render-box {
  position: relative; flex: 0 1 480px; width: 100%; aspect-ratio: 6 / 5; max-width: 100%;
  background: radial-gradient(60% 60% at 50% 50%, #FFFFFF 0%, #F5F6FA 72%);
  border: 1px solid var(--line);
}
.render-box::after {
  content: 'YOUR CONTROL BOUNDARY'; position: absolute; left: 16px; bottom: 14px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted);
}

/* full-bleed backgrounds for pilot + final CTA */
.section-render { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.section-render .scene3d { position: absolute; inset: 0; }
.section-render__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 42% at 50% 50%, rgba(245,246,250,.78) 0%, rgba(245,246,250,.35) 60%, rgba(245,246,250,0) 100%),
    linear-gradient(180deg, #F5F6FA 0%, rgba(245,246,250,0) 18%, rgba(245,246,250,0) 82%, #F5F6FA 100%);
}
.section-render__shade--cta {
  background:
    radial-gradient(50% 40% at 50% 38%, rgba(245,246,250,.7) 0%, rgba(245,246,250,.2) 70%, rgba(245,246,250,0) 100%),
    linear-gradient(180deg, #F5F6FA 0%, rgba(245,246,250,0) 22%, rgba(245,246,250,0) 80%, #F5F6FA 100%);
}
.pilot--render { padding-block: clamp(120px, 14vw, 180px); background: #F5F6FA; }
.pilot--render .pilot__inner { z-index: 1; }
.pilot--render .contact { background: rgba(245,246,250,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pilot--render .pilot__steps li { background: rgba(245,246,250,.55); }
.cta { padding-bottom: clamp(160px, 18vw, 240px); background: #F5F6FA; }
.cta .cta__inner { z-index: 1; }
@media (max-width: 900px) {
  .render-box { flex-basis: auto; max-width: 480px; margin-inline: auto; }
  .hero2__content { transform: none; }
}

/* =========================================================
   LIGHT EDITION — blue primary, orange accent
   ========================================================= */
:root, .dark:not(.footer) {
  color-scheme: light;
  --paper: #F5F6FA; --paper-2: #ECEEF5; --ink: #0E1433;
  --blue: #081DF5; --navy: #2C45A5; --orange: #DE5735;
  --bg: #F5F6FA; --fg: #0E1433; --fg-2: #3A4160; --muted: #5E6275; --dim: #8B90A6;
  --line: #DDE0EA; --line-strong: #C3C8D8; --surface: #FFFFFF; --surface-2: #F8F9FC;
  --accent: #081DF5; --on-accent: #FFFFFF; --orange-mark: #DE5735;
  --ok: #17865A; --warn: #B85A00;
}
html, body { background: #F5F6FA; }
.dark:not(.footer) { background: #F5F6FA; color: #0E1433; }
::selection { background: #DE5735; color: #FFFFFF; }
.eyebrow.accent::before { color: var(--orange); }

/* buttons: blue is the primary action colour */
.btn--accent, .btn--ink, .nav__links .btn--accent { background: #081DF5; color: #FFFFFF; }
.btn--accent .fill, .btn--ink .fill { background: #2C45A5; }
.btn--light { background: #FFFFFF; color: #0E1433; border-color: #C3C8D8; }
.btn--light .fill { background: #ECEEF5; }
.btn--dark { background: transparent; color: #0E1433; border-color: #C3C8D8; }
.btn--dark .fill { background: #0E1433; }
.btn--dark:hover { color: #FFFFFF; }
.btn--outline { border-color: #C3C8D8; color: #0E1433; }
.btn--outline .fill { background: #0E1433; }
.btn--outline:hover { color: #FFFFFF; }

/* hero */
.hero.hero2 { background: #F5F6FA; color: #0E1433; --fg: #0E1433; --fg-2: #3A4160; --line-strong: #C3C8D8; }
.hero2__bg {
  background:
    radial-gradient(640px 480px at 74% 44%, rgba(222, 87, 53, .10) 0%, rgba(222, 87, 53, 0) 70%),
    radial-gradient(1000px 700px at 76% 40%, #FFFFFF 0%, #EEF1F9 52%, #F5F6FA 80%);
}
.hero2 .logo, .hero2 .logo:hover { color: #2C45A5; }
.hero2 .logo:hover { color: #081DF5; }
.hero2 .hero__title { color: #0E1433; }
.hero2 .hl { color: #DE5735; }
.hero2 .hero__lede, .hero2 .hero__eyebrow { color: #3A4160; }
.hero2 .nav__pill { background: rgba(255,255,255,.8); border-color: #DDE0EA; box-shadow: 0 10px 30px -18px rgba(20, 35, 110, .25); }
.hero2 .nav__pill a { color: #3A4160; }
.hero2 .nav__pill a:hover { background: #ECEEF5; color: #0E1433; }
.hero2 .nav__toggle { border-color: #C3C8D8; color: #0E1433; }

/* ticker: the one saturated band */
.ticker { background: #2C45A5; color: #D8DEF7; border-bottom: 0; }
.ticker__track i { color: #FF9B7F; }

/* cards + panels */
.own-grid__radar, .card, .agents { background: #FFFFFF; }
.card:hover { background: #F8F9FC; }
.agents__panel { background-color: #F1F3F9; }
.roster { background: #FFFFFF; border-color: #DDE0EA; box-shadow: 0 30px 60px -40px rgba(20, 35, 110, .35); }
.roster:hover { box-shadow: 0 40px 80px -40px rgba(8, 29, 245, .35); }
.agent__icon { color: #2C45A5; background: #E8ECFA; }
.agent:hover .agent__icon { background: #DE5735; color: #FFFFFF; }
.feature { background: #FFFFFF; }
.feature:hover { border-color: #081DF5; }
.spot { background-image: radial-gradient(360px circle at var(--mx, -999px) var(--my, -999px), rgba(8, 29, 245, .06), transparent 60%); }

/* terminal stays a dark navy instrument panel */
.terminal {
  --fg: #F3F4FA; --fg-2: #C9D1F2; --muted: #8F9AC6; --line: #27336E; --line-strong: #3B4886;
  --ok: #7CE0A8; --warn: #FFC98A; --accent: #FF9B7F;
  background: #0E1433; border-color: #27336E; box-shadow: 0 40px 100px -40px rgba(8, 29, 245, .45);
}
.caret { background: #F3F4FA; }

/* renders sit on light backdrops */
.render-box { background: radial-gradient(60% 60% at 50% 50%, #FFFFFF 0%, #ECEEF5 80%); }
.pilot--render, .cta { background: #F5F6FA; }
.pilot--render .contact { background: rgba(255,255,255,.7); }
.pilot--render .pilot__steps li { background: rgba(255,255,255,.7); }
.pilot__form input { background: #FFFFFF; }
.cta__mark { color: #2C45A5; }

/* footer: deep navy to ground the page */
.footer.dark {
  --bg: #0E1433; --fg: #FFFFFF; --fg-2: #D8DEF7; --muted: #AEB8E4; --dim: #8390C8;
  --line: #243066; --line-strong: #3B4886; --surface: #141C45; --accent: #FFB39E; --orange-mark: #FF9B7F;
  background: #0E1433; color: #FFFFFF;
}
.footer .logo, .footer .logo:hover { color: #FFFFFF; }
.footer__logo { color: rgba(255,255,255,.05); }

/* chrome */
.progress { background: #DE5735; mix-blend-mode: normal; }
.to-top { background: #FFFFFF; border-color: #DDE0EA; color: #0E1433; }
.to-top:hover { background: #081DF5; color: #FFFFFF; }

@media (max-width: 900px) {
  .hero2 .nav__links, .nav__links { background: #FFFFFF; border-color: #DDE0EA; }
  .hero2 .nav__pill { background: none; box-shadow: none; }
  .hero2 .nav__pill a { border-bottom-color: #DDE0EA; }
  .nav__links a:not(.btn) { color: #0E1433; }
}

/* headline options: longer lines need a calmer scale */
.hero2 .hero__title { font-size: clamp(40px, 5.4vw, 82px); max-width: 17ch; }
.h2 { max-width: 22ch; }
.cta__title { font-size: clamp(38px, 5.6vw, 76px); max-width: 20ch; margin-inline: auto; }
