/* NITERUN design system: tokens + public pages
   Brand: black surfaces, cyan→blue speed gradient (from the NR mark), white type.
   Display: Montserrat ExtraBold Italic (echoes the slanted NR letterforms). UI: DM Sans. */
@font-face { font-family: "Montserrat"; src: url("../fonts/MontserratItalic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/DMSans.woff") format("woff"); font-weight: 100 1000; font-display: swap; }

:root {
  --night: #05070a;
  --panel: #0c0f14;
  --panel-2: #121721;
  --line: #1c2330;
  --line-strong: #2a3446;
  --moon: #f4f7fb;
  --soft: #c7cfdb;
  --haze: #8a94a6;
  --cyan: #6ee9fb;
  --blue: #4a9ff5;
  --speed: linear-gradient(100deg, var(--cyan), var(--blue));
  --lamp: #5cc4f8;          /* accent (name kept for app.css) */
  --lamp-ink: #021019;      /* text on accent */
  --paid: #3ddc97;
  --owed: #ff7b72;
  --display: "Montserrat", "Arial Black", sans-serif;
  --text: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --wrap: 1180px;
  --glow: 0 0 0 1px rgba(74, 166, 245, .55), 0 0 40px -6px rgba(74, 166, 245, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--moon); font-family: var(--text); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
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; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--moon); color: var(--night); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 700; z-index: 50; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }
.grad { background: var(--speed); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Logo lockup */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 19px; letter-spacing: -0.01em; }
.logo-mark { width: 34px; height: 34px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s ease, box-shadow .2s ease, background-color .15s ease, border-color .15s ease, filter .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lamp { background: var(--speed); color: var(--lamp-ink); box-shadow: 0 8px 30px -10px rgba(74, 159, 245, .8); }
.btn-lamp:hover { filter: brightness(1.08); box-shadow: 0 10px 36px -8px rgba(74, 159, 245, .95); }
.btn-ghost { border-color: var(--line-strong); color: var(--moon); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: #3c4a62; background: rgba(255, 255, 255, .05); }
.btn-big { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 14px; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* Header */
.site-top { position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 10, .72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-top.scrolled { border-bottom-color: var(--line); }
.site-top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.site-top nav { display: flex; align-items: center; gap: 6px; }
.site-top .link { text-decoration: none; color: var(--haze); font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.site-top .link:hover { color: var(--moon); background: rgba(255, 255, 255, .04); }
.site-top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.nav-sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 6px; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 30%; height: 900px; background: radial-gradient(closest-side, rgba(74, 159, 245, .22), transparent 70%); z-index: -1; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%); z-index: -2; pointer-events: none; }
.hero-copy { max-width: 1040px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12, 15, 20, .8); color: var(--soft); font-size: 14px; font-weight: 600; margin-bottom: 28px; text-decoration: none; }
.badge b { background: var(--speed); color: var(--lamp-ink); padding: 3px 10px; border-radius: 999px; font-size: 12px; }
.hero h1 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(44px, 7.4vw, 96px); line-height: .98; letter-spacing: -0.035em; margin: 0 0 26px; text-wrap: balance; }
.speed-line { position: relative; display: inline-block; }
.speed-line::before { content: ""; position: absolute; right: 100%; top: 50%; width: .8em; height: .42em; transform: translateY(-50%); margin-right: .14em; background: linear-gradient(var(--cyan), var(--cyan)) 100% 0 / 100% 3px no-repeat, linear-gradient(var(--blue), var(--blue)) 100% 50% / 78% 3px no-repeat, linear-gradient(var(--blue), var(--blue)) 100% 100% / 56% 3px no-repeat; animation: streak .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes streak { from { opacity: 0; transform: translate(50%, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.hero .lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--soft); max-width: 58ch; margin: 0 0 34px; }
.hero .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero .fine { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--haze); font-size: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.hero .fine li::before { content: "\2713"; color: var(--cyan); margin-right: 8px; font-weight: 800; }

/* Product frame: the glowing tile from the NR mark */
.stage { position: relative; margin-top: 64px; }
.frame { margin: 0; border-radius: var(--r-xl); background: var(--panel); box-shadow: var(--glow), 0 50px 120px -40px rgba(0, 0, 0, .9); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #090c11; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #222a37; }
.frame-bar span { margin-left: 10px; color: var(--haze); font-size: 13px; }
.frame-bar .tag { margin-left: auto; font-size: 12px; color: var(--haze); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 10px; }
.mock { display: grid; grid-template-columns: 210px 1fr; min-height: 470px; }
.mock-side { border-right: 1px solid var(--line); padding: 18px 12px; background: #080a0e; }
.mock-side .biz { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; font-weight: 700; font-size: 14px; }
.mock-side .biz img { width: 26px; height: 26px; }
.mock-side span { display: block; padding: 9px 10px; border-radius: 8px; color: var(--haze); font-size: 14px; font-weight: 600; }
.mock-side span.on { background: var(--panel-2); color: var(--moon); box-shadow: inset 2px 0 0 var(--cyan); }
.mock-main { padding: 24px; }
.mock-main h3 { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 2px; }
.mock-main .sub { color: var(--haze); font-size: 14px; margin: 0 0 18px; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mock-stat { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--panel-2); }
.mock-stat b { display: block; font-size: 26px; line-height: 1.1; }
.mock-stat small { color: var(--haze); font-size: 13px; }
.mock-stat.owed b { color: var(--owed); }
.mock-stat.paid b { color: var(--paid); }
.mock-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.mock-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--panel-2); }
.mock-card h4 { margin: 0 0 6px; font-size: 14px; }
.mock-card ul { list-style: none; margin: 0; padding: 0; }
.mock-card li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.mock-card li:first-child { border-top: 0; }
.mock-card li time { color: var(--haze); font-size: 13px; }
.mock-card li em { display: block; font-style: normal; color: var(--haze); font-size: 12px; }
.mock-card .next { font-size: 14px; color: var(--soft); margin: 0 0 12px; }
.mock-card .fake-btn { display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--speed); color: var(--lamp-ink); font-weight: 700; font-size: 13px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-scheduled { background: rgba(138, 148, 166, .16); color: var(--soft); }
.pill-done { background: rgba(255, 123, 114, .14); color: var(--owed); }
.pill-paid { background: rgba(61, 220, 151, .14); color: var(--paid); }
.stage-note { text-align: center; color: var(--haze); font-size: 13px; margin: 16px 0 0; }

/* Sections */
.section { padding: 112px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.kicker { display: inline-block; color: var(--cyan); font-weight: 700; font-size: 15px; margin-bottom: 14px; }
.section h2 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 18px; max-width: 18ch; text-wrap: balance; }
.section .intro { color: var(--soft); max-width: 56ch; margin: 0 0 52px; font-size: 19px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: step; padding: 26px 26px 0 0; position: relative; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 15px; margin-bottom: 18px; color: var(--cyan); }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--speed); }
.steps h3, .feature h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.steps p, .feature p { color: var(--haze); margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { position: relative; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; background: linear-gradient(180deg, var(--panel), var(--night)); overflow: hidden; }
.feature .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(74, 159, 245, .12); color: var(--cyan); margin-bottom: 20px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.control-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.control-list li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel-2); font-weight: 600; font-size: 15px; }
.control-list .state { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.state.you { background: rgba(110, 233, 251, .12); color: var(--cyan); }
.state.auto { background: rgba(61, 220, 151, .12); color: var(--paid); }

.types { display: flex; flex-wrap: wrap; gap: 10px; }
.type { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--panel); font-weight: 600; }
.type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--paid); box-shadow: 0 0 10px var(--paid); }
.types-note { color: var(--haze); margin: 18px 0 0; font-size: 15px; }

