:root {
  --green: #1b5e20;
  --green-light: #2e7d32;
  --gold: #fdd835;
  --red: #c62828;
  --dark: #0d1117;
  --card-bg: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 0.02em; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.from-scale { transform: scale(0.85); }
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--dark) 0%, #112211 50%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

/* Animated pitch lines */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px),
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(255,255,255,0.02) 79px, rgba(255,255,255,0.02) 80px);
  animation: pitchDrift 20s linear infinite;
  pointer-events: none;
}

@keyframes pitchDrift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3em;
  background: linear-gradient(180deg, #fff 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  animation: heroIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero .subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  animation: heroIn 1s 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Live "wasted time" counter */
.waste-counter {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 2rem;
  animation: heroIn 1s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.waste-counter .label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.waste-counter .clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--red);
  text-shadow: 0 0 30px rgba(198, 40, 40, 0.5);
  letter-spacing: 0.05em;
}

.waste-counter .clock-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.hero .scroll-cue {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  animation: bounce 2s 1.5s infinite;
  color: var(--gold);
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(12px); opacity: 1; }
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

nav.visible { transform: translateY(0); }

nav .logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  text-decoration: none;
}

nav ul { list-style: none; display: flex; gap: 1.5rem; }

nav ul a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

nav ul a:hover { color: #fff; }
nav ul a:hover::after, nav ul a.active::after { width: 100%; }

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  z-index: 101;
  width: 0%;
  transition: width 0.1s;
}

