/* ==========================================================================
   Josefin — landing page
   Tokens mirror the Figma file (Josefin / Color variables + text styles).
   ========================================================================== */
:root {
  --navy-950: #040A26;
  --navy-900: #081238;
  --navy-800: #0F1D5E;
  --blue-600: #2C4FB8;
  --blue-500: #4468D8;
  --blue-300: #9DB3F5;
  --blue-100: #E3E9FF;
  --lilac-400: #A594F9;
  --pink-200: #F4D2F1;
  --ink-900: #0B0D14;
  --ink-600: #4A4F5C;
  --ink-400: #8A8F9C;
  --ink-300: #B6BAC4;
  --line-200: #E7E9EF;
  --surface-50: #F5F6F8;
  --white: #FFFFFF;
  --green-500: #1FA971;
  --red-500: #E5484D;
  --amber-500: #F2A93B;

  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1344px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-300); color: var(--navy-950); }

.i { width: 16px; height: 16px; flex: none; }
.muted { color: var(--ink-400); }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; }
.eyebrow--dark { color: rgba(255,255,255,.6); }

/* ---------- buttons ---------- */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--bh); padding: 0 20px; border-radius: 12px;
  font-size: 14px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, border-color .25s;
}
.btn::after { /* shine sweep */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .i { transition: transform .25s var(--ease-out); }
.btn:hover .i { transform: translateX(3px); }
.btn--primary {
  background: var(--blue-600); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.18), 0 6px 18px rgba(44,79,184,.35);
}
.btn--primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 0 0 1px rgba(255,255,255,.22), 0 10px 26px rgba(44,79,184,.45); }
.btn--glass {
  background: rgba(255,255,255,.1); color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(255,255,255,.24);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.btn--glass:hover { background: rgba(255,255,255,.16); }
.btn--light { background: var(--white); color: var(--ink-900); box-shadow: inset 0 0 0 1px var(--line-200), 0 2px 6px rgba(11,13,20,.06); }
.btn--sm { --bh: 38px; padding: 0 16px; border-radius: 10px; }
.btn--lg { --bh: 52px; padding: 0 24px; }
.btn--block { width: 100%; }
.linkish { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-400); font-size: 12px; }
.linkish .i { width: 12px; height: 12px; }
.linkish:hover { color: var(--ink-900); }

