/*! hero-visualizer.css — styles for the full-bleed hero waterfall.
 * Pairs with hero-visualizer.js. The canvas and control bar are injected into
 * #heroViz; the hero copy lives in .hero-overlay (a frosted, rounded card so
 * text stays readable over the moving lines). */

/* Mount fills the hero, sits behind the copy. No z-index here on purpose:
   position:absolute alone does NOT create a stacking context, so the canvas
   can paint below .hero .container (z-index:1) while the control bar lifts
   above it with its own z-index. */
.hero-viz {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}

.hero-viz-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  pointer-events: none; /* let hero copy + page scroll work normally */
}

/* Blend the black canvas down into the page background beneath the hero. */
.hero-viz::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--bg));
  pointer-events: none;
}

/* ---- control (inside the hero overlay, below the copy) ------------------- */
.hero-viz-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 22px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-viz-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 9px 15px;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hero-viz-btn:hover { border-color: var(--gold-dim); background: rgba(255, 255, 255, 0.09); }

.hero-viz-btn[aria-pressed="true"] {
  background: var(--gold);
  color: var(--bg);
  border-color: transparent;
}

.hero-viz-btn svg { width: 14px; height: 14px; }

@media (max-width: 560px) {
  .hero-viz-controls { margin-top: 18px; }
  .hero-viz-btn { padding: 10px 16px; font-size: 0.82rem; }
}

/* ---- frosted copy overlay ------------------------------------------------ */
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin-inline: auto;
  padding: 40px 44px 38px;
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 34%, transparent);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow:
    0 40px 100px -50px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

@media (max-width: 560px) {
  .hero-overlay { padding: 30px 22px 28px; border-radius: 22px; }
}

/* Browsers without color-mix: fall back to a solid-ish card. */
@supports not (background: color-mix(in srgb, red, blue)) {
  .hero-overlay { background: rgba(10, 10, 14, 0.45); }
}
