/* ═══════════════════════════════════════════
   KICKOFF — Landing Page
   Design identity: scoreboard-first, pitch-
   grounded, dark-flat.
   ═══════════════════════════════════════════ */

/* ─── 1. TOKENS ─── */
:root {
  --pitch:       #43A047;
  --pitch-dark:  #2E7D32;
  --pitch-mid:   rgba(67, 160, 71, 0.5);
  --gold:        #C9A74D;
  --surface:     #1A1A1A;
  --card-bg:     #1F1F1F;
  --bg-deep:     #0F0F0F;
  --text:        #E8E0D0;
  --text-muted:  #8E8E93;
  --text-dim:    #48484A;
  --divider:     #2C2C2E;

  --font-display:  'Oswald', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── 2. RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── 3. NAVBAR ─── */
.navbar {
  background: transparent !important;
  padding: 1rem 0;
  transition: background 0.35s ease;
  z-index: 1030;
}
.navbar.scrolled {
  background: rgba(15, 15, 15, 0.94) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--divider);
}
.navbar-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text) !important;
  letter-spacing: 1.5px;
}
.navbar-brand span { color: var(--pitch); }
.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text) !important; }
.nav-download-btn {
  background: var(--pitch);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.375rem 1rem !important;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-download-btn:hover { background: var(--pitch-dark) !important; }

/* ─── 4. HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Pitch stripes */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(67, 160, 71, 0.07) 0px,
    rgba(67, 160, 71, 0.07) 80px,
    transparent 80px,
    transparent 160px
  );
  pointer-events: none;
}

/* Center circle */
.hero-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(70vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed rgba(67, 160, 71, 0.08);
  pointer-events: none;
}

/* Floodlight glow */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100vw, 900px);
  height: 50vh;
  background: radial-gradient(
    ellipse at center top,
    rgba(232, 224, 208, 0.035) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

/* ─── 5. SCOREBOARD ─── */
.scoreboard {
  max-width: 600px;
  margin: 0 auto;
  background: #0A0A0A;
  border: 1px solid rgba(67, 160, 71, 0.35);
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
}

/* Status bar */
.scoreboard__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.scoreboard__status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* Score */
.scoreboard__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 7rem);
  line-height: 1;
  color: var(--pitch);
  letter-spacing: -4px;
  text-shadow: 0 0 40px rgba(67, 160, 71, 0.2),
               0 0 80px rgba(67, 160, 71, 0.08);
  margin-bottom: 1.5rem;
}

/* Wordmark below score */
.scoreboard__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  letter-spacing: 4px;
  color: var(--text);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.scoreboard__wordmark span { color: var(--pitch); }

/* Tagline */
.scoreboard__tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.2rem;
}
.scoreboard__sub {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1.375rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  line-height: 1;
}
.store-btn-apple {
  background: #fff;
  color: #0F0F0F;
}
.store-btn-apple:hover {
  background: #e8e8e8;
  color: #0F0F0F;
}
.store-btn-play {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--divider);
}
.store-btn-play:hover {
  border-color: var(--pitch-mid);
  color: var(--text);
}

/* ─── 6. FEATURES ─── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--divider);
}
.features__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pitch);
  margin-bottom: 0.5rem;
  text-align: center;
}
.features__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 4vw, 2.375rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text);
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 2rem;
  height: 100%;
  transition: border-color 0.25s;
}
.feature-card:hover { border-color: rgba(67, 160, 71, 0.4); }
.feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--divider);
}
.feature-card__icon.is-live { border-color: rgba(67, 160, 71, 0.3); color: var(--pitch); }
.feature-card__icon.is-news { border-color: rgba(201, 167, 77, 0.3); color: var(--gold); }
.feature-card__icon.is-stats { border-color: rgba(107, 143, 113, 0.3); color: #6B8F71; }
.feature-card h5 {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Stat callout inside cards */
.feature-stat {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}
.feature-stat__number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--gold);
  line-height: 1;
}
.feature-stat__label {
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

/* ─── 7. FOLLOW YOUR TEAM ─── */
.follow-section {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--divider);
}
.follow-section__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pitch);
  margin-bottom: 0.5rem;
}
.follow-section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.follow-section__sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

