/* apps/homepage/styles.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0d1117;
  color: #e5e7eb;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.nav {
  background: #0d1117;
  border-bottom: 1px solid #1f2937;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark { display: inline-block; background: #10b981; color: #000; font-weight: 900; font-size: 13px; padding: 4px 7px; border-radius: 6px; margin-right: 8px; }
.logo-text { display: inline-block; color: #10b981; font-weight: 700; font-size: 15px; margin-right: 8px; }
.beta-badge { display: inline-block; background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: 0.8px; padding: 3px 7px; cursor: default; user-select: none; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: #9ca3af; font-size: 14px; }
.nav-links a:hover { color: #e5e7eb; }
.nav-actions { display: flex; flex-direction: row; gap: 8px; margin-left: 24px; flex-shrink: 0; }
.btn { display: inline-block; border-radius: 8px; padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; }
.btn-primary { background: #10b981; color: #fff; }
.btn-primary:hover { background: #059669; }
.btn-outline { background: transparent; border: 1px solid #374151; color: #e5e7eb; }
.btn-outline:hover { border-color: #6b7280; }

.hero {
  background: linear-gradient(135deg, #0d1117 0%, #111827 60%, #0d2b1d 100%);
  padding: 72px 32px 56px;
  text-align: center;
}
.hero-eyebrow { font-size: 11px; color: #10b981; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: 48px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero h1 span { color: #10b981; }
.hero p { color: #9ca3af; font-size: 16px; max-width: 480px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.stats-bar {
  display: flex;
  border: 1px solid #1f2937;
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
  margin: 48px auto 0;
}
.stat { flex: 1; padding: 16px; text-align: center; border-right: 1px solid #1f2937; }
.stat:last-child { border-right: none; }
.stat-value { color: #10b981; font-weight: 800; font-size: 22px; }
.stat-label { color: #6b7280; font-size: 11px; margin-top: 2px; }

section { padding: 56px 32px; border-top: 1px solid #1f2937; }
.section-eyebrow { font-size: 11px; color: #10b981; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; text-align: center; }
.section-title { font-size: 28px; font-weight: 700; text-align: center; margin-bottom: 32px; }

.sports-grid { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sport-card { background: #1f2937; border-radius: 12px; padding: 18px 22px; text-align: center; min-width: 90px; }
.sport-card .icon { font-size: 32px; margin-bottom: 8px; }
.sport-card .name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.sport-card .count { color: #6b7280; font-size: 11px; }
.sport-card--more { background: transparent; border: 2px dashed #374151; }
.sport-card--more .icon { opacity: 0.5; }
.sport-card--more .name { color: #6b7280; }
.sport-card--more .count { color: #4b5563; }

.steps { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; align-items: center; }
.step { background: #1f2937; border-radius: 12px; padding: 20px; width: 160px; text-align: center; }
.step .step-icon { font-size: 28px; margin-bottom: 10px; }
.step h3 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.step p { color: #6b7280; font-size: 11px; }
.step-arrow { color: #374151; font-size: 24px; }

.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
.audience-card { border-radius: 12px; padding: 24px; }
.audience-card.clubs { background: #1a2e1a; border: 1px solid #10b98140; }
.audience-card.umpires { background: #1a2e1a; border: 1px solid #10b98140; }
.audience-card h3 { font-size: 15px; font-weight: 700; margin: 12px 0 10px; }
.audience-card.clubs h3 { color: #10b981; }
.audience-card.umpires h3 { color: #10b981; }
.audience-card ul { list-style: none; color: #9ca3af; font-size: 13px; line-height: 2.2; }
.audience-card .btn { margin-top: 18px; width: 100%; text-align: center; display: block; }
.audience-card.clubs .btn { background: #10b981; color: #fff; }
.audience-card.umpires .btn { background: #10b981; color: #fff; }

.btn-outline-blue { background: transparent; border: 1px solid #10b981; color: #10b981; }
.btn-outline-blue:hover { background: rgba(16,185,129,0.08); }

.testimonials-grid { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.testimonial { background: #111827; border: 1px solid #1f2937; border-radius: 12px; padding: 20px; max-width: 220px; }
.stars { color: #f59e0b; font-size: 14px; margin-bottom: 10px; }
.testimonial p { color: #e5e7eb; font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.reviewer-name { font-size: 12px; font-weight: 600; }
.reviewer-club { color: #6b7280; font-size: 10px; }

.app-section { text-align: center; background: #111827; }
.app-badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 24px 0; }
.app-badge { background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 12px 22px; display: flex; align-items: center; gap: 12px; opacity: 0.65; position: relative; }
.badge-soon { position: absolute; top: -9px; right: -9px; background: #f59e0b; color: #000; font-size: 9px; font-weight: 800; border-radius: 10px; padding: 2px 8px; }
.app-badge .badge-sub { color: #9ca3af; font-size: 10px; }
.app-badge .badge-name { color: #fff; font-size: 14px; font-weight: 700; }
.notify-box { max-width: 380px; margin: 0 auto; background: #1f2937; border: 1px solid #374151; border-radius: 12px; padding: 18px 20px; }
.notify-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.notify-box p { color: #6b7280; font-size: 11px; margin-bottom: 14px; }
.notify-form { display: flex; gap: 8px; }
.notify-form input { flex: 1; background: #111827; border: 1px solid #374151; border-radius: 8px; padding: 9px 12px; color: #e5e7eb; font-size: 12px; outline: none; }
.notify-form button { background: #10b981; border: none; color: #fff; border-radius: 8px; padding: 9px 16px; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }

.faq { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #111827; border: 1px solid #1f2937; border-radius: 10px; padding: 16px 18px; }
.faq-item h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.faq-item p { color: #6b7280; font-size: 12px; line-height: 1.6; }

footer { background: #0d1117; border-top: 1px solid #1f2937; padding: 40px 32px 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand { color: #10b981; font-weight: 800; font-size: 16px; margin-bottom: 10px; }
.footer-tagline { color: #6b7280; font-size: 12px; line-height: 1.6; max-width: 200px; }
.social-links { display: flex; gap: 8px; margin-top: 16px; }
.social-link { width: 32px; height: 32px; border-radius: 8px; background: #1f2937; border: 1px solid #374151; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #9ca3af; }
.social-link:hover { color: #e5e7eb; border-color: #6b7280; }
.footer-col h5 { color: #9ca3af; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer-col a { display: block; color: #6b7280; font-size: 12px; line-height: 2.2; }
.footer-col a:hover { color: #e5e7eb; }
.footer-badge { background: #1f2937; border: 1px solid #374151; border-radius: 8px; padding: 8px 12px; margin-bottom: 8px; opacity: 0.6; }
.footer-badge .sub { color: #9ca3af; font-size: 10px; }
.footer-badge .name { color: #fff; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { color: #374151; font-size: 11px; }

/* Nav hamburger + drawer — hidden on desktop */
.nav-backdrop  { display: none; }