.price { display: grid; grid-template-columns: 1.1fr .9fr; border-radius: var(--r-xl); box-shadow: var(--glow); background: var(--panel); overflow: hidden; }
.price > div { padding: 44px; }
.price > div + div { border-left: 1px solid var(--line); background: #090c11; display: flex; flex-direction: column; justify-content: center; }
.price .plan { color: var(--cyan); font-weight: 700; margin: 0 0 8px; }
.price .amount { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(64px, 8vw, 96px); line-height: 1; letter-spacing: -0.04em; }
.price .amount small { font-family: var(--text); font-style: normal; font-size: 20px; font-weight: 600; color: var(--haze); letter-spacing: 0; }
.price .then { font-size: 19px; margin: 12px 0 0; color: var(--soft); }
.price ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.price li { display: flex; gap: 12px; color: var(--soft); }
.price li::before { content: "\2713"; color: var(--cyan); font-weight: 800; }
.price .billing { color: var(--haze); font-size: 14px; margin: 16px 0 0; }

.closer { position: relative; text-align: center; padding: 140px 0; border-top: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.closer::before { content: ""; position: absolute; left: 50%; bottom: -380px; width: 1000px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(74, 159, 245, .28), transparent); z-index: -1; }
.closer h2 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(38px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.035em; margin: 0 auto 18px; max-width: 14ch; text-wrap: balance; }
.closer p { color: var(--soft); margin: 0 0 32px; font-size: 19px; }

.site-foot { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--haze); font-size: 15px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-foot h4 { color: var(--moon); font-size: 14px; margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--moon); }
.site-foot .tagline { margin: 14px 0 0; max-width: 34ch; }
.site-foot.compact .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-foot.compact nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; font-size: 13px; }

