/* hero.css v3 — dramatic, high-contrast */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
}

/* ── Layered background ──────────────────────────── */
/* Grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,168,67,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,168,67,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse {
  0%,100% { opacity:0.6; }
  50%      { opacity:1; }
}

/* Radial vignette */
.hero-vignette {
  position: absolute; inset:0;
  background:
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(8,8,10,1)    0%, transparent 55%),
    radial-gradient(ellipse 50%  90% at 0%   50%,  rgba(8,8,10,0.85) 0%, transparent 60%),
    radial-gradient(ellipse 50%  90% at 100% 50%,  rgba(8,8,10,0.85) 0%, transparent 60%),
    radial-gradient(ellipse 80%  50% at 50%  0%,   rgba(8,8,10,0.6)  0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
}

/* Scanlines effect */
.hero-scanlines {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 3;
}

/* ── Speedometer canvas ──────────────────────────── */
.hero-gauge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: min(780px, 95vw);
  height: min(780px, 95vw);
  z-index: 1;
}
#gaugeCanvas { width:100%; height:100%; }

/* ── Floating speed number ───────────────────────── */
.hero-speed-display {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
.speed-number {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 500;
  color: rgba(240,201,106,0.12);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}
.speed-unit {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  color: rgba(212,168,67,0.15);
  text-transform: uppercase;
}

/* ── Main content ────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 var(--pad-x) 8vh;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.3rem 0.8rem;
}
.hero-year {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ── Headline — high contrast white ─────────────── */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--ice);         /* pure near-white — max contrast */
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hl-gold {
  color: var(--gold-lt);
  display: block;
}
.hl-thin {
  font-weight: 300;
  font-style: italic;
  color: var(--gold-lt);
  display: block;
  font-size: 0.7em;
}

.hero-sub {
  font-size: clamp(0.88rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--text);         /* E2DDD4 — clearly readable on black */
  line-height: 1.72;
  max-width: 420px;
  margin-bottom: 2.5rem;
}

.hero-ctas { display:flex; gap:1rem; flex-wrap:wrap; }

/* ── Right data panel ────────────────────────────── */
.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
}
.hero-fact {
  background: rgba(15,15,20,0.85);
  border: 1px solid rgba(212,168,67,0.15);
  border-left: 2px solid var(--gold);
  padding: 1rem 1.25rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-med), background var(--t-med);
}
.hero-fact:hover {
  background: rgba(20,20,28,0.95);
  border-color: rgba(212,168,67,0.4);
  border-left-color: var(--gold-bright);
}
.hero-fact::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 30%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.4));
}
.fact-val {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-lt);     /* high contrast gold on dark */
  line-height: 1;
  display: block;
}
.fact-key {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 3px;
  display: block;
}

/* ── Bottom strip ────────────────────────────────── */
.hero-strip {
  position: absolute;
  bottom: 0; left:0; right:0;
  z-index: 6;
  border-top: 1px solid rgba(212,168,67,0.15);
  background: rgba(8,8,10,0.88);
  backdrop-filter: blur(16px);
  padding: 0.9rem var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.strip-item { display:flex; align-items:center; gap:0.5rem; }
.strip-dot { width:4px; height:4px; background:var(--gold); border-radius:50%; flex-shrink:0; }
.strip-item span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.strip-item span b { color: var(--gold-lt); font-weight:500; }

/* ── Scroll cue ──────────────────────────────────── */
.scroll-cue {
  position: absolute;
  right: var(--pad-x);
  bottom: 5.5rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer !important;
}
.scroll-cue-label {
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-faint);
  writing-mode: vertical-rl;
}
.scroll-track { width:1px; height:48px; background:rgba(212,168,67,0.12); position:relative; overflow:hidden; }
.scroll-thumb { position:absolute; top:-100%; left:0; width:1px; height:100%; background:var(--gold); animation:scrollDown 2.4s ease-in-out infinite; }
@keyframes scrollDown { 0%{top:-100%;} 100%{top:100%;} }

@media (max-width: 900px) {
  .hero-content { grid-template-columns:1fr; padding-bottom:6rem; }
  .hero-facts   { flex-direction:row; flex-wrap:wrap; }
  .hero-fact    { flex:1 1 130px; }
  .scroll-cue   { display:none; }
}

/* Móvil: evitar que las tarjetas de stats se solapen con la barra inferior */
@media (max-width: 600px) {
  .hero-content { padding-bottom: 3rem; }
  .hero-facts {
    position: static;        /* que fluya en el documento, no superpuesto */
    margin-top: 2rem;
    gap: 0.75rem;
  }
  .hero-fact { flex: 1 1 calc(50% - 0.5rem); }
  .hero-strip {
    position: static;        /* la barra de info deja de estar superpuesta */
    margin-top: 1.5rem;
  }
}
