/* Scorebug landing — DAZN-energy redesign */

:root {
  --orange: #F47B20;
  --orange-bright: #FF8A2A;
  --orange-deep: #C45A0F;
  --ink: #0A0A0A;
  --ink-2: #141414;
  --ink-3: #1C1C1C;
  --ink-4: #262626;
  --cream-hi: #F5EFDB;
  --cream-lo: #E0D8BF;
  --red: #D9362C;
  --green: #2DAA51;
  --blue: #3B7DD8;
  --text: #FFFFFF;
  --text-dim: #A8A8A8;
  --text-dim-2: #6B6B6B;
  --rule: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 1200px 600px at 50% -200px, rgba(244,123,32,0.18), transparent 70%),
    var(--ink);
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

.condensed {
  font-family: 'Oswald', 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--rule);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.04em; font-size: 14px; text-transform: uppercase; }
.nav-logo .icon { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; }
.nav-logo .icon img { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; background: var(--orange); color: var(--ink); padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 13px; letter-spacing: 0.02em; transition: transform .15s, background .15s; }
.nav-cta:hover { background: var(--orange-bright); transform: translateY(-1px); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(217,54,44,0.15); color: var(--red); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.live-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 80px 40px 120px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 20% 30%, rgba(244,123,32,0.12), transparent 60%),
    radial-gradient(ellipse 600px 300px at 80% 60%, rgba(59,125,216,0.08), transparent 60%);
  pointer-events: none;
}
.hero-eyebrow { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim); }
.hero-eyebrow .live-pill { background: rgba(45,170,81,0.15); color: var(--green); }
.hero-eyebrow .live-pill .dot { background: var(--green); }
.hero h1 {
  position: relative;
  font-family: 'Oswald', 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 100px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero h1 .row { display: block; white-space: nowrap; }
.hero h1 .row:nth-child(2) { color: var(--orange); }
.hero h1 .strike { display: inline-block; position: relative; white-space: nowrap; }
.hero h1 .strike::after { content: ''; position: absolute; left: -2%; right: -2%; top: 52%; height: 8px; background: var(--orange); transform: scaleX(0); transform-origin: left; animation: strikeIn 1.2s 0.6s ease-out forwards; }
@keyframes strikeIn { to { transform: scaleX(1); } }
.hero p.sub { position: relative; max-width: 560px; margin: 0 auto 48px; font-size: 18px; line-height: 1.55; color: var(--text-dim); }
.hero-ctas { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 80px; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink);
  padding: 14px 22px; border-radius: 12px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(244,123,32,0.25); }
.store-btn .glyph { width: 24px; height: 24px; }
.store-btn .lbl { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.store-btn .lbl small { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim-2); }
.store-btn .lbl span { font-size: 16px; }

/* ===== Scorebug component ===== */
.scorebug {
  display: inline-flex; align-items: stretch;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 6px;
  gap: 6px;
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-weight: 700;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
}
.scorebug .team { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 9px; min-width: 80px; }
.scorebug .team.home { background: var(--blue); color: #fff; }
.scorebug .team.away { background: var(--red); color: #fff; }
.scorebug .team .code { font-size: 22px; letter-spacing: 0.04em; }
.scorebug .cell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream-hi);
  color: var(--ink);
  padding: 12px 18px; border-radius: 9px;
  font-size: 32px; min-width: 64px;
  overflow: hidden;
}
.scorebug .cell::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 50%; height: 1px;
  background: rgba(0,0,0,0.18);
}
.scorebug .cell::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0.12), transparent);
}
.scorebug .cell.clock { background: var(--ink); color: var(--cream-hi); font-size: 22px; min-width: 88px; letter-spacing: 0.04em; }
.scorebug .cell.clock::before { background: rgba(255,255,255,0.12); }
.scorebug .cell.clock::after { background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent); }

/* Hero scorebug — bigger, dramatic */
.hero-scorebug-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 8px;
}
.hero-scorebug { transform: scale(1.4); transform-origin: center; }
.hero-scorebug .cell { font-size: 36px; padding: 14px 22px; min-width: 72px; }
.hero-scorebug .cell.clock { font-size: 24px; min-width: 96px; }
.hero-scorebug .team { padding: 14px 22px; }
.hero-scorebug .team .code { font-size: 24px; }
.sport-tag {
  margin-top: 60px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--text-dim);
  font-weight: 600;
}
.sport-tag .seg { display: inline-block; width: 24px; height: 1px; background: var(--text-dim-2); }

@media (max-width: 720px) {
  .hero { padding: 48px 20px 80px; }
  .hero-scorebug { transform: scale(1); }
}