/* Plain text pages (privacy, terms, help) */
.doc { padding: 72px 0 104px; }
.doc .wrap { max-width: 740px; }
.doc h1 { font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(38px, 5.4vw, 58px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 10px; }
.doc h2 { font-size: 21px; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--soft); }
.doc a { color: var(--cyan); }
.doc .meta { color: var(--haze); margin-bottom: 32px; }

@media (max-width: 980px) {
  .mock { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-template-columns: 1fr; }
  .price { grid-template-columns: 1fr; }
  .price > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .site-top .link, .nav-sep { display: none; }
  .hero { padding-top: 48px; }
  .hero .actions .btn { width: 100%; }
  .stage { margin-top: 44px; }
  .mock-main { padding: 16px; }
  .mock-stats { gap: 8px; }
  .mock-stat { padding: 10px; }
  .mock-stat b { font-size: 19px; }
  .mock-grid { grid-template-columns: 1fr; }
  .mock-card li { grid-template-columns: 46px 1fr; }
  .mock-card li .pill { grid-column: 2; justify-self: start; }
  .section { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
  .price > div { padding: 28px; }
  .closer { padding: 100px 0; }
  .speed-line::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Master-context sections ---- */
.mock-stats.four { grid-template-columns: repeat(4, 1fr); }
.niko-mock h4 { display: flex; align-items: center; gap: 8px; }
.niko-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--speed); box-shadow: 0 0 12px var(--blue); }
.niko-mock .q { margin: 10px 0 8px; margin-left: auto; width: fit-content; max-width: 90%; background: var(--line-strong); padding: 8px 12px; border-radius: 12px 12px 4px 12px; font-size: 14px; }
.niko-mock .a { margin: 0 0 8px; background: rgba(74, 159, 245, .1); border: 1px solid rgba(74, 159, 245, .3); padding: 10px 12px; border-radius: 12px 12px 12px 4px; font-size: 14px; color: var(--soft); }
.niko-mock .src { margin: 0; color: var(--haze); font-size: 12px; }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { display: flex; flex-direction: column; gap: 10px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: linear-gradient(180deg, var(--panel), var(--night)); transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease; }
.path:hover { border-color: rgba(74, 166, 245, .6); box-shadow: 0 0 40px -14px rgba(74, 166, 245, .6); transform: translateY(-2px); }
.path h3 { font-size: 22px; margin: 6px 0 0; letter-spacing: -0.01em; }
.path p { color: var(--haze); margin: 0; flex: 1; }
.path-tag { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(110, 233, 251, .1); color: var(--cyan); }
.path-tag.apply { background: rgba(255, 255, 255, .06); color: var(--soft); }
.path-go { font-weight: 700; color: var(--cyan); margin-top: 8px; }
.path-go::after { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--speed); vertical-align: middle; margin-left: 10px; transition: width .15s ease; }
.path:hover .path-go::after { width: 30px; }