/* ---------- logo tiles ---------- */
.logo-tile {
  --s: 40px;
  width: var(--s); height: var(--s); flex: none;
  display: inline-grid; place-items: center;
  border-radius: calc(var(--s) * .28);
  background: var(--bg);
}
.logo-tile--light { box-shadow: inset 0 0 0 1px var(--line-200); }
.logo-tile svg { width: calc(var(--s) * var(--g)); height: calc(var(--s) * var(--g)); overflow: visible; }
.proof-logos { display: inline-flex; }
.proof-logos .logo-tile { border-radius: 999px; box-shadow: 0 0 0 2px var(--ring, var(--navy-900)); }
.proof-logos .logo-tile + .logo-tile { margin-left: -6px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  padding: 0 var(--gutter);
  transition: transform .5s var(--ease-out);
}
.nav__inner {
  max-width: 940px; margin: 0 auto; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 18px; border-radius: 16px;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
  color: var(--white);
  transition: background-color .4s, box-shadow .4s, color .4s;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.brand__mark { width: 28px; height: 28px; }
.nav__links { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.nav__links a { opacity: .78; transition: opacity .2s; position: relative; }
.nav__links a:hover, .nav__links a.is-current { opacity: 1; }
.nav__links a.is-current::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: currentColor; opacity: .5; }
.btn--nav { background: rgba(255,255,255,.1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.nav[data-theme="light"] .nav__inner {
  background: rgba(245,246,248,.82); color: var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(231,233,239,.9), 0 8px 30px rgba(11,13,20,.06);
}
.nav[data-theme="light"] .nav__links a { opacity: .72; }
.nav[data-theme="light"] .btn--nav { background: var(--blue-600); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 18px rgba(44,79,184,.3); }
.nav.is-hidden { transform: translateY(-120%); }

/* ==========================================================================
   CURTAIN (hero + beta backgrounds)
   ========================================================================== */
.curtain { position: absolute; inset: 0; overflow: hidden; background: var(--navy-950); z-index: 0; }
.curtain__pleats { position: absolute; inset: -40px -60px; display: flex; filter: blur(5px); }
.pleat { position: relative; height: 100%; background: var(--pg); }
.pleat::after {
  content: ''; position: absolute; inset: 0; background: var(--ph); opacity: 0;
  animation: pleat-glow var(--dur, 9s) var(--ease-in-out) infinite; animation-delay: var(--delay, 0s);
}
@keyframes pleat-glow { 0%, 100% { opacity: 0; } 45%, 55% { opacity: .85; } }
.curtain__light {
  position: absolute; inset: 0; mix-blend-mode: soft-light; pointer-events: none;
  background:
    radial-gradient(38% 60% at 50% 40%, rgba(190,210,255,.9), transparent 70%),
    radial-gradient(30% 50% at 50% 60%, rgba(165,148,249,.55), transparent 70%);
  background-size: 100% 100%, 100% 100%;
  animation: light-drift 16s var(--ease-in-out) infinite alternate;
}
@keyframes light-drift { from { transform: translateX(-28%); } to { transform: translateX(28%); } }
.curtain__fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 42% at 50% 30%, rgba(4,10,38,.62), transparent 100%),
    linear-gradient(180deg, rgba(4,10,38,.55) 0%, rgba(4,10,38,.05) 28%, rgba(4,10,38,.15) 55%, rgba(4,10,38,.92) 82%, var(--navy-950) 100%);
}
.curtain--alt .curtain__fade {
  background:
    radial-gradient(55% 50% at 50% 40%, rgba(4,10,38,.6), transparent 100%),
    linear-gradient(180deg, var(--navy-950) 0%, rgba(4,10,38,.35) 22%, rgba(4,10,38,.25) 60%, rgba(4,10,38,.95) 100%);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; color: var(--white); padding-top: 176px; overflow: hidden; background: var(--navy-950); }
.hero__copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 var(--gutter); }
.hero__title { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 500; }
.hero__title .line { display: block; }
.hero__title .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.13em; letter-spacing: -.01em; line-height: .98; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(10px); animation: word-in 1s var(--ease-out) forwards; }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-in { opacity: 0; transform: translateY(14px); animation: fade-up .9s var(--ease-out) forwards; animation-delay: calc(var(--d) * 90ms + 150ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* hero arrow field background */
.skyfield { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(180deg, #030822 0%, #061036 22%, #0C1F66 44%, #2D58C8 60%, #7FA8F5 70%, #CFE0FF 76%, #0B1A52 76.2%, #081238 88%, var(--navy-950) 100%); }
.skyfield__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.skyfield__glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 22% at 50% 76%, rgba(214,230,255,.55), transparent 70%),
    radial-gradient(50% 40% at 50% 20%, rgba(3,8,34,.55), transparent 80%);
  animation: horizon-breathe 7s var(--ease-in-out) infinite alternate; }
@keyframes horizon-breathe { from { opacity: .75; } to { opacity: 1; } }

/* flying J-arrow ship (hero background) */
.hero__sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ship { position: absolute; left: 0; top: 0; width: 56px; height: 56px; opacity: 0;
  animation: ship-x 13s linear infinite, ship-y 13s cubic-bezier(.3,.1,.5,1) infinite, ship-fade 13s linear infinite; animation-delay: 1.6s; }
.ship__body { position: absolute; inset: 0; transform: rotate(38deg); animation: ship-bob 1.4s ease-in-out infinite alternate; }
.ship__mark { position: relative; width: 100%; height: 100%; color: #fff; filter: drop-shadow(0 0 10px rgba(190,210,255,.9)) drop-shadow(0 0 26px rgba(165,148,249,.6)); }
.ship__trail { position: absolute; left: 50%; top: 80%; width: 14px; height: 190px; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, rgba(220,230,255,.95) 0%, rgba(157,179,245,.55) 18%, rgba(165,148,249,.18) 55%, transparent 100%); filter: blur(3px);
  animation: trail-flicker .18s steps(2) infinite; }
.ship__trail::before { content: ''; position: absolute; left: 50%; top: 0; width: 6px; height: 28px; transform: translateX(-50%); border-radius: 50%; background: #fff; filter: blur(2px); }
@keyframes ship-x { 0% { transform: translateX(-12vw); } 45%, 100% { transform: translateX(108vw); } }
@keyframes ship-y { 0% { top: 92%; } 45%, 100% { top: -12%; } }
@keyframes ship-fade { 0% { opacity: 0; } 4% { opacity: .95; } 40% { opacity: .95; } 45%, 100% { opacity: 0; } }
@keyframes ship-bob { from { translate: 0 -2px; } to { translate: 0 2px; } }
@keyframes trail-flicker { 50% { opacity: .82; } }

.preview-wrap { position: relative; z-index: 1; margin: 76px auto 0; max-width: 1200px; padding: 0 var(--gutter); height: 470px; overflow: hidden; perspective: 1600px; }
.preview {
  --k: 0; /* 0 → 1 as the page scrolls; set in main.js */
  transform-origin: 50% 0;
  transform: rotateX(calc(14deg * (1 - var(--k)))) scale(calc(.94 + .06 * var(--k))) translateY(calc(24px * (1 - var(--k))));
  opacity: 0; animation: preview-in 1.4s var(--ease-out) .7s forwards;
  will-change: transform;
}
@keyframes preview-in { to { opacity: 1; } }

.browser {
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28), 0 30px 80px rgba(2,6,38,.6);
  backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
}
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.browser__dots i:nth-child(2) { background: #FEBC2E; }
.browser__dots i:nth-child(3) { background: #28C840; }
.browser__url { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 12px; font-weight: 500; color: rgba(255,255,255,.8); }
.browser__url .i { width: 11px; height: 11px; }
.app { display: flex; background: var(--white); color: var(--ink-900); border-radius: 14px 14px 0 0; min-height: 660px; }
.app__side { width: 236px; flex: none; background: var(--surface-50); padding: 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.ws { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-200); font-size: 14px; font-weight: 500; }
.ws__av { width: 30px; height: 30px; border-radius: 8px; background: var(--ink-900); color: var(--white); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ws__txt { display: flex; flex-direction: column; line-height: 1.25; }
.ws__txt small, .app__label { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); font-weight: 500; }
.app__label { padding: 14px 8px 4px; }
.app__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-600); }
.app__item svg { width: 15px; height: 15px; color: var(--ink-400); }
.app__item.is-active { background: var(--white); color: var(--ink-900); box-shadow: 0 1px 3px rgba(11,13,20,.08); }
.app__item.is-active svg { color: var(--ink-900); }
.count { margin-left: auto; padding: 1px 6px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); font-size: 12px; }
.app__main { flex: 1; min-width: 0; padding: 22px 28px; display: flex; flex-direction: column; gap: 18px; }
.crumbs { font-size: 12px; font-weight: 500; color: var(--ink-400); }
.crumbs span { color: var(--ink-300); margin: 0 4px; }
.crumbs b { color: var(--ink-900); font-weight: 500; }
.app__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app__title h3 { font-size: 26px; letter-spacing: -.02em; }
.app__sources { margin-left: auto; display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.pill--green { background: rgba(31,169,113,.1); color: var(--green-500); }
.pill--muted { background: var(--surface-50); color: var(--ink-400); box-shadow: inset 0 0 0 1px var(--line-200); }
.pill--src { background: var(--surface-50); color: var(--ink-600); padding: 0 8px; }
.pill--src .logo-tile { box-shadow: none; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.pill--green .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31,169,113,.5); } 50% { box-shadow: 0 0 0 4px rgba(31,169,113,0); } }
.dot--green { background: var(--green-500); } .dot--blue { background: var(--blue-500); } .dot--amber { background: var(--amber-500); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-200); display: flex; flex-direction: column; gap: 8px; }
.kpi small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); font-weight: 500; }
.kpi strong { font-size: 30px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12px; font-weight: 500; color: var(--ink-400); }
.kpi b { font-weight: 500; } .up { color: var(--green-500); } .blue { color: var(--blue-600); }
.app__lower { display: grid; grid-template-columns: 1fr 318px; gap: 12px; }
.card { padding: 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-200); }
.chart__head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.chart__head b { font-weight: 500; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-600); font-weight: 500; }
.lg { width: 8px; height: 8px; border-radius: 2px; margin-left: 8px; }
.lg--a { background: var(--ink-300); } .lg--b { background: var(--blue-500); }
.chart__bars { margin-top: 14px; height: 150px; display: flex; align-items: flex-end; justify-content: space-between; }
.chart__bars .day { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.chart__bars .b { width: 12px; border-radius: 3px 3px 0 0; height: var(--h); transform-origin: bottom; transform: scaleY(0); transition: transform 1s var(--ease-out); transition-delay: var(--dl); }
.chart__bars .b--a { background: var(--ink-300); } .chart__bars .b--b { background: var(--blue-500); }
.chart__bars .b--off { background: var(--line-200); }
.is-in .chart__bars .b, .chart__bars.is-in .b { transform: scaleY(1); }
.activity b { font-size: 14px; font-weight: 500; }
.activity ul { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.activity li { display: flex; gap: 10px; font-size: 13px; line-height: 1.45; }
.activity li .dot { width: 8px; height: 8px; margin-top: 5px; }
.activity small { display: block; color: var(--ink-400); font-size: 12px; font-weight: 500; }

/* ==========================================================================
   SECTIONS (shared)
   ========================================================================== */
.section { position: relative; padding: 140px var(--gutter); overflow: hidden; }
.section + .section { border-top: 1px solid var(--line-200); }
.gridlines { position: absolute; inset: 0; pointer-events: none; display: flex; justify-content: center; }
.gridlines::before {
  content: ''; width: 1200px; max-width: 100%; height: 100%;
  background: linear-gradient(90deg, var(--line-200) 1px, transparent 1px) 0 0 / 100% 100% no-repeat,
              linear-gradient(90deg, transparent calc(30% - .5px), var(--line-200) calc(30% - .5px), var(--line-200) calc(30% + .5px), transparent calc(30% + .5px)),
              linear-gradient(90deg, transparent calc(70% - .5px), var(--line-200) calc(70% - .5px), var(--line-200) calc(70% + .5px), transparent calc(70% + .5px)),
              linear-gradient(270deg, var(--line-200) 1px, transparent 1px);
  opacity: .9;
}
.section__head { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; margin: 0 auto; }
.h2 { font-size: clamp(36px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.03em; }
.h2 em { font-size: 1.12em; line-height: .95; }
.h2--left { text-align: left; }
.h3xl { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.025em; }

/* reveal on scroll */
[data-reveal] { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), filter .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   LIVE DEMO
   ========================================================================== */
.demo { padding-bottom: 120px; }
.steps { position: relative; max-width: 1040px; margin: 56px auto 0; display: flex; align-items: center; gap: 14px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-600); white-space: nowrap; }
.steps li:not(:last-child)::after { content: ''; flex: 1; height: 2px; border-radius: 2px; margin-left: 4px; background: linear-gradient(90deg, var(--blue-500) var(--fill, 0%), var(--line-200) var(--fill, 0%)); transition: --fill .6s; }
.steps li:not(:last-child) { flex: 1; }
.steps__n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-family: var(--font-mono); font-size: 11px; font-weight: 500; transition: background-color .3s, color .3s, box-shadow .3s; }
.steps li.is-done::after { --fill: 100%; }
.steps li.is-done .steps__n { background: var(--blue-600); color: var(--white); }
.steps li.is-active { color: var(--ink-900); }
.steps li.is-active .steps__n { background: var(--blue-600); color: var(--white); box-shadow: 0 0 0 5px rgba(44,79,184,.2); animation: ring 1.4s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 8px rgba(44,79,184,.08); } }
@property --fill { syntax: '<percentage>'; inherits: false; initial-value: 0%; }

