/* thenaaz.ca — main stylesheet
   Brand tokens follow the thenaaz Brand Guidelines v1.0 */

:root {
  color-scheme: dark;
  --onyx: #0B0C10;
  --onyx-2: #0E1016;
  --onyx-3: #14161F;
  --ivory: #F4F0E6;
  --slate: #4A4D55;
  --indigo: #5B3DF5;
  --signal: #3D7BFA;
  --cyan: #21D4FD;
  --gold: #E0A83E;
  --text: #FFFFFF;
  --text-2: #B7BBC5;
  --text-3: #8E93A0;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --grad: linear-gradient(45deg, #5B3DF5 0%, #3D7BFA 55%, #21D4FD 100%);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --radius: 22px;
  --radius-s: 14px;
  --max: 1240px;
  --ease-rise: cubic-bezier(.65, 0, .25, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--indigo); color: #fff; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 10px; background: #fff; color: var(--onyx); text-decoration: none; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
.display { font-size: clamp(52px, 8vw, 104px); line-height: .95; letter-spacing: -0.055em; }
.h2 { font-size: clamp(38px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.045em; }
.h3 { font-size: 23px; line-height: 1.2; letter-spacing: -0.03em; }
.muted { color: var(--text-3); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--text-2); font-weight: 300; line-height: 1.6; margin: 0; }
.grad-text {
  background: linear-gradient(90deg, #5B3DF5, #3D7BFA, #21D4FD, #3D7BFA, #5B3DF5);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s linear infinite;
}
.gold { color: var(--gold); }

/* Eyebrow with mini rising line */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow svg { width: 34px; height: 16px; overflow: visible; }
.eyebrow path { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.1s var(--ease-rise) .15s; }
.in .eyebrow path, .eyebrow.in path { stroke-dashoffset: 0; }

.section { position: relative; border-top: 1px solid var(--line); }
.section-inner { padding-block: 128px; display: flex; flex-direction: column; gap: 48px; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.section-head.split { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head.split .lead { max-width: 420px; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; font-size: 16px; font-weight: 500; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s;
}
.btn svg { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(91, 61, 245, .7); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(61, 123, 250, .8); }
.btn-light { background: #fff; color: var(--onyx); font-weight: 600; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(11, 12, 16, .35); color: #fff; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); }
.btn-mono { font-family: var(--font-mono); font-size: 14px; font-weight: 400; }

/* ---------- Progress bar ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.header.scrolled { background: rgba(11, 12, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 80px; transition: height .35s; }
.header.scrolled .header-row { height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand .lockup { display: block; height: 34px; width: auto; overflow: visible; } /* outlined lockup: N stands on the wordmark baseline */
.brand .head { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease-out); }
.brand:hover .head { transform: translateY(-5px); }
.wordmark { font-family: var(--font-display); font-size: 23px; letter-spacing: -0.05em; line-height: 1; position: relative; top: 3.2px; }
.wordmark .the { font-weight: 400; color: #C9CDD8; }
.wordmark .naaz { font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(11, 12, 16, .5); }
.nav a { position: relative; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; color: #D3D6DE; transition: color .2s, background .2s; }
.nav a:hover, .nav a.active { color: #fff; background: rgba(255, 255, 255, .07); }
.header-cta { min-height: 44px; padding: 0 20px; font-size: 14px; }
.nav .nav-cta { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: #fff; position: relative; transition: transform .3s, background .3s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Intro loader (Flow) ---------- */
.intro { position: fixed; inset: 0; z-index: 300; background: var(--onyx); display: grid; place-items: center; transition: opacity .6s var(--ease-out), visibility .6s; }
.intro.done { opacity: 0; visibility: hidden; }
.intro svg { width: 84px; height: 84px; }
.flow-track { stroke: #22252F; }
.flow-run { stroke-dasharray: 22 70; animation: flow 1.2s linear infinite; }
.no-intro .intro { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 80px; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(48px); }
.orb-1 { left: 30%; top: 58%; width: 900px; height: 900px; background: radial-gradient(circle, #5B3DF5 0%, rgba(11, 12, 16, 0) 62%); opacity: .45; animation: orbA 16s ease-in-out infinite; }
.orb-2 { left: 80%; top: 38%; width: 640px; height: 640px; background: radial-gradient(circle, #21D4FD 0%, rgba(11, 12, 16, 0) 60%); opacity: .2; animation: orbB 20s ease-in-out infinite; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 40%, #000 25%, transparent 75%); }
.spot { position: absolute; inset: 0; background: radial-gradient(520px circle at var(--sx, 70%) var(--sy, 40%), rgba(91, 61, 245, .22), transparent 65%); transition: background .1s; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 88px 100px; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(11, 12, 16, .45); font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #C9CDD8; }
.live { width: 7px; height: 7px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: live 2.2s infinite; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--text-3); margin: 0; padding: 0; list-style: none; }
.ticks li::before { content: "✓ "; color: var(--cyan); }

/* split words */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.split-word > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 70ms + 200ms); }
.ready .split-word > span { transform: none; }

.hero-visual { position: relative; display: flex; flex-direction: column; gap: 18px; }
.hero-mark { position: relative; display: grid; place-items: center; height: 170px; }
.hero-mark svg { width: 150px; height: 150px; overflow: visible; filter: drop-shadow(0 0 30px rgba(61, 123, 250, .45)); }
.hero-mark .line { stroke-dasharray: 92; stroke-dashoffset: 92; }
.hero-mark .head { opacity: 0; transform-box: fill-box; transform-origin: center; }
.ready .hero-mark .line { animation: draw 1.5s var(--ease-rise) .35s forwards; }
.ready .hero-mark .head { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) 1.55s forwards; }
.ring { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(61, 123, 250, .25); border-radius: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.ready .ring { animation: ring 3.6s var(--ease-out) 2s infinite; }
.ring.r2 { animation-delay: 3.2s !important; }

.console { border: 1px solid var(--line-2); border-radius: 18px; background: rgba(14, 16, 24, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); overflow: hidden; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2A2E3A; }
.console-bar b { margin-left: 10px; font-weight: 400; }
.console-body { padding: 20px; height: 262px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; overflow: hidden; }
.console-body .cmd { color: #E6E8EE; }
.console-body .out { color: var(--text-3); }
.console-body .ok { color: var(--cyan); }
.caret { display: inline-block; width: 9px; height: 18px; background: var(--signal); vertical-align: middle; animation: blink 1s steps(1) infinite; }

/* ---------- Marquee ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-3); white-space: nowrap; }
.marquee-track span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

/* ---------- Cards (shared) ---------- */
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: border-color .35s, transform .45s var(--ease-out);
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(61, 123, 250, .16), transparent 60%); }
.card:hover { border-color: rgba(61, 123, 250, .45); }
.card:hover::before { opacity: 1; }
.card .topline { position: absolute; top: 0; left: 32px; right: 32px; height: 1px; background: linear-gradient(90deg, transparent, var(--signal), transparent); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

/* Services */
.svc { padding: 32px; min-height: 270px; display: flex; flex-direction: column; gap: 14px; }
.icon { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background .35s, border-color .35s; }
.icon svg { width: 22px; height: 22px; }
.card:hover .icon { background: rgba(91, 61, 245, .18); border-color: rgba(91, 61, 245, .5); }
.svc p { margin: 0; color: var(--text-2); font-size: 16px; }
.tags { margin-top: auto; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* ---------- Problem picker ---------- */
.picker { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 20px; align-items: stretch; }
.picker-tabs { display: flex; flex-direction: column; gap: 8px; }
.ptab {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; padding: 0 22px;
  border-radius: var(--radius-s); border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  color: #C9CDD8; text-align: left; cursor: pointer; font-size: 16px; transition: all .3s var(--ease-out);
}
.ptab:hover { border-color: var(--line-2); color: #fff; transform: translateX(4px); }
.ptab i { width: 8px; height: 8px; border-radius: 50%; background: transparent; border: 1px solid var(--text-3); flex: none; transition: all .3s; }
.ptab[aria-selected="true"] { color: #fff; font-weight: 500; border-color: var(--signal); background: linear-gradient(90deg, rgba(91, 61, 245, .35), rgba(33, 212, 253, .1)); }
.ptab[aria-selected="true"] i { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 12px rgba(224, 168, 62, .6); }
.ppanel { padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.ppanel-cmd { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); min-height: 22px; }
.ppanel-cmd svg { width: 22px; height: 22px; display: none; }
.ppanel.busy .ppanel-cmd svg { display: block; }
.ppanel-body { display: flex; flex-direction: column; gap: 20px; transition: opacity .35s, transform .45s var(--ease-out); }
.ppanel.busy .ppanel-body { opacity: 0; transform: translateY(10px); }
.ppanel h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.08; letter-spacing: -0.04em; }
.ppanel p { margin: 0; color: var(--text-2); font-size: 18px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: #E6E8EE; }
.steps li span { font-family: var(--font-mono); font-size: 13px; color: var(--signal); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--font-mono); font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #C9CDD8; transition: border-color .3s, color .3s; }
.chips li:hover { border-color: var(--signal); color: #fff; }

/* ---------- AI ---------- */
.ai-glow { position: absolute; right: -300px; top: -200px; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, #5B3DF5 0%, rgba(11, 12, 16, 0) 62%); opacity: .3; filter: blur(40px); pointer-events: none; }
.estimator { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.est-inputs { padding: 36px; display: flex; flex-direction: column; gap: 26px; }
.est-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.est-head small { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .08em; }
.range { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: #C9CDD8; }
.range-top { display: flex; justify-content: space-between; }
.range-top output { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--indigo), var(--cyan)) 0 / var(--fill, 50%) 100% no-repeat, #262A36; }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #262A36; }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--indigo), var(--cyan)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid var(--signal); box-shadow: 0 0 0 6px rgba(61, 123, 250, .18); transition: transform .2s; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--signal); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.est-out { position: relative; overflow: hidden; border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: linear-gradient(160deg, #2A1C8F 0%, #1A3FA8 55%, #0E6C8A 100%); }
.est-out svg.bgline { position: absolute; left: 0; bottom: 0; width: 100%; height: 130px; opacity: .3; }
.stat { position: relative; display: flex; flex-direction: column; gap: 6px; }
.stat small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: #D6DDFF; }
.stat b { font-family: var(--font-display); font-weight: 600; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.est-out p { position: relative; margin: 0; font-size: 13px; line-height: 1.5; color: #D6DDFF; }
.est-out .btn { position: relative; }

.usecases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.uc { position: relative; background: var(--onyx-2); padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: background .35s; }
.uc:hover { background: #12141D; }
.uc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.uc h3 { font-size: 21px; letter-spacing: -0.02em; }
.badge { font-family: var(--font-mono); font-size: 11px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: #C9CDD8; white-space: nowrap; }
.uc p { margin: 0; color: var(--text-2); font-size: 15px; }
.uc .win { margin-top: auto; font-size: 14px; color: var(--cyan); }

.rollout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }
.rollout .card { padding: 34px; display: flex; flex-direction: column; gap: 24px; }
.rsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
.rsteps li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; position: relative; }
.rsteps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #262A36; }
.rsteps li::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--ease-rise); transition-delay: calc(var(--i) * 350ms + 200ms); }
.in .rsteps li::after { transform: scaleX(1); }
.rsteps small { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.rsteps b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.rsteps span { font-size: 15px; color: var(--text-2); line-height: 1.55; }
.guard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.guard li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: #E6E8EE; }
.guard svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- Scale ---------- */
.arch { padding: 36px; display: flex; flex-direction: column; gap: 18px; background: var(--onyx-2); }
.arch-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; position: relative; }
.node { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 16px; display: flex; flex-direction: column; gap: 6px; background: rgba(255, 255, 255, .03); transition: border-color .3s, transform .4s var(--ease-out); }
.node:hover { border-color: var(--signal); transform: translateY(-4px); }
.node small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--cyan); }
.node b { font-size: 15px; }
.node span { font-size: 12px; color: var(--text-3); }
.node:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -29px; width: 30px; height: 2px; background: rgba(255, 255, 255, .14); }
.node:not(:last-child)::before { content: ""; position: absolute; top: calc(50% - 2px); left: 100%; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: packet 1.6s linear infinite; animation-delay: calc(var(--i) * 220ms); z-index: 1; }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.layers div { border: 1px dashed rgba(255, 255, 255, .18); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: #C9CDD8; }
.layers b { font-family: var(--font-mono); font-weight: 400; color: var(--signal); }
.fact { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line-2); padding-top: 20px; }
.fact b { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fact span { font-size: 15px; color: var(--text-2); }

/* ---------- Engage ---------- */
.eng { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.eng small { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--cyan); }
.eng p { margin: 0; color: var(--text-2); font-size: 15px; }
.eng ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #D3D6DE; }
.eng ul li::before { content: "→ "; color: var(--signal); }
.eng .price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
.eng.featured { border-color: rgba(91, 61, 245, .55); background: linear-gradient(180deg, rgba(91, 61, 245, .16), rgba(255, 255, 255, .01)); }
.stack { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; padding: 0; list-style: none; }
.stack li:first-child { font-size: 15px; color: var(--text-3); margin-right: 8px; }
.stack li + li { font-family: var(--font-mono); font-size: 12px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: #E6E8EE; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 56px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; min-height: 66px; background: none; border: 0; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 19px; font-weight: 500; text-align: left; cursor: pointer; color: #fff; }
.faq-q .pm { position: relative; width: 16px; height: 16px; flex: none; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--signal); transition: transform .35s var(--ease-out); }
.faq-q .pm::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .pm::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 22px; color: var(--text-2); max-width: 720px; }
.faq-q[aria-expanded="true"] + .faq-a { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact-glow { position: absolute; left: 50%; bottom: -480px; width: 1200px; height: 760px; border-radius: 50%; background: radial-gradient(circle, #5B3DF5 0%, rgba(11, 12, 16, 0) 65%); opacity: .45; filter: blur(30px); transform: translateX(-50%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: start; padding-block: 140px 120px; }
.contact-copy { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 120px; }
.contact-copy .display { font-size: clamp(48px, 6.4vw, 88px); }
.direct { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--text-2); }
.direct a { color: #fff; font-size: 22px; font-family: var(--font-display); letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line-2); align-self: flex-start; }
.direct a:hover { border-color: var(--cyan); }
.form { padding: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; background: rgba(14, 16, 24, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #C9CDD8; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { min-height: 50px; border-radius: 12px; border: 1px solid #2B2F3B; background: #10131B; color: #fff; padding: 0 14px; font-size: 16px; transition: border-color .25s, box-shadow .25s; }
.field textarea { padding: 14px; min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238E93A0' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(61, 123, 250, .18); }
.chips-in { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.chips-in legend { font-size: 14px; color: #C9CDD8; margin-bottom: 8px; padding: 0; width: 100%; }
.chips-in label { position: relative; }
.chips-in input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips-in span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: #C9CDD8; transition: all .25s; }
.chips-in input:checked + span { border-color: var(--signal); background: rgba(61, 123, 250, .16); color: #fff; }
.chips-in input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.form-foot small { color: var(--text-3); font-size: 13px; }
.submit .flow { display: none; width: 22px; height: 22px; }
.submit.sending .flow { display: block; }
.submit.sending .label-arrow { display: none; }
.form-status { grid-column: 1 / -1; margin: 0; font-size: 15px; min-height: 1px; }
.form-status.ok { color: #6FE3B0; }
.form-status.err { color: #FF8A80; }
.hp { position: absolute; left: -10000px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-block: 56px 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.footer-brand p { margin: 0; font-size: 15px; color: var(--text-3); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols b { font-weight: 600; }
.footer-cols a { color: var(--text-3); text-decoration: none; transition: color .2s; }
.footer-cols a:hover { color: #fff; }
.footer-line { width: 100%; height: auto; display: block; }
.footer-line path { stroke-dasharray: 2200; stroke-dashoffset: 2200; transition: stroke-dashoffset 2.4s var(--ease-rise); }
.footer.in .footer-line path { stroke-dashoffset: 0; }
.footer-line circle { opacity: 0; transform-box: fill-box; transform-origin: center; }
.footer.in .footer-line circle { animation: drop .7s cubic-bezier(.3, 1.4, .5, 1) 2.2s forwards; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 24px 32px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--line); }
.footer-bottom a { color: var(--text-3); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-16px); } 70% { opacity: 1; transform: translateY(1.5px); } 100% { opacity: 1; transform: none; } }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -92; } }
@keyframes orbA { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-44%, -56%) scale(1.15); } }
@keyframes orbB { 0%, 100% { transform: translate(-50%, -50%) scale(1.05); } 50% { transform: translate(-58%, -46%) scale(.9); } }
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes packet { 0% { left: 100%; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { left: calc(100% + 22px); opacity: 0; } }
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); } 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes ring { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.55); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .menu-open .nav { display: flex; position: fixed; top: 74px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; padding: 10px; border-radius: 18px; background: rgba(14, 16, 24, .97); backdrop-filter: blur(14px); }
  .menu-open .nav a { padding: 14px 16px; font-size: 16px; }
  .menu-open .nav .nav-cta { display: block; margin-top: 6px; text-align: center; background: #fff; color: var(--onyx); font-weight: 600; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 56px 80px; }
  .hero-mark { display: none; }
  .grid-3, .usecases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3.eng-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picker, .estimator, .rollout, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .contact-copy { position: static; }
  .arch-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .node:nth-child(3)::after, .node:nth-child(3)::before { display: none; }
  .layers { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .section-inner { padding-block: 88px; gap: 36px; }
  .grid-3, .usecases, .grid-4 { grid-template-columns: 1fr; }
  .arch-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node:nth-child(2n)::after, .node:nth-child(2n)::before { display: none; }
  .node:nth-child(3)::after, .node:nth-child(3)::before { display: block; }
  .rsteps { grid-template-columns: 1fr; }
  .ppanel, .est-inputs, .est-out, .form, .arch, .rollout .card { padding: 24px; }
  .form { grid-template-columns: 1fr; }
  .console-body { font-size: 12.5px; height: 230px; }
  .contact-grid { padding-block: 96px 80px; gap: 40px; }
  .btn { white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .split-word > span { transform: none; }
  .hero-mark .line { stroke-dashoffset: 0; }
  .hero-mark .head, .footer-line circle { opacity: 1; }
  .footer-line path, .eyebrow path { stroke-dashoffset: 0; }
  .rsteps li::after { transform: scaleX(1); }
}