.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; counter-reset: s; }
.loop li { counter-increment: s; position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 10px 14px; background: var(--panel); display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.loop li::before { content: counter(s); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 13px; color: var(--haze); }
.loop li b { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.loop li span { color: var(--haze); font-size: 13px; line-height: 1.35; flex: 1; }
.loop li em { white-space: nowrap; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; align-self: flex-start; }
.loop li.live { border-color: rgba(74, 166, 245, .55); box-shadow: 0 0 30px -16px rgba(74, 166, 245, .9); }
.loop li.live em { background: rgba(61, 220, 151, .14); color: var(--paid); }
.loop li.dev em { background: rgba(138, 148, 166, .14); color: var(--haze); }
.loop-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; color: var(--haze); font-size: 14px; margin: 18px 0 0; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.live { background: var(--paid); margin-left: 0; }
.dot.dev { background: var(--haze); margin-left: 12px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; background: var(--panel); }
.tier h3 { margin: 16px 0 6px; font-size: 20px; }
.tier p { margin: 0; color: var(--haze); }
.tier .state { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.state.ask { background: rgba(255, 196, 92, .12); color: #ffc45c; }

@media (max-width: 1100px) { .loop { grid-template-columns: repeat(3, 1fr); } .loop li { min-height: 0; } }
@media (max-width: 980px) { .paths, .tiers { grid-template-columns: 1fr; } .mock-stats.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .loop { grid-template-columns: 1fr 1fr; } }

/* ===== Hero v3: headline #1 + paths ===== */
.hero h1 { max-width: none; font-size: clamp(42px, 6.4vw, 82px); }
.h-line { display: block; }
.hero-sub { font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.015em; color: var(--moon); margin: 0 0 18px; }
.hero-paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 44px; }
.hpath { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: rgba(12, 15, 20, .75); backdrop-filter: blur(8px); text-decoration: none; transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease; overflow: hidden; }
.hpath::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(110, 233, 251, .08) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s ease; pointer-events: none; }
.hpath:hover { border-color: rgba(74, 166, 245, .7); box-shadow: 0 0 36px -12px rgba(74, 166, 245, .8); transform: translateY(-2px); }
.hpath:hover::after { transform: translateX(100%); }
.hpath.feature { border-color: rgba(74, 166, 245, .55); background: linear-gradient(135deg, rgba(74, 159, 245, .14), rgba(12, 15, 20, .8)); }
.hp-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(74, 159, 245, .14); color: var(--cyan); flex: none; }
.hp-icon svg { width: 22px; height: 22px; }
.hp-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.hp-text b { font-size: 17px; }
.hp-text span { color: var(--haze); font-size: 14px; }
.hp-go { width: 22px; height: 2px; background: var(--speed); position: relative; flex: none; transition: width .2s ease; }
.hp-go::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-right: 2px solid var(--blue); border-top: 2px solid var(--blue); transform: rotate(45deg); }
.hpath:hover .hp-go { width: 30px; }