.console {
  position: relative; max-width: 1200px; margin: 48px auto 0; padding: 28px; border-radius: 28px;
  color: var(--white);
  background: radial-gradient(70% 60% at 50% 110%, rgba(63,99,214,.45), transparent 70%), var(--navy-950);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 80px -20px rgba(5,13,51,.35);
}
.console__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.console__sim { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.4); }
.input-row { margin-top: 10px; display: flex; gap: 10px; }
.field {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(157,179,245,.4);
  transition: box-shadow .25s;
}
.field:focus-within { box-shadow: inset 0 0 0 1px rgba(157,179,245,.8), 0 0 0 4px rgba(68,104,216,.28); }
.field__icon { width: 18px; height: 18px; color: var(--blue-300); }
.field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--white); font-family: var(--font-mono); font-size: 14px; text-overflow: ellipsis; }
.field input::placeholder { color: rgba(255,255,255,.35); }
.input-row .btn { --bh: 52px; }
.btn.is-running .i { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.console__grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 520fr) minmax(0, 604fr); gap: 20px; }
.panel { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); min-width: 0; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55); }
.status i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.status.is-busy i { background: var(--blue-300); animation: blink 1s infinite; }
.status.is-done i { background: var(--green-500); }
@keyframes blink { 50% { opacity: .25; } }