/* ─── Clubs card ─── */
.card-widget--clubs { padding: 0.625rem 0.75rem 0.5rem; }
.club-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.35rem 0;
}
.club-row__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.club-row__dot.is-barca   { background: #A50044; }
.club-row__dot.is-madrid  { background: #FEBE10; }
.club-row__dot.is-arsenal { background: #EF0107; }
.club-row__dot.is-juve    { background: #000000; }
.club-row__name {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-row__heart {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
}
.club-row__heart.is-filled { color: #EF4444; }

/* ─── Feed card ─── */
.card-widget--feed .card-widget__status { margin-bottom: 0.4rem; }
.feed-row {
  padding: 0.45rem 0;
  text-align: left;
}
.feed-row + .feed-row {
  border-top: 1px solid var(--divider);
  margin-top: 0.2rem;
}
.feed-row__tag {
  display: inline-block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-bottom: 0.15rem;
}
.feed-row__tag.is-report  { background: rgba(67, 160, 71, 0.12); color: var(--pitch); }
.feed-row__tag.is-transfer { background: rgba(201, 167, 77, 0.12); color: var(--gold); }
.feed-row__tag.is-preview  { background: rgba(139, 154, 139, 0.12); color: #8B9A8B; }
.feed-row__headline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.feed-row__snippet {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin: 0.05rem 0 0;
  line-height: 1.3;
}
.feed-row__time {
  font-size: 0.55rem;
  color: var(--text-dim);
  margin-top: 0.15rem;
  display: block;
}

/* ─── Alerts card ─── */
.card-widget--alerts { padding: 0.5rem 0.75rem; }
.card-widget--alerts .card-widget__status { margin-bottom: 0.25rem; }
.alert-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 0.4rem 0;
}
.alert-row + .alert-row {
  border-top: 1px solid var(--divider);
}
.alert-row__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  border-radius: 4px;
  margin-top: 1px;
}
.alert-row__icon.is-clock { color: var(--gold); }
.alert-row__icon.is-goal  { color: var(--pitch); font-size: 1rem; }
.alert-row__icon.is-news  { color: var(--text-muted); }
.alert-row__body { flex: 1; min-width: 0; }
.alert-row__text {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.alert-row__meta {
  font-size: 0.55rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.1rem;
}

/* ─── Details card ─── */
.card-widget--details { padding: 0.625rem 0.75rem 0.5rem; }
.card-widget--details .card-widget__status { margin-bottom: 0.4rem; }
.detail-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
}
.detail-score__team {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text);
}
.detail-score__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.detail-score__dot.is-barca  { background: #A50044; }
.detail-score__dot.is-madrid { background: #FEBE10; }
.detail-score__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.detail-score__num.is-highlight { color: var(--pitch); }

.detail-stat {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--divider);
}
.detail-stat__row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0;
}
.detail-stat__bar {
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}
.detail-stat__bar.is-left  { background: var(--pitch); }
.detail-stat__bar.is-right { background: var(--text-dim); }
.detail-stat__labels {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.detail-stat__label {
  display: block;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  line-height: 1.2;
}
.detail-stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ─── 8. PREVIEW ─── */
.preview {
  padding: 100px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.preview__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pitch);
  margin-bottom: 0.5rem;
}
.preview__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.preview__sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0 auto 2.5rem;
}

/* Phone frame */
.phone-frame {
  display: block;
  background: #0A0A0A;
  border: 2px solid var(--divider);
  border-radius: 28px;
  padding: 8px;
  max-width: 240px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.phone-frame__screen {
  aspect-ratio: 9 / 19.5;
  border-radius: 18px;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  gap: 6px;
}

/* Shared card widget (inside phone frames) */
.card-widget {
  background: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 0.75rem;
}
.card-widget__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--pitch);
  margin-right: 4px;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.live-dot.is-gold { background: var(--gold); }

/* -- Match card -- */
.card-widget--match { padding: 0.875rem; }
.card-widget--match .card-widget__status { margin-bottom: 0.75rem; }
.card-widget__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 0;
}
.card-widget__team {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
}
.card-widget__score {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.card-widget__score.is-highlight { color: var(--pitch); }
.card-widget__events {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--divider);
  font-size: 0.6rem;
  color: var(--text-dim);
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}
.card-widget__events span { color: var(--text-muted); }

/* -- News card -- */
.card-widget--news { text-align: left; }
.news-headline {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.3;
}
.news-headline + .news-snippet { margin-bottom: 0.5rem; }
.news-snippet {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin: 0.1rem 0 0.4rem;
  line-height: 1.3;
}
.news-divider {
  height: 1px;
  background: var(--divider);
  margin: 0.35rem 0;
}

/* -- League table card -- */
.card-widget--table { padding: 0.75rem; }
.card-widget--table .card-widget__status { margin-bottom: 0.5rem; }
.table-head {
  display: grid;
  grid-template-columns: 1.2rem 1fr 1.2rem 1.2rem 1.4rem;
  gap: 2px;
  font-size: 0.55rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 0.3rem;
}
.table-row {
  display: grid;
  grid-template-columns: 1.2rem 1fr 1.2rem 1.2rem 1.4rem;
  gap: 2px;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.6rem;
}
.table-row__pos {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}
.table-row__pos.is-gold { color: var(--gold); }
.table-row__team {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-row__stat {
  font-family: var(--font-mono);
  color: var(--text-muted);
}
.table-row__stat.is-highlight {
  color: var(--text);
  font-weight: 700;
}

/* Phone label */
.phone-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-align: center;
  letter-spacing: 0.5px;
}

/* ─── 9. CTA / DOWNLOAD ─── */
.cta-section {
  padding: 100px 0;
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cta-section__sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── 10. FOOTER ─── */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--divider);
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--text);
}
.footer__brand span { color: var(--pitch); }
.footer__made {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.footer__made a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}
.footer__made a:hover { text-decoration: underline; }

/* ─── 11. RESPONSIVE ─── */
@media (max-width: 768px) {
  .scoreboard { padding: 2rem 1.5rem 1.5rem; }
  .scoreboard__score { letter-spacing: -2px; }
  .features { padding: 60px 0; }
  .follow-section { padding: 60px 0; }
  .preview { padding: 60px 0; }
  .cta-section { padding: 60px 0; }
}
@media (max-width: 576px) {
  .scoreboard { padding: 1.5rem 1rem 1.25rem; border-radius: 12px; }
  .scoreboard__status { font-size: 0.625rem; }
  .store-btn { padding: 0.5rem 1rem; font-size: 0.75rem; }
  .hero-circle { width: 80vw; }
  .feature-card { padding: 1.5rem; }
  .phone-frame { max-width: 200px; }
}

/* ─── 12. REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .navbar { transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── 13. FOCUS ─── */
:focus-visible {
  outline: 2px solid var(--pitch);
  outline-offset: 2px;
}
