/* CricVault home – floodlit night match. Motion: one voice-scoring loop in the hero, one scroll climb in the Vault. */
:root {
  --bg: #05070B;
  --night: #0A0F14;
  --surface: #0E141B;
  --line: #1C2530;
  --ink: #EEF3F7;
  --muted: #9AA7B4;
  --dim: #66727E;
  --lime: #B8FF3C;
  --lime-deep: #6E9F14;
  --flood: #FFF4D6;
  --gold: #FFC940;
  --red: #FF4D61;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
.home main { overflow-x: clip }

/* ---------- hero ---------- */
.stage { position: relative; isolation: isolate; padding-block: 28px 64px }
.stage::before { /* floodlight beams */
  content: ''; position: absolute; inset: -120px -20% auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    conic-gradient(from 200deg at 12% 0%, transparent 0deg, rgba(255,244,214,.10) 8deg, transparent 20deg),
    conic-gradient(from 140deg at 88% 0%, transparent 0deg, rgba(255,244,214,.10) 12deg, transparent 24deg),
    radial-gradient(ellipse at 50% 100%, rgba(184,255,60,.08), transparent 60%);
}
.hero2 { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center }
.kicker { font-family: var(--display); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--lime); font-size: 15px }
.hero2 h1 { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 96px); line-height: .92; margin: 10px 0 18px; letter-spacing: -1.5px; text-wrap: balance }
.hero2 h1 em { font-style: normal; color: var(--lime) }
.hero2 .lede { color: var(--muted); font-size: 19px; max-width: 36ch; margin: 0 0 24px }
.stores { display: flex; gap: 10px; flex-wrap: wrap }
.store { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; color: var(--muted); font-weight: 600; font-size: 15px; background: rgba(14,20,27,.6) }
.store b { color: var(--ink) }

.scene { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 6px; min-height: 420px }
.scorer { width: 100%; max-width: 300px; justify-self: end; overflow: visible }
.scorer .mouth { transform-box: fill-box; transform-origin: center; transition: transform .08s }
.scorer.talking .mouth { animation: talk .22s infinite alternate }
@keyframes talk { from { transform: scaleY(.25) } to { transform: scaleY(1) } }
.wave { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; opacity: 0 }
.scorer.talking .wave { animation: wave 1s infinite }
.scorer.talking .wave.w2 { animation-delay: .2s }
.scorer.talking .wave.w3 { animation-delay: .4s }
@keyframes wave { 0% { opacity: 0; transform: translateX(-6px) } 30% { opacity: .9 } 100% { opacity: 0; transform: translateX(10px) } }