.terminal { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 330px; padding: 16px; border-radius: 12px; background: rgba(4,10,38,.88); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
.terminal__lines { display: flex; flex-direction: column; gap: 6px; }
.tl { display: flex; gap: 10px; color: rgba(255,255,255,.88); animation: tl-in .3s var(--ease-out); }
.tl__sym { color: var(--blue-300); flex: none; }
.tl__txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.tl__meta { color: rgba(255,255,255,.32); flex: none; }
.tl--warn, .tl--warn .tl__sym { color: var(--amber-500); }
.tl--ok, .tl--ok .tl__sym { color: var(--green-500); }
.tl--idle { color: rgba(255,255,255,.45); }
@keyframes tl-in { from { opacity: 0; transform: translateX(-6px); } }
.caret { display: inline-block; width: 8px; height: 15px; background: rgba(157,179,245,.72); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.terminal__plabel { display: flex; justify-content: space-between; color: rgba(255,255,255,.56); margin-bottom: 8px; }
.terminal__plabel b { font-weight: 400; color: var(--green-500); }
.bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--w, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--blue-500), var(--green-500)); transition: width .6s var(--ease-out); }

.hyps { display: flex; flex-direction: column; gap: 12px; }
.hyp { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 10px; animation: hyp-in .6s var(--ease-out) both; transition: background-color .4s, box-shadow .4s; }
@keyframes hyp-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.hyp--skeleton { height: 118px; animation: none; background: linear-gradient(100deg, rgba(255,255,255,.03) 30%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 70%) 0 0 / 200% 100%; animation: shimmer 1.8s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hyp.is-selected { background: rgba(68,104,216,.16); box-shadow: inset 0 0 0 1px rgba(157,179,245,.56), 0 0 30px rgba(68,104,216,.25); }
.hyp__top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,.55); }
.hyp__tag { padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.is-selected .hyp__tag { background: rgba(157,179,245,.25); }
.hyp__txt { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); }
.hyp__foot { display: flex; gap: 8px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.5); }
.hyp__foot b { font-weight: 500; color: var(--blue-300); }
.is-selected .hyp__foot b { color: var(--green-500); }

/* flowchart (fixed 588×250 artboard scaled to the panel) */
.flow-wrap { position: relative; height: calc(250px * var(--fs, 1)); margin-block: auto; }
.flow { position: absolute; left: 0; top: 0; width: 588px; height: 250px; transform: scale(var(--fs, 1)); transform-origin: 0 0; }
.flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fp { fill: none; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease-out), stroke .4s, opacity .4s; }
.fp--src { stroke: rgba(157,179,245,.7); }
.fp--a { stroke: rgba(255,255,255,.45); transition-delay: .25s; }
.fp--b { stroke: url(#gb); stroke-width: 3; transition-delay: .25s; }
.flow.is-live .fp { stroke-dashoffset: 0; }
.flow.is-realloc .fp--a { stroke: rgba(255,255,255,.2); stroke-dasharray: .015 .02; stroke-dashoffset: 0; }
.dots circle { fill: var(--blue-300); }
.dots--a circle { fill: rgba(255,255,255,.7); }
.dots { opacity: 0; transition: opacity .4s; }
.flow.is-live .dots--a, .flow.is-live .dots--b { opacity: 1; }
.flow.is-realloc .dots--a { opacity: 0; }
.flow.is-realloc .dots--b2 { opacity: 1; }
.fnode--src { position: absolute; left: 0; top: 125px; transform: translateY(-50%); width: 160px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.fnode--src .eyebrow::before { display: none; }
.fnode__name { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.fnode__name b { font-weight: 500; }
.fnode__name .logo-tile { border-radius: 5px; }
.fsplit { position: absolute; left: 202px; top: 107px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-600); box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 0 18px rgba(68,104,216,.6); }
.flow.is-live .fsplit { animation: split-pulse 1.8s ease-in-out infinite; }
@keyframes split-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 0 30px rgba(68,104,216,.9); } }
.fbranch { position: absolute; left: 252px; padding: 2px 6px; border-radius: 6px; background: var(--navy-900); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,.72); transition: all .4s; }
.fbranch--a { top: 78px; } .fbranch--b { top: 158px; }
.fvar { position: absolute; left: 300px; width: 288px; transform: translateY(-50%); padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 6px; transition: background-color .5s, box-shadow .5s, opacity .5s; }
.fvar--a { top: 58px; } .fvar--b { top: 192px; }
.fvar__top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.75); }
.fvar p { font-size: 13px; color: rgba(255,255,255,.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fvar__metric { display: flex; align-items: baseline; gap: 8px; }
.fvar__metric b { font-size: 20px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fvar__metric .muted { font-size: 12px; color: rgba(255,255,255,.4); }
.state { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); transition: all .4s; }
.lift-chip { font-size: 12px; font-weight: 500; color: var(--green-500); }
.flow.is-realloc .fvar--a { opacity: .55; }
.flow.is-realloc .fvar--b { background: rgba(68,104,216,.16); box-shadow: inset 0 0 0 1px rgba(157,179,245,.56), 0 0 24px rgba(68,104,216,.35); }
.flow.is-realloc #state-b { background: rgba(31,169,113,.16); color: var(--green-500); }
.flow.is-realloc .fbranch--a { opacity: .35; }

/* act panel */
.timeline { padding: 16px; border-radius: 12px; background: rgba(4,10,38,.88); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 12px; }
.timeline__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.lift { font-size: 30px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.timeline .muted { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; }
.timeline .mono { font-size: 12px; text-align: right; }
.scrub { position: relative; height: 18px; }
.scrub__track { position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.scrub__fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--blue-500), var(--blue-300)); }
.scrub__mark { position: absolute; top: 2px; left: calc(var(--p) * 100%); width: 2px; height: 14px; background: rgba(157,179,245,.5); border-radius: 2px; }
.scrub__handle { position: absolute; top: 0; left: calc(var(--p, 0) * 100% - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 5px rgba(68,104,216,.5); }
.ticks { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; color: rgba(255,255,255,.32); }
.ticks__act { color: var(--blue-300); }
.budget { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.budget__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.7); }
.budget__row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.budget__row .bar { grid-column: 1 / -1; height: 6px; }
.budget__row .bar i { transition: width 1s var(--ease-out); }
.bar--dim i { background: rgba(255,255,255,.35); }
.toast {
  display: flex; gap: 12px; padding: 14px 16px 14px 14px; border-radius: 16px; background: var(--white); color: var(--ink-900);
  box-shadow: 0 16px 40px rgba(2,6,38,.5);
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.toast.is-shown { opacity: 1; transform: none; }
.toast__mark { width: 32px; height: 32px; flex: none; }
.toast__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.toast__top b { font-weight: 500; }
.toast__top small { color: var(--ink-400); font-size: 12px; }
.toast p { margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-600); }
.toast__links { margin-top: 8px; display: flex; gap: 14px; font-size: 12px; font-weight: 500; color: var(--blue-600); }

.takeaway { position: relative; margin-top: 72px; display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.statement { max-width: 760px; font-size: clamp(26px, 3vw, 34px); line-height: 1.28; letter-spacing: -.02em; font-weight: 500; color: var(--ink-400); }
.statement span { color: var(--ink-900); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--surface-50); box-shadow: inset 0 0 0 1px var(--line-200); font-size: 14px; font-weight: 500; }
.chips .i { width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--blue-600); color: var(--white); }

