/* RiskPilot landing page.
   Refactored 1:1 from the approved design reference: same layout, copy, colours, type and motion timings.
   No inline styles are used in index.html, so a strict CSP (style-src 'self') works. */

/* ---------- Fonts (self-hosted, variable, Latin subset) ---------- */
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/lexend-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --ground: #0B0A0E;
  --raised: #0F0D13;
  --card: #131118;
  --chip: #17141D;
  --off: #2A2631;               /* inactive node / step pill */

  /* text */
  --text: #F4F1F6;
  --text-2: #C9C3D1;            /* secondary */
  --text-muted: #B7B0C0;        /* body copy on cards */
  --label: #A19AAC;
  --text-soft: #E7E2EC;

  /* brand */
  --magenta: #E9078A;
  --btn: #C2256F;
  --btn-hover: #D62A7C;
  --pink: #FF6DB6;              /* text on dark */
  --yellow: #FCC714;
  --orange: #EC673C;
  --success: #4DD6A0;
  --link-hover: #FFD23F;
  --gradient: linear-gradient(90deg, #FCC714, #EC673C, #E9078A);

  /* lines */
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .1);
  --line-3: rgba(255, 255, 255, .16);

  /* dashboard mock (light surface) */
  --d-bg: #F4F5F8;
  --d-ink: #14151A;
  --d-label: #5F6471;
  --d-line: #E3E5EA;
  --d-line-2: #EEF0F3;
  --d-muted: #4A4F5C;

  /* type */
  --font-display: "Lexend", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* layout */
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--ground); }
body { margin: 0; background: var(--ground); }
a { color: var(--pink); }
a:hover { color: var(--link-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--yellow); color: #14110A; font: 600 15px var(--font-body); text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #14110A; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.page { position: relative; background: var(--ground); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.55; overflow-x: clip; }
.fd { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient); transform: scaleX(0); transform-origin: left center; z-index: 60; }

