/* ==========================================================================
   Narne Labs — core styles
   ========================================================================== */

:root {
  --bg: #05060a;
  --bg-2: #0a0c14;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0ff;
  --muted: #9aa0b8;
  --dim: #6b7090;
  --violet: #8b6cff;
  --cyan: #22d3ee;
  --pink: #ff4ecd;
  --green: #3dffa8;
  --amber: #ffc24e;
  --grad: linear-gradient(100deg, var(--violet) 0%, var(--cyan) 50%, var(--pink) 100%);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--violet); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.dim { color: var(--dim); }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.gradient-text {
  font-style: normal;
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }

/* --------------------------------------------------------------------------
   Background layers
   -------------------------------------------------------------------------- */
.webgl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora {
  position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 75% 30%, rgba(139, 108, 255, 0.22), transparent 70%),
    radial-gradient(35% 30% at 20% 70%, rgba(34, 211, 238, 0.14), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, rgba(255, 78, 205, 0.12), transparent 70%);
  filter: blur(20px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(8deg); }
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
main, .footer, .nav, .page { position: relative; z-index: 2; }
main, .page, .footer { overflow-x: clip; } /* no sideways scroll on phones */

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--bg);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
  animation: preloader-failsafe 0.6s ease 5s forwards; /* never block the page, even if JS dies */
}
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { width: min(340px, 80vw); }
.preloader__logo { margin-bottom: 28px; animation: logo-breathe 1.6s ease-in-out infinite; }
@keyframes logo-breathe { 50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(139,108,255,.6)); } }
.preloader__log { list-style: none; padding: 0; margin: 0 0 18px; font-size: 12px; color: var(--muted); }
.preloader__log li { display: flex; justify-content: space-between; opacity: 0; transform: translateY(6px); animation: log-in 0.4s var(--ease) forwards; }
.preloader__log li:nth-child(1) { animation-delay: 0.1s; }
.preloader__log li:nth-child(2) { animation-delay: 0.35s; }
.preloader__log li:nth-child(3) { animation-delay: 0.6s; }
.preloader__log li:nth-child(4) { animation-delay: 0.85s; }
.preloader__log span { color: var(--green); }
@keyframes log-in { to { opacity: 1; transform: none; } }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width 0.25s linear; }
.preloader__pct { margin-top: 10px; font-size: 12px; color: var(--muted); text-align: right; }

/* --------------------------------------------------------------------------
   Cursor
   -------------------------------------------------------------------------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
  .has-cursor .cursor { display: block; }
  .cursor { position: fixed; inset: 0; pointer-events: none; z-index: 300; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
  .cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
  .cursor__ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid rgba(255,255,255,0.35);
    display: grid; place-items: center;
    transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s;
  }
  .cursor__label { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #05060a; opacity: 0; transition: opacity .2s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: transparent; background: rgba(255,255,255,0.12); backdrop-filter: blur(4px); }
  .cursor.is-label .cursor__ring { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; border-color: #fff; }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-label .cursor__dot { opacity: 0; }
}

/* --------------------------------------------------------------------------
   Buttons & chips
   -------------------------------------------------------------------------- */
.btn {
  --pad: 16px 26px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: var(--pad); border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s, color .3s;
  will-change: transform;
}
.btn--small { --pad: 10px 18px; font-size: 14px; }
.btn--primary { background: #fff; color: #05060a; box-shadow: 0 0 0 0 rgba(139,108,255,0); }
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(139,108,255,0.7), 0 0 0 1px rgba(255,255,255,.4); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,0.08); }
.btn--glow { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.btn--glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.btn--glow:hover::before { opacity: 1; }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  border: 1px solid var(--line-2); background: rgba(0,0,0,0.3);
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: blink 1.6s ease-in-out infinite; }
.chip--live { color: var(--green); }
.chip--soon { color: var(--amber); }
.chip--lab { color: var(--pink); }
@keyframes blink { 50% { opacity: .35; } }

.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; box-shadow: 0 0 0 0 rgba(61,255,168,.6); animation: pulse 2s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61,255,168,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,168,0); } }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; z-index: 50; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1180px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 16px; border-radius: 999px;
  background: rgba(10, 12, 20, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: transform .5s var(--ease), background .3s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; font-weight: 500; }