/* ==========================================================================
   PROBLEM
   ========================================================================== */
.problem { padding: 120px var(--gutter) 150px; }
.problem__circles { position: absolute; left: 0; right: 0; top: 160px; height: 300px; display: flex; justify-content: center; gap: 0; pointer-events: none; border-block: 1px solid var(--line-200); }
.problem__circles i { width: 300px; height: 300px; flex: none; border-radius: 50%; border: 1px solid var(--line-200); margin: 0 -60px; animation: breathe 12s var(--ease-in-out) infinite; animation-delay: calc(var(--n, 0) * -2s); }
.problem__circles i:nth-child(2) { --n: 1; margin-right: 200px; } .problem__circles i:nth-child(3) { --n: 2; } .problem__circles i:nth-child(4) { --n: 3; margin-left: 100px; } .problem__circles i:nth-child(5) { --n: 4; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.problem__grid { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; }
.problem__grid > .eyebrow { align-self: start; margin-top: 12px; }
.problem__copy { display: flex; flex-direction: column; gap: 36px; max-width: 820px; }
.signals { position: relative; max-width: 1200px; margin: 72px auto 0; }
.signals__row { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.signal { flex: 1; min-height: 176px; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-200), 0 8px 24px rgba(13,20,51,.05); display: flex; flex-direction: column; gap: 16px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.signal:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-200), 0 16px 34px rgba(13,20,51,.08); }
.signal header { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.signal header .logo-tile { border-radius: 10px; }
.signal p { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; font-weight: 500; }
.ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-50); }
.ic svg { width: 20px; height: 20px; }
.ic--green { color: var(--green-500); }
.ic--red { color: var(--red-500); background: rgba(229,72,77,.08); }
.signal--you { flex: 1.45; background: rgba(229,72,77,.035); box-shadow: none; position: relative; }
.signal--you::before { /* marching dashed border */
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: repeating-linear-gradient(90deg, rgba(229,72,77,.45) 0 6px, transparent 6px 11px);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: march 1.2s linear infinite; background-size: 200% 100%;
}
@keyframes march { to { background-position: -11px 0; } }
.signal--you header { color: var(--red-500); }
.signal--you p { font-size: 15px; line-height: 1.5; font-weight: 400; color: var(--ink-600); }
.op { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-200); font-size: 14px; font-weight: 500; color: var(--ink-400); }

/* ==========================================================================
   SOLUTION — loop + features
   ========================================================================== */
