/* ============================================================
   NOVA — Landing Page
   Aesthetic: deep-space plasma. Near-black voids, an electric
   cyan/indigo core, hot-magenta sparks. Editorial-tech tone.
   ============================================================ */

/* Self-hosted fonts (no external/CDN dependency) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('vendor/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('vendor/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('vendor/fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('vendor/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg:        #04060c;
  --bg-2:      #070912;
  --ink:       #eaf1ff;
  --muted:     #8b93b4;
  --faint:     #565d7e;

  --cyan:      #7fe6ff;
  --indigo:    #6b6bff;
  --violet:    #a26bff;
  --magenta:   #ff4d9d;
  --gold:      #ffd27a;

  --line:      rgba(140, 160, 220, 0.12);
  --glass:     rgba(18, 22, 40, 0.55);
  --glass-2:   rgba(24, 28, 52, 0.35);

  --shadow:    0 30px 80px -30px rgba(0, 0, 0, 0.9);
  --glow-cyan: 0 0 60px -10px rgba(56, 232, 255, 0.55);

  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body:    'Hanken Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --maxw: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: default;
}

/* atmospheric base gradients + grain ------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -6;
  background:
    radial-gradient(1100px 760px at 76% -12%, rgba(86, 110, 220, 0.12), transparent 62%),
    radial-gradient(900px 620px at 10% 8%, rgba(70, 150, 220, 0.07), transparent 58%),
    radial-gradient(1300px 900px at 50% 118%, rgba(96, 110, 200, 0.08), transparent 62%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -5;
  opacity: 0.035;
  pointer-events: none;
  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='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* layered backdrop: nova network → scrim → vignette → content */
#orb-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

/* readability scrim — darkens as the camera dives inward so copy
   stays legible over the light field (opacity driven by orb.js) */
#scrim {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #04060c;
  opacity: 0;
  pointer-events: none;
}

/* gentle vignette for focus + depth */
.vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 110% at 50% 38%, transparent 55%, rgba(2,3,8,.55) 100%);
}

/* lift all content above the backdrop layers */
nav, header.hero, .marquee, section, footer { position: relative; z-index: 1; }
nav { z-index: 100; }

::selection { background: rgba(56, 232, 255, 0.3); color: #fff; }

a { color: inherit; text-decoration: none; }

.wrap { width: min(92%, var(--maxw)); margin-inline: auto; }

.mono { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 60px);
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(4, 5, 10, 0.7);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 45%, var(--indigo));
  box-shadow: 0 0 16px var(--cyan), 0 0 32px rgba(107,107,255,.6);
  animation: pulse 3.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.28); opacity: .75; } }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; transition: color .25s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, border-color .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(56,232,255,.4); }
.btn-primary {
  border: none;
  background: linear-gradient(110deg, var(--cyan), var(--indigo) 55%, var(--violet));
  color: #050810;
  font-weight: 700;
  box-shadow: 0 10px 30px -8px rgba(56,232,255,.5);
}
.btn-primary:hover { box-shadow: 0 16px 44px -8px rgba(107,107,255,.7); transform: translateY(-3px); }

/* ============================================================
   HERO
   ============================================================ */
header.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(20px, 5vw, 60px) 80px;
}
.hero-inner { width: min(92%, var(--maxw)); margin-inline: auto; max-width: 880px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--glass-2);
  color: var(--muted);
  margin-bottom: 30px;
}
.eyebrow .live { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 2s infinite; }

