/* ============================================
   NeuroVolt — animejs.com inspired layout
   Stark, generous whitespace, bento grid demos
   ============================================ */
:root {
  --bg-0: #0b0d12;
  --bg-1: #11141c;
  --bg-2: #161a24;
  --ink-0: #f4f6fb;
  --ink-1: #b9c0d0;
  --ink-2: #6e7791;
  --ink-3: #3a4156;
  --accent: #22c55e;
  --accent-2: #a3ffce;
  --accent-3: #38bdf8;
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.14);
  --card: #0f131c;

  --font-display: "Inter Tight", "Space Grotesk", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

body {
  background-image:
    radial-gradient(circle at 20% 0%, rgba(34,197,94,0.06), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(56,189,248,0.04), transparent 50%);
}

/* dotted grid background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--bg-0); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(56px, 9vw, 144px); font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 5vw, 72px); }
h3 { font-size: clamp(20px, 1.6vw, 26px); font-weight: 500; }
p { color: var(--ink-1); line-height: 1.55; }

.mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink-2); }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ============ NAV ============ */
.nv-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11,13,18,0.7);
  border-bottom: 1px solid var(--line);
}
.nv-nav__logo { display: flex; align-items: center; gap: 10px; }
.nv-nav__logo img { height: 30px; filter: drop-shadow(0 0 8px rgba(34,197,94,0.4)); }
.nv-nav__logo strong { font-size: 15px; letter-spacing: -0.01em; font-weight: 600; }
.nv-nav__logo .tag { font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 100px; }
.nv-nav__links { display: flex; gap: 8px; align-items: center; }
.nv-nav__links a { font-size: 13px; }
.nv-nav__cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono); font-size: 12px; padding: 9px 16px;
  border-radius: 100px;
}