.solution { padding: 96px var(--gutter) 88px; }
.loop { --R: 210px; position: relative; width: min(1200px, 100%); height: 500px; margin: 16px auto 0; }
.loop__disk { position: absolute; left: 50%; top: 50%; width: calc(var(--R) * 2); height: calc(var(--R) * 2); translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(227,233,255,.95), rgba(227,233,255,.25) 70%, transparent); }
.loop__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--R) * 2 + 40px); height: calc(var(--R) * 2 + 40px); translate: -50% -50%; overflow: visible; }
.loop__orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; animation: orbit 10s linear infinite; }
.loop__dot { position: absolute; left: -7px; top: calc(var(--R) * -1 - 7px); width: 14px; height: 14px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 5px rgba(68,104,216,.18), 0 0 18px rgba(68,104,216,.8); }
@keyframes orbit { to { transform: rotate(360deg); } }
.loop__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.loop__mark { width: 96px; height: 96px; filter: drop-shadow(0 18px 30px rgba(44,79,184,.35)); animation: float 6s var(--ease-in-out) infinite; margin-bottom: 6px; }
.loop__center b { font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
@keyframes float { 50% { transform: translateY(-6px); } }
.stage {
  position: absolute; left: 50%; top: 50%;
  translate: calc(cos(var(--a)) * var(--R) - 50%) calc(sin(var(--a)) * var(--R) - 50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line-200), 0 8px 24px rgba(26,38,102,.08);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  animation: stage-on 10s linear infinite; animation-delay: calc(var(--i) * 2s - .3s);
}
.stage i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue-600); font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.stage { cursor: help; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-900); border: 0; }
.stage:hover, .stage:focus-visible { z-index: 5; }
.stage:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }
.stage__tip {
  position: absolute; left: 50%; top: calc(100% + 10px); width: 230px; padding: 12px 14px; border-radius: 12px;
  background: var(--navy-900); color: rgba(255,255,255,.88); box-shadow: 0 14px 34px rgba(8,18,56,.28);
  font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal;
  opacity: 0; visibility: hidden; pointer-events: none; translate: -50% 6px; transition: opacity .2s var(--ease-out), translate .2s var(--ease-out), visibility .2s;
}
.stage__tip::before { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.stage[data-tip="above"] .stage__tip { top: auto; bottom: calc(100% + 10px); translate: -50% -6px; }
.stage[data-tip="above"] .stage__tip::before { top: auto; bottom: -5px; }
.stage[data-align="left"] .stage__tip { left: 0; translate: 0 6px; }
.stage[data-align="left"] .stage__tip::before { left: 26px; }
.stage[data-align="right"] .stage__tip { left: auto; right: 0; translate: 0 6px; }
.stage[data-align="right"] .stage__tip::before { left: auto; right: 16px; transform: rotate(45deg); }
.stage:hover .stage__tip, .stage:focus-visible .stage__tip, .stage.is-open .stage__tip { opacity: 1; visibility: visible; translate: -50% 0; }
.stage[data-align="left"]:is(:hover, :focus-visible, .is-open) .stage__tip, .stage[data-align="right"]:is(:hover, :focus-visible, .is-open) .stage__tip { translate: 0 0; }
@keyframes stage-on {
  0%, 16% { box-shadow: inset 0 0 0 1px rgba(68,104,216,.6), 0 10px 30px rgba(44,79,184,.25); transform: scale(1.06); }
  24%, 100% { box-shadow: inset 0 0 0 1px var(--line-200), 0 8px 24px rgba(26,38,102,.08); transform: none; }
}

.features { max-width: var(--maxw); margin: 16px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature h3 { margin-top: 18px; font-size: 22px; letter-spacing: -.01em; padding: 0 4px; }
.feature__visual { position: relative; height: 440px; border-radius: 20px; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s; }
.feature:hover .feature__visual { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(26,38,102,.18); }
.feature__visual::before, .feature__visual::after { /* drifting light rays */
  content: ''; position: absolute; top: -40%; width: 45%; height: 180%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: rotate(-32deg); animation: rays 9s var(--ease-in-out) infinite alternate;
}
.feature__visual::before { left: -10%; }
.feature__visual::after { left: 55%; width: 30%; animation-duration: 12s; opacity: .7; }
@keyframes rays { to { translate: 30% 0; } }
.fv1 { background: linear-gradient(135deg, #3350D0 0%, #7E8FF2 55%, #D9B8F2 100%); }
.fv2 { background: linear-gradient(135deg, #0B1650 0%, #2C4FB8 50%, #8FB0F5 100%); }
.fv3 { background: linear-gradient(135deg, #5C6FEA 0%, #A594F9 55%, #F4D2F1 100%); }
.fv4 { background: linear-gradient(135deg, #1B2F85 0%, #4468D8 50%, #C6B7F7 100%); }
.fv__content { position: absolute; left: 50%; top: 44px; translate: -50% 0; width: calc(100% - 48px); max-width: 280px; display: flex; flex-direction: column; gap: 10px; color: var(--white); }
.fv__label { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.irow, .glass { background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.irow { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 16px; }
.irow .logo-tile { box-shadow: none; }
.irow__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; font-weight: 500; line-height: 1.3; }
.irow__txt small { font-size: 12px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--blue-600); color: var(--white); position: relative; }
.live::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: #7CF0B5; vertical-align: 1px; animation: blink 1.4s infinite; }
.irow--more { gap: 10px; padding: 8px 12px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.85); }
.irow--more .proof-logos { --ring: rgba(255,255,255,.4); }
.is-in .irow { animation: row-in .7s var(--ease-out) both; animation-delay: calc(var(--d) * 110ms + 250ms); }
@keyframes row-in { from { opacity: 0; transform: translateY(12px); } }
.glass { padding: 16px; border-radius: 18px; display: flex; flex-direction: column; gap: 12px; }
.glass--sub { padding: 12px; border-radius: 12px; gap: 4px; font-size: 14px; font-weight: 500; }
.glass--sub small { font-size: 12px; color: rgba(255,255,255,.72); font-weight: 500; }
.glass__head { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.glass__head > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.glass__head small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.glass__ic { width: 30px; height: 30px; border-radius: 8px; background: var(--white); display: grid; place-items: center; color: var(--blue-600); }
.glass__ic svg { width: 16px; height: 16px; }
.glass__big { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
.gchip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--green-500); font-size: 12px; font-weight: 500; }
.gchip .i { width: 12px; height: 12px; }
.gchip--dark { background: rgba(15,29,94,.56); }
.is-in .fv2 .gchip { animation: pop .6s var(--ease-out) 1s both; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } 60% { transform: scale(1.06); } }
.glass__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.glass__row b { font-weight: 500; }
.glass__row small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 5px; margin: -5px; width: calc(100% + 10px); font-size: 12px; }
.matrix th { font-weight: 500; color: rgba(255,255,255,.72); text-align: left; padding: 2px 4px; white-space: nowrap; }
.matrix thead th:not(:first-child) { text-align: center; }
.matrix td { text-align: center; padding: 8px 4px; border-radius: 8px; background: rgba(255,255,255,.12); font-size: 14px; font-weight: 500; }
.matrix td.best { background: var(--white); color: var(--blue-600); }
.is-in .matrix td.best { animation: best 2.6s var(--ease-in-out) 1s infinite; }
@keyframes best { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 50% { box-shadow: 0 0 0 5px rgba(255,255,255,0); } }
.alloc { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 500; }
.alloc__row { display: flex; justify-content: space-between; color: rgba(255,255,255,.75); }
.alloc__bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.16); overflow: hidden; }
.alloc__bar i { display: block; height: 100%; width: 50%; border-radius: inherit; transition: width 1.4s var(--ease-in-out) .9s; }
.alloc__bar--a i { background: rgba(255,255,255,.4); }
.alloc__bar--b i { background: var(--white); }
.is-in .alloc__bar--a i { width: 3%; }
.is-in .alloc__bar--b i { width: 100%; }

/* ==========================================================================
   INTEGRATIONS
   ========================================================================== */
.integrations { padding-top: 110px; padding-bottom: 110px; }
.int__stage { position: relative; max-width: 1200px; margin: 0 auto; display: flex; justify-content: center; }
.orbit { --size: min(640px, 92vw); --R: calc(var(--size) * .42); --tile: calc(var(--size) * .122); position: relative; width: var(--size); height: var(--size); }
.orbit__rings i { position: absolute; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; border: 1px dashed var(--line-200); }
.orbit__rings i:first-child { width: calc(var(--R) * 2); height: calc(var(--R) * 2); border-style: solid; }
.orbit__rings i:last-child { width: calc(var(--R) * 1.3); height: calc(var(--R) * 1.3); }
.orbit__spin { position: absolute; inset: 0; animation: orbit 90s linear infinite; }
.orbit:hover .orbit__spin, .orbit:hover .otile__in { animation-play-state: paused; }
.otile {
  position: absolute; left: 50%; top: 50%; width: var(--tile); height: var(--tile);
  translate: calc(cos(var(--a)) * var(--R) - 50%) calc(sin(var(--a)) * var(--R) - 50%);
}
.otile__in { width: 100%; height: 100%; animation: orbit 90s linear infinite reverse; }
.otile__tilt { width: 100%; height: 100%; transform: rotate(var(--tilt)); animation: bob 5s var(--ease-in-out) infinite; animation-delay: var(--bd); transition: opacity .5s, filter .5s, scale .5s var(--ease-out); }
@keyframes bob { 50% { translate: 0 -6px; } }
.otile .logo-tile { width: 100%; height: 100%; border-radius: 26%; box-shadow: 0 14px 30px rgba(26,38,102,.14); transition: transform .35s var(--ease-out); }
.otile .logo-tile--light { box-shadow: inset 0 0 0 1px var(--line-200), 0 14px 30px rgba(26,38,102,.12); }
.otile .logo-tile svg { width: calc(var(--tile) * var(--g)); height: calc(var(--tile) * var(--g)); }
.otile:hover .logo-tile { transform: scale(1.12) rotate(calc(var(--tilt) * -1)); }
.otile__name { position: absolute; left: 50%; top: calc(100% + 8px); translate: -50% 0; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--ink-600); opacity: 0; transition: opacity .25s; pointer-events: none; }
.otile:hover .otile__name { opacity: 1; }
.orbit:not([data-filter="all"]) .otile:not(.is-match) .otile__tilt { opacity: .18; filter: grayscale(1); scale: .85; }
.orbit__center { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.orbit__center svg { width: calc(var(--size) * .17); height: calc(var(--size) * .17); filter: drop-shadow(0 18px 30px rgba(44,79,184,.35)); margin-bottom: 8px; animation: float 6s var(--ease-in-out) infinite; }
.orbit__center b { font-size: 18px; font-weight: 500; }
.orbit__center .eyebrow::before { display: none; }
.int__tabs { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.int__tabs button { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--ink-400); transition: all .25s; }
.int__tabs button:hover { color: var(--ink-900); }
.int__tabs button[aria-selected="true"] { color: var(--ink-900); background: var(--white); box-shadow: inset 0 0 0 1px var(--line-200), 0 4px 12px rgba(11,13,20,.06); }
.int__foot { position: relative; max-width: 1200px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.int__foot .h2 { margin-top: 18px; font-size: clamp(38px, 4.6vw, 58px); }
.int__side { max-width: 420px; display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ink-600); }
.int__note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-400); }
.int__note .i { width: 14px; height: 14px; margin-top: 2px; }
.int__list { display: flex; flex-wrap: wrap; gap: 6px; }
.int__list li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--surface-50); box-shadow: inset 0 0 0 1px var(--line-200); font-size: 12px; font-weight: 500; color: var(--ink-600); }
.int__list .logo-tile { border-radius: 999px; }

/* ==========================================================================
   BETA CTA
   ========================================================================== */
/* animated particle waves (beta background) */
.wavefield { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: linear-gradient(180deg, #01030C 0%, #020616 45%, #06103A 100%); }
.wavefield__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wavefield__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--navy-950) 0%, rgba(2,5,20,0) 16%, rgba(2,5,20,0) 85%, rgba(4,10,38,.6) 100%); }