/* Hamburger bar styling (used when displayed on mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #9ca3af;
  border-radius: 2px;
}

/* Drawer desktop structure (hidden, but styled for when revealed on mobile) */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 280px;
  background: #111827;
  border-left: 1px solid #1f2937;
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  flex-direction: column;
}
.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #1f2937;
}
.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 18px;
  cursor: pointer;
}
.nav-drawer-links a {
  display: block;
  padding: 14px 20px;
  color: #9ca3af;
  font-size: 15px;
  border-bottom: 1px solid #0d1117;
}
.nav-drawer-links a:hover { color: #e5e7eb; }
.nav-drawer-actions {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nav-drawer-actions .btn {
  width: 100%;
  text-align: center;
  display: block;
}

/* ─── Mobile (≤767px) ───────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Nav: hide links/actions, show hamburger */
  .nav { z-index: 201; }
  .nav-links    { display: none; }
  .nav-actions  { display: none; }
  .nav-hamburger { display: flex; margin-left: auto; }

  /* Drawer: shown as flex column when body.nav-open */
  .nav-drawer { display: flex; }

  /* Toggle states */
  body.nav-open .nav-drawer   { transform: translateX(0); }
  body.nav-open .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 199;
  }
  body.nav-open { overflow: hidden; }

  section { padding: 40px 16px; }
  footer  { padding: 28px 16px 16px; }

  /* Hero */
  .hero { padding: 40px 16px 36px; }
  .hero h1 { font-size: 28px; }

  /* Stats bar: 1-row flex → 2×2 grid */
  .stats-bar { display: grid; grid-template-columns: 1fr 1fr; max-width: 100%; }
  .stat { border-right: none; }
  .stat:nth-child(odd)  { border-right: 1px solid #1f2937; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid #1f2937; }

  /* Steps: horizontal row → vertical column */
  .steps { flex-direction: column; align-items: stretch; }
  .step  { width: 100%; }
  .step-arrow { display: none; }
  .step:not(:last-of-type)::after {
    content: '↓';
    display: block;
    text-align: center;
    color: #374151;
    font-size: 20px;
    margin: 8px 0;
  }

  /* Audience cards: already collapses at 600px — keep 1-col at 767px */
  .audience-grid { grid-template-columns: 1fr; }

  /* Notify form: side-by-side → stacked */
  .notify-form { flex-direction: column; }
  .notify-form input  { width: 100%; }
  .notify-form button { width: 100%; }

  /* Footer grid: brand full-width, rest 2-col */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