.bubble { position: absolute; left: 4%; top: 6%; max-width: 70%; background: var(--ink); color: #0A0F04; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 30px); padding: 10px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); min-height: 1.6em; white-space: nowrap }
.bubble .q { color: var(--lime-deep) }
.bubble::after { content: '▍'; animation: caret .8s steps(1) infinite; color: var(--lime-deep) }
@keyframes caret { 50% { opacity: 0 } }

.phone2 { position: relative; width: min(250px, 100%); aspect-ratio: 9 / 17; border-radius: 34px; border: 2px solid var(--line); background: linear-gradient(180deg, #10261A, var(--bg) 45%); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 70px rgba(184,255,60,.14) }
.phone2 .team { font-family: var(--display); font-weight: 700; letter-spacing: 1.5px; font-size: 12px; color: var(--muted) }
.phone2 .total { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1; font-variant-numeric: tabular-nums }
.phone2 .total.bump { animation: bump .35s }
@keyframes bump { 40% { transform: scale(1.08); color: var(--lime) } }
.phone2 .ov { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums }
.balls { display: flex; gap: 5px; margin-top: 4px }
.balls i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted) }
.balls i.b4 { background: #1BA9E8; border-color: #1BA9E8; color: #fff }
.balls i.b6 { background: #8B5CF6; border-color: #8B5CF6; color: #fff }
.balls i.bx { background: #3A2A06; border-color: var(--gold); color: var(--gold) }
.balls i.bw { background: var(--red); border-color: var(--red); color: #fff }
.pop { position: absolute; left: 50%; top: 52%; translate: -50% -50%; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: #0A0F04; font-family: var(--display); font-weight: 800; font-size: 60px; box-shadow: 0 0 50px rgba(184,255,60,.55); scale: 0; opacity: 0 }
.pop small { position: absolute; bottom: 18px; font-size: 13px; letter-spacing: 2px }
.pop.show { animation: popin 1.2s cubic-bezier(.2,1.4,.4,1) forwards }
.pop.red { background: var(--red); color: #fff; box-shadow: 0 0 50px rgba(255,77,97,.55) }
.pop.gold { background: var(--gold) }
.pop.violet { background: #8B5CF6; color: #fff; box-shadow: 0 0 50px rgba(139,92,246,.55) }
@keyframes popin { 0% { scale: 0; opacity: 0 } 25% { scale: 1.1; opacity: 1 } 70% { scale: 1; opacity: 1 } 100% { scale: .9; opacity: 0 } }
.heard { margin-top: auto; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font-size: 12px; color: var(--muted) }
.heard b { color: var(--ink) }

/* ---------- vault ---------- */
.vault { position: relative; padding-block: 80px 60px; background: radial-gradient(ellipse at 50% 0%, rgba(255,201,64,.07), transparent 60%) }
.sec-head { max-width: 640px; margin-bottom: 36px }
.sec-head h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 68px); line-height: .95; margin: 8px 0 12px; text-wrap: balance }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0 }
.climb { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start }
.ladder { position: relative; padding: 0 0 0 26px }
.ladder ol { list-style: none; margin: 0; padding: 0 }
.ladder::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 3px }
.ladder .fill { position: absolute; left: 7px; bottom: 8px; width: 3px; height: 0; background: linear-gradient(0deg, var(--lime), var(--gold)); border-radius: 3px; box-shadow: 0 0 12px rgba(184,255,60,.6); transition: height .2s linear }
.ladder li { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--dim); transition: color .4s }
.ladder li::before { content: ''; position: absolute; left: -24px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--line); transition: all .4s }
.ladder li.lit { color: var(--ink) }
.ladder li.lit::before { border-color: var(--lime); background: var(--lime); box-shadow: 0 0 10px var(--lime) }
.ladder img { width: 42px; height: 42px; opacity: .45; transition: opacity .4s }
.ladder li.lit img { opacity: 1 }
.ladder .n { font-family: var(--display); font-weight: 700; font-size: 20px }
.ladder .rp { font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums }
.elite { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; perspective: 900px }
.crest { position: relative; text-align: center; padding: 18px 10px 20px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); border: 1px solid var(--line); opacity: .25; transform: translateY(30px); transition: opacity .8s, transform .8s }
.crest.in { opacity: 1; transform: none }
.crest .art { width: 100%; max-width: 170px; aspect-ratio: 1; margin: 0 auto; transform-style: preserve-3d; animation: sway 6s ease-in-out infinite }
.crest:nth-child(2) .art { animation-delay: -1.5s } .crest:nth-child(3) .art { animation-delay: -3s } .crest:nth-child(4) .art { animation-delay: -4.5s }
@keyframes sway { 0%,100% { transform: rotateY(-14deg) translateY(0) } 50% { transform: rotateY(14deg) translateY(-8px) } }
.crest img { width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)) }
.crest h3 { font-family: var(--display); font-weight: 800; font-size: 26px; margin: 10px 0 2px }
.crest .rp { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums }
.crest.hof { border-color: rgba(184,255,60,.5); box-shadow: 0 0 60px rgba(184,255,60,.12) }
.crest.hof h3 { color: var(--lime) }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--flood); opacity: 0; animation: spark 3s infinite }
@keyframes spark { 0% { opacity: 0; transform: translateY(0) } 20% { opacity: 1 } 100% { opacity: 0; transform: translateY(-60px) } }
.shield-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 18px; border: 1px dashed rgba(255,201,64,.5); background: rgba(255,201,64,.05) }
.shield-note b { color: var(--gold); font-family: var(--display); font-size: 22px; letter-spacing: .5px }
.shield-note p { margin: 2px 0 0; color: var(--muted) }
.shield-note .tag { flex: none; font-family: var(--display); font-weight: 800; letter-spacing: 2px; font-size: 12px; color: #0A0F04; background: var(--gold); border-radius: 8px; padding: 4px 8px }

/* ---------- badges ---------- */
.badges { padding-block: 40px 70px; overflow: hidden }
.marquee { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite }
.marquee.rev { animation-direction: reverse; margin-top: 18px }
@keyframes slide { to { transform: translateX(-50%) } }
.bd { width: 120px; text-align: center; flex: none }
.bd img { width: 84px; height: 84px }
.bd span { display: block; font-family: var(--display); font-weight: 700; font-size: 16px; margin-top: 4px }
.bd small { display: block; color: var(--dim); font-size: 12px; line-height: 1.3 }

/* ---------- how ---------- */
.how { padding-block: 20px 80px }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s }
.step3 { border-top: 2px solid var(--line); padding-top: 16px }
.step3::before { counter-increment: s; content: '0' counter(s); font-family: var(--display); font-weight: 800; color: var(--lime); font-size: 18px }
.step3 h3 { font-family: var(--display); font-weight: 700; font-size: 28px; margin: 4px 0 6px }
.step3 p { color: var(--muted); margin: 0 }

@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr }
  .scene { min-height: 360px }
  .climb { grid-template-columns: 1fr }
  .elite { grid-template-columns: repeat(2, 1fr) }
  .steps3 { grid-template-columns: 1fr }
}
@media (max-width: 420px) { .bubble { font-size: 20px } .phone2 .total { font-size: 46px } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important }
  .crest { opacity: 1; transform: none }
  .marquee { flex-wrap: wrap; width: auto; justify-content: center }
}