.beta { position: relative; color: var(--white); background: var(--navy-950); overflow: hidden; padding: 150px var(--gutter); }
.beta__inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.beta__title { font-size: clamp(44px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -.035em; }
.beta__title em { font-size: 1.12em; line-height: .98; }
.need { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 780px; text-align: left; }
.need__card { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); display: flex; flex-direction: column; gap: 6px; }
.need__card i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(157,179,245,.24); font-style: normal; font-family: var(--font-mono); font-size: 11px; margin-bottom: 8px; }
.need__card b { font-size: 14px; font-weight: 500; }
.need__card span { font-size: 13px; color: rgba(255,255,255,.56); }
.beta__actions { margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-950); color: var(--white); padding: 64px var(--gutter) 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__top, .footer__bottom { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 40px; }
.footer__brand p { margin-top: 16px; max-width: 400px; font-size: 15px; color: rgba(255,255,255,.56); }
.footer__cols { display: flex; gap: 72px; }
.footer__cols div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 500; }
.footer__cols a, .footer__cols button { color: rgba(255,255,255,.88); transition: color .2s; }
.footer__cols a:hover, .footer__cols button:hover { color: var(--blue-300); }
.footer__bottom { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; font-weight: 500; color: rgba(255,255,255,.32); }

/* ==========================================================================
   APPLY DIALOG
   ========================================================================== */
