/* =========================================================================
   VOX — Design tokens
   Matte black canvas, silver structure, white type, blue-white glow used
   only as a highlight accent (never as a fill).
   ========================================================================= */
:root {
  /* Color */
  --black: #08080a;
  --black-soft: #0d0d10;
  --surface: #111114;
  --surface-2: #17171b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --white: #f5f5f7;
  --silver: #b9bac2;
  --silver-dim: #7d7e87;
  --glow: #8fb8ff;
  --glow-soft: rgba(143, 184, 255, 0.35);

  /* Type */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Rhythm */
  --container: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* =========================================================================
   Reset
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--white); }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--black);
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 1.5px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-narrow { max-width: 760px; }

/* =========================================================================
   Loader
   ========================================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
#loader.loaded { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-mark { overflow: visible; margin: 0 auto 18px; }
.loader-wave {
  fill: none;
  stroke: var(--white);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--glow-soft));
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawWave 1.4s var(--ease) forwards .2s;
}
@keyframes drawWave { to { stroke-dashoffset: 0; } }
.loader-text {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--silver-dim);
}
.loader-text span { color: var(--silver); animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.14em;
}
.brand-wave {
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  color: var(--silver);
}
.nav-menu a { position: relative; transition: color .3s var(--ease); }
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--white);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav-menu a:not(.nav-cta):hover { color: var(--white); }
.nav-menu a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--white) !important;
  font-size: 13px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav-cta:hover {
  border-color: var(--glow-soft);
  box-shadow: 0 0 20px -4px var(--glow-soft);
  background: rgba(255,255,255,0.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
}
.nav-toggle span {
  height: 1px;
  width: 100%;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
#gridCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.5;
}
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--silver);
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .7; }
  90% { opacity: .5; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 20px)); opacity: 0; }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(143,184,255,0.06), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.9), transparent 60%),
    linear-gradient(180deg, rgba(8,8,10,0.2), var(--black) 92%);
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 0 24px;
  max-width: 720px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.34em;
  color: var(--silver-dim);
  margin-bottom: 22px;
}
.hero-title { margin-bottom: 6px; }
.hero-title-main {
  display: inline-block;
  font-size: clamp(72px, 16vw, 168px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #c9cbd4 60%, #8b8d97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255,255,255,0.06));
}
.hero-waveform {
  width: min(360px, 70%);
  height: 34px;
  margin: 4px auto 18px;
  overflow: visible;
}
.hero-waveform polyline {
  fill: none;
  stroke: var(--glow);
  stroke-width: 1.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--glow-soft));
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 15.5px;
  color: var(--silver);
  max-width: 480px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.btn-primary {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px rgba(255,255,255,0.35), 0 0 24px -6px var(--glow-soft);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--white);
  background: rgba(255,255,255,0.02);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--glow-soft);
  transform: translateY(-2px);
  box-shadow: 0 0 24px -8px var(--glow-soft);
}

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: .6;
}
.scroll-cue span {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--silver), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }
.scroll-cue p {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--silver-dim);
}

/* =========================================================================
   Reveal animations
   ========================================================================= */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.in, .reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-up { transform: translateY(28px); }

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: 130px 0; position: relative; }
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 14px 0 16px;
  max-width: 640px;
}
.section-lede {
  color: var(--silver);
  font-size: 16px;
  max-width: 520px;
  margin-bottom: 56px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease);
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--glow-soft), transparent 40%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 30px -14px var(--glow-soft);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 26px;
  margin-bottom: 20px;
  filter: grayscale(0.15);
}
.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--silver);
  line-height: 1.65;
}

/* About */
.section-about { background: var(--black-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--silver); font-size: 15.5px; margin-bottom: 16px; }
.about-copy strong { color: var(--white); font-weight: 500; }
.panel-glass {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  backdrop-filter: blur(14px);
  overflow: hidden;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--silver);
  letter-spacing: 0.04em;
}
.panel-row:last-of-type { border-bottom: none; }
.panel-row span:first-child { color: var(--silver-dim); }
.status-dot { color: var(--white); }
.status-dot::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 8px 2px var(--glow-soft);
  margin-right: 8px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.panel-wave {
  width: 100%; height: 40px;
  margin-top: 18px;
  overflow: visible;
}
.panel-wave polyline {
  fill: none; stroke: var(--silver); stroke-width: 1;
  opacity: 0.5;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.stat {
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.015);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff, #9fa1ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-number-static {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #fff, #9fa1ab);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  color: var(--silver-dim);
  text-transform: uppercase;
}

/* FAQ / accordion */
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--white);
  transition: color .3s var(--ease);
}
.accordion-trigger:hover { color: var(--silver); }
.accordion-icon {
  position: relative;
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-left: 20px;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--silver);
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.accordion-icon::before { top: 50%; left: 0; width: 100%; height: 1px; transform: translateY(-50%); }
.accordion-icon::after { left: 50%; top: 0; height: 100%; width: 1px; transform: translateX(-50%); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease);
}
.accordion-panel p {
  padding: 0 4px 24px;
  color: var(--silver);
  font-size: 15px;
  max-width: 620px;
}

/* CTA */
.cta-section { padding-top: 40px; }
.cta-inner {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 80px 40px;
  background: radial-gradient(ellipse at 50% 0%, rgba(143,184,255,0.06), transparent 60%);
}
.cta-inner .section-title { margin: 0 auto 12px; }
.cta-inner p { color: var(--silver); margin-bottom: 30px; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  background: var(--black-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand p { color: var(--silver-dim); font-size: 13.5px; margin-top: 12px; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--silver);
}
.footer-links a { transition: color .3s var(--ease); width: fit-content; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; gap: 14px; align-items: flex-start; justify-content: flex-start; }
.social-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.social-icon svg { fill: var(--silver); transition: fill .3s var(--ease); }
.social-icon:hover { border-color: var(--glow-soft); box-shadow: 0 0 16px -4px var(--glow-soft); transform: translateY(-2px); }
.social-icon:hover svg { fill: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--silver-dim);
  text-align: center;
}

/* =========================================================================
   Legal pages (Terms / Privacy)
   ========================================================================= */
.legal-hero {
  padding: 190px 0 60px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
}
.legal-hero .updated {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--silver-dim);
}
.legal-body { padding: 70px 0 120px; }
.legal-section { margin-bottom: 56px; }
.legal-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.legal-section p, .legal-section li {
  color: var(--silver);
  font-size: 15.5px;
  margin-bottom: 14px;
}
.legal-section ul { padding-left: 20px; list-style: disc; }
.legal-section li { margin-bottom: 10px; }
.legal-section a { color: var(--white); border-bottom: 1px solid var(--line-strong); }
.legal-section a:hover { border-color: var(--glow); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: rgba(10,10,12,0.94);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 90px 0; }
  .cta-inner { padding: 56px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-social { margin-top: 6px; }
}