/* ============ HERO ============ */
.hero {
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero__logo { justify-content: center; }
}
.hero__copy { position: relative; z-index: 2; }
.hero__logo {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 36px; opacity: 0;
}
.hero__logo img { height: 60px; filter: drop-shadow(0 0 20px rgba(34,197,94,0.4)); }
.hero__logo-text { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.hero__version { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 100px; }

.hero h1 { margin-bottom: 28px; }
.hero h1 .word { display: inline-block; opacity: 0; }
.hero h1 .accent { color: var(--accent); }

.hero__sub { font-size: 20px; color: var(--ink-1); max-width: 580px; margin: 0 0 48px; }
.hero__sub .line { display: block; opacity: 0; }

.hero__install {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; font-family: var(--font-mono); font-size: 14px;
  margin-bottom: 16px; opacity: 0;
}
.hero__install .prompt { color: var(--ink-2); }
.hero__install .cmd { color: var(--ink-0); }
.hero__install .copy { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 11px; color: var(--ink-2); cursor: none; transition: all 0.2s; }
.hero__install .copy:hover { color: var(--accent); border-color: var(--accent); }

.hero__cta {
  display: flex; gap: 12px; justify-content: flex-start; opacity: 0;
}
@media (max-width: 960px) { .hero__cta { justify-content: center; } }
.hero__cta a {
  padding: 14px 24px; border-radius: 100px; font-size: 14px;
  font-weight: 500;
}

/* ============ CPU DIAL ============ */
.cpu-stage {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  filter: drop-shadow(0 0 60px rgba(34,197,94,0.15));
}
.cpu-svg { width: 100%; height: 100%; display: block; }
.cpu-arcs path { transition: stroke-dashoffset 0.3s; }
.cpu-ticks line { stroke: rgba(34,197,94,0.6); stroke-width: 1; }
.cpu-ticks line.cpu-tick--major { stroke: #22c55e; stroke-width: 2; }
.cpu-pins rect { fill: #22c55e; opacity: 0.85; }
@keyframes cpuCorePulse {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
#cpu-core {
  transform-origin: 0 0;
  transform-box: fill-box;
  animation: cpuCorePulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #22c55e);
}
@keyframes cpuChipFloat {
  0%, 100% { transform: translate(300px, 300px) rotate(0deg); }
  50%      { transform: translate(300px, 300px) rotate(0.5deg); }
}

/* hero animated bg shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.hero-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-square { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--accent-3); }
.hero-tri { position: absolute; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--accent-2); opacity: 0.7; }

/* ============ SECTION INTRO ============ */
.section-intro {
  text-align: center;
  padding: 120px 0 60px;
}
.section-intro .eyebrow {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  letter-spacing: 0.05em; margin-bottom: 24px;
}
.section-intro h2 { max-width: 720px; margin: 0 auto; }
.section-intro p { max-width: 560px; margin: 24px auto 0; font-size: 18px; }

/* ============ BENTO GRID OF FEATURES ============ */
.bento {
  padding: 40px 0 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 360px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.feature:hover { border-color: var(--line-2); }
.feature__demo {
  flex: 1;
  margin: -8px -8px 24px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.feature__title {
  font-size: 22px; font-weight: 600; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature__desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* feature spans */
.feature--wide { grid-column: span 2; }
@media (max-width: 960px) { .feature--wide { grid-column: span 2; } }
@media (max-width: 640px) { .feature--wide { grid-column: span 1; } }

/* ============ SERVICES (re-imagined as anime-style cards with live demos) ============ */
.services-section { padding: 80px 0 120px; }

/* Service demo specifics */
.demo-bolt-svg { width: 80%; height: 80%; }
.demo-bolt-svg path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.demo-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; padding: 24px; width: 100%; height: 100%; align-items: center; justify-items: center; }
.demo-grid .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

.demo-circuit { position: absolute; inset: 0; }
.demo-circuit svg { width: 100%; height: 100%; }
.demo-circuit path { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.demo-circuit .node { fill: var(--accent-2); }

.demo-shapes { position: absolute; inset: 0; }
.demo-shapes .shape { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.demo-shapes .s-circle { width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent); }
.demo-shapes .s-square { width: 60px; height: 60px; border: 2px solid var(--accent-3); }
.demo-shapes .s-triangle { width: 0; height: 0; border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid var(--accent-2); opacity: 0.7; }

.demo-counter { font-family: var(--font-mono); font-size: 64px; font-weight: 600; color: var(--accent); letter-spacing: -0.04em; }
.demo-counter sup { font-size: 0.4em; color: var(--ink-2); margin-left: 4px; font-weight: 500; }

.demo-spark { position: absolute; inset: 0; }
.demo-spark svg { width: 100%; height: 100%; }

/* ============ CODE BLOCK ============ */
.code-block {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-1);
  white-space: pre;
  overflow-x: auto;
}
.code-block .k { color: #c084fc; }      /* keyword */
.code-block .s { color: var(--accent-2); } /* string */
.code-block .n { color: #fde68a; }       /* number */
.code-block .c { color: var(--ink-3); }  /* comment */
.code-block .f { color: var(--accent-3); } /* function */

/* ============ STATS strip ============ */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 80px 0;
}
@media (max-width: 720px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 36px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat__num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; }
.stat__num sup { font-size: 0.4em; color: var(--accent); margin-left: 4px; font-weight: 500; }
.stat__label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 8px; letter-spacing: 0.04em; }

/* ============ PROCESS ============ */
.process { padding: 100px 0; }
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 60px; }
@media (max-width: 720px) { .process-steps { grid-template-columns: 1fr; } }
.pstep { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.pstep__num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.06em; }
.pstep__bar { height: 1px; background: linear-gradient(to right, var(--accent), transparent); margin: 14px 0 16px; }
.pstep h4 { font-size: 18px; margin-bottom: 8px; }
.pstep p { font-size: 13px; color: var(--ink-2); }

/* ============ TESTIMONIALS ============ */
.testimonials { padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
@media (max-width: 720px) { .testimonials-grid { grid-template-columns: 1fr; } }
.tcard { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.tcard blockquote { font-size: 15px; line-height: 1.55; margin-bottom: 24px; color: var(--ink-0); }
.tcard figcaption { padding-top: 18px; border-top: 1px solid var(--line); }
.tcard strong { display: block; font-size: 14px; }
.tcard span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 4px; display: block; }

/* ============ CTA ============ */
.cta-section { padding: 140px 0; text-align: center; }
.cta-section .install-block {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; font-family: var(--font-mono); font-size: 14px;
  margin: 32px auto 0;
}

/* ============ FOOTER ============ */
.nv-footer { border-top: 1px solid var(--line); padding: 60px 0 32px; }
.nv-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 720px) { .nv-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.nv-footer__brand img { height: 40px; margin-bottom: 14px; }
.nv-footer__brand p { font-size: 13px; max-width: 280px; color: var(--ink-2); }
.nv-footer__col h4 { font-size: 11px; font-family: var(--font-mono); color: var(--ink-2); letter-spacing: 0.06em; margin-bottom: 14px; }
.nv-footer__col a { display: block; padding: 5px 0; font-size: 13px; color: var(--ink-1); transition: color 0.2s; }
.nv-footer__col a:hover { color: var(--accent); }
.nv-footer__bottom {
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
}

/* ============ INTRO OVERLAY (kept) ============ */
#nv-intro { position: fixed; inset: 0; z-index: 9999; background: #000; }
#nv-intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#nv-intro .intro-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
#nv-intro .intro-glyph .mono { font-family: var(--font-mono); color: rgba(255,255,255,0.4); font-size: 11px; letter-spacing: 0.4em; opacity: 0; transition: opacity 0.6s; }
#nv-intro.show-mono .mono { opacity: 1; }
#nv-intro.fade-out { opacity: 0; transition: opacity 0.8s ease; pointer-events: none; }

/* cursor */
#nv-cursor-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 9000; mix-blend-mode: screen; }
.nv-cursor-dot {
  position: fixed; width: 8px; height: 8px; background: var(--accent);
  border-radius: 50%; pointer-events: none; z-index: 9001;
  transform: translate(-50%, -50%); box-shadow: 0 0 12px var(--accent);
  transition: width 0.2s, height 0.2s, background 0.2s; mix-blend-mode: screen;
}
.nv-cursor-dot.hover { width: 36px; height: 36px; background: rgba(34,197,94,0.2); border: 1px solid var(--accent); box-shadow: 0 0 24px var(--accent); }

/* tweaks panel */
#nv-tweaks { position: fixed; bottom: 24px; right: 24px; z-index: 8000; width: 280px; background: rgba(11,13,18,0.92); backdrop-filter: blur(20px); border: 1px solid var(--line-2); border-radius: 16px; padding: 20px; display: none; font-size: 12px; }
#nv-tweaks.show { display: block; }
#nv-tweaks h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 16px; }
#nv-tweaks .row { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
#nv-tweaks label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-2); display: flex; justify-content: space-between; }
#nv-tweaks input[type="range"] { width: 100%; -webkit-appearance: none; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
#nv-tweaks input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 0 10px var(--accent); }
#nv-tweaks button { width: 100%; padding: 10px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); border-radius: 8px; color: var(--accent); font-family: var(--font-mono); font-size: 10px; }
#nv-tweaks button:hover { background: rgba(34,197,94,0.2); }
#nv-tweaks .swatches { display: flex; gap: 8px; }
#nv-tweaks .swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s; }
#nv-tweaks .swatch:hover { transform: scale(1.1); }
#nv-tweaks .swatch.selected { border-color: #fff; }
