/* =========================================================================
   VOLTRYX v6 — AI premium refinements
   3D centerpiece positioning, atmospheric lighting, breathing space,
   typography refinement
   ========================================================================= */

:root {
  /* Deeper, more atmospheric black */
  --bg: #05040a;
  --bg-2: #0c0916;
  --bg-3: #14102a;
}

body { background: var(--bg); }

/* ============================================================
   3D centerpiece canvas
   ============================================================ */
#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Layer order: shader(0) → 3d(1) → particles(2) → content(3) */
#hero-shader   { z-index: 0; }
#hero-3d       { z-index: 1; }
#hero-particles{ z-index: 2; pointer-events: none; }
.hero-inner    { z-index: 3; position: relative; }

/* Hero darkening overlay needs to be above the 3D and shader but below content,
   refined for legibility */
.hero::after {
  z-index: 2;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 0%, rgba(5,4,10,0.55) 60%, rgba(5,4,10,0.92) 100%),
    linear-gradient(180deg, rgba(5,4,10,0.45) 0%, transparent 22%, transparent 75%, var(--bg) 100%);
}

/* ============================================================
   Breathing space — Apple-style negative space
   ============================================================ */
.hero { padding: 200px 0 120px; min-height: 110vh; }
@media (max-width: 700px) { .hero { padding: 140px 0 80px; min-height: 100vh; } }

.section { padding: 180px 0; }
@media (max-width: 700px) { .section { padding: 100px 0; } }

.section-head { margin-bottom: 120px; }
@media (max-width: 700px) { .section-head { margin-bottom: 64px; } }

.hero p.lede { max-width: 580px; margin-bottom: 48px; }
.hero h1 { margin-bottom: 36px; }
.hero-cta { gap: 14px; }
.hero-meta { gap: 36px; margin-top: 32px; }
.hero .mc { margin-top: 120px; }
@media (max-width: 700px) { .hero .mc { margin-top: 80px; } }

/* ============================================================
   Typography refinement — more editorial grotesk
   ============================================================ */
:root {
  --font-display: "Geist", "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Geist", system-ui, sans-serif;
}

body { letter-spacing: -0.005em; }

.hero h1 {
  font-weight: 500;
  letter-spacing: -0.052em;
  font-feature-settings: "ss01" on, "ss02" on;
}
.section-head h2 {
  font-weight: 500;
  letter-spacing: -0.042em;
}
.section-head p { font-size: 18px; line-height: 1.55; }

.eyebrow {
  font-size: 11px;
  padding: 7px 13px;
}
.hero-meta { font-size: 10px; letter-spacing: 0.16em; }

/* ============================================================
   Atmospheric light leaks (top + bottom soft bands)
   ============================================================ */
.atmos {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.atmos::before,
.atmos::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  max-width: 1400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,182,255,0.4) 35%, rgba(224,170,255,0.6) 50%, rgba(200,182,255,0.4) 65%, transparent);
  filter: blur(1px);
  box-shadow: 0 0 60px rgba(200,182,255,0.25);
}
.atmos::before { top: 0; }
.atmos::after  { bottom: 0; }

/* ============================================================
   Card system — refined glassmorphism (no garishness)
   ============================================================ */
.feature,
.layer-card,
.mc-frame,
.cta,
.stats,
.pin-right,
.step {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(20px) saturate(120%);
}
.feature:hover {
  border-color: rgba(200,182,255,0.18);
  background: linear-gradient(180deg, rgba(200,182,255,0.05), rgba(255,255,255,0.015));
}

/* Refined buttons — more weight, better contrast */
.btn {
  padding: 14px 24px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: #ecebf4;
  color: #0c0916;
  box-shadow: 0 8px 30px -10px rgba(255,255,255,0.4);
}
.btn-primary:hover { background: #ffffff; }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

/* Nav: more refined */
.nav-links {
  background: rgba(12, 9, 22, 0.6);
  border-color: rgba(255,255,255,0.06);
}
.nav.is-scrolled {
  background: rgba(5,4,10,0.7);
  border-color: rgba(255,255,255,0.06);
}

/* ============================================================
   Big number cards (dashboard aesthetic — huge numbers, tiny labels)
   ============================================================ */
.stat .num {
  font-weight: 500;
  letter-spacing: -0.045em;
  font-size: clamp(48px, 6vw, 84px);
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,0.5));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat .label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(156, 149, 173, 0.7);
}
.stat { padding: 56px 36px; }

/* ============================================================
   Refined headlines
   ============================================================ */
.cta h2 {
  font-weight: 500;
  letter-spacing: -0.045em;
}

/* Quote / testimonial — more editorial */
.testimonial blockquote {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

/* ============================================================
   Marquee — tighter, more refined
   ============================================================ */
.marquee-track .item.kind-tag {
  font-family: "Geist Mono", "JetBrains Mono", monospace;
  text-transform: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(255,255,255,0.55);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.marquee-track .item.kind-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   Pinned section — refined right panel
   ============================================================ */
.pin-right {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

/* ============================================================
   Slow down some animations for "premium calm"
   ============================================================ */
.bg-mesh .blob { animation-duration: 32s !important; }
.marquee-track { animation-duration: 60s; }

/* ============================================================
   Companion + statusdock — refine to match
   ============================================================ */
.companion {
  background: rgba(12, 9, 22, 0.7);
  border-color: rgba(255,255,255,0.06);
}
.statusdock {
  background: rgba(12, 9, 22, 0.7);
  border-color: rgba(255,255,255,0.06);
}

/* ============================================================
   Mission control: deeper shadow, lighter borders
   ============================================================ */
.mc-frame {
  box-shadow:
    0 60px 140px -30px rgba(124, 58, 237, 0.5),
    0 0 100px -20px rgba(200, 182, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border-color: rgba(255,255,255,0.06);
}
