/* ============================================================
   SWISS ALPS BACKGROUND — photo + overlay system
   ============================================================ */

html, body { background: transparent !important; }

/* LAYER 0 — photo with ken burns */
#alps-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('alps-bg.jpg');
  background-image: url('alps-bg.webp');
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.5) saturate(0.75);
  animation: alpsKenBurns 30s ease-in-out infinite alternate;
  pointer-events: none;
  will-change: transform;
}
@keyframes alpsKenBurns {
  0%   { transform: scale(1.00) translateX(0px); }
  100% { transform: scale(1.08) translateX(-20px); }
}

/* LAYER 1 — dark gradient + teal wash on top of photo */
#alps-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,4,10,0.25) 0%, rgba(2,4,10,0.65) 100%),
    rgba(112,199,186,0.03);
  pointer-events: none;
}

/* LAYER 2 — SVG snowline */
#alps-snowline {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.alps-snowline-label {
  position: fixed;
  top: 55%;
  right: 4%;
  z-index: 1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.32em;
  color: #70c7ba;
  opacity: 0.5;
  text-shadow: 0 0 10px rgba(112,199,186,0.45);
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* LAYER 3 — shooting stars container */
#alps-shooting {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.alps-shooting-star {
  position: absolute;
  width: 100px;
  height: 1px;
  will-change: transform, opacity;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.9) 30%,
    rgba(112,199,186,0.6) 80%,
    rgba(255,255,255,0) 100%);
  opacity: 0;
  transform: rotate(45deg) translateX(-160px);
  box-shadow: 0 0 4px rgba(255,255,255,0.6), 0 0 12px rgba(112,199,186,0.45);
}
.alps-shooting-star.is-firing {
  animation: alpsShoot 0.6s ease-out forwards;
}
@keyframes alpsShoot {
  0%   { opacity: 0; transform: rotate(45deg) translateX(-160px); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(45deg) translateX(180px); }
}

/* LAYER 4 — content stays above bg */
main, .nav, .footer { position: relative; z-index: 4; }
.nav { z-index: 10; }

/* kaspa-cube.js hidden — Alps photo is the only background */
#stage { opacity: 0 !important; display: none !important; }

/* hero-cube-stage intentionally empty — cubes live on intro screen */
#hero-cube-stage { display: none; }

/* ============================================================
   LOCAL VIGNETTE GLOW — keep photo visible, text readable
   NO BOX BACKGROUNDS, only text-shadow + radial pseudo-elements
   ============================================================ */
h1, h2, h3, h4,
.hero-title, .section-title,
.hero-sub, .section-desc,
.stat-value, .stat-label, .stat-foot,
.node-cell-value, .node-cell-label,
.agent-title, .agent-desc, .agent-tag,
.cd-num, .cd-lbl,
p, .lead {
  text-shadow:
    0 0 40px rgba(0,0,0,1),
    0 0 20px rgba(0,0,0,0.95),
    0 2px 8px rgba(0,0,0,0.9);
}

/* radial vignette behind non-stat clusters */
.node-widget,
.agents-grid,
.countdown,
.countdown-meta,
.news-frame {
  position: relative;
}
.node-widget::before,
.agents-grid::before,
.countdown::before,
.countdown-meta::before,
.news-frame::before {
  content: '';
  position: absolute;
  inset: -8% -6%;
  background: radial-gradient(
    ellipse 60% 50% at center,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0.4) 50%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

/* individual stat / agent cards — light radial vignette only, Alps shows through */
.stat-card, [data-stat], .agent-card, .cm-cell, .node-cell {
  position: relative;
  background: transparent !important;
}
.stat-card::after,
.agent-card::after,
.cm-cell::after,
.node-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at center,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 60%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 768px) {
  #alps-bg {
    background-image: url('alps-bg-mobile.webp');
  }
}

@media (prefers-reduced-motion: reduce) {
  #alps-bg { animation: none; }
  .alps-shooting-star.is-firing { animation: none; }
}