/* ---------- Links and buttons ---------- */
.page .navlink { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 12px 4px; transition: color .2s; }
.page .navlink:hover { color: #FFFFFF; }
.page .btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--btn); color: #FFFFFF; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s, background .25s; box-shadow: 0 0 0 rgba(233, 7, 138, 0); }
.page .btn:hover { background: var(--btn-hover); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(233, 7, 138, .45); }
.page .btn svg { transition: transform .25s; }
.page .btn:hover svg { transform: translateX(4px); }
.page .btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.page .btn--lg { min-height: 56px; padding: 0 32px; font-size: 18px; }
.page .btn-ghost { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); color: var(--text); font-weight: 500; font-size: 16px; text-decoration: none; transition: border-color .25s, background .25s; }
.page .btn-ghost:hover { border-color: var(--yellow); background: rgba(252, 199, 20, .08); color: #FFFFFF; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 10, 14, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header__bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; color: #FFFFFF; min-height: 44px; }
.brand svg { height: 34px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.menu-btn { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px; background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn__bars { position: relative; display: block; width: 18px; height: 12px; }
.menu-btn__bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 5px; }
.menu-btn__bars span:nth-child(3) { top: 10px; }
.nav-open .menu-btn__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .menu-btn__bars span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.menu-btn:hover { border-color: var(--yellow); }
.site-nav__signin { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 780px; display: flex; align-items: center; padding: 72px 0 96px; }
.hero__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%); }
.hero__glow { position: absolute; right: -10%; top: -20%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(233, 7, 138, .26), rgba(233, 7, 138, 0)); pointer-events: none; }
.hero__inner { position: relative; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 56px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .18em; color: var(--yellow); text-transform: uppercase; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }
.hero__title { margin: 0; font-size: clamp(44px, 6.3vw, 88px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; color: #FFFFFF; }
.ln__grad { background: linear-gradient(90deg, #FCC714, #EC673C 45%, #E9078A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lede { margin: 0; max-width: 540px; font-size: 20px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; letter-spacing: .12em; color: var(--label); text-transform: uppercase; }

/* hero art: square box reserved up front, so nothing shifts while it paints */
.hero-art { will-change: transform; }
.hero-tilt { position: relative; width: min(560px, 100%); aspect-ratio: 1 / 1; margin: 0 auto; transition: transform .5s var(--ease); }
.hero-sweep { position: absolute; inset: 4%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233, 7, 138, 0) 0 72%, rgba(233, 7, 138, .38) 100%); }
.hero-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-mark { position: absolute; left: 29%; top: 21%; width: 43%; height: auto; overflow: visible; filter: drop-shadow(0 0 44px rgba(233, 7, 138, .55)); }

.chip__label { font-size: 10px; letter-spacing: .16em; color: var(--label); }
.chip__value { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.chip__code { font-size: 13px; }
.chip__ok { color: var(--success); }
.chip.c1 { left: 0; top: 13%; }
.chip.c2 { right: 0; top: 26%; }
.chip.c3 { left: 2%; bottom: 16%; }
.chip.c4 { right: 3%; bottom: 7%; }
.pill-band { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--yellow); color: #14110A; }
.orb { background: conic-gradient(#E9078A, #FCC714, #4F8DF7, #E9078A); border-radius: 50%; animation: rp-spin 4s linear infinite; }
.orb--sm { width: 14px; height: 14px; flex: none; }
.orb--md { width: 28px; height: 28px; flex: none; margin-top: 2px; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--raised); }
.track { display: flex; width: max-content; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); }
.track__group { display: flex; gap: 44px; padding: 22px; align-items: center; }
.tri-y { color: var(--yellow); }
.tri-m { color: var(--magenta); }

/* ---------- Sections ---------- */
.section { position: relative; }
.section--flow { padding: 128px 0 112px; }
.section--platform { padding: 48px 0 128px; }
.section--dashboard { padding: 112px 0 128px; background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--rail { padding: 128px 0; }
.section--cta { padding: 144px 0; overflow: hidden; border-top: 1px solid var(--line); }
.section__inner { display: flex; flex-direction: column; gap: 72px; }
.section__inner--platform { gap: 64px; }
.section__inner--dashboard { position: relative; gap: 64px; align-items: center; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.section-head--center { text-align: center; align-items: center; }
.kicker { font-size: 12px; letter-spacing: .18em; color: var(--pink); }
.kicker--accent { color: var(--yellow); }
.h2 { margin: 0; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.lead { margin: 0; font-size: 19px; color: var(--text-2); max-width: 640px; }
.lead--sm { max-width: 620px; }

/* ---------- Flight path ---------- */
.flow { position: relative; }
.flow__rail, .flow__fill { position: absolute; left: 0; right: 0; top: 5px; height: 2px; }
.flow__rail { background: rgba(255, 255, 255, .1); }
.flow__fill { background: var(--gradient); transform-origin: left center; }
.flow__pulse { position: absolute; top: 0; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 18px 6px rgba(252, 199, 20, .7); }
.flow__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 36px 24px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; }
.step__node { display: block; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--off); }
/* the label reserves two lines and bottom-aligns, so all six headings share one baseline */
.step__label { display: flex; align-items: flex-end; margin-top: 12px; min-height: 36px; font-size: 12px; line-height: 18px; letter-spacing: .14em; color: var(--label); }
.step__title { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.step__text { margin: 0; font-size: 15px; color: var(--text-muted); }

/* ---------- Platform cards ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line-2); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), border-color .4s, box-shadow .5s; }
.card:hover { transform: translateY(-6px); border-color: rgba(233, 7, 138, .55); box-shadow: 0 30px 80px rgba(233, 7, 138, .16); }
.card__art { min-height: 300px; padding: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 32px; background: var(--raised); border-bottom: 1px solid var(--line); }
.card__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card__tag { font-size: 12px; letter-spacing: .18em; color: var(--yellow); }
.card__title { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 500; letter-spacing: -.025em; }
.card__text { margin: 0; color: var(--text-muted); }

/* Sentinel radar */
.radar { position: relative; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: repeating-radial-gradient(circle, transparent 0 35px, rgba(255, 255, 255, .08) 35px 36px); overflow: hidden; flex: none; }
.radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(233, 7, 138, 0) 0 70%, rgba(233, 7, 138, .6) 100%); animation-duration: 5s; }
.radar__axis-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .12); }
.radar__axis-h { position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .12); }
.blip { position: absolute; border-radius: 50%; width: 8px; height: 8px; background: #FFFFFF; box-shadow: 0 0 12px #FFFFFF; }
.blip--a { left: 68%; top: 26%; width: 10px; height: 10px; background: var(--yellow); box-shadow: 0 0 14px var(--yellow); animation-delay: .6s; }
.blip--b { left: 30%; top: 62%; animation-delay: 3.2s; }
.blip--c { left: 60%; top: 74%; animation-delay: 2.1s; }
.checks { flex: 1 1 200px; display: flex; flex-direction: column; gap: 10px; }
.tick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.tick__name { font-size: 15px; }
.tick__val { font-size: 11px; letter-spacing: .1em; }
.is-ok { color: var(--success); }
.is-warn { color: var(--yellow); }

/* SixthSense ruleset flow */
.card__art--flow { padding: 32px 28px; display: grid; grid-template-columns: auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; grid-template-rows: repeat(3, auto); gap: 18px 0; align-items: center; align-content: center; }
.col-1 { grid-column: 1; } .col-2 { grid-column: 2; } .col-3 { grid-column: 3; } .col-4 { grid-column: 4; } .col-5 { grid-column: 5; }
.row-1 { grid-row: 1; } .row-2 { grid-row: 2; } .row-3 { grid-row: 3; }
.rs-chip { font-size: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-3); background: var(--chip); }
.rs-core { grid-column: 3; grid-row: 1 / span 3; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 16px; border-radius: 14px; background: var(--btn); box-shadow: 0 0 50px rgba(233, 7, 138, .4); }
.rs-core__tag, .rs-core__note { font-size: 10px; color: #FFE3F1; }
.rs-core__tag { letter-spacing: .16em; }
.rs-core__name { font-size: 17px; font-weight: 500; line-height: 1.2; color: #FFFFFF; }
.band-chip { font-size: 12px; text-align: center; padding: 10px 14px; border-radius: 8px; }
.band-chip--low { background: #BFEBD8; color: #0B3D29; }
.band-chip--med { background: var(--yellow); color: #14110A; }
.band-chip--high { background: #8E1630; color: #FFFFFF; }

/* LivePulse scan */
.face { position: relative; width: 160px; height: 204px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); overflow: hidden; flex: none; background: #24102A; }
.face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scan { position: absolute; left: 0; right: 0; top: 8%; height: 2px; background: var(--yellow); box-shadow: 0 0 16px 3px rgba(252, 199, 20, .7); }
.liveside { flex: 1 1 200px; display: flex; flex-direction: column; gap: 16px; }
.stepper { display: flex; flex-wrap: wrap; gap: 8px; }
.stepn { font-size: 11px; padding: 6px 10px; border-radius: 99px; background: var(--off); color: var(--text-2); }
.codebox { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 10px; background: var(--chip); border: 1px solid var(--line-2); font-size: 13px; }
.codebox__row { display: flex; justify-content: space-between; gap: 16px; }
.codebox__row--last { padding-top: 8px; border-top: 1px solid var(--line-2); }
.codebox__key { color: var(--text-2); }
.codebox__val--white { color: #FFFFFF; }

/* Athena chat loop */
.card__art--chat { padding: 28px 32px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: center; gap: 14px; }
.bubble { align-self: flex-end; max-width: 82%; padding: 11px 16px; border-radius: 16px 16px 4px 16px; background: var(--off); font-size: 15px; }
.reply { display: flex; gap: 12px; align-items: flex-start; max-width: 94%; }
.reply__text { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-soft); }
.caret { display: inline-block; width: 8px; height: 16px; margin-left: 4px; background: var(--yellow); vertical-align: -2px; }
.askbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); background: var(--chip); font-size: 13px; color: var(--label); }
.askbar__text { flex: 1; }
.kbd { padding: 2px 6px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .18); font-size: 11px; }

/* ---------- Dashboard mock ---------- */
.dash-glow { position: absolute; left: 15%; bottom: -10%; width: 70%; height: 70%; background: radial-gradient(closest-side, rgba(252, 199, 20, .12), rgba(252, 199, 20, 0)); pointer-events: none; }
.dash-wrap { width: 100%; max-width: 1120px; }
.dash { transform-origin: 50% 100%; will-change: transform; background: var(--d-bg); color: var(--d-ink); border-radius: 18px; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 60px 140px rgba(0, 0, 0, .6), 0 0 120px rgba(233, 7, 138, .22); overflow: hidden; }
.dash__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; background: #FFFFFF; border-bottom: 1px solid var(--d-line); }
.dash__crumb { font-size: 11px; letter-spacing: .16em; color: var(--d-label); }
.dash__crumb b { font-weight: 400; color: var(--d-ink); }
.dash__sample { font-size: 11px; letter-spacing: .14em; padding: 4px 10px; border-radius: 6px; background: var(--d-ink); color: #FFFFFF; }
.dash__body { padding: clamp(18px, 3vw, 32px); display: flex; flex-direction: column; gap: 22px; }
.dash__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dash__headtext { display: flex; flex-direction: column; gap: 4px; }
.dash__eyebrow { font-size: 11px; letter-spacing: .18em; color: var(--d-label); }
.dash__title { font-size: 30px; font-weight: 500; letter-spacing: -.02em; }
.dash__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 8px; background: #B5296E; color: #FFFFFF; font-size: 14px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 1px; background: var(--d-line); border: 1px solid var(--d-line); border-radius: 12px; overflow: hidden; }
.kpi { background: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.kpi__label { font-size: 10px; letter-spacing: .16em; color: var(--d-label); }
.kpi__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kpi__value { font-size: 26px; }
.kpi__note { font-size: 11px; }
.kn-green { color: #1F6B4B; } .kn-amber { color: #7A4E00; } .kn-red { color: #A32035; } .kn-blue { color: #2456B8; }
.worklist { background: #FFFFFF; border: 1px solid var(--d-line); border-radius: 12px; overflow-x: auto; }
.worklist__inner { min-width: 640px; }
.worklist__head { padding: 16px 20px 6px; display: flex; flex-direction: column; gap: 2px; }
.worklist__eyebrow { font-size: 10px; letter-spacing: .16em; color: var(--d-label); }
.worklist__title { font-size: 18px; font-weight: 500; }
.wl-cols, .wl-row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr .8fr; gap: 12px; padding: 10px 20px; }
.wl-cols { font-size: 10px; letter-spacing: .16em; color: var(--d-label); border-bottom: 1px solid var(--d-line); }
.wl-row { padding: 13px 20px; font-size: 14px; align-items: center; border-bottom: 1px solid var(--d-line-2); }
.wl-row:last-child { border-bottom: 0; }
.wl-right { text-align: right; }
.wl-name { font-weight: 500; }
.wl-muted { color: var(--d-muted); }
.wl-time { font-size: 12px; color: var(--d-label); text-align: right; }
.risk { font-size: 11px; padding: 3px 9px; border-radius: 6px; }
.risk--high { background: #8E1630; color: #FFFFFF; }
.risk--med { background: #FBDD8A; color: #4A3300; }
.risk--low { background: #DDF3EA; color: #0E5A3C; }

/* ---------- Data rail ---------- */
.rail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 40px; }
.stat { display: flex; flex-direction: column; gap: 16px; }
.stat__rule { height: 2px; }
.stat__rule--1 { background: linear-gradient(90deg, #FCC714, #EC673C); }
.stat__rule--2 { background: linear-gradient(90deg, #EC673C, #E9078A); }
.stat__rule--3 { background: linear-gradient(90deg, #E9078A, #9E2064); }
.stat__figure { font-size: clamp(64px, 8vw, 112px); line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.stat__figure--1 { color: var(--yellow); }
.stat__figure--2 { color: #FF8A4F; }
.stat__figure--3 { color: #FF4FA8; }
.stat__title { margin: 0; font-size: 22px; font-weight: 500; }
.stat__text { margin: 0; color: var(--text-muted); }

/* ---------- Call to action ---------- */
.cta__rings { position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; margin: -450px 0 0 -450px; pointer-events: none; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(233, 7, 138, .7); }
.ring.r2 { border-color: rgba(252, 199, 20, .6); }
.cta__inner { position: relative; max-width: 900px; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.cta__title { margin: 0; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.cta__lede { margin: 0; font-size: 20px; color: var(--text-2); max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ground); }
.site-footer__bar { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer__copy { font-size: 12px; letter-spacing: .08em; color: var(--label); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* ---------- Motion ---------- */
/* scroll reveals: only hidden once the script has marked the page, so no-JS shows everything */
.rp-js .rv { opacity: 0; transform: translateY(36px); transition: opacity .95s cubic-bezier(.2, .7, .2, 1), transform .95s cubic-bezier(.2, .7, .2, 1); }
.rp-js .rv.in { opacity: 1; transform: none; }
.rp-js .rv.d1 { transition-delay: .09s; } .rp-js .rv.d2 { transition-delay: .18s; } .rp-js .rv.d3 { transition-delay: .27s; }
.rp-js .rv.d4 { transition-delay: .36s; } .rp-js .rv.d5 { transition-delay: .45s; }
.page .spark { stroke-dasharray: 130; stroke-dashoffset: 0; }
.rp-js .rv .spark { stroke-dashoffset: 130; }
.rp-js .rv.in .spark { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s cubic-bezier(.4, 0, .2, 1) .5s; }
.page .rule { transform-origin: left center; }
.rp-js .rv .rule { transform: scaleX(0); }
.rp-js .rv.in .rule { transform: scaleX(1); transition: transform 1.2s cubic-bezier(.6, 0, .2, 1) .2s; }

/* hero */
.page .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.page .ln > span { display: block; animation: rp-rise 1.1s var(--ease) backwards; }
.page .ln.l2 > span { animation-delay: .12s; } .page .ln.l3 > span { animation-delay: .24s; }
.page .hfade { animation: rp-fade 1s ease-out backwards; }
.page .hf1 { animation-delay: .5s; } .page .hf2 { animation-delay: .7s; } .page .hf3 { animation-delay: .9s; }
.page .glow { animation: rp-drift 14s ease-in-out infinite alternate; }
.page .o { transform-origin: 280px 280px; }
.page .spin { animation: rp-spin 60s linear infinite; }
.page .spin-r { animation: rp-spin 44s linear infinite reverse; }
.page .orbit { animation: rp-spin 14s linear infinite; }
.page .orbit2 { animation: rp-spin 22s linear infinite reverse; }
.page .sweep { animation: rp-spin 5s linear infinite; }
.page .shape { animation: rp-fade 1.4s ease-out .25s backwards; }
.page .st { fill: none; stroke: #FFFFFF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 81; animation: rp-draw 1.2s cubic-bezier(.6, 0, .2, 1) backwards; }
.page .st:nth-child(4n+1) { animation-delay: .5s; } .page .st:nth-child(4n+2) { animation-delay: .75s; }
.page .st:nth-child(4n+3) { animation-delay: 1s; } .page .st:nth-child(4n) { animation-delay: 1.25s; }
.page .fc { fill: #FFFFFF; opacity: 0; animation: rp-facet 7s ease-in-out infinite; }
.page .fc:nth-child(5n+1) { animation-delay: 2.4s; } .page .fc:nth-child(5n+2) { animation-delay: 3.8s; }
.page .fc:nth-child(5n+3) { animation-delay: 5.2s; } .page .fc:nth-child(5n+4) { animation-delay: 6.6s; } .page .fc:nth-child(5n) { animation-delay: 8s; }
.page .chip { position: absolute; display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border-radius: 12px; background: rgba(19, 17, 24, .86); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); white-space: nowrap; animation: rp-bob 6s ease-in-out infinite, rp-fade 1s ease-out backwards; }
.page .chip.c1 { animation-delay: 0s, 1.5s; } .page .chip.c2 { animation-delay: -1.5s, 1.75s; }
.page .chip.c3 { animation-delay: -3s, 2s; } .page .chip.c4 { animation-delay: -4.5s, 2.25s; }
.page .dot { animation: rp-pulse 2.4s ease-in-out infinite; }

/* marquee + pipeline */
.page .track { animation: rp-marquee 46s linear infinite; }
.page .pulse { animation: rp-travel 5s linear infinite; }
.page .nd { animation: rp-node 5s linear infinite; }
.page .nd.n2 { animation-delay: .83s; } .page .nd.n3 { animation-delay: 1.66s; } .page .nd.n4 { animation-delay: 2.5s; }
.page .nd.n5 { animation-delay: 3.33s; } .page .nd.n6 { animation-delay: 4.16s; }

/* product graphics */
.page .blip { animation: rp-blip 5s ease-out infinite; }
.page .tick { animation: rp-tick 6s ease-in-out infinite; }
.page .t2 { animation-delay: 2s; } .page .t3 { animation-delay: 4s; }
.page .dash-line { height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px); animation: rp-dash .7s linear infinite; }
.page .band { animation: rp-band 6s ease-in-out infinite; }
.page .scan { animation: rp-scan 2.8s ease-in-out infinite alternate; }
.page .flash { animation: rp-flash 12s ease-in-out infinite; }
.page .stepn { animation: rp-step 10s linear infinite; }
.page .s2 { animation-delay: 2s; } .page .s3 { animation-delay: 4s; } .page .s4 { animation-delay: 6s; } .page .s5 { animation-delay: 8s; }
.page .say { animation: rp-say 10s ease-out infinite; }
.page .say.y2 { animation-name: rp-say2; } .page .say.y3 { animation-name: rp-say3; } .page .say.y4 { animation-name: rp-say4; }
.page .caret { animation: rp-blink 1s steps(2) infinite; }
.page .ring { animation: rp-ring 5s ease-out infinite; }
.page .ring.r2 { animation-delay: 1.66s; } .page .ring.r3 { animation-delay: 3.33s; }

@keyframes rp-rise { from { transform: translateY(110%); } }
@keyframes rp-fade { from { opacity: 0; } }
@keyframes rp-draw { from { stroke-dashoffset: 81; } to { stroke-dashoffset: 0; } }
@keyframes rp-facet { 0%, 18%, 100% { opacity: 0; } 9% { opacity: .5; } }
@keyframes rp-spin { to { transform: rotate(360deg); } }
@keyframes rp-drift { from { transform: translate(-6%, -4%) scale(1); } to { transform: translate(8%, 6%) scale(1.15); } }
@keyframes rp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes rp-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(77, 214, 160, .6); } 60% { box-shadow: 0 0 0 7px rgba(77, 214, 160, 0); } }
@keyframes rp-marquee { to { transform: translateX(-50%); } }
@keyframes rp-travel { from { left: 0; opacity: 1; } 96% { opacity: 1; } to { left: 100%; opacity: 0; } }
@keyframes rp-node { 0%, 22%, 100% { background: #2A2631; box-shadow: 0 0 0 0 rgba(252, 199, 20, 0); } 4% { background: #FCC714; box-shadow: 0 0 0 8px rgba(252, 199, 20, .18); } }
@keyframes rp-blip { 0%, 100% { opacity: 0; transform: scale(.4); } 6% { opacity: 1; transform: scale(1.3); } 40% { opacity: .5; transform: scale(1); } 80% { opacity: 0; } }
@keyframes rp-tick { 0%, 30%, 100% { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); } 8%, 22% { background: rgba(233, 7, 138, .16); border-color: rgba(233, 7, 138, .6); } }
@keyframes rp-dash { to { background-position: 12px 0; } }
@keyframes rp-band { 0%, 30%, 100% { opacity: .45; transform: scale(1); } 8%, 22% { opacity: 1; transform: scale(1.06); } }
@keyframes rp-scan { from { top: 8%; } to { top: 90%; } }
@keyframes rp-flash { 0%, 100% { background: #24102A; } 33% { background: #0F2638; } 66% { background: #33260E; } }
@keyframes rp-step { 0%, 20%, 100% { background: #2A2631; color: #C9C3D1; } 2%, 18% { background: #FCC714; color: #14110A; } }
@keyframes rp-say { 0%, 8% { opacity: 0; transform: translateY(8px); } 14%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rp-say2 { 0%, 20% { opacity: 0; transform: translateY(8px); } 26%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rp-say3 { 0%, 32% { opacity: 0; transform: translateY(8px); } 38%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rp-say4 { 0%, 44% { opacity: 0; transform: translateY(8px); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rp-blink { 50% { opacity: 0; } }
@keyframes rp-ring { from { transform: scale(.25); opacity: .8; } to { transform: scale(1); opacity: 0; } }

/* sections scrolled out of view stop their infinite animations (class toggled by site.js) */
.page .is-paused, .page .is-paused *, .page .is-paused *::before { animation-play-state: paused !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .flowline { display: none; } }
@media (max-width: 860px) {
  /* section links collapse into a button-toggled menu once the script has run */
  .has-js .menu-btn { display: inline-flex; }
  .has-js .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .has-js .nav-open .site-nav { display: flex; }
  .has-js .site-nav .navlink { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .has-js .site-nav .site-nav__signin { display: block; }
  /* without script the links stay visible as a second row */
  .site-header__bar { flex-wrap: wrap; row-gap: 0; }
  .site-nav { order: 3; width: 100%; flex-wrap: wrap; gap: 4px 20px; padding-bottom: 8px; }
  .has-js .site-header__bar { flex-wrap: nowrap; }
  .has-js .site-nav { width: auto; padding-bottom: 16px; }
}
@media (max-width: 560px) {
  .has-js .header-actions .navlink { display: none; }
  .header-actions { gap: 12px; }
}

/* ---------- Reduced motion: nothing moves, everything is visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page *, .page *::before { animation: none !important; transition: none !important; }
  .rp-js .rv { opacity: 1; transform: none; }
}