h1.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}
h1.hero-title .grad {
  background: linear-gradient(105deg, var(--cyan), #9db4ff 60%, var(--indigo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 30px; margin-top: 52px; flex-wrap: wrap; }
.hero-meta .stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; }
.hero-meta .stat .l { color: var(--faint); font-size: 0.84rem; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-hint .bar { width: 1px; height: 42px; background: linear-gradient(var(--cyan), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ============================================================
   Reveal animation utility
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
[data-delay="4"] { transition-delay: .32s; }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.sec-head { max-width: 640px; margin-bottom: 60px; }
.sec-head .kicker { color: var(--cyan); margin-bottom: 18px; display: block; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.03em;
}
.sec-head p { color: var(--muted); margin-top: 18px; font-size: 1.08rem; }

/* marquee ---------------------------------------------------- */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 70px; width: max-content; animation: slide 32s linear infinite; }
.marquee-track span { font-family: var(--font-mono); color: var(--faint); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ============================================================
   FEATURE CARDS (3D tilt glass)
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.card {
  position: relative;
  border: 1px solid rgba(175, 200, 255, 0.16);
  border-radius: 22px;
  /* translucent iridescent glass — the colourful DNA shows through */
  background:
    linear-gradient(150deg, rgba(48, 60, 108, 0.30), rgba(16, 22, 46, 0.12));
  backdrop-filter: blur(15px) saturate(150%);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  padding: 34px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .4s ease, box-shadow .5s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -34px 64px -34px rgba(120, 150, 255, 0.20),
    0 30px 70px -38px rgba(0, 0, 0, 0.85),
    0 46px 140px -64px var(--bloom, rgba(107, 107, 255, 0.5));
  will-change: transform;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), rgba(56,232,255,.14), transparent 60%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.card:hover {
  border-color: rgba(175, 205, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -34px 64px -34px rgba(140, 170, 255, 0.30),
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    0 60px 180px -60px var(--bloom, rgba(107, 107, 255, 0.7));
}
.card:hover::before { opacity: 1; }

/* per-card colour identity — each panel blooms in its own accent */
.feature-grid > .card:nth-child(1) { --bloom: rgba(127, 230, 255, 0.50); --accent: 127, 230, 255; }
.feature-grid > .card:nth-child(2) { --bloom: rgba(107, 107, 255, 0.52); --accent: 107, 107, 255; }
.feature-grid > .card:nth-child(3) { --bloom: rgba(162, 107, 255, 0.50); --accent: 162, 107, 255; }
.feature-grid > .card:nth-child(4) { --bloom: rgba(255, 122, 190, 0.46); --accent: 255, 122, 190; }
.feature-grid > .card:nth-child(5) { --bloom: rgba(255, 210, 122, 0.42); --accent: 255, 210, 122; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(150deg, rgba(56,232,255,.18), rgba(107,107,255,.12));
  border: 1px solid var(--line);
  transform: translateZ(40px);
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--cyan); fill: none; stroke-width: 1.6; }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; margin-bottom: 10px; letter-spacing: -0.01em; transform: translateZ(28px); }
.card p { color: var(--muted); font-size: 0.98rem; transform: translateZ(18px); }
.card.col-6 { grid-column: span 6; }
.card.col-4 { grid-column: span 4; }
.card.col-8 { grid-column: span 8; }
.card.tall { min-height: 300px; }

.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; transform: translateZ(14px); }
.chip { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02); }

/* ============================================================
   STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 30px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass-2); position: relative; }
.step .num { font-family: var(--font-mono); color: var(--cyan); font-size: 0.8rem; letter-spacing: .2em; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   DEMO WINDOW (faux app preview)
   ============================================================ */
.demo { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.window {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12,15,28,.9), rgba(7,9,18,.95));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.window:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.win-bar i:nth-child(1){ background:#ff5f57; } .win-bar i:nth-child(2){ background:#febc2e; } .win-bar i:nth-child(3){ background:#28c840; }
.win-bar .title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); margin-left: 10px; }
.win-body { padding: 26px; min-height: 340px; display: flex; flex-direction: column; gap: 16px; }