/* ===== Section base ===== */
section.block { padding: 120px 40px; position: relative; }
.container { max-width: 1200px; margin: 0 auto; }
.section-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--orange); font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.section-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--orange); display: inline-block; }
.section-title {
  font-family: 'Oswald', 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-lede { font-size: 18px; line-height: 1.55; color: var(--text-dim); max-width: 640px; margin-bottom: 64px; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 36px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.step:hover { border-color: rgba(244,123,32,0.4); transform: translateY(-4px); }
.step .num {
  font-family: 'Oswald', sans-serif;
  font-size: 88px; font-weight: 700;
  color: var(--orange);
  line-height: 1; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 22px; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.step .visual { margin-top: 28px; height: 200px; border-radius: 14px; background: var(--ink-3); overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }

/* Step visual: phone */
.phone-mock { width: 140px; height: 240px; background: #000; border-radius: 22px; border: 2px solid #2a2a2a; padding: 8px; box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.phone-mock .scr { width: 100%; height: 100%; background: var(--ink-2); border-radius: 14px; display: flex; flex-direction: column; padding: 12px; gap: 8px; }
.phone-mock .row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: var(--ink-3); border-radius: 6px; font-size: 10px; }
.phone-mock .row.big { background: var(--orange); color: #000; font-weight: 700; padding: 14px 8px; }
.phone-mock .scr .tap-bar { height: 32px; background: var(--ink-4); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--text-dim); }

/* Step visual: render server */
.render-vis { display: flex; align-items: center; gap: 16px; }
.render-vis .file { font-family: monospace; font-size: 11px; color: var(--text-dim); }
.render-vis .arrow { color: var(--orange); font-size: 24px; }
.render-pill { padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.render-pill.in { background: var(--ink-4); color: var(--text); }
.render-pill.out { background: var(--orange); color: var(--ink); }

/* Step visual: editor */
.editor-mock { width: 100%; height: 100%; background: #1a1a1d; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.editor-mock .timeline { height: 28px; background: #2a2a2e; border-radius: 4px; position: relative; overflow: hidden; }
.editor-mock .timeline.video { background: linear-gradient(90deg, #4a3220, #6a4a2e, #4a3220); }
.editor-mock .timeline.overlay { background: var(--orange); width: 60%; }
.editor-mock .timeline.audio { background: linear-gradient(90deg, #2da, #2da 30%, transparent 30%, transparent 35%, #2da 35%, #2da 65%, transparent 65%, transparent 70%, #2da 70%); opacity: 0.5; height: 18px; }
.editor-mock .lbl { font-size: 9px; color: var(--text-dim); padding-left: 8px; }

/* ===== Sports section ===== */
.sports-bg {
  background: linear-gradient(180deg, var(--ink) 0%, #0e0e0e 50%, var(--ink) 100%);
}
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sport-card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 160px;
  transition: all .25s;
  overflow: hidden;
}
.sport-card:hover { border-color: var(--orange); background: var(--ink-3); transform: translateY(-3px); }
.sport-card .num-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; color: var(--text-dim-2); font-family: monospace;
  letter-spacing: 0.05em;
}
.sport-card .name {
  font-family: 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.01em;
}
.sport-card .demo {
  display: inline-flex; gap: 4px;
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 700;
  align-items: center;
}
.sport-card .demo .pill { padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.sport-card .demo .pill.code { background: var(--blue); color: #fff; font-size: 11px; }
.sport-card .demo .pill.code.away { background: var(--red); }
.sport-card .demo .pill.score { background: var(--cream-hi); color: var(--ink); }
.sport-card .demo .pill.clock { background: rgba(255,255,255,0.06); color: var(--text-dim); font-size: 11px; }

/* ===== Pricing ===== */
.pricing-bg {
  background:
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(244,123,32,0.1), transparent 60%),
    var(--ink);
}
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
@media (max-width: 760px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  background: linear-gradient(180deg, #1a1208, var(--ink-2) 50%);
  border-color: var(--orange);
}
.price-card.featured::before {
  content: 'RECOMMENDED'; position: absolute; top: 20px; right: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  background: var(--orange); color: var(--ink);
  padding: 4px 10px; border-radius: 4px;
}
.price-tier { font-size: 13px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-dim); margin-bottom: 12px; font-weight: 600; }
.price-amount {
  font-family: 'Oswald', sans-serif;
  font-size: 80px; font-weight: 700; line-height: 1;
  margin-bottom: 4px; letter-spacing: -0.02em;
}
.price-amount sup { font-size: 28px; vertical-align: super; margin-right: 4px; color: var(--text-dim); }
.price-sub { font-size: 14px; color: var(--text-dim); margin-bottom: 28px; }
.price-features { list-style: none; }
.price-features li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.price-features li:first-child { border-top: none; }
.price-features .check { color: var(--orange); font-weight: 700; }

/* ===== Final CTA ===== */
.final-cta {
  background: var(--orange);
  color: var(--ink);
  text-align: center;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}
.final-cta::before, .final-cta::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border: 80px solid rgba(0,0,0,0.04);
  border-radius: 50%;
  pointer-events: none;
}
.final-cta::before { top: -300px; left: -200px; }
.final-cta::after { bottom: -300px; right: -200px; }
.final-cta h2 {
  position: relative;
  font-family: 'Oswald', sans-serif;
  font-size: clamp(48px, 7vw, 96px); font-weight: 700;
  line-height: 0.95; text-transform: uppercase; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.final-cta p { position: relative; font-size: 18px; max-width: 540px; margin: 0 auto 40px; }
.final-cta .store-btn { background: var(--ink); color: #fff; }
.final-cta .store-btn .lbl small { color: var(--text-dim); }
.final-cta .store-btn:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }

/* ===== Footer ===== */
footer {
  padding: 40px;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: var(--text-dim);
}
footer a:hover { color: var(--text); }
footer .links { display: flex; gap: 24px; }

/* ===== Reveal animations ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }
}
/* Fallback for users with reduced motion or if JS fails — content always visible */
.reveal.in { opacity: 1 !important; transform: translateY(0) !important; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

/* Score flip animation */
.flip-cell {
  display: inline-block;
  position: relative;
  perspective: 200px;
}
.flip-cell .digit {
  display: inline-block;
  transition: transform .4s cubic-bezier(.4,1.5,.6,1), opacity .3s;
}
.flip-cell.flipping .digit { transform: rotateX(-90deg); opacity: 0; }