.nav__brand b { font-weight: 600; margin-left: 3px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.menu-open .nav__toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40; display: grid; align-items: center;
  padding: 100px var(--gutter) 40px;
  background: rgba(5,6,10,0.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a { font-family: var(--font-display); font-size: clamp(32px, 9vw, 56px); line-height: 1.15; transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.menu a small { font: 12px var(--font-mono); color: var(--dim); margin-right: 14px; vertical-align: super; }
.menu-open .menu a { transform: none; opacity: 1; }
.menu-open .menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .menu a:nth-child(4) { transition-delay: .15s; }
.menu-open .menu a:nth-child(5) { transition-delay: .2s; }

@media (max-width: 900px) {
  .nav__links, .nav > .btn { display: none; }
  .nav__toggle { display: block; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 100px; }
.hero__content { pointer-events: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--muted); margin-bottom: 26px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--grad); }
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 8.2vw, 124px); line-height: 0.98; letter-spacing: -0.035em;
  max-width: 11ch;
}
.hero__title .line { display: block; }
.hero__sub { margin-top: 32px; max-width: 520px; font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); }
.hero__now { margin-top: 22px; font-size: 14px; color: var(--text); }
.hero__now .scramble { color: var(--cyan); }
.caret { animation: blink 1s steps(1) infinite; color: var(--cyan); }
.hero__cta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.hud { position: absolute; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.14em; pointer-events: none; }
.hud b { color: var(--text); font-weight: 500; }
.hud--tl { top: 100px; left: var(--gutter); }
.hud--tr { top: 100px; right: var(--gutter); }
.hud--bl { bottom: 36px; left: var(--gutter); }
.hud--br { bottom: 36px; right: var(--gutter); }
.hud::before {
  content: ""; position: absolute; width: 10px; height: 10px; border: 1px solid var(--line-2);
}
.hud--tl::before { top: -14px; left: -14px; border-right: 0; border-bottom: 0; }
.hud--tr::before { top: -14px; right: -14px; border-left: 0; border-bottom: 0; }
.hud--bl::before { bottom: -14px; left: -14px; border-right: 0; border-top: 0; }
.hud--br::before { bottom: -14px; right: -14px; border-left: 0; border-top: 0; }
@media (max-width: 700px) { .hud--tr, .hud--br { display: none; } .hud--tl { top: 88px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .25em; color: var(--dim); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--text), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--cyan); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(5,6,10,0.4); backdrop-filter: blur(6px);
}
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-size: clamp(22px, 3vw, 40px); font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.35); }
.marquee span:nth-of-type(odd) { color: var(--text); -webkit-text-stroke: 0; }
.marquee b { color: var(--violet); font-size: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(100px, 16vh, 180px) 0; }
.section__head { margin-bottom: clamp(48px, 7vw, 80px); max-width: 860px; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: var(--muted); margin-bottom: 22px; }
.label span { color: var(--cyan); margin-right: 8px; }
.section__title { font-family: var(--font-display); font-size: clamp(34px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.03em; }
.section__lede { margin-top: 24px; max-width: 560px; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); }

/* Split text */
[data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
[data-split] .word-inner { display: inline-block; will-change: transform; }
.anim-ready [data-split] .word-inner { transform: translateY(110%); }
.anim-ready .reveal { opacity: 0; transform: translateY(24px); }
.anim-ready .reveal-card { opacity: 0; transform: translateY(60px); }
.no-anim [data-split] .word-inner, .no-anim .reveal, .no-anim .reveal-card { transform: none !important; opacity: 1 !important; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
@media (max-width: 1100px) { .apps { grid-template-columns: repeat(2, 1fr); } .card--lab { grid-column: 1 / -1; } }
@media (max-width: 720px) { .apps { grid-template-columns: 1fr; } }

.card, .cap {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20,22,36,0.75), rgba(10,11,18,0.75));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: border-color .4s, box-shadow .5s var(--ease);
}
.card { padding: 26px; display: flex; flex-direction: column; }
.card.is-tilting, .cap.is-tilting { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: border-color .4s, box-shadow .5s var(--ease), transform .12s linear; }
.card:hover, .cap:hover { border-color: var(--line-2); box-shadow: 0 30px 80px -30px rgba(139,108,255,0.45); }
.card__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(139,108,255,0.18), rgba(34,211,238,0.06) 40%, transparent 65%);
}
.card:hover .card__glow, .cap:hover .card__glow { opacity: 1; }
.card::after, .cap::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(255,255,255,0.5), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.card:hover::after, .cap:hover::after { opacity: 1; }
.card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.card__idx { font-size: 11px; color: var(--dim); }
.card__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; margin-top: 24px; }
.card__text { margin-top: 12px; color: var(--muted); font-size: 15px; }
.card__text b { color: var(--text); font-weight: 600; }
.card__stats { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); }
.card__stats li { padding: 6px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.card__stats b { color: var(--text); font-weight: 500; }
.card__actions { margin-top: auto; padding-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }

/* Viz — compress */
.viz { height: 190px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 120% at 50% 0%, rgba(139,108,255,0.12), rgba(0,0,0,0.25)); position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 22px; }
.viz::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.viz-file { position: relative; }
.viz-file__row { display: flex; justify-content: space-between; font-size: 12px; }
.viz-file__row .js-size { color: var(--cyan); }
.viz-file__bar { margin: 12px 0; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.06); overflow: hidden; }
.viz-file__bar i { display: block; height: 100%; width: 100%; background: var(--grad); border-radius: 8px; box-shadow: 0 0 20px rgba(34,211,238,0.6); animation: squeeze 4.5s var(--ease) infinite; }
@keyframes squeeze { 0%, 15% { width: 100%; } 60%, 85% { width: 6.4%; } 100% { width: 100%; } }
.viz-chips { position: relative; margin-top: 18px; display: flex; gap: 6px; font-size: 10px; }
.viz-chips span { padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }

