/* =========================================================
   TerrAItory: design system
   Palette sampled from the logo: deep navy ground, periwinkle
   brand blue, white wordmark, slate-lavender tagline.
   Accents: teal (AI / detection), amber (dimensions / site).
   ========================================================= */
:root {
  --bg: #0E1626;
  --bg-2: #111B2E;
  --surface: #152039;
  --surface-2: #1B2847;
  --line: rgba(143, 166, 255, .14);
  --line-2: rgba(143, 166, 255, .26);
  --text: #F4F6FB;
  --muted: #B9C1D6;
  --dim: #7F8AA6;
  --brand: #5C7CFA;
  --brand-2: #8FA6FF;
  --brand-3: #3F5FE0;
  --teal: #34D3C5;
  --amber: #F5B841;
  --red: #FF6B6B;
  --grad: linear-gradient(100deg, #8FA6FF 0%, #5C7CFA 45%, #34D3C5 100%);
  --f-display: 'Outfit', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .6), 0 0 0 1px var(--line);
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body.menu-open, body.dialog-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand-2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; color: #fff; }
h1 { font-size: clamp(2.3rem, 5vw, 4.25rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.85rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--f-mono); font-size: .9em; color: var(--amber); }
::selection { background: rgba(92, 124, 250, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.linklike:hover { color: #fff; }

/* Blueprint grid background */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(92, 124, 250, .20), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(52, 211, 197, .07), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(rgba(143, 166, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(143, 166, 255, .05) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  -webkit-mask-image: linear-gradient(#000, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(#000, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .35));
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-2);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.hero-eyebrow::before { display: none; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 640px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(52, 211, 197, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 197, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 197, 0); } }

/* ---------- Buttons ---------- */
.btn {
  --bh: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--bh); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--f-display); letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s, border-color .25s, color .2s;
  overflow: hidden; isolation: isolate;
}
.btn-sm { --bh: 40px; padding: 0 18px; font-size: .9rem; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, #6E8BFF, var(--brand) 50%, var(--brand-3)); color: #fff; box-shadow: 0 10px 30px -10px rgba(92, 124, 250, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 40px -10px rgba(92, 124, 250, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(143, 166, 255, .06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(143, 166, 255, .14); border-color: rgba(143, 166, 255, .5); color: #fff; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:disabled { opacity: .7; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(14, 22, 38, .72); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { color: #fff; }
.wordmark { font: 700 1.55rem/1 var(--f-display); letter-spacing: -.02em; }
.wordmark .ai { transition: color .3s, text-shadow .3s; }
.brand:hover .wordmark .ai { color: var(--brand-2); text-shadow: 0 0 18px rgba(92, 124, 250, .9); }
/* Logo mark + "fingerprint scan" light masked to the mark's own shape */
.logo-mark { position: relative; display: inline-block; flex: 0 0 var(--s); width: var(--s); height: var(--s); }
.logo-mark img { width: 100%; height: 100%; }
.logo-mark::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(180deg, transparent 0 38%, rgba(214, 226, 255, .95) 50%, transparent 62% 100%) 0 -100% / 100% 300% no-repeat;
  -webkit-mask: url(/img/terraitory-mark-192.webp) center / contain no-repeat; mask: url(/img/terraitory-mark-192.webp) center / contain no-repeat;
}
.logo-mark.is-animated::after { animation: mark-scan 1.6s var(--ease) .3s both; }
.brand:hover .logo-mark::after { animation: mark-scan 1.1s var(--ease) both; }
.success-mark::after { animation: mark-scan 2.2s ease-in-out infinite !important; }
.success-mark { filter: drop-shadow(0 0 30px rgba(92, 124, 250, .55)); animation: mark-pop .9s var(--ease) both; }
@keyframes mark-scan { 0% { opacity: 1; background-position: 0 100%; } 85% { opacity: 1; } 100% { opacity: 0; background-position: 0 -100%; } }
@keyframes mark-pop { from { transform: scale(.6) rotate(-12deg); opacity: 0; } }

.main-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; color: var(--muted); font: 500 .95rem/1 var(--f-display); }
.nav-link:hover, .nav-link[aria-current] { color: #fff; background: rgba(143, 166, 255, .08); }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .3s; }
.has-mega { position: relative; }
.has-mega:hover .chev, .has-mega:focus-within .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; width: min(760px, 90vw);
  transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.mega::before { content: ''; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 14px; border-radius: 20px; background: rgba(21, 32, 57, .96); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-title { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 8px 12px 8px; }
.mega-link { display: flex; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.mega-link:hover { background: rgba(92, 124, 250, .12); color: #fff; }
.mega-link .ico { flex: 0 0 22px; width: 22px; height: 22px; color: var(--brand-2); margin-top: 2px; }
.mega-link strong { display: block; font: 600 .95rem/1.3 var(--f-display); }
.mega-link small { display: block; color: var(--dim); font-size: .82rem; line-height: 1.4; }
.mega-all { display: inline-block; margin: 10px 12px; font-weight: 600; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(143, 166, 255, .06); cursor: pointer; position: relative; }
.menu-toggle span:not(.sr-only) { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .35s var(--ease); }
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--header-h) 0 0; background: rgba(14, 22, 38, .98); backdrop-filter: blur(16px); padding: 16px 16px 32px; overflow-y: auto; animation: fade-in .3s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0 0 20px; padding: 0; }
.mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 14px 6px; border-bottom: 1px solid var(--line); color: #fff; font: 600 1.15rem/1.2 var(--f-display); }
.mobile-menu .sub a { font-size: 1rem; color: var(--muted); padding-left: 18px; }
.mobile-menu .ico { width: 18px; height: 18px; color: var(--brand-2); }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 760px; margin: 0 0 clamp(36px, 5vw, 60px); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.crumbs-wrap { padding-top: calc(var(--header-h) + 22px); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font: 500 .8rem/1.4 var(--f-mono); color: var(--dim); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--brand-2); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* Above-the-fold page intros animate on load, without waiting for scroll observers */
.js .page-hero .reveal { opacity: 1; transform: none; filter: none; transition: none; animation: rise .9s var(--ease) both; }
.js .page-hero .reveal:nth-child(2) { animation-delay: .08s; } .js .page-hero .reveal:nth-child(3) { animation-delay: .16s; }
.js .page-hero .reveal:nth-child(4) { animation-delay: .24s; } .js .page-hero .reveal:nth-child(5) { animation-delay: .32s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 110px; overflow: hidden; }
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-stage canvas { width: 100%; height: 100%; }
.hero-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(closest-side at 72% 55%, rgba(92, 124, 250, .16), transparent 70%); }
.hero-stage::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(14, 22, 38, .92) 0%, rgba(14, 22, 38, .75) 34%, rgba(14, 22, 38, 0) 58%); }
.hero-stage .engine-labels { z-index: 2; }
.hero-inner { position: relative; z-index: 2; pointer-events: none; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { max-width: 640px; }
.hero-title { margin-bottom: 22px; font-size: clamp(2.3rem, 4.3vw, 3.85rem); }
.hero-title.is-split .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-40deg); filter: blur(8px); animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
.hero-title.is-split .grad .w { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 900% 100%; }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hero-lead { animation: rise 1s var(--ease) .7s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 0; }
.hero .hero-ctas { animation: rise 1s var(--ease) .9s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 34px 0 0; padding: 0; animation: rise 1s var(--ease) 1.1s both; }
.works-with::before { content: 'Works with'; font: 500 .72rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-right: 6px; }
.works-with li { font: 500 .8rem/1 var(--f-mono); color: var(--muted); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(14, 22, 38, .5); }
.hero-hud {
  position: absolute; z-index: 3; right: 24px; bottom: 28px; display: flex; align-items: center; gap: 10px;
  padding: 10px 10px 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(14, 22, 38, .7); backdrop-filter: blur(10px);
  font: 500 .78rem/1 var(--f-mono); color: var(--muted); max-width: calc(100% - 48px);
}
.hud-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.hud-replay { white-space: nowrap; border: 0; border-radius: 999px; background: rgba(143, 166, 255, .12); color: var(--brand-2); font: inherit; padding: 7px 10px; cursor: pointer; }
.hud-replay:hover { background: rgba(143, 166, 255, .25); color: #fff; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--brand-2); animation: cue 1.8s infinite var(--ease); }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Labels projected from the 3D engine */
.engine-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.elabel {
  position: absolute; left: 0; top: 0; opacity: 0; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 500 .72rem/1 var(--f-mono); color: #E8EDFF; will-change: transform, opacity;
}
.elabel i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(92, 124, 250, .25), 0 0 14px var(--brand); flex: 0 0 9px; margin-left: -4.5px; }
.elabel.flip { flex-direction: row-reverse; }
.elabel.flip i { margin: 0 -4.5px 0 0; }
.elabel span { padding: 7px 10px; border-radius: 8px; background: rgba(14, 22, 38, .82); border: 1px solid rgba(143, 166, 255, .35); backdrop-filter: blur(6px); }
.elabel.teal i { background: var(--teal); box-shadow: 0 0 0 4px rgba(52, 211, 197, .2), 0 0 14px var(--teal); }
.elabel.teal span { border-color: rgba(52, 211, 197, .45); color: #CFFAF5; }
.elabel.amber i { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 184, 65, .2), 0 0 14px var(--amber); }
.elabel.amber span { border-color: rgba(245, 184, 65, .5); color: #FFE7B5; }
.elabel.red i { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 107, .2), 0 0 14px var(--red); }
.elabel.red span { border-color: rgba(255, 107, 107, .5); color: #FFD3D3; }

/* ---------- Scrollytelling ---------- */
.scrolly-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); }
.scrolly-sticky { position: relative; }
.scrolly-stage {
  position: sticky; top: calc(var(--header-h) + 24px); height: min(78vh, 680px); border-radius: 26px; overflow: hidden;
  background: radial-gradient(closest-side at 50% 55%, rgba(92, 124, 250, .14), transparent), linear-gradient(180deg, rgba(21, 32, 57, .7), rgba(14, 22, 38, .7));
  box-shadow: var(--shadow);
}
.scrolly-stage::before { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px; opacity: .45; pointer-events: none; }
.scrolly-stage canvas { position: relative; width: 100%; height: 100%; }
.stage-badge { position: absolute; left: 18px; top: 18px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(14, 22, 38, .8); border: 1px solid var(--line-2); font: 500 .8rem/1 var(--f-mono); color: var(--muted); }
.stage-badge [data-stage-n] { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; }
.stage-qty { position: absolute; left: 14px; right: 14px; bottom: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; animation: rise .6s var(--ease); }
.stage-qty div { padding: 12px; border-radius: 14px; background: rgba(14, 22, 38, .85); border: 1px solid var(--line-2); }
.stage-qty b { display: block; font: 700 1.35rem/1 var(--f-display); color: #fff; }
.stage-qty small { font: 500 .7rem/1 var(--f-mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.stage-qty .bad { border-color: rgba(255, 107, 107, .45); }
.stage-qty .bad b { color: var(--red); }
.scrolly-steps { list-style: none; margin: 0; padding: 18vh 0 22vh; }
.sstep { position: relative; padding: 28px 28px 28px 30px; margin-bottom: 26vh; border-left: 2px solid var(--line); opacity: .38; transition: opacity .5s, border-color .5s, transform .6s var(--ease); cursor: pointer; }
.sstep:last-child { margin-bottom: 0; }
.sstep.active { opacity: 1; border-color: var(--brand); transform: translateX(6px); }
.sstep.active::before { content: ''; position: absolute; left: -6px; top: 34px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 16px var(--brand); }
.sstep-n { font: 500 .8rem/1 var(--f-mono); color: var(--brand-2); letter-spacing: .1em; }
.sstep h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 10px 0 10px; }
.sstep p { color: var(--muted); }

/* ---------- Solution cards ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sol-card, .aud-card, .feat, .value, .cta-card, .custom-band, .sol-hero-visual {
  --mx: 50%; --my: 50%;
  position: relative; border-radius: var(--r); background: linear-gradient(180deg, rgba(27, 40, 71, .75), rgba(21, 32, 57, .55)); box-shadow: 0 0 0 1px var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
[data-spotlight]::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(92, 124, 250, .16), transparent 45%);
}
[data-spotlight]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(143, 166, 255, .8), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
[data-spotlight]:hover::before, [data-spotlight]:hover::after { opacity: 1; }
.sol-card { display: flex; flex-direction: column; overflow: hidden; }
.sol-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(92, 124, 250, .5), 0 0 0 1px var(--line-2); }
.sol-illus { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); background: radial-gradient(closest-side, rgba(92, 124, 250, .12), transparent), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20px 20px; }
.sol-illus .illus { width: 100%; height: 100%; }
.sol-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.sol-cat { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.sol-body h3 { font-size: 1.2rem; }
.sol-body h3 a { color: #fff; }
.sol-body p { color: var(--muted); font-size: .98rem; }
.stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.link-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--f-display); color: var(--brand-2); }
.link-more .arr { transition: transform .3s var(--ease); }
.sol-card:hover .link-more .arr, a.link-more:hover .arr { transform: translateX(5px); }

/* ---------- Illustrations ---------- */
.illus { overflow: visible; }
.illus * { animation-play-state: paused !important; }
.illus.in-view *, .sol-hero-visual .illus * { animation-play-state: running !important; }
.illus text { font: 600 10px var(--f-display); fill: #fff; }
.illus .mono { font: 500 8px var(--f-mono); fill: var(--amber); }
.illus .tag { font-size: 9px; fill: var(--dim); letter-spacing: .12em; }
.illus .draw { fill: none; stroke: #C9D4FF; stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 100; animation: ill-draw 7s var(--ease) infinite; }
.illus .d2 { animation-delay: .3s; } .illus .d3 { animation-delay: .6s; } .illus .d4 { animation-delay: .9s; }
.illus .dim.draw, .illus .dim { stroke: var(--amber); }
@keyframes ill-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 25%, 85% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.illus .pop { transform-box: fill-box; transform-origin: center; animation: ill-pop 7s var(--ease) infinite; animation-delay: calc(.9s + var(--i, 0) * .12s); }
.illus .cols .pop { fill: var(--brand); stroke: #fff; stroke-width: .8; }
.illus .cols .pop:nth-child(3n+2) { animation-delay: 1s; } .illus .cols .pop:nth-child(3n) { animation-delay: 1.15s; }
@keyframes ill-pop { 0%, 12% { transform: scale(0); opacity: 0; } 20%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
.illus .f-t { fill: #8FA6FF; } .illus .f-l { fill: #4B67D8; } .illus .f-r { fill: #3550B8; }
.illus .f-t, .illus .f-l, .illus .f-r { stroke: rgba(14, 22, 38, .6); stroke-width: .6; }
.illus .floor { animation: ill-floor 7s var(--ease) infinite; }
.illus .fl0 { animation-delay: 1.6s; } .illus .fl1 { animation-delay: 2s; } .illus .fl2 { animation-delay: 2.4s; } .illus .fl3 { animation-delay: 2.8s; }
@keyframes ill-floor { 0% { opacity: 0; transform: translateY(-26px); } 10%, 72% { opacity: 1; transform: none; } 82%, 100% { opacity: 0; transform: none; } }
.illus .arrowhead { fill: none; stroke: #C9D4FF; stroke-width: 1.4; }
.illus .ai-chip rect { fill: rgba(52, 211, 197, .14); stroke: var(--teal); }
.illus .ai-chip text { fill: var(--teal); font-family: var(--f-mono); font-size: 9px; }
.illus .ai-chip { animation: ill-blink 1.6s infinite; }
@keyframes ill-blink { 50% { opacity: .45; } }
.illus .solid .floor { animation: none; }
.illus .analytic .draw { stroke: var(--teal); animation-duration: 6s; }
.illus .node { fill: #fff; animation: ill-node 2.4s infinite; animation-delay: calc(var(--i) * 80ms); }
@keyframes ill-node { 50% { fill: var(--teal); } }
.illus .loads path { fill: none; stroke: var(--amber); stroke-width: 1.4; animation: ill-load 1.6s infinite; }
@keyframes ill-load { 50% { transform: translateY(3px); } }
.illus .sync-path { fill: none; stroke: rgba(143, 166, 255, .35); stroke-width: 1.4; stroke-dasharray: 4 5; animation: ill-dash 1s linear infinite; }
@keyframes ill-dash { to { stroke-dashoffset: -18; } }
.illus .packet { fill: var(--amber); filter: drop-shadow(0 0 4px var(--amber)); }
.illus .packet.p2 { fill: var(--teal); filter: drop-shadow(0 0 4px var(--teal)); }
.illus .sheet { fill: rgba(14, 22, 38, .6); stroke: rgba(143, 166, 255, .4); }
.illus .tb rect, .illus .tb path { fill: none; stroke: rgba(201, 212, 255, .7); stroke-width: 1; }
.illus .tb text { font-size: 7px; fill: #C9D4FF; }
.illus .row { fill: rgba(92, 124, 250, .35); }
.illus .tags circle { fill: var(--surface); stroke: var(--teal); }
.illus .tags text { font: 600 6px var(--f-mono); fill: var(--teal); }
.illus .doc rect:first-child { fill: #1E2C4F; stroke: rgba(143, 166, 255, .3); }
.illus .d-back rect { fill: #17223D; } .illus .d-mid rect { fill: #1A2747; }
.illus .ln { fill: rgba(185, 193, 214, .35); }
.illus .ln.hit { animation: ill-hit 5s infinite; } .illus .ln.hit2 { animation: ill-hit 5s infinite 1s; }
@keyframes ill-hit { 0%, 30% { fill: rgba(185, 193, 214, .35); } 40%, 85% { fill: var(--red); } 100% { fill: rgba(185, 193, 214, .35); } }
.illus .scan { fill: var(--teal); filter: drop-shadow(0 0 6px var(--teal)); animation: ill-scan 2.5s ease-in-out infinite alternate; }
@keyframes ill-scan { to { transform: translateY(128px); } }
.illus .cv ~ .scan { animation-name: ill-scan-cv; }
@keyframes ill-scan-cv { to { transform: translateY(116px); } }
.illus .flag rect { fill: rgba(255, 107, 107, .15); stroke: var(--red); }
.illus .flag text { fill: #FFD3D3; font: 600 8px var(--f-mono); }
.illus .flag.ok rect { fill: rgba(245, 184, 65, .14); stroke: var(--amber); }
.illus .flag.ok text { fill: #FFE7B5; }
.illus .flag { animation: ill-flag 5s var(--ease) infinite; }
.illus .f1 { animation-delay: .4s; } .illus .f2 { animation-delay: 1.4s; } .illus .ok { animation-delay: 2.2s; }
@keyframes ill-flag { 0%, 30% { opacity: 0; translate: -10px 0; } 40%, 88% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.illus .ring { fill: none; stroke: rgba(143, 166, 255, .22); }
.illus .sweep { animation: ill-spin 4s linear infinite; transform-origin: 0 0; }
.illus .wedge { fill: url(#none); fill: rgba(92, 124, 250, .22); }
.illus .sweep .beam { stroke: var(--brand-2); stroke-width: 1.5; }
@keyframes ill-spin { to { transform: rotate(-360deg); } }
.illus .blip circle:last-child { fill: var(--teal); }
.illus .blip .halo { fill: rgba(52, 211, 197, .2); transform-box: fill-box; transform-origin: center; animation: ill-halo 2s infinite; animation-delay: calc(var(--i) * .5s); }
.illus .blip { animation: ill-blip 4s infinite; animation-delay: calc(var(--i) * .8s); }
@keyframes ill-blip { 0% { opacity: 0; } 8%, 80% { opacity: 1; } 100% { opacity: .2; } }
@keyframes ill-halo { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.illus .lead-card rect:first-child { fill: rgba(14, 22, 38, .85); stroke: rgba(52, 211, 197, .5); }
.illus .lead-card .mono { fill: var(--teal); }
.illus .bar-bg { fill: rgba(143, 166, 255, .15); }
.illus .bar { fill: var(--teal); transform-box: fill-box; transform-origin: left; animation: ill-bar 4s var(--ease) infinite; }
@keyframes ill-bar { 0%, 20% { transform: scaleX(0); } 50%, 90% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: .4; } }
.illus .cv > rect:first-child { fill: #1E2C4F; stroke: rgba(143, 166, 255, .3); }
.illus .cv rect { fill: rgba(185, 193, 214, .3); }
.illus .cv .bar { fill: var(--brand-2); }
.illus .cv0 .bar { fill: var(--teal); }
.illus .avatar { fill: rgba(143, 166, 255, .45); }
.illus .check circle { fill: var(--teal); }
.illus .check path { fill: none; stroke: #0E1626; stroke-width: 2; }
.illus .check { opacity: 0; animation: ill-check 4s var(--ease) infinite; animation-delay: calc(1.5s + var(--i) * .4s); transform-box: fill-box; transform-origin: center; }
.illus .cv1 .check { display: none; }
@keyframes ill-check { 0% { opacity: 0; transform: scale(0); } 15%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* ---------- Lifecycle rail ---------- */
.rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; position: relative; }
.rail::before { content: ''; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: linear-gradient(90deg, var(--brand), var(--teal)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); opacity: .7; }
.rail.in::before { transform: scaleX(1); }
.rail-node { position: relative; padding-top: 34px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 140ms + 300ms); }
.rail.in .rail-node, html:not(.js) .rail-node { opacity: 1; transform: none; }
.rail-dot { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand-2); box-shadow: 0 0 0 5px rgba(92, 124, 250, .15); }
.rail-phase { font: 700 1.25rem/1.1 var(--f-display); color: #fff; margin: 0 0 4px; }
.rail-label { font: 500 .72rem/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin-bottom: 12px; }
.rail-tool { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(21, 32, 57, .7); font: 600 .88rem/1.2 var(--f-display); color: var(--text); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.rail-tool:hover { background: rgba(92, 124, 250, .2); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.rail-tool .ico { width: 16px; height: 16px; color: var(--brand-2); }

/* ---------- Deployment ---------- */
.deploy-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.deploy-copy > p { color: var(--muted); font-size: 1.1rem; }
.seg { position: relative; display: inline-grid; grid-template-columns: repeat(3, 1fr); padding: 5px; margin: 10px 0 22px; border-radius: 999px; background: rgba(21, 32, 57, .9); box-shadow: 0 0 0 1px var(--line-2); }
.seg button { position: relative; z-index: 1; min-width: 104px; height: 42px; border: 0; background: none; color: var(--muted); font: 600 .95rem/1 var(--f-display); cursor: pointer; border-radius: 999px; transition: color .3s; }
.seg button[aria-selected="true"] { color: #fff; }
.seg-thumb { position: absolute; left: 5px; top: 5px; bottom: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: linear-gradient(135deg, #6E8BFF, var(--brand-3)); box-shadow: 0 8px 20px -8px rgba(92, 124, 250, .9); transition: transform .5s var(--ease); }
.deploy-desc h3 { margin-bottom: 6px; }
.deploy-desc p { color: var(--muted); }
.deploy-desc [data-desc]:not([hidden]) { animation: rise .5s var(--ease); }
.deploy-visual { position: relative; }
.territory { width: 100%; height: auto; }
.territory .t-boundary { fill: rgba(92, 124, 250, .04); stroke: var(--brand-2); stroke-width: 1.6; stroke-dasharray: 8 6; animation: ill-dash 1.2s linear infinite; animation-play-state: paused; }
.territory.in-view .t-boundary { animation-play-state: running; }
.territory .t-label { font: 500 11px var(--f-mono); letter-spacing: .14em; fill: var(--brand-2); }
.territory .t-cap { font: 500 11px var(--f-mono); fill: var(--muted); }
.territory .bld { fill: #1E2C4F; stroke: var(--brand-2); stroke-width: 1.4; }
.territory .win { fill: rgba(245, 184, 65, .65); }
.territory .t-server rect { fill: #1E2C4F; stroke: var(--brand-2); stroke-width: 1.2; }
.territory .led { fill: var(--teal); animation: blink 1s infinite; }
.territory .t-cloud path { fill: #1E2C4F; stroke: var(--brand-2); stroke-width: 1.4; transition: opacity .5s, stroke .5s; }
.territory .t-path { fill: none; stroke: rgba(143, 166, 255, .4); stroke-width: 1.6; stroke-dasharray: 5 6; transition: opacity .5s; }
.territory .t-lock rect, .territory .t-lock path { fill: none; stroke: var(--amber); stroke-width: 1.8; transition: opacity .5s; }
.territory .pkt { transition: opacity .5s; }
.territory .pl { fill: var(--teal); filter: drop-shadow(0 0 5px var(--teal)); }
.territory .pc, .territory .pc2 { fill: var(--amber); filter: drop-shadow(0 0 5px var(--amber)); }
.territory .t-glow { transition: opacity .6s; }
.territory[data-mode="local"] .t-cloud path { opacity: .25; }
.territory[data-mode="local"] .p-cloud, .territory[data-mode="local"] .t-lock, .territory[data-mode="local"] .pc, .territory[data-mode="local"] .pc2 { opacity: 0; }
.territory[data-mode="cloud"] .p-local, .territory[data-mode="cloud"] .pl { opacity: 0; }
.territory[data-mode="cloud"] .t-server { opacity: .35; }
.territory[data-mode="cloud"] .t-glow { opacity: .3; }
.territory[data-mode="cloud"] .t-cloud path { stroke: var(--amber); }
.territory .t-server { transition: opacity .5s; }

/* ---------- Audience, process, values ---------- */
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.aud-card { padding: clamp(26px, 4vw, 40px); }
.aud-card:hover { transform: translateY(-4px); }
.aud-ico svg { width: 56px; height: 56px; fill: none; stroke: var(--brand-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.aud-ico .accent { stroke: var(--amber); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 32px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: rgba(52, 211, 197, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%2334D3C5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: p; }
.process-grid li { position: relative; padding: 26px 22px; border-top: 2px solid var(--line-2); }
.process-grid li::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--grad); transition: width 1.2s var(--ease) .3s; }
.process-grid li.in::before { width: 100%; }
.pnum { display: block; font: 500 .8rem/1 var(--f-mono); color: var(--amber); margin-bottom: 16px; letter-spacing: .1em; }
.process-grid p { color: var(--muted); font-size: .98rem; }

/* ---------- FAQ ---------- */
.faq h2 { margin-bottom: 28px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; font: 600 1.12rem/1.35 var(--f-display); color: #fff; }
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--ease), background .3s; }
.plus::before, .plus::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 1.6px; background: var(--brand-2); }
.plus::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
details[open] .plus { transform: rotate(180deg); background: rgba(92, 124, 250, .15); }
details[open] .plus::after { transform: rotate(0); }
.faq-a { color: var(--muted); padding: 0 50px 18px 0; }
details[open] .faq-a { animation: rise .5s var(--ease); }

/* ---------- CTA ---------- */
.cta-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; padding: clamp(30px, 5vw, 64px); overflow: hidden; background: radial-gradient(600px 300px at 0% 100%, rgba(92, 124, 250, .3), transparent 70%), radial-gradient(500px 300px at 100% 0%, rgba(52, 211, 197, .12), transparent 70%), linear-gradient(180deg, rgba(27, 40, 71, .9), rgba(21, 32, 57, .8)); }
.cta-copy p { color: var(--muted); font-size: 1.1rem; }
.cta-anim { display: grid; place-items: center; min-height: 220px; perspective: 900px; }
.cta-iso { position: relative; width: 150px; height: 190px; transform: rotateX(58deg) rotateZ(-40deg); transform-style: preserve-3d; }
.cta-iso i { position: absolute; inset: 0 0 auto; height: 150px; border: 1.5px solid var(--brand-2); background: rgba(92, 124, 250, .12); box-shadow: 0 0 30px rgba(92, 124, 250, .25) inset; transform: translateZ(calc(var(--i) * 26px)); opacity: 0; }
.cta-anim.in-view .cta-iso i { animation: cta-floor 5s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.cta-iso i:last-child { background: rgba(52, 211, 197, .18); border-color: var(--teal); }
@keyframes cta-floor { 0% { opacity: 0; transform: translateZ(calc(var(--i) * 26px + 80px)); } 18%, 80% { opacity: 1; transform: translateZ(calc(var(--i) * 26px)); } 100% { opacity: 0; transform: translateZ(calc(var(--i) * 26px)); } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 36px 0 clamp(40px, 6vw, 80px); }
.page-hero:first-child { padding-top: calc(var(--header-h) + 60px); }
.page-hero h1 { max-width: 900px; }
.sol-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.sol-hero-visual { padding: 18px; background: radial-gradient(closest-side, rgba(92, 124, 250, .15), transparent), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 22px 22px, rgba(21, 32, 57, .6); }
.deploy-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font: 500 .8rem/1 var(--f-mono); color: var(--muted); }
.problem-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.big-p { font: 500 clamp(1.2rem, 2vw, 1.55rem)/1.5 var(--f-display); color: var(--text); margin: 0; }
.steps-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps-flow li { position: relative; padding: 24px; border-radius: var(--r); background: rgba(21, 32, 57, .6); box-shadow: 0 0 0 1px var(--line); }
.steps-flow li:not(:last-child)::after { content: ''; position: absolute; top: 44px; right: -18px; width: 18px; height: 2px; background: linear-gradient(90deg, var(--brand), transparent); }
.flow-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; background: rgba(92, 124, 250, .15); border: 1px solid rgba(92, 124, 250, .5); font: 700 1.05rem/1 var(--f-display); color: #fff; }
.steps-flow p, .feat p { color: var(--muted); font-size: .98rem; margin: 0; }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat { padding: 26px; }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(92, 124, 250, .14); color: var(--brand-2); margin-bottom: 16px; }
.feat-ico .ico { width: 22px; height: 22px; }
.outputs { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.outputs .q-label { margin: 0 8px 0 0; }
.outputs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.outputs li { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(245, 184, 65, .4); color: #FFE7B5; font: 500 .82rem/1 var(--f-mono); background: rgba(245, 184, 65, .06); }
.sol-group + .sol-group { margin-top: 70px; }
.group-head { margin-bottom: 26px; }
.group-head p { color: var(--muted); }
.custom-band { margin-top: 60px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; padding: 30px 34px; }
.custom-band h2 { font-size: 1.5rem; margin: 0 0 4px; }
.custom-band p { color: var(--muted); margin: 0; }
.ico-lg { width: 44px; height: 44px; color: var(--amber); }

.compare { overflow-x: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); background: rgba(21, 32, 57, .55); }
.compare table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.compare thead th { font: 600 .78rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brand-2); }
.compare tbody th { font-weight: 600; color: #fff; }
.compare td { color: var(--muted); }
.compare tr:last-child > * { border-bottom: 0; }

.about-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: center; }
.name-split { text-align: center; font: 800 clamp(3rem, 7vw, 5.6rem)/1 var(--f-display); letter-spacing: -.04em; }
.ns { display: inline-block; }
.ns-ai { color: var(--brand); text-shadow: 0 0 40px rgba(92, 124, 250, .7); }
.js .name-split.in .ns-1 { animation: ns-l 1.2s var(--ease) both; }
.js .name-split.in .ns-2 { animation: ns-r 1.2s var(--ease) both; }
.js .name-split.in .ns-ai { animation: ns-ai 1.2s var(--ease) both; }
@keyframes ns-l { from { transform: translateX(-30px); opacity: 0; } }
@keyframes ns-r { from { transform: translateX(30px); opacity: 0; } }
@keyframes ns-ai { 0% { transform: translateY(-60px) scale(1.4); opacity: 0; } 60% { opacity: 1; } }
.ns-cap { font: 500 .85rem/1.5 var(--f-mono); color: var(--dim); letter-spacing: .04em; margin-top: 18px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { padding: 26px; }
.value h2 { font-size: 1.25rem; }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose strong { color: #fff; }
.prose a { text-decoration: underline; text-decoration-color: rgba(143, 166, 255, .4); text-underline-offset: 3px; }

/* ---------- Demo wizard ---------- */
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.demo-intro .ticks { margin: 24px 0; }
.demo-panel { border-radius: 26px; background: rgba(21, 32, 57, .8); box-shadow: var(--shadow); overflow: hidden; }
.wizard { position: relative; display: grid; grid-template-columns: 190px 1fr; min-height: 560px; }
.wizard-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 26px 16px; background: radial-gradient(circle at 50% 80%, rgba(92, 124, 250, .25), transparent 60%), linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 16px 16px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 16px 16px, #101A2E; border-right: 1px solid var(--line); }
.wv-building { position: relative; width: 110px; height: 260px; display: flex; flex-direction: column-reverse; align-items: center; }
.wv-ground { width: 150px; height: 6px; border-radius: 3px; background: var(--brand-2); box-shadow: 0 0 20px var(--brand); flex: 0 0 auto; }
.wv-floor { width: 100px; height: 52px; margin-bottom: 4px; border: 1.5px solid var(--brand-2); border-radius: 4px; background: rgba(92, 124, 250, .15); display: flex; justify-content: space-around; align-items: center; opacity: 0; transform: translateY(-80px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.wv-floor span { width: 16px; height: 20px; border-radius: 2px; background: rgba(245, 184, 65, .7); }
.wizard .wv-floor.f1, .wizard:not([data-at="1"]) .wv-floor.f2, .wizard[data-at="3"] .wv-floor.f3, .wizard.is-done .wv-floor { opacity: 1; transform: none; }
.wv-crane { position: absolute; right: -20px; top: 0; width: 4px; height: 100%; background: linear-gradient(var(--amber), rgba(245, 184, 65, .3)); }
.wv-crane::before { content: ''; position: absolute; top: 0; right: -14px; width: 110px; height: 4px; background: var(--amber); }
.wv-crane i { position: absolute; top: 4px; right: 70px; width: 1px; height: 60px; background: var(--amber); transform-origin: top; animation: crane 3s ease-in-out infinite alternate; }
.wv-crane i::after { content: ''; position: absolute; bottom: -8px; left: -6px; width: 13px; height: 8px; border: 1.5px solid var(--amber); border-top: 0; }
@keyframes crane { to { transform: scaleY(1.5) translateX(-14px); } }
.wizard.is-done .wv-crane { opacity: 0; transition: opacity .6s; }
.wv-caption { margin: 18px 0 0; font: 500 .72rem/1.4 var(--f-mono); color: var(--muted); text-align: center; letter-spacing: .04em; }
.wizard-main { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; min-width: 0; }
.wizard-progress { height: 4px; border-radius: 4px; background: rgba(143, 166, 255, .12); margin-bottom: 24px; overflow: hidden; }
.wizard-progress span { display: block; height: 100%; width: var(--p, 33%); background: var(--grad); border-radius: inherit; transition: width .7s var(--ease); }
.wizard .eyebrow { margin-bottom: 10px; }
.wizard-title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-bottom: 20px; min-height: 2.3em; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .step:not(.is-active) { display: none; }
.js .step.is-active { animation: step-in .55s var(--ease); }
.js .step.is-active.from-left { animation-name: step-in-l; }
@keyframes step-in { from { opacity: 0; transform: translateX(30px); filter: blur(4px); } }
@keyframes step-in-l { from { opacity: 0; transform: translateX(-30px); filter: blur(4px); } }
html:not(.js) .step + .step { margin-top: 28px; }
.step legend { font: 600 1.05rem/1.3 var(--f-display); color: #fff; padding: 0; margin-bottom: 6px; }
.step-hint { color: var(--dim); font-size: .92rem; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 22, 38, .5); color: var(--muted); font: 600 .92rem/1.2 var(--f-display); transition: all .25s var(--ease); user-select: none; }
.chip .ico { width: 18px; height: 18px; color: var(--brand-2); transition: color .25s; }
.chip:hover span { border-color: rgba(143, 166, 255, .55); color: #fff; }
.chip input:checked + span { background: linear-gradient(135deg, rgba(110, 139, 255, .35), rgba(63, 95, 224, .35)); border-color: var(--brand-2); color: #fff; box-shadow: 0 0 0 3px rgba(92, 124, 250, .2), 0 8px 20px -10px rgba(92, 124, 250, .9); animation: chip-pop .35s var(--ease); }
.chip input:checked + span .ico { color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
@keyframes chip-pop { 50% { transform: scale(1.06); } }
.q { margin-bottom: 18px; }
.q-label { font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; padding: 22px 14px 8px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(14, 22, 38, .6); color: #fff; font: 500 1rem/1.4 var(--f-body); transition: border-color .25s, box-shadow .25s; resize: vertical; }
.field textarea { min-height: 92px; }
.field label { position: absolute; left: 15px; top: 16px; color: var(--dim); font-size: .95rem; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(92, 124, 250, .18); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: .72rem; color: var(--brand-2); letter-spacing: .02em; }
.field.invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 107, .14); }
.msg, .field-error { display: block; color: #FF9B9B; font-size: .82rem; margin-top: 6px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: .88rem; cursor: pointer; flex-wrap: wrap; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 18px; }
.consent span { flex: 1; min-width: 0; }
.consent .msg { flex-basis: 100%; }
.consent.invalid span { color: #FFB3B3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wizard-nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: auto; padding-top: 26px; }
.wizard-nav [data-prev] { margin-right: auto; }
.wizard-note { margin: 12px 0 0; text-align: right; font-size: .8rem; color: var(--dim); }
.nudge { animation: nudge .7s var(--ease); }
@keyframes nudge { 30% { transform: scale(1.08); } 60% { transform: scale(.97); } }
.shake .step.is-active { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.is-sending .spinner { display: inline-block; }
.is-sending .btn-label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
.wizard.is-done .wizard-main { display: none; }
.wizard-success { padding: clamp(28px, 4vw, 46px); display: flex; flex-direction: column; justify-content: center; animation: rise .7s var(--ease); }
.wizard-success:focus { outline: none; }
.wizard-success h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.wizard-success p { color: var(--muted); }
.wizard-success .btn { align-self: flex-start; margin-top: 10px; }
.success-build { margin-bottom: 20px; }
.center .success-build { display: flex; justify-content: center; }
.success-mark .band { animation-duration: 1.8s !important; }
.next-steps { list-style: none; margin: 8px 0 18px; padding: 0; counter-reset: s; }
.next-steps li { position: relative; padding: 10px 0 10px 36px; color: var(--muted); border-bottom: 1px dashed var(--line); font-size: .95rem; }
.next-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 10px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(52, 211, 197, .15); color: var(--teal); font: 600 .75rem/1 var(--f-mono); }
.next-steps strong { color: #fff; margin-right: 6px; }

/* Dialog */
.demo-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 26px; background: var(--surface); color: var(--text); box-shadow: 0 50px 120px -20px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); overflow: auto; }
.demo-dialog[open] { animation: dlg-in .6s var(--ease); }
.demo-dialog::backdrop { background: rgba(6, 10, 20, .7); backdrop-filter: blur(8px); animation: fade-in .4s; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(6px); } }
.dialog-close { position: absolute; right: 14px; top: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(14, 22, 38, .7); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.demo-dialog .wizard-progress { margin-right: 44px; }
.dialog-close:hover { transform: rotate(90deg); background: rgba(92, 124, 250, .25); }

/* Floating CTA */
.demo-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px; background: linear-gradient(135deg, #6E8BFF, var(--brand-3)); color: #fff; font: 600 .95rem/1 var(--f-display); box-shadow: 0 16px 40px -12px rgba(92, 124, 250, .9); transform: translateY(120px); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.demo-fab.show { transform: none; opacity: 1; }
.demo-fab:hover { color: #fff; transform: translateY(-3px); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: live 2s infinite; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); }
.dialog-open .demo-fab { opacity: 0; }

/* Consent */
.consent-banner { position: fixed; left: 20px; bottom: 20px; z-index: 60; max-width: 440px; padding: 18px 20px; border-radius: 18px; background: rgba(21, 32, 57, .97); box-shadow: var(--shadow); backdrop-filter: blur(12px); animation: rise .6s var(--ease); }
.consent-banner p { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.consent-banner div { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 70px 0 28px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(17, 27, 46, .5), var(--bg-2)); overflow: hidden; }
.footer-blueprint { position: absolute; inset: 0; pointer-events: none; opacity: .5; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand .slogan { font: 500 1.05rem/1.4 var(--f-display); color: #C5CBDA; margin: 16px 0 8px; }
.footer-brand .muted { font-size: .92rem; max-width: 340px; }
.footer-title { font: 500 .75rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { color: var(--muted); font-size: .95rem; }
.site-footer li a:hover { color: #fff; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--dim); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li { margin: 0; }
.footer-bottom a, .footer-bottom .linklike { color: var(--dim); font-size: .85rem; }

/* ---------- 404 ---------- */
.nf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; min-height: 60vh; }
.nf-svg { width: 100%; }
.nf-grid-l { fill: none; stroke: rgba(143, 166, 255, .35); stroke-dasharray: 10 3 2 3; }
.nf-bubbles circle { fill: var(--bg); stroke: var(--brand-2); }
.nf-bubbles text { font: 700 13px var(--f-display); fill: #fff; }
.nf-col { fill: var(--brand); }
.nf-missing { fill: none; stroke: var(--red); stroke-width: 2; stroke-dasharray: 4 3; animation: blink 1.2s infinite; }
.nf-tag { font: 500 10px var(--f-mono); fill: var(--red); }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.nf-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text); }
.nf-links a:hover { background: rgba(92, 124, 250, .15); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .rail::before { display: none; }
  .values, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-flow { grid-template-columns: repeat(2, 1fr); }
  .steps-flow li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding-bottom: 40px; }
  .hero-stage { position: relative; order: 2; height: min(92vw, 440px); margin-top: 10px; }
  .hero-stage::after { background: radial-gradient(closest-side at 50% 50%, rgba(92, 124, 250, .16), transparent 70%); }
  .hero-stage::before { display: none; }
  .hero-hud { position: relative; order: 3; right: auto; bottom: auto; margin: 0 16px; align-self: center; font-size: .7rem; }
  .scroll-cue { display: none; }
  .scrolly-grid { grid-template-columns: 1fr; gap: 0; }
  .scrolly-sticky { position: sticky; top: calc(var(--header-h) + 8px); z-index: 2; }
  .scrolly-stage { position: relative; top: 0; height: 46vh; min-height: 300px; background: radial-gradient(closest-side at 50% 55%, rgba(92, 124, 250, .16), transparent), #121C31; }
  .scrolly-sticky::before { content: ''; position: absolute; left: -16px; right: -16px; top: calc(-1 * var(--header-h) - 8px); height: calc(var(--header-h) + 8px); background: var(--bg); }
  .scrolly-steps { padding: 6vh 0 10vh; }
  .sstep { margin-bottom: 32vh; background: rgba(14, 22, 38, .75); border-radius: 0 14px 14px 0; backdrop-filter: blur(6px); }
  .stage-qty { grid-template-columns: repeat(2, 1fr); }
  .deploy-grid, .aud-grid, .sol-hero-grid, .problem-grid, .cta-card, .about-hero, .demo-grid, .nf-grid { grid-template-columns: 1fr; }
  .cta-anim { min-height: 160px; }
  .custom-band { grid-template-columns: 1fr; }
  .wizard { grid-template-columns: 1fr; min-height: 0; }
  .wizard-visual { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .sol-grid, .feat-grid, .values, .process-grid, .steps-flow, .footer-grid { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr 1fr; }
  .fields { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .wizard-nav .btn { flex: 1; }
  .wizard-nav [data-prev] { flex: 0 0 auto; }
  .seg button { min-width: 0; padding: 0 16px; }
  .demo-fab { left: 16px; right: 16px; justify-content: center; bottom: 14px; }
  .demo-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: none; }
  .elabel { font-size: .62rem; }
  .elabel span { padding: 5px 7px; }
  .faq-a { padding-right: 0; }
  .footer-bottom ul { flex-wrap: wrap; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .illus .draw { stroke-dashoffset: 0; }
  .illus .pop, .illus .floor, .illus .check, .illus .flag, .cta-iso i { opacity: 1; transform: none; }
}