.msg { max-width: 86%; padding: 13px 17px; border-radius: 14px; font-size: 0.95rem; line-height: 1.5; }
.msg.user { align-self: flex-end; background: linear-gradient(120deg, var(--indigo), var(--violet)); color: #fff; border-bottom-right-radius: 4px; }
.msg.nova { align-self: flex-start; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.nova b { color: var(--cyan); font-weight: 600; }
.typing { display: inline-flex; gap: 4px; align-self: flex-start; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.25; transform: translateY(0);} 30%{ opacity:1; transform: translateY(-3px);} }

.demo-copy h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem,3.5vw,2.8rem); line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 18px; }
.demo-copy p { color: var(--muted); margin-bottom: 24px; }
.demo-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.demo-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.demo-list li svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.demo-list li span { color: var(--muted); font-size: 0.96rem; }

/* ============================================================
   STACK / SPECS
   ============================================================ */
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.spec { background: var(--bg-2); padding: 28px 26px; }
.spec .k { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.spec .v { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; }
.spec .d { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }

/* ============================================================
   CTA
   ============================================================ */
.cta-band {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(50px, 8vw, 90px) 30px;
  background:
    radial-gradient(700px 400px at 50% -20%, rgba(107,107,255,.25), transparent 60%),
    linear-gradient(180deg, rgba(12,15,28,.6), rgba(7,9,18,.6));
  position: relative; overflow: hidden;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 22px; }
.cta-band h2 .grad { background: linear-gradient(105deg, var(--cyan), var(--indigo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-band p { color: var(--muted); max-width: 480px; margin: 0 auto 34px; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; margin-top: 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }
.foot-cols { display: flex; gap: 70px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.94rem; margin-bottom: 11px; transition: color .25s; }
.foot-col a:hover { color: var(--cyan); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(6, 1fr); }
  .card.col-6, .card.col-4, .card.col-8 { grid-column: span 6; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .demo { grid-template-columns: 1fr; }
  .window { transform: none; }
  .specs { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 20px; }
}

/* ============================================================
   NEXT-GEN DIGITAL UNIVERSE LAYER
   Floating holographic interfaces · particle field · abstract
   3D grid environments — layered onto the existing plasma DNA.
   ============================================================ */

/* angle custom-prop so the holographic edge can actually rotate */
@property --ha { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

/* --- ambient particle field (drifting digital dust) --------- */
#field {
  position: fixed;
  inset: 0;
  z-index: 0;                 /* above the orb/scrim/vignette, below content */
  width: 100vw; height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.9;
}

/* --- holographic frame (corner brackets + scanline + edge) --- */
.holo-frame {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;                 /* behind translateZ'd content, over the glass */
  overflow: hidden;
}
.holo-frame .hc {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid rgba(127, 230, 255, 0.55);
  opacity: 0; transition: opacity .45s ease, width .45s ease, height .45s ease;
  filter: drop-shadow(0 0 4px rgba(127, 230, 255, 0.5));
}
.holo-frame .hc.tl { top: 11px; left: 11px; border-right: 0; border-bottom: 0; }
.holo-frame .hc.tr { top: 11px; right: 11px; border-left: 0; border-bottom: 0; }
.holo-frame .hc.bl { bottom: 11px; left: 11px; border-right: 0; border-top: 0; }
.holo-frame .hc.br { bottom: 11px; right: 11px; border-left: 0; border-top: 0; }
/* a slow vertical scanline drifting across the surface */
.holo-frame .scan {
  position: absolute; left: 0; right: 0; height: 64px;
  top: -64px;
  background: linear-gradient(180deg, transparent, rgba(127, 230, 255, 0.08) 45%, rgba(162, 107, 255, 0.10) 55%, transparent);
  mix-blend-mode: screen;
  animation: holo-scan 7s linear infinite;
  animation-delay: calc(var(--holo-i, 0) * -1.15s);
  opacity: .7;
}
/* iridescent refraction edge — masked to a thin border ring, rainbow sweep */
.holo-frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.2px;
  background: linear-gradient(115deg,
    var(--cyan), var(--violet) 28%, var(--magenta) 52%, var(--gold) 72%, var(--cyan));
  background-size: 280% 280%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0; transition: opacity .5s ease;
}
/* glass specular sheen — a soft diagonal reflection drifting across the panel */
.card .holo-frame::before,
.window .holo-frame::before {
  content: ''; position: absolute; top: -60%; left: -45%;
  width: 55%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.10) 44%, rgba(255,255,255,.20) 50%, rgba(255,255,255,.10) 56%, transparent);
  transform: rotate(8deg);
  mix-blend-mode: screen; pointer-events: none;
  animation: holo-sheen 9s ease-in-out infinite;
  animation-delay: calc(var(--holo-i, 0) * -1.5s);
}
@keyframes holo-scan { 0% { top: -64px; } 100% { top: 100%; } }
@keyframes holo-sheen { 0%, 100% { left: -55%; opacity: 0; } 30% { opacity: .9; } 55% { left: 100%; opacity: .4; } 70% { opacity: 0; } }
@keyframes holo-iris { to { background-position: 280% 0; } }

/* cards/windows/steps become floating holographic panels --------- */
.card[data-tilt], .window[data-holo], .step, .spec {
  position: relative;
  isolation: isolate;
}
/* SOLUTION 1 (Hybrid HTML/CSS-3D) — Features + How.
   Each card/step UNROLLS out of a strand: a clip-path wipe opens it left→right
   (like an unfurling hologram) with a bright running edge, then rolls back as
   it leaves. Driven by --ce (0 rolled-up … 1 open). The clip is independent of
   the JS tilt `transform`, so the resting 3D tilt still applies. */
.feature-grid, .steps { transform-style: preserve-3d; }
.card[data-tilt], .step {
  opacity: calc(.15 + .85 * var(--ce, 1));
  clip-path: inset(0 calc((1 - var(--ce, 1)) * 100%) 0 0 round 20px);
  transition: opacity .25s linear, clip-path .3s cubic-bezier(.2,.8,.2,1);
}
/* the bright running edge of the unroll */
.card[data-tilt]::after, .step::after {
  content: ''; position: absolute; top: 0; bottom: 0;
  left: calc(var(--ce, 1) * 100%);
  width: 3px; margin-left: -3px;
  background: linear-gradient(180deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  box-shadow: 0 0 14px 2px rgba(127, 230, 255, .8);
  opacity: calc(var(--ce, 1) * (1 - var(--ce, 1)) * 4);   /* nur waehrend des Abrollens */
  pointer-events: none; z-index: 3;
}

.card:hover .holo-frame .hc,
.window:hover .holo-frame .hc,
.step:hover .holo-frame .hc,
.spec:hover .holo-frame .hc { opacity: 1; width: 18px; height: 18px; }
/* cards + the demo window shimmer iridescent at all times (glass refraction) */
.card .holo-frame::after,
.window .holo-frame::after { opacity: .32; animation: holo-iris 8.5s linear infinite; }
.card:hover .holo-frame::after,
.window:hover .holo-frame::after { opacity: .85; }
/* steps + specs light up their edge only on hover (keeps the grids calm) */
.step:hover .holo-frame::after,
.spec:hover .holo-frame::after { opacity: .9; animation: holo-iris 8.5s linear infinite; }

/* icon tile -> holographic projector with a breathing aura */
.card .ic { position: relative; overflow: visible; }
.card .ic::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(127,230,255,.35), transparent 70%);
  opacity: .5; filter: blur(6px); z-index: -1;
  animation: holo-breathe 4.5s ease-in-out infinite;
}
@keyframes holo-breathe { 0%,100% { opacity: .35; transform: scale(.96); } 50% { opacity: .7; transform: scale(1.06); } }

/* --- animated content: badges shimmer like data on the glass ----- */
.card .chip { position: relative; overflow: hidden; border-color: rgba(var(--accent, 127,230,255), .28); }
.card .chip::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(var(--accent, 127,230,255), .45) 50%, transparent 80%);
  transform: translateX(-130%);
  animation: chip-shine 5s ease-in-out infinite;
  animation-delay: calc(var(--ci, 0) * .55s);
}
.card .chip:nth-child(1) { --ci: 0; } .card .chip:nth-child(2) { --ci: 1; } .card .chip:nth-child(3) { --ci: 2; }
@keyframes chip-shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }

/* the icon glow + title pick up the panel's own accent */
.card .ic { border-color: rgba(var(--accent, 127,230,255), .35); }
.card .ic svg { stroke: rgb(var(--accent, 127,230,255)); }
.card .ic::after { background: radial-gradient(circle at 50% 50%, rgba(var(--accent, 127,230,255), .4), transparent 70%); }

/* content rides the scroll at staggered depths — "along the DNA" parallax.
   `translate` is independent of the translateZ transform these already use. */
.card .ic       { translate: 0 calc(var(--sp, 0) * -14px); }
.card h3        { translate: 0 calc(var(--sp, 0) * -10px); }
.card p         { translate: 0 calc(var(--sp, 0) *  -5px); }
.card .chip-row { translate: 0 calc(var(--sp, 0) *  -7px); }
.card .ic, .card h3, .card p, .card .chip-row { transition: translate .25s linear; }

/* --- STEPS as an energy conduit ----------------------------- */
.steps { position: relative; }
.conduit {
  position: absolute; left: 6%; right: 6%; top: 52px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(127,230,255,.22) 12%, rgba(107,107,255,.22) 50%, rgba(162,107,255,.22) 88%, transparent);
  z-index: 0; pointer-events: none; border-radius: 2px;
}
.conduit .pulse {
  position: absolute; top: 50%; left: 0; width: 70px; height: 4px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--violet), transparent);
  filter: drop-shadow(0 0 8px rgba(127,230,255,.9));
  border-radius: 4px;
  animation: conduit-run 5.5s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes conduit-run { 0% { left: -8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.step { background: linear-gradient(160deg, var(--glass), var(--glass-2)); backdrop-filter: blur(10px); transition: border-color .4s, box-shadow .4s, translate .5s; }
.step:hover { border-color: rgba(127,230,255,.4); box-shadow: 0 24px 60px -30px rgba(0,0,0,.9); translate: 0 -4px; }
.step .num { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.step .num::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, var(--cyan) 50%, var(--indigo)); box-shadow: 0 0 10px var(--cyan); }
@media (max-width: 920px) { .conduit { display: none; } }

/* --- DEMO WINDOW becomes a holographic interface ------------ */
.window { position: relative; animation: holo-drift 11s ease-in-out infinite; }
@keyframes holo-drift { 0%,100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.win-bar { position: relative; }
.win-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: .6rem; letter-spacing: .22em; }
.win-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite; }
/* faint readability grid inside the window — the "hologram floor" */
.win-body { position: relative; }
.win-body::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(127,230,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,230,255,.05) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
          mask: radial-gradient(120% 90% at 50% 0%, #000 40%, transparent 78%);
}
.win-body .msg, .win-body .typing { position: relative; z-index: 1; }
.win-hud {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 18px; border-top: 1px solid var(--line);
  background: rgba(127,230,255,.025);
}
.hud-readout { display: flex; align-items: center; gap: 9px; }
.hud-k { color: var(--faint); font-size: .58rem; letter-spacing: .2em; }
.hud-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.hud-bars i { width: 3px; height: 40%; border-radius: 2px; background: linear-gradient(var(--cyan), var(--indigo)); animation: eq 1s ease-in-out infinite; }
.hud-bars i:nth-child(2){ animation-delay:.12s } .hud-bars i:nth-child(3){ animation-delay:.24s }
.hud-bars i:nth-child(4){ animation-delay:.36s } .hud-bars i:nth-child(5){ animation-delay:.18s }
.hud-bars i:nth-child(6){ animation-delay:.30s } .hud-bars i:nth-child(7){ animation-delay:.06s }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 95%; } }
.hud-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.hud-wave i { width: 2px; height: var(--h, 40%); border-radius: 2px; background: var(--violet); opacity: .7; animation: wv 1.4s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes wv { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.hud-tag { margin-left: auto; color: var(--cyan); font-size: .56rem; letter-spacing: .2em; opacity: .8; }

/* --- STACK specs -> holographic readout --------------------- */
.spec { position: relative; overflow: hidden; transition: background .4s; }
.spec:hover { background: #0a0d18; }
.spec .v { position: relative; display: inline-block; }
.spec:hover .v { color: var(--cyan); text-shadow: 0 0 18px rgba(127,230,255,.45); transition: color .35s, text-shadow .35s; }

/* --- abstract 3D environment: perspective grid-floor horizon - */
.grid-floor {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 300px;
  z-index: -1; pointer-events: none; overflow: hidden;
  perspective: 320px; perspective-origin: 50% 0%;
  opacity: .35;
  -webkit-mask: linear-gradient(transparent, #000 92%);
          mask: linear-gradient(transparent, #000 92%);
}
.grid-floor::before {
  content: ''; position: absolute; left: -50%; right: -50%; bottom: 0; top: -10%;
  background-image:
    linear-gradient(rgba(127,230,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,107,255,.4) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: rotateX(74deg);
  transform-origin: 50% 100%;
  animation: grid-roll 7s linear infinite;
}
@keyframes grid-roll { from { background-position: 0 0; } to { background-position: 0 56px; } }

/* --- content emerges from / sinks back into the DNA strands ------ */
section.wrap, header.hero { perspective: 1600px; }
.stage {
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(calc((var(--e, 1) - 1) * 320px))
             rotateX(calc(var(--es, 0) * (1 - var(--e, 1)) * 7deg));
  opacity: calc(0.12 + 0.88 * var(--e, 1));
  transition: transform .18s linear, opacity .18s linear;
  will-change: transform, opacity;
}
/* glowing strand filaments threading the content into the core — visible while
   a group surfaces / submerges, gone once it is fully present. */
.stage::before {
  content: ''; position: absolute; inset: -70px -3%; z-index: -1; pointer-events: none;
  opacity: calc((1 - var(--e, 1)) * 0.55);
  transition: opacity .25s linear;
  background:
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(127,230,255,.12) 52px 53px, transparent 53px 104px),
    linear-gradient(180deg, transparent, rgba(162,107,255,.20) 45%, rgba(127,230,255,.16) 55%, transparent);
  background-size: 104px 100%, 100% 240px;
  background-repeat: repeat, no-repeat;
  -webkit-mask: radial-gradient(120% 78% at 50% 50%, #000 28%, transparent 76%);
          mask: radial-gradient(120% 78% at 50% 50%, #000 28%, transparent 76%);
  animation: strand-flow 5s linear infinite;
}
@keyframes strand-flow { from { background-position: 0 0, 0 -240px; } to { background-position: 0 0, 0 130%; } }

/* SOLUTION 2 comparison: the Stack section is rendered fully in WebGL (orb.js),
   so its HTML is hidden but its scroll height is kept (drives the panel timing). */
#stack .sec-head, #stack .specs { visibility: hidden; }

/* performance: while scrolling, lighten the glass and freeze the
   holographic shimmer so the WebGL DNA fly-through stays buttery. */
body.is-scrolling .card {
  backdrop-filter: blur(7px) saturate(125%);
  -webkit-backdrop-filter: blur(7px) saturate(125%);
  transition: none;
}
body.is-scrolling .holo-frame::after,
body.is-scrolling .holo-frame::before,
body.is-scrolling .holo-frame .scan,
body.is-scrolling .grid-floor::before,
body.is-scrolling .conduit .pulse,
body.is-scrolling .card .chip::after,
body.is-scrolling .card .ic::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  #field, .grid-floor, .conduit, .win-hud { display: none; }
}