/* Viz — orbit */
.viz--orbit { align-items: center; }
.orbit { position: relative; width: 150px; height: 150px; }
.orbit__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.18); }
.orbit__ring--2 { inset: 22px; border: 1px solid rgba(139,108,255,0.35); box-shadow: 0 0 30px rgba(139,108,255,0.25) inset; }
.orbit__runner { position: absolute; inset: 0; animation: orbit 3.2s linear infinite; }
.orbit__runner i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px var(--amber), 0 0 40px rgba(255,194,78,0.6); }
@keyframes orbit { to { transform: rotate(360deg); } }
.orbit__core { position: absolute; inset: 44px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: rgba(0,0,0,0.4); }
.orbit__core b { font-size: 26px; font-weight: 500; line-height: 1; }
.orbit__core small { font-size: 10px; color: var(--dim); }

/* Terminal */
.terminal { height: 190px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,0.5); overflow: hidden; font-size: 12px; }
.terminal__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 11px; }
.terminal__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a2d3e; }
.terminal__bar i:nth-child(1) { background: #ff5f57; } .terminal__bar i:nth-child(2) { background: #febc2e; } .terminal__bar i:nth-child(3) { background: #28c840; }
.terminal__bar span { margin-left: 8px; }
.terminal__body { margin: 0; padding: 12px 14px; color: var(--muted); white-space: pre-wrap; line-height: 1.7; font: inherit; }
.terminal__body .ok { color: var(--green); }
.terminal__body .hl { color: var(--pink); }
.terminal__body .cur { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* Glitch */
.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; opacity: 0; }
.card--lab:hover .glitch::before { opacity: .8; color: var(--cyan); animation: glitch 0.6s steps(2) infinite; clip-path: inset(0 0 55% 0); }
.card--lab:hover .glitch::after { opacity: .8; color: var(--pink); animation: glitch 0.5s steps(2) infinite reverse; clip-path: inset(50% 0 0 0); }
@keyframes glitch { 0% { transform: translate(0); } 25% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, 0); } 100% { transform: translate(0); } }