/* ─── BREADCRUMB ─── */
.breadcrumb {
  background: rgba(255,255,255,0.03);
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ─── LAYOUT ─── */
.container { max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }

section { padding: 5rem 0; }
section:nth-child(even) { background: #0d1117; }
section:nth-child(odd) { background: #111820; }

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.3em;
  color: #fff;
}

.section-subtitle {
  color: var(--gold);
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
}

p { margin-bottom: 1.2em; font-size: 1.1rem; }

/* ─── COMPONENTS ─── */
.highlight {
  background: var(--card-bg);
  border-left: 4px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.highlight:hover {
  box-shadow: -4px 0 20px rgba(253, 216, 53, 0.15);
}
.highlight.red { border-left-color: var(--red); }
.highlight.red:hover { box-shadow: -4px 0 20px rgba(198, 40, 40, 0.2); }
.highlight.green { border-left-color: var(--green-light); }
.highlight.green:hover { box-shadow: -4px 0 20px rgba(46, 125, 50, 0.2); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.stat-number {
  font-family: 'Oswald', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

/* Animated counting */
.stat-number[data-count] {
  transition: color 0.3s;
}

.stat-label {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* ─── INTERACTIVE COMPARISON ─── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s;
}

.comparison-table tr:hover td { background: rgba(255,255,255,0.03); }

.comparison-table th {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.comparison-table td:first-child { font-weight: 600; }

.comparison-table tr:last-child {
  animation: pulseRow 2s infinite;
}

@keyframes pulseRow {
  0%, 100% { background: rgba(198, 40, 40, 0.05); }
  50% { background: rgba(198, 40, 40, 0.15); }
}

.badge-yes {
  background: rgba(46,125,50,0.25);
  color: #66bb6a;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-no {
  background: rgba(198,40,40,0.25);
  color: #ef5350;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ─── ANIMATED BAR CHARTS ─── */
.chart-bar { margin: 1.5rem 0; }

.chart-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.chart-bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  height: 32px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  width: 0%;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  overflow: hidden;
}

.chart-bar-fill.animated { transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1); }

/* Shimmer effect on bars */
.chart-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.chart-bar-fill.red {
  background: linear-gradient(90deg, var(--red), #e65100);
}

.emoji-big { font-size: 3rem; display: block; margin-bottom: 0.5rem; }

/* ─── INTERACTIVE SIDE-BY-SIDE ─── */
.split-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.split-side {
  padding: 2rem;
  transition: flex 0.5s;
}

.split-side.bad {
  background: linear-gradient(135deg, rgba(198,40,40,0.1), rgba(198,40,40,0.05));
  border-right: 1px solid rgba(255,255,255,0.06);
}

.split-side.good {
  background: linear-gradient(135deg, rgba(46,125,50,0.05), rgba(46,125,50,0.1));
}

.split-side h4 { margin-bottom: 1rem; }

.split-side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.split-side li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s, transform 0.4s;
}

.split-side.good li {
  transform: translateX(20px);
}

.split-side li.visible {
  opacity: 1;
  transform: translateX(0);
}

.split-side.bad li::before { content: '✗'; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.split-side.good li::before { content: '✓'; position: absolute; left: 0; color: #66bb6a; font-weight: 700; }

/* ─── QUOTE ─── */
.quote-block {
  text-align: center;
  padding: 3rem 2rem;
  margin: 2rem 0;
  position: relative;
}

.quote-block::before {
  content: '"';
  font-family: 'Oswald', sans-serif;
  font-size: 8rem;
  color: rgba(253, 216, 53, 0.1);
  position: absolute;
  top: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}

.quote-block blockquote {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-style: italic;
  color: #fff;
  max-width: 700px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

.quote-block cite {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

/* ─── TIMELINE ─── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  height: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--green-light));
  transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline.animated::before { height: 100%; }

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s, transform 0.6s;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--dark);
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item.visible::before { transform: scale(1); }

.timeline-item h4 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

/* ─── FUN FACTS ─── */
.fun-fact {
  background: rgba(253,216,53,0.08);
  border: 1px dashed var(--gold);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.fun-fact::before {
  content: '⚡ Fun Fact';
  display: block;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ─── INTERACTIVE POLL ─── */
.poll-widget {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid rgba(255,255,255,0.06);
}

.poll-widget h3 {
  color: var(--gold);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.poll-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.poll-option:hover {
  border-color: var(--gold);
  background: rgba(253, 216, 53, 0.05);
  transform: translateX(4px);
}

.poll-option.selected {
  border-color: var(--gold);
  background: rgba(253, 216, 53, 0.1);
}

.poll-option .poll-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(253, 216, 53, 0.1);
  width: 0;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 6px;
}

.poll-option .poll-text { position: relative; z-index: 1; flex: 1; font-weight: 600; }
.poll-option .poll-pct { position: relative; z-index: 1; font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--gold); opacity: 0; transition: opacity 0.4s; }
.poll-option.voted .poll-pct { opacity: 1; }

.poll-total {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.poll-total.show { opacity: 1; }

/* ─── ANGER METER ─── */
.anger-meter {
  margin: 2rem 0;
  text-align: center;
}

.anger-meter .meter-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 500px;
  margin: 1rem auto;
  position: relative;
}

.anger-meter .meter-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  background: linear-gradient(90deg, #66bb6a, var(--gold), #ff9800, var(--red), #b71c1c);
  border-radius: 2px;
  transform: translateY(-50%);
}

.anger-face {
  font-size: 2.2rem;
  position: relative;
  z-index: 1;
  filter: grayscale(0.5);
  transition: filter 0.3s, transform 0.3s;
}

.anger-face.active {
  filter: grayscale(0);
  transform: scale(1.4);
}

.anger-slider {
  max-width: 500px;
  margin: 1rem auto;
}

.anger-slider input[type=range] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #66bb6a, var(--gold), #ff9800, var(--red), #b71c1c);
  outline: none;
}

.anger-slider input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.anger-scenario {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  min-height: 3em;
  transition: opacity 0.3s;
}

/* ─── NUMBERED LIST ─── */
ol.numbered {
  counter-reset: item;
  list-style: none;
  margin: 1.5rem 0;
}

ol.numbered li {
  counter-increment: item;
  margin-bottom: 1.5rem;
  padding-left: 3rem;
  position: relative;
}

ol.numbered li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

/* ─── ACCORDION ─── */
.accordion { margin: 2rem 0; }

.accordion-item {
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background 0.2s;
}

.accordion-header:hover { background: rgba(255,255,255,0.03); }

.accordion-icon {
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.3s;
  font-family: 'JetBrains Mono', monospace;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.3s;
  padding: 0 1.5rem;
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* ─── SOLUTION CARDS ─── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.solution-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
}

.solution-card .emoji-big { font-size: 2.5rem; }
.solution-card h4 { color: var(--gold); margin: 0.5rem 0; font-size: 1.1rem; }
.solution-card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ─── CARD GRID (Homepage) ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.nav-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.nav-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: var(--gold);
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green-light), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card .card-emoji {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
}

.nav-card h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.nav-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.nav-card .read-more {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ─── NEXT LINK ─── */
.next-link {
  display: inline-block;
  margin: 3rem 0 2rem;
  padding: 1.2rem 2.5rem;
  background: var(--card-bg);
  border: 2px solid var(--gold);
  border-radius: 50px;
  color: var(--gold);
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.next-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253,216,53,0.3);
  background: var(--gold);
  color: var(--dark);
}

/* ─── CTA ─── */
.cta-section {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--green) 0%, var(--dark) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(253,216,53,0.05) 0%, transparent 70%);
  animation: ctaPulse 4s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.cta-section h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--gold);
  color: var(--dark);
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(253,216,53,0.3);
}

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 99;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(253,216,53,0.4);
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  background: var(--dark);
}

footer a { color: var(--accent); text-decoration: none; }

/* ─── VIDEO GRID ─── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-info {
  padding: 1.2rem 1.5rem;
}

.video-info h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.video-info p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ─── MATCH TIMELINE VIZ ─── */
.match-viz {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  margin: 2rem 0;
}

.match-viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.match-viz-team {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.match-viz-league {
  font-size: 0.9rem;
  color: var(--muted);
}

.half-label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.match-bar {
  height: 48px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  position: relative;
  cursor: crosshair;
}

.match-segment {
  height: 100%;
  transition: opacity 0.2s;
  position: relative;
}

.match-segment.play { background: #2e7d32; }
.match-segment.dead { background: #c62828; }
.match-segment.dead.goalkick { background: #b71c1c; }
.match-segment.dead.throwin { background: #d32f2f; }
.match-segment.dead.foul { background: #e53935; }
.match-segment.dead.injury { background: #ff5722; }
.match-segment.dead.sub { background: #ff7043; }
.match-segment.dead.var { background: #ff8a65; }
.match-segment.dead.celebration { background: #ef6c00; }
.match-segment.added { background: #555; }
.match-segment.vanished {
  background: repeating-linear-gradient(
    45deg,
    rgba(253,216,53,0.15),
    rgba(253,216,53,0.15) 4px,
    transparent 4px,
    transparent 8px
  );
}

.match-bar:hover .match-segment { opacity: 0.7; }
.match-bar .match-segment:hover { opacity: 1 !important; }

.match-tooltip {
  display: none;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.match-legend-row {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.match-time-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
}

.match-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.match-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.match-summary-color {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.match-controls {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.match-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  background: var(--gold);
  color: var(--dark);
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.match-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(253,216,53,0.3);
}

.match-btn.secondary {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.match-btn.secondary:hover {
  box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

/* ─── MOBILE ─── */
@media (max-width: 700px) {
  .split-compare { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.5rem; }
  .match-summary { gap: 0.8rem; }
  .match-summary-item { font-size: 0.85rem; }
}

/* ─── SMOOTH SECTION TRANSITIONS ─── */
section {
  position: relative;
}

section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