.apply { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 32px; border: 0; border-radius: 24px; background: var(--white); color: var(--ink-900); box-shadow: 0 40px 100px rgba(4,10,38,.4); overflow: auto; }
.apply::backdrop { background: rgba(4,10,38,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.apply[open] { animation: dlg-in .45s var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.apply__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-400); }
.apply__close:hover { background: var(--surface-50); color: var(--ink-900); }
.apply__close svg { width: 18px; height: 18px; }
.apply__step { display: none; flex-direction: column; gap: 14px; }
.apply__step.is-active { display: flex; animation: fade-up .5s var(--ease-out); }
.apply h3 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.apply__lead { font-size: 15px; color: var(--ink-600); }
.apply form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.fld { display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fld > span, .fld legend { font-size: 13px; font-weight: 500; color: var(--ink-600); padding: 0; margin-bottom: 0; }
.fld legend { margin-bottom: 8px; }
.fld input[type="email"], .fld input[type="text"], .fld select {
  height: 44px; padding: 0 14px; border-radius: 10px; border: 0; outline: 0; background: var(--surface-50);
  box-shadow: inset 0 0 0 1px var(--line-200); font: inherit; font-size: 15px; color: var(--ink-900); transition: box-shadow .2s;
}
.fld input:focus, .fld select:focus { box-shadow: inset 0 0 0 1px var(--blue-500), 0 0 0 4px rgba(68,104,216,.15); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label > span { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 9px; background: var(--surface-50); box-shadow: inset 0 0 0 1px var(--line-200); font-size: 13px; font-weight: 500; color: var(--ink-600); transition: all .2s; }
.seg label > span .logo-tile { border-radius: 5px; box-shadow: none; }
.seg input:checked + span { background: var(--blue-100); color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-500); }
.seg input:focus-visible + span { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.apply__err { min-height: 0; font-size: 13px; color: var(--red-500); }
.apply__err:empty { display: none; }
.apply__badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(31,169,113,.12); color: var(--green-500); }
.apply__badge svg { width: 28px; height: 28px; }
.apply__badge--wait { background: var(--blue-100); color: var(--blue-600); }
.apply__badge--wait svg { width: 22px; height: 22px; }
.apply__fine { font-size: 13px; color: var(--ink-400); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .int__tabs { position: static; translate: none; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
  .int__stage { flex-direction: column; align-items: center; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .console__grid { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .app__lower { grid-template-columns: 1fr; }
  .activity { display: none; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .app__sources { display: none; }
  .problem__grid { grid-template-columns: 1fr; gap: 20px; }
  .signals__row { flex-wrap: wrap; }
  .signal { flex: 1 1 calc(50% - 30px); }
  .signal--you { flex-basis: 100%; }
  .op { display: none; }
  .int__foot { flex-direction: column; align-items: flex-start; }
  .need { grid-template-columns: 1fr; max-width: 420px; }
  .steps li { font-size: 0; gap: 0; }
  .steps li.is-active { font-size: 13px; gap: 8px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 132px; }
  .ship { width: 38px; height: 38px; }
  .ship__trail { height: 130px; width: 10px; }
  .preview-wrap { height: 300px; margin-top: 56px; }
  .preview { width: 900px; zoom: .38; margin-inline: auto; }
  .section { padding-top: 96px; padding-bottom: 96px; }
  .console { padding: 16px; border-radius: 20px; }
  .input-row { flex-direction: column; }
  .console__sim { display: none; }
  .panel { padding: 14px; }
  .terminal { min-height: 280px; font-size: 11.5px; }
  .loop { --R: 132px; height: 340px; margin-top: 8px; }
  .solution { padding-top: 72px; padding-bottom: 64px; }
  .loop__mark { width: 64px; height: 64px; }
  .stage { padding: 6px 12px 6px 6px; font-size: 12px; gap: 6px; }
  .stage i { width: 22px; height: 22px; font-size: 10px; }
  .stage__tip { width: 200px; font-size: 12.5px; }
  .features { grid-template-columns: 1fr; }
  .feature__visual { height: 420px; }
  .signal { flex-basis: 100%; }
  .gridlines { display: none; }
  .problem__circles { display: none; }
  .footer__top, .footer__bottom { flex-direction: column; gap: 32px; }
  .footer__bottom { gap: 8px; }
  .footer__cols { gap: 48px; }
  .timeline__top { flex-direction: column; align-items: flex-start; }
  .timeline .mono { text-align: left; }
  .ticks span:nth-child(2), .ticks span:nth-child(3) { display: none; }
  .apply { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title .w, .hero-in, .preview { opacity: 1; transform: none; filter: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .hero__sky { display: none; }
  .stage__tip { transition: none; }
}