/* Capabilities */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1100px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }
.cap { padding: 28px; min-height: 300px; display: flex; flex-direction: column; }
.cap__icon { width: 56px; height: 56px; overflow: visible; }
.cap__num { margin-top: auto; padding-top: 36px; font-size: 11px; color: var(--dim); }
.cap h3 { font-family: var(--font-display); font-size: 20px; margin-top: 8px; letter-spacing: -0.01em; }
.cap p:last-child { margin-top: 10px; color: var(--muted); font-size: 14.5px; }
.s-grad { fill: none; stroke: url(#nl-grad); stroke-width: 2; stroke-linecap: round; }
.s-dim { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 1.5; stroke-linecap: round; }
.f-grad { fill: url(#nl-grad); }
.spin-slow { transform-origin: 24px 24px; animation: orbit 12s linear infinite; }
.spin-y { transform-origin: 24px 24px; animation: spin-y 4s ease-in-out infinite; }
@keyframes spin-y { 50% { transform: scaleX(0.15); } }
.pulse-svg { transform-origin: 24px 24px; animation: pulse-svg 2s ease-in-out infinite; }
@keyframes pulse-svg { 50% { transform: scale(1.35); } }
.blink-lines { animation: blink 2s ease-in-out infinite; }

/* Manifesto */
.manifesto__text {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3.9vw, 56px); line-height: 1.18; letter-spacing: -0.025em;
  max-width: 1100px;
}
.manifesto__text .w { opacity: 0.14; transition: opacity .2s; }
.no-anim .manifesto__text .w { opacity: 1; }
.stats { margin-top: clamp(60px, 10vw, 120px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 30px 20px 0 0; }
.stat b { display: block; font-size: clamp(40px, 5vw, 72px); font-weight: 500; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 200px; }

/* Process — horizontal */
.process { position: relative; padding: clamp(100px, 14vh, 160px) 0; }
.process__head { margin-bottom: 60px; }
.process__track { display: flex; gap: 22px; padding: 0 var(--gutter); width: max-content; }
.step {
  position: relative; width: clamp(280px, 30vw, 400px); min-height: 320px; padding: 32px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(25,26,44,0.8), rgba(8,9,15,0.8)); backdrop-filter: blur(12px);
  display: flex; flex-direction: column;
}
.step__n { font-size: 56px; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.3); }
.step h3 { margin-top: auto; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.02em; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.step__line { position: absolute; left: 32px; right: 32px; top: 110px; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); }
@media (max-width: 899px) {
  .process__track { flex-direction: column; width: auto; }
  .step { width: auto; min-height: 240px; }
}

/* Contact */
.contact { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.contact__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__title { font-family: var(--font-display); font-size: clamp(36px, 7vw, 104px); line-height: 1.02; letter-spacing: -0.035em; }
.contact .section__lede { margin-left: auto; margin-right: auto; }
.contact__mail { margin-top: 44px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.mail-link { font-family: var(--font-display); font-size: clamp(20px, 3.2vw, 42px); position: relative; padding-bottom: 6px; }
.mail-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform-origin: left; transform: scaleX(0.25); transition: transform .6s var(--ease); }
.mail-link:hover::after { transform: scaleX(1); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; background: linear-gradient(transparent, rgba(5,6,10,0.85) 30%); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; gap: 14px; align-items: center; }
.footer__brand b { font-family: var(--font-display); font-weight: 500; }
.footer__brand p { font-size: 14px; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 100px); flex-wrap: wrap; }
.footer__cols h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--dim); font-weight: 500; margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 14.5px; padding: 4px 0; transition: color .2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { margin-top: 60px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--dim); }
.to-top:hover { color: var(--text); }
.footer__giant {
  font-family: var(--font-display); font-weight: 700; text-align: center; white-space: nowrap;
  font-size: 15.5vw; line-height: 0.8; letter-spacing: -0.05em; margin-bottom: -2.5vw;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Sub-pages (app pages, legal)
   -------------------------------------------------------------------------- */
.page { padding: 150px 0 100px; }
.page__hero { max-width: 900px; margin-bottom: 60px; }
.page__title { font-family: var(--font-display); font-size: clamp(36px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.page__meta { margin-top: 18px; color: var(--dim); font-size: 13px; }
.prose { max-width: 760px; color: #c9cce0; font-size: 16.5px; }
.prose h2 { font-family: var(--font-display); font-size: 22px; color: var(--text); margin: 48px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 17px; color: var(--text); margin: 28px 0 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,15,25,0.7); backdrop-filter: blur(12px); padding: clamp(24px, 4vw, 48px); }

.app-hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .app-hero { grid-template-columns: 1fr; } }
.app-hero .viz { height: 360px; }
.app-hero .orbit { width: 260px; height: 260px; }
.app-hero .orbit__core { inset: 70px; }
.app-hero .orbit__core b { font-size: 44px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 80px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(14,15,25,0.7); }
.feature h3 { font-family: var(--font-display); font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature .mono { color: var(--cyan); font-size: 12px; margin-bottom: 18px; display: block; }

.simple-nav { justify-content: space-between; }

/* No WebGL: let the aurora carry the background */
.no-webgl .webgl { display: none; }
.no-webgl .aurora { inset: -10%; filter: blur(10px) saturate(1.3); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .anim-ready [data-split] .word-inner, .anim-ready .reveal, .anim-ready .reveal-card { transform: none !important; opacity: 1 !important; }
  .manifesto__text .w { opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   Product pages — each product can bring its own accent theme
   -------------------------------------------------------------------------- */
.theme-ember { --grad: linear-gradient(100deg, #ffc766 0%, #ff8c3f 50%, #ef5a2e 100%); --accent: #ffa24c; }
.theme-ember .aurora {
  background:
    radial-gradient(40% 35% at 75% 30%, rgba(255, 140, 63, 0.2), transparent 70%),
    radial-gradient(35% 30% at 20% 70%, rgba(239, 90, 46, 0.12), transparent 70%),
    radial-gradient(30% 30% at 60% 90%, rgba(139, 108, 255, 0.1), transparent 70%);
}
.theme-ember .label span, .theme-ember .feature .mono { color: var(--accent); }
.theme-ember .prose a { color: var(--accent); }
.theme-cyan { --grad: linear-gradient(100deg, #22d3ee 0%, #8b6cff 60%, #ff4ecd 100%); --accent: #22d3ee; }

.product-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .product-hero { grid-template-columns: 1fr; } }
.product-id { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.product-id img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 40px -10px rgba(255, 140, 63, 0.6); }
.product-id .mono { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; line-height: 1.5; }
.product-id .mono b { display: block; color: var(--text); font-weight: 500; letter-spacing: .06em; }
.product-tagline { margin-top: 18px; font-family: var(--font-display); font-size: clamp(18px, 2vw, 24px); color: var(--text); letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip--plain { color: var(--muted); }
.chip--plain i { display: none; }

.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 48px; }
.subnav a { padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,0.03); transition: color .2s, border-color .2s, background .2s; }
.subnav a:hover { color: var(--text); border-color: var(--line-2); }
.subnav a[aria-current="page"] { color: #05060a; background: #fff; border-color: #fff; }

/* Phone showcase */
.phone-stack { position: relative; height: clamp(380px, 52vw, 600px); perspective: 1600px; }
.phone-stack img {
  position: absolute; top: 50%; left: 50%; width: clamp(160px, 20vw, 270px); height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: 22px; border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform .8s var(--ease);
}
.phone-stack img:nth-child(1) { transform: translate(-50%, -50%) translateZ(60px); z-index: 3; }
.phone-stack img:nth-child(2) { transform: translate(-112%, -46%) rotateY(18deg) rotateZ(-5deg) scale(.86); z-index: 2; opacity: .85; }
.phone-stack img:nth-child(3) { transform: translate(12%, -46%) rotateY(-18deg) rotateZ(5deg) scale(.86); z-index: 2; opacity: .85; }
.phone-stack:hover img:nth-child(2) { transform: translate(-124%, -48%) rotateY(14deg) rotateZ(-7deg) scale(.88); }
.phone-stack:hover img:nth-child(3) { transform: translate(24%, -48%) rotateY(-14deg) rotateZ(7deg) scale(.88); }

.shots { margin-top: clamp(70px, 10vw, 120px); }
.shots__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 2px 24px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; -webkit-overflow-scrolling: touch;
}
.shots__track figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 22vw, 260px); scroll-snap-align: start; }
.shots__track img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px; border: 1px solid var(--line); transition: transform .5s var(--ease); }
.shots__track figure:hover img { transform: translateY(-6px); }
.shots__track figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }

.split-feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 800px) { .split-feature { grid-template-columns: 1fr; } }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.feature li { margin-bottom: 6px; }
.section-mini { margin-top: clamp(80px, 12vw, 140px); }
.section-mini .section__title { font-size: clamp(28px, 4vw, 52px); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; }
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat-row .stat { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(14,15,25,0.6); }
.stat-row .stat b { font-size: clamp(28px, 3.4vw, 44px); }

.cta-band { margin-top: clamp(80px, 12vw, 140px); text-align: center; padding: clamp(36px, 6vw, 72px) 24px; border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 50% 0%, rgba(255,140,63,0.14), rgba(14,15,25,0.7) 60%); }
.cta-band .section__title { font-size: clamp(26px, 3.8vw, 48px); }
.cta-band .hero__cta { justify-content: center; }

/* Legal prose extras */
.prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose .muted { color: var(--dim); }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose th { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); background: rgba(255,255,255,0.03); }
.prose tr:last-child td { border-bottom: 0; }
.theme-violet { --grad: linear-gradient(100deg, #a78bfa 0%, #7c3aed 45%, #10b981 100%); --accent: #a78bfa; }
.theme-violet .label span, .theme-violet .feature .mono { color: var(--accent); }
.theme-violet .prose a { color: var(--accent); }
.theme-violet .product-id img { box-shadow: 0 12px 40px -10px rgba(124, 58, 237, 0.7); }
.theme-violet .cta-band { background: radial-gradient(120% 140% at 50% 0%, rgba(124,58,237,0.18), rgba(14,15,25,0.7) 60%); }
.feature .hero__cta { margin-top: 18px; }
/* nav fades in with CSS (opacity only — its transform is reserved for centering + hide-on-scroll) */
.anim-ready .nav { animation: nav-in 1s var(--ease) 0.3s both; }
@keyframes nav-in { from { opacity: 0; } }

.stat b small { font-size: 0.5em; margin-left: 2px; }

/* Brand mark (Kalki) */
.brandmark { display: block; height: auto; }
.nav__brand .brandmark { height: 38px; width: auto; margin: -4px 0; }
.preloader__logo .brandmark { height: 110px; width: auto; }
.footer__brand .brandmark { height: 72px; width: auto; }