/* Load sequence (only when JS is on; reduced motion skips it) */
.js .anim { opacity: 0; animation: rise .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.js .h-line.anim { animation-name: lineIn; animation-duration: .9s; }
.a1 { animation-delay: .05s !important; } .a2 { animation-delay: .15s !important; } .a3 { animation-delay: .32s !important; }
.a4 { animation-delay: .55s !important; } .a5 { animation-delay: .65s !important; } .a6 { animation-delay: .75s !important; }
.a7 { animation-delay: .9s !important; } .a8 { animation-delay: 1s !important; } .a9 { animation-delay: 1.1s !important; } .a10 { animation-delay: 1.15s !important; }
.js .speed-line::before { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { opacity: 0; transform: translateY(34px) skewX(-6deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.js .stage.anim .frame { animation: glowIn 1.6s ease 1.3s both; }
@keyframes glowIn { from { box-shadow: 0 0 0 1px rgba(74, 166, 245, .15), 0 0 0 0 rgba(74, 166, 245, 0), 0 50px 120px -40px rgba(0, 0, 0, .9); } to { box-shadow: var(--glow), 0 50px 120px -40px rgba(0, 0, 0, .9); } }
.niko-mock .a.typing::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-loop] li { opacity: .35; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease, box-shadow .6s ease, border-color .6s ease; }
.js [data-loop].in li { opacity: 1; transform: none; }
.js [data-loop].in li.live { animation: stageGlow 1.2s ease both; }
@keyframes stageGlow { 0% { box-shadow: 0 0 0 0 rgba(74, 166, 245, 0); } 40% { box-shadow: 0 0 0 1px rgba(110, 233, 251, .9), 0 0 40px -6px rgba(110, 233, 251, .8); } 100% { box-shadow: 0 0 30px -16px rgba(74, 166, 245, .9); } }

/* Operate spotlight */
.operate { overflow: hidden; isolation: isolate; }
.operate::before { content: ""; position: absolute; right: -200px; top: 10%; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(74, 159, 245, .18), transparent); z-index: -1; }
.op-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.op-points { list-style: none; margin: -24px 0 30px; padding: 0; display: grid; gap: 12px; }
.op-points li { color: var(--soft); padding-left: 26px; position: relative; }
.op-points li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 2px; background: var(--speed); }
.op-points b { color: var(--moon); }
.op-fine { color: var(--haze); font-size: 13px; margin: 16px 0 0; max-width: 52ch; }
.op-steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 14px; counter-reset: op; }
.op-steps::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--cyan), var(--blue), transparent); }
.op-steps li { counter-increment: op; position: relative; display: grid; gap: 4px; padding: 18px 20px 18px 66px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.op-steps li::before { content: counter(op); position: absolute; left: 10px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid var(--blue); color: var(--cyan); font-family: var(--display); font-style: italic; font-weight: 900; font-size: 13px; }
.op-steps b { font-size: 17px; } .op-steps span { color: var(--haze); font-size: 15px; }

@media (max-width: 980px) {
  .hero-paths { grid-template-columns: 1fr; }
  .op-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) { .hero-paths { margin-top: 32px; } .hpath { padding: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .js .anim, .js [data-reveal], .js [data-loop] li { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* research card in preview + beta status */
.research-mock h4 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mock-progress { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 6px 0 12px; }
.mock-progress span { display: block; height: 100%; width: 68%; background: var(--speed); border-radius: 99px; }
.js .mock-progress span { width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.js .mock-progress span.grown { width: 68%; }
.mock-steps { list-style: none; margin: 0 0 8px; padding: 0; }
.mock-card .mock-steps li { display: flex; align-items: center; gap: 8px; grid-template-columns: none; padding: 5px 0; border: 0; font-size: 13px; color: var(--haze); }
.mock-steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.mock-steps li.done { color: var(--soft); }
.mock-steps li.done::before { border-color: var(--paid); background: var(--paid); }
.mock-steps li.doing { color: var(--moon); }
.mock-steps li.doing::before { border-color: var(--line-strong); border-top-color: var(--cyan); animation: spin .9s linear infinite; }
.research-mock .src { margin: 0; color: var(--haze); font-size: 12px; }
.loop li.beta { border-color: rgba(110, 233, 251, .35); }
.loop li.beta em { background: rgba(110, 233, 251, .12); color: var(--cyan); }
.dot.beta { background: var(--cyan); margin-left: 12px; }
.tiers-note { color: var(--haze); margin: 22px 0 0; font-size: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }
