/* ==========================================================================
   Nock — styles.css
   Design tokens live in :root and [data-theme="light"]. Retune here.
   ========================================================================== */

:root {
  /* Base */
  --bg: #08080C;
  --ink: #F4F5FA;
  --ink-dim: rgba(244,245,250,.68);
  --ink-mute: rgba(244,245,250,.48);

  /* Accents */
  --violet: #7C5CFF;
  --cyan:   #22D3EE;
  --magenta:#E879F9;
  --amber:  #F59E0B;
  --grad:   linear-gradient(135deg, var(--violet), var(--cyan));

  /* Glass tokens */
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  --glass-border: rgba(255,255,255,.14);
  --glass-top: rgba(255,255,255,.22);
  --glass-bot: rgba(255,255,255,.05);
  --glass-shadow: 0 8px 32px rgba(0,0,0,.35);
  --blur: 24px;

  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

[data-theme="light"] {
  --bg: #F4F5FA;
  --ink: #0F172A;
  --ink-dim: rgba(15,23,42,.72);
  --ink-mute: rgba(15,23,42,.5);

  --violet: #6D46FF;
  --cyan:   #0EA5E9;

  /* Light glass: lower alpha whites, darker border, softer shadow */
  --glass-bg: linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,.30));
  --glass-border: rgba(15,23,42,.10);
  --glass-top: rgba(255,255,255,.75);
  --glass-bot: rgba(15,23,42,.03);
  --glass-shadow: 0 10px 30px rgba(15,23,42,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.2rem; }
p { margin: .5em 0; color: var(--ink-dim); }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =========================================================================
   Animated background
   ========================================================================= */
.bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden;
  background: radial-gradient(ellipse at top, #101018 0%, var(--bg) 60%);
}
[data-theme="light"] .bg {
  background: radial-gradient(ellipse at top, #E7ECFB 0%, var(--bg) 60%);
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55;
  will-change: transform;
}
.b1 { width: 55vmax; height: 55vmax; background: var(--violet);  top: -20%; left: -15%; animation: drift1 30s ease-in-out infinite; }
.b2 { width: 45vmax; height: 45vmax; background: var(--cyan);    top: 10%; right: -20%; animation: drift2 34s ease-in-out infinite; }
.b3 { width: 40vmax; height: 40vmax; background: var(--magenta); bottom: -20%; left: 10%; animation: drift3 40s ease-in-out infinite; opacity: .4; }
.b4 { width: 30vmax; height: 30vmax; background: var(--amber);   bottom: 10%; right: 20%; animation: drift1 46s ease-in-out infinite reverse; opacity: .3; }
[data-theme="light"] .blob { opacity: .35; filter: blur(110px); }

@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(6vw,4vh)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-8vw,6vh)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(5vw,-5vh)} }

.grain {
  position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); opacity: .5; mix-blend-mode: overlay;
}

/* Cursor glow */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 500px; height: 500px;
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(circle, rgba(124,92,255,.20), transparent 60%);
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 8px; left: 50%; transform: translateX(-50%);
  width: min(90vw, 320px); height: 4px; border-radius: 999px;
  z-index: 60; padding: 0; overflow: hidden;
}
.scroll-progress span {
  display: block; width: 0%; height: 100%;
  background: var(--grad); transition: width .1s linear;
}

/* =========================================================================
   Glass — the recipe every panel uses
   ========================================================================= */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-top),
    inset 0 -1px 0 var(--glass-bot);
  overflow: hidden;
  isolation: isolate;
}
/* microtexture + cursor sheen */
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  filter: url(#grain); opacity: .35; mix-blend-mode: overlay;
  z-index: 0;
}
.glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(
    240px circle at var(--mx, -100px) var(--my, -100px),
    rgba(255,255,255,.18),
    transparent 60%
  );
  transition: background .2s;
  z-index: 0;
}
.glass > * { position: relative; z-index: 1; }

/* Hover-lift on interactive glass */
.tile, .step, .qa, .row, .stat, .btn, .badges li, .theme-toggle {
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.tile:hover, .step:hover, .stat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.28);
  box-shadow:
    0 20px 50px rgba(0,0,0,.45),
    inset 0 1px 0 var(--glass-top),
    inset 0 -1px 0 var(--glass-bot);
}
[data-theme="light"] .tile:hover,
[data-theme="light"] .step:hover,
[data-theme="light"] .stat:hover {
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 20px 40px rgba(15,23,42,.14),
    inset 0 1px 0 var(--glass-top);
}

/* =========================================================================
   Layout
   ========================================================================= */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px 24px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .75rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 12px;
}
.sub { color: var(--ink-dim); font-size: 1.05rem; margin-top: 14px; }

/* =========================================================================
   Nav
   ========================================================================= */
.nav {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px;
  pointer-events: none;
}
.nav-inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 14px 10px 18px;
  width: min(1100px, 100%);
  border-radius: 999px;
  transition: box-shadow .3s, border-color .3s, background .3s, transform .3s;
}
.nav.scrolled .nav-inner {
  box-shadow: 0 20px 40px rgba(0,0,0,.4), inset 0 1px 0 var(--glass-top);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: #000; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 10px rgba(0,0,0,.4);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--ink-dim); font-size: .92rem; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  position: relative; width: 60px; height: 30px; border-radius: 999px;
  padding: 0; cursor: pointer; border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px; color: var(--ink-dim);
}
.theme-toggle .thumb {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 2px 6px rgba(0,0,0,.4);
  transition: transform .3s var(--ease);
}
[data-theme="light"] .theme-toggle .thumb { transform: translateX(30px); }
.theme-toggle .ico { position: relative; z-index: 1; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: .92rem; color: var(--ink);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  will-change: transform;
}
.btn-primary {
  background:
    linear-gradient(135deg, rgba(124,92,255,.6), rgba(34,211,238,.5)),
    var(--glass-bg);
  color: white;
  border-color: rgba(255,255,255,.25);
}
[data-theme="light"] .btn-primary { color: #000; }
.btn-ghost { color: var(--ink); }
.btn:hover { transform: translateY(-2px); }

/* Rotating gradient glow border */
.glow-border { position: relative; }
.glow-border::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 999px;
  background: conic-gradient(from 0deg, var(--violet), var(--cyan), var(--magenta), var(--violet));
  animation: spin 8s linear infinite;
  filter: blur(6px); opacity: .6;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  max-width: 1180px; margin: 0 auto; padding: 160px 24px 60px;
}
.display {
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  font-weight: 800; letter-spacing: -0.045em;
}
.display span { display: inline-block; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-dim); max-width: 560px; margin-top: 20px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.badges li { font-size: .78rem; padding: 6px 12px; border-radius: 999px; color: var(--ink-dim); }

/* hero visual */
.hero-visual {
  position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
}
.hero-icon { width: 260px; height: 260px; }
.hero-icon-inner {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  border-radius: 48px;
  background:
    radial-gradient(circle at 30% 25%, rgba(124,92,255,.5), transparent 60%),
    radial-gradient(circle at 75% 80%, rgba(34,211,238,.4), transparent 60%),
    linear-gradient(135deg, #0a0a12, #000);
  box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 2px 0 rgba(255,255,255,.15);
  animation: float 6s ease-in-out infinite;
}
.hero-icon-img {
  width: 130%; height: 130%; object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.55));
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

.ripple {
  position: absolute; border-radius: 50%; border: 1px solid rgba(124,92,255,.4);
  animation: ripple 4s ease-out infinite;
}
.r1 { width: 300px; height: 300px; }
.r2 { width: 300px; height: 300px; animation-delay: 1.3s; border-color: rgba(34,211,238,.4); }
.r3 { width: 300px; height: 300px; animation-delay: 2.6s; border-color: rgba(232,121,249,.4); }
@keyframes ripple { 0%{transform:scale(.6); opacity:.8} 100%{transform:scale(2); opacity:0} }

/* =========================================================================
   Demo console
   ========================================================================= */
.console { padding: 22px; }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.master { display: flex; align-items: center; gap: 12px; }
.master label { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--ink-dim); }
.viz { width: 100%; display: block; border-radius: 14px; margin-bottom: 16px; background: rgba(0,0,0,.25); }
[data-theme="light"] .viz { background: rgba(15,23,42,.05); }

.rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.row { padding: 16px; border-radius: 16px; }
.row-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.row-head b { font-size: .95rem; }
.row-head small { color: var(--ink-mute); font-size: .8rem; margin-left: 4px; }
.row-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.row.hot .dot { background: var(--cyan); box-shadow: 0 0 20px var(--cyan); }
.row-ctl { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.row select, .row input[type="range"] {
  background: rgba(255,255,255,.08); color: var(--ink);
  border: 1px solid var(--glass-border); border-radius: 8px; padding: 6px 8px;
  font: inherit; font-size: .85rem;
}
[data-theme="light"] .row select { background: rgba(255,255,255,.7); }
.row input[type="range"] { padding: 0; }
.type-field { width: 100%; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--glass-border); background: rgba(0,0,0,.2); color: var(--ink); border-radius: 10px; font: inherit; }
[data-theme="light"] .type-field { background: rgba(255,255,255,.6); }

.drag-track { position: relative; height: 68px; margin-top: 12px; padding: 6px; border-radius: 12px; background: rgba(0,0,0,.2); }
.puck {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: white; cursor: grab; user-select: none;
  box-shadow: 0 8px 20px rgba(124,92,255,.4);
  font-size: 1.4rem;
}
.puck:active { cursor: grabbing; }

.swipe-pad {
  height: 68px; margin-top: 12px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-mute); cursor: ew-resize; user-select: none;
  background: rgba(0,0,0,.2);
}

/* =========================================================================
   Features grid
   ========================================================================= */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { padding: 26px; border-radius: 18px; }
.tile-ico {
  width: 76px; height: 76px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent, var(--violet));
  background: radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent, var(--violet)) 40%, transparent), transparent 70%);
  margin-bottom: 18px;
  border: 1px solid var(--glass-border);
  transition: transform .4s var(--ease);
}
.tile:hover .tile-ico { transform: scale(1.06) rotate(-3deg); }
.tile p { font-size: .92rem; margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stat { padding: 22px; text-align: center; border-radius: 16px; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--ink-mute); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; }

.note { margin-top: 36px; padding: 22px 26px; border-radius: 16px; }
.note b { display: block; margin-bottom: 6px; }

/* =========================================================================
   Privacy
   ========================================================================= */
.privacy {
  display: grid; grid-template-columns: 240px 1fr; gap: 40px;
  padding: 40px; align-items: center;
}
.privacy-visual { display: flex; justify-content: center; }
.privacy .draw path, .privacy .draw line, .privacy .draw polygon {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
  transition: stroke-dashoffset 2s ease;
}
.privacy.in-view .draw path, .privacy.in-view .draw line, .privacy.in-view .draw polygon {
  stroke-dashoffset: 0;
}
.p-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.p-cols b { display: block; font-size: .95rem; margin-bottom: 4px; }
.p-cols p { font-size: .88rem; }
.fineprint { margin-top: 18px; font-size: .82rem; color: var(--ink-mute); }

.mas { margin-top: 24px; padding: 24px 28px; border-radius: 16px; }

/* =========================================================================
   Install steps
   ========================================================================= */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.step { padding: 22px 24px; border-radius: 16px; display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; }
.num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: white; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(124,92,255,.4);
}
.step ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-dim); }
.warn { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; border-color: rgba(245,158,11,.4); }
.warn b { color: var(--amber); }

.ss-frame { margin-top: 16px; border-radius: 14px; overflow: hidden; transform: perspective(1000px) rotateX(4deg) rotateY(-6deg); transform-origin: center; }
.ss-title { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: .85rem; color: var(--ink-dim); border-bottom: 1px solid var(--glass-border); }
.ss-title span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.ss-title span:first-child { background: #FF5F57; }
.ss-title span:nth-child(2) { background: #FEBC2E; }
.ss-title span:nth-child(3) { background: #28C840; }
.ss-body { padding: 14px 16px; }
.ss-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; margin-bottom: 6px; }
.ss-row.hi { background: rgba(124,92,255,.15); box-shadow: 0 0 0 1px rgba(124,92,255,.3); }
.toggle { width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; }
.toggle.on { background: #34C759; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: white; }
.toggle.on::after { left: 18px; }
.ss-hint { font-size: .75rem; color: var(--ink-mute); margin-top: 10px; font-style: italic; }

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.qa { padding: 0; border-radius: 14px; }
.qa summary {
  list-style: none; cursor: pointer;
  padding: 18px 22px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 1rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa .chev { transition: transform .3s; opacity: .6; font-size: 1.4rem; }
.qa[open] .chev { transform: rotate(90deg); }
.qa[open] { border-color: rgba(255,255,255,.24); }
.qa p { padding: 0 22px 20px; color: var(--ink-dim); margin: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { padding: 80px 24px 40px; max-width: 1180px; margin: 0 auto; }
.foot { padding: 32px; border-radius: 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; align-items: start; }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-brand b { font-size: 1.1rem; }
.foot-brand p { font-size: .85rem; margin: 4px 0 0; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--ink-dim); }
.foot-links a:hover { color: var(--ink); }
.foot-meta { font-size: .8rem; color: var(--ink-mute); }
.foot-meta p { margin: 0 0 4px; color: var(--ink-mute); }

/* =========================================================================
   Reveal animation
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.display span { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.display.in-view span:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.display.in-view span:nth-child(2) { opacity: 1; transform: none; transition-delay: .2s; }
.display.in-view span:nth-child(3) { opacity: 1; transform: none; transition-delay: .35s; }

/* Row pulse when triggered */
@keyframes rowPulse { 0%{box-shadow: 0 0 0 0 rgba(34,211,238,.5)} 100%{box-shadow: 0 0 0 12px rgba(34,211,238,0)} }
.row.hot { animation: rowPulse .5s ease-out; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 140px; text-align: center; }
  .hero-cta { justify-content: center; }
  .badges { justify-content: center; }
  .hero-visual { order: -1; height: 300px; aspect-ratio: auto; }
  .hero-icon { width: 200px; height: 200px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .rows { grid-template-columns: 1fr; }
  .privacy { grid-template-columns: 1fr; padding: 28px; }
  .p-cols { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .section { padding: 80px 20px; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .display { font-size: 2.6rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: opacity .3s ease !important; }
  .reveal { transform: none; }
  .blob { display: none; }
  .cursor-glow { display: none; }
}

/* Focus rings */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* =========================================================================
   V2 — Premium animated background, futuristic inputs, install upgrade
   ========================================================================= */

/* --- Animated GIF plasma background (replaces static blobs as primary) --- */
.bg-gif {
  position: absolute; inset: -8%;
  width: 116%; height: 116%;
  object-fit: cover;
  filter: saturate(1.15) blur(2px) brightness(.9);
  opacity: .85;
  transform: scale(1.05);
  animation: bgPan 40s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
[data-theme="light"] .bg-gif { opacity: .55; filter: saturate(1.1) blur(6px) brightness(1.15); }
@keyframes bgPan {
  0%   { transform: scale(1.05) translate3d(0,0,0); }
  50%  { transform: scale(1.12) translate3d(-2%, -1%,0); }
  100% { transform: scale(1.08) translate3d(1%, 2%, 0); }
}
.bg-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(8,8,14,.35) 55%, rgba(8,8,14,.9) 100%),
    linear-gradient(180deg, rgba(8,8,14,.15), rgba(8,8,14,.55));
  pointer-events: none;
}
[data-theme="light"] .bg-veil {
  background:
    radial-gradient(ellipse at 50% 0%, transparent 0%, rgba(244,245,250,.4) 55%, rgba(244,245,250,.92) 100%),
    linear-gradient(180deg, rgba(244,245,250,.25), rgba(244,245,250,.6));
}
/* keep blobs but softer — they parallax on top of the gif */
.blob { opacity: .28 !important; mix-blend-mode: screen; }
[data-theme="light"] .blob { mix-blend-mode: multiply; opacity: .18 !important; }

/* Twinkling stars overlay */
.stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.9), transparent 60%),
    radial-gradient(1px 1px at 78% 34%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 44% 66%, rgba(167,243,255,.9), transparent 60%),
    radial-gradient(1px 1px at 88% 78%, rgba(232,121,249,.8), transparent 60%),
    radial-gradient(1px 1px at 30% 88%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 62% 12%, rgba(255,255,255,.9), transparent 60%);
  animation: twinkle 5s ease-in-out infinite alternate;
  opacity: .8;
}
@keyframes twinkle { 0%{opacity:.35} 100%{opacity:.9} }
[data-theme="light"] .stars { display:none; }

/* --- Extra glass polish everywhere --- */
.glass { backdrop-filter: blur(calc(var(--blur) + 6px)) saturate(200%); }
.nav-inner {
  background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border-color: rgba(255,255,255,.20);
}
[data-theme="light"] .nav-inner {
  background: linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.4));
}

/* --- Futuristic range input --- */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 140px; height: 22px; background: transparent; cursor: pointer;
  padding: 0 !important; border: 0 !important;
  --rng: 60%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background:
    linear-gradient(90deg, var(--violet) 0%, var(--cyan) var(--rng), rgba(255,255,255,.10) var(--rng), rgba(255,255,255,.08) 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 0 12px rgba(124,92,255,.25);
}
input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
}
input[type="range"]::-moz-range-progress {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(34,211,238,.5);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #d9d9ff 40%, #7C5CFF 100%);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 3px rgba(124,92,255,.25), 0 4px 14px rgba(34,211,238,.55), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .15s ease, box-shadow .2s ease;
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6);
  background: radial-gradient(circle at 30% 30%, #fff, #d9d9ff 40%, #7C5CFF 100%);
  box-shadow: 0 0 0 3px rgba(124,92,255,.25), 0 4px 14px rgba(34,211,238,.55);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(34,211,238,.28), 0 6px 20px rgba(34,211,238,.6); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.25); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(34,211,238,.35), 0 6px 20px rgba(34,211,238,.7); }
[data-theme="light"] input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--violet) 0%, var(--cyan) var(--rng), rgba(15,23,42,.10) var(--rng), rgba(15,23,42,.08) 100%); }

/* --- Futuristic select --- */
.row select, select {
  -webkit-appearance: none; appearance: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    rgba(0,0,0,.35);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  padding: 7px 30px 7px 12px;
  font: inherit; font-size: .85rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(-45deg, transparent 50%, var(--cyan) 50%);
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 10px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: box-shadow .2s, border-color .2s;
}
.row select:hover, select:hover { border-color: rgba(34,211,238,.55); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.row select:focus-visible, select:focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.25); outline: none; }
.row select option, select option { background: #0a0a12; color: #fff; }
[data-theme="light"] .row select, [data-theme="light"] select { background-color: rgba(255,255,255,.75); }

/* --- Buttons (sound on state) --- */
.btn.is-on { background: linear-gradient(135deg, rgba(34,211,238,.6), rgba(124,92,255,.5)); }
.btn .btn-label { display: inline-block; }
.btn:hover .ico-speaker { animation: pulseIco .8s ease-in-out infinite; }
@keyframes pulseIco { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15)} }

/* --- Drag puck upgrade --- */
.drag-track { overflow: hidden; }
.drag-rail {
  position: absolute; inset: 50% 12px auto 12px; height: 2px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.drag-rail::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  filter: blur(4px); opacity: .6;
  animation: railFlow 3s linear infinite;
}
@keyframes railFlow { 0%{transform:translateX(-40%)} 100%{transform:translateX(40%)} }
.puck { color:#fff; }
.puck svg { transition: transform .3s var(--ease); }
.puck:hover svg { transform: rotate(15deg); }

/* --- Swipe pad --- */
.swipe-pad { gap: 10px; color: var(--ink-dim); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; }
.swipe-pad svg { color: var(--cyan); animation: swipeHint 2.4s ease-in-out infinite; }
.swipe-pad svg:last-child { animation-delay: 1.2s; }
@keyframes swipeHint { 0%,100%{transform:translateX(0);opacity:.5} 50%{transform:translateX(6px);opacity:1} }

/* --- Feature tiles: shimmer sweep --- */
.tile::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
  z-index: 0;
}
.tile:hover::before { transform: translateX(120%); }
.tile:hover { border-color: color-mix(in oklab, var(--accent, var(--violet)) 50%, transparent); }

/* --- Reveal: stagger children --- */
.reveal.stagger > * { opacity:0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.stagger.in-view > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
.reveal.stagger.in-view > *:nth-child(2) { opacity:1; transform:none; transition-delay:.15s; }
.reveal.stagger.in-view > *:nth-child(3) { opacity:1; transform:none; transition-delay:.25s; }
.reveal.stagger.in-view > *:nth-child(4) { opacity:1; transform:none; transition-delay:.35s; }
.reveal.stagger.in-view > *:nth-child(5) { opacity:1; transform:none; transition-delay:.45s; }
.reveal.stagger.in-view > *:nth-child(6) { opacity:1; transform:none; transition-delay:.55s; }

/* Directional reveals */
.reveal.from-left  { transform: translateX(-28px); }
.reveal.from-right { transform: translateX(28px); }
.reveal.in-view.from-left, .reveal.in-view.from-right { transform: none; }

/* Scale reveal for tiles */
.tile.reveal { transform: translateY(30px) scale(.96); }
.tile.reveal.in-view { transform: none; }

/* --- Install: timeline + rebuild --- */
.steps-timeline { position: relative; gap: 22px; }
.steps-timeline::before {
  content:""; position: absolute; left: 34px; top: 20px; bottom: 20px; width: 2px;
  background: linear-gradient(180deg, transparent, var(--violet), var(--cyan), var(--magenta), transparent);
  filter: blur(.5px);
  opacity: .55;
  border-radius: 2px;
}
.steps-timeline::after {
  content:""; position: absolute; left: 33px; top: 20px; width: 4px; height: 60px;
  background: linear-gradient(180deg, rgba(255,255,255,.9), transparent);
  filter: blur(2px); border-radius: 4px;
  animation: timelineFlow 4s ease-in-out infinite;
}
@keyframes timelineFlow { 0%{top:20px;opacity:0} 20%{opacity:1} 100%{top:calc(100% - 80px);opacity:0} }

.step {
  padding: 26px 28px !important;
  display: block !important;
  position: relative;
}
.step .step-head {
  display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start;
}
.step .step-head h3 { font-size: 1.25rem; }
.step .step-head p { margin: 4px 0 0; }
.step .step-body { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

.num {
  width: 52px !important; height: 52px !important; border-radius: 16px !important;
  background: conic-gradient(from 180deg, var(--violet), var(--cyan), var(--magenta), var(--violet)) !important;
  padding: 2px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(124,92,255,.45), 0 0 0 1px rgba(255,255,255,.15) inset;
  animation: numSpin 6s linear infinite;
  position: relative;
}
@keyframes numSpin { to { filter: hue-rotate(360deg); } }
.num-inner {
  width: 100%; height: 100%; border-radius: 14px;
  background: rgba(10,10,18,.85);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .num-inner { background: rgba(255,255,255,.85); color: #0F172A; }

.step-meta { list-style:none; padding:0; margin:0; display:flex; gap:8px; flex-wrap:wrap; }
.chip {
  display:inline-block; padding: 5px 10px; border-radius:999px;
  font-size:.72rem; letter-spacing:.14em; text-transform:uppercase;
  color: var(--ink-dim);
}

.step-figure { margin: 20px 0 0; border-radius: 16px; overflow: hidden; position: relative;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.15); }
.step-figure img { display:block; width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.step-figure:hover img { transform: scale(1.04); }
.step-figure figcaption {
  position:absolute; left:14px; bottom:12px; padding: 6px 12px; border-radius: 999px;
  font-size:.78rem; color:#fff;
  background: rgba(10,10,18,.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
}
.step-figure-tall img { max-height: 460px; object-fit: cover; }

.step-badge {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(34,211,238,.18), rgba(124,92,255,.14));
  border: 1px solid rgba(34,211,238,.35);
}
.step-badge svg { color: var(--cyan); }

.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.perm { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; }
.perm b { display:block; margin-bottom: 3px; }
.perm p { margin: 0; font-size: .88rem; }
.perm-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px;
  display:flex; align-items:center; justify-content:center;
  color: var(--cyan);
  background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.4), transparent 70%);
  border: 1px solid rgba(34,211,238,.3);
}
.perm-hi .perm-ico { color: var(--violet);
  background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.4), transparent 70%);
  border-color: rgba(124,92,255,.35); }
.perm-hi { box-shadow: 0 0 0 1px rgba(124,92,255,.35), 0 20px 40px rgba(124,92,255,.15); }

.warn {
  margin-top: 14px; display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: 12px; font-size: .9rem;
  border: 1px solid rgba(245,158,11,.4);
  background: linear-gradient(135deg, rgba(245,158,11,.14), rgba(245,158,11,.04));
}
.warn svg { color: var(--amber); flex: 0 0 auto; margin-top: 2px; }
.warn b { color: var(--amber); }

.ss-shot {
  margin-top: 20px; padding: 0; border-radius: 16px; overflow: hidden; position: relative;
  transform: perspective(1400px) rotateX(3deg) rotateY(-4deg);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12);
}
.ss-shot:hover { transform: perspective(1400px) rotateX(0deg) rotateY(0deg); box-shadow: 0 50px 100px rgba(124,92,255,.28); }
.ss-shot img { display:block; width:100%; height:auto; }
.ss-pin {
  position:absolute; display:inline-flex; align-items:center; gap:8px;
  padding: 6px 12px; border-radius:999px; font-size:.75rem; color:#fff;
  background: rgba(10,10,18,.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  animation: pinFloat 3s ease-in-out infinite;
}
.ss-pin i { width:8px; height:8px; border-radius:50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34,211,238,.25), 0 0 12px var(--cyan); animation: pinPulse 1.6s ease-out infinite; }
.ss-pin-1 { top: 14%; left: 26%; }
.ss-pin-2 { top: 44%; left: 42%; }
.ss-pin-2 i { background: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.25), 0 0 12px var(--violet); }
@keyframes pinPulse { 0%{box-shadow: 0 0 0 0 rgba(34,211,238,.5), 0 0 12px var(--cyan)} 100%{box-shadow: 0 0 0 12px rgba(34,211,238,0), 0 0 12px var(--cyan)} }
@keyframes pinFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

/* Increase whole-step hover lift */
.step:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.28); }

/* --- Nav polish on scroll --- */
.nav.scrolled .nav-inner { background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.06)); }

/* --- Section entry: subtle glow underlay for glass panels --- */
.tile, .step, .stat, .qa, .privacy, .mas, .note, .console { position: relative; }
.tile::after, .step::after, .stat::after {
  /* keep existing sheen, but boost with a soft outer gradient */
  box-shadow: inherit;
}

/* Nice link underline on nav */
.nav-links a { position: relative; }
.nav-links a::after {
  content:""; position:absolute; left:0; right:0; bottom:-6px; height:2px;
  background: var(--grad); border-radius:2px;
  transform: scaleX(0); transform-origin: right center;
  transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left center; }

/* Responsive tweaks for the rebuilt install */
@media (max-width: 900px) {
  .steps-timeline::before, .steps-timeline::after { display: none; }
  .step .step-head { grid-template-columns: 48px 1fr; gap: 14px; }
  .perm-grid { grid-template-columns: 1fr; }
  .ss-pin { display: none; }
  .ss-shot { transform: none; }
}

/* Reduced motion additions */
@media (prefers-reduced-motion: reduce) {
  .bg-gif { animation: none; }
  .stars { animation: none; }
  .num { animation: none; }
}