/* ============================================================
   MatchBoard — Shared Design System
   ============================================================ */

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

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #EFF6FF;
  --orange:      #F97316;
  --orange-dark: #EA580C;
  --green:       #16A34A;
  --purple:      #7C3AED;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 40px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.nav-logo span { font-size: 18px; font-weight: 800; color: var(--text); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--text-muted);
  text-decoration: none; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); font-weight: 700; }
.btn-nav {
  background: var(--blue); color: #fff !important;
  padding: 9px 20px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  transition: background .2s, transform .15s;
}
.btn-nav:hover { background: var(--blue-dark) !important; transform: translateY(-1px); }

/* HERO */
.hero {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #7c2d12 100%);
  color: #fff;
  padding: 80px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(249,115,22,.25) 0%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 6px 16px;
  font-size: 12px; font-weight: 600; letter-spacing: .5px;
  color: #fbbf24; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero h1 span { color: var(--orange); }
.hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: #94a3b8;
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--text);
  padding: 14px 26px; border-radius: 14px;
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.btn-appstore .apple-icon { font-size: 22px; line-height: 1; }
.btn-appstore-inner { display: flex; flex-direction: column; text-align: left; gap: 1px; }
.btn-appstore-inner small { font-size: 11px; font-weight: 400; color: var(--text-muted); }
.btn-appstore-inner strong { font-size: 16px; }

/* SCREENSHOTS */
.screenshots {
  display: flex; gap: 16px; justify-content: center;
  margin-top: 56px; flex-wrap: nowrap;
  padding: 0 16px;
  overflow-x: auto;
}
.screenshot-wrap {
  flex-shrink: 0;
  background: #1e293b;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .25s;
}
.screenshot-wrap:hover { transform: translateY(-6px) scale(1.02); }
.screenshot-wrap img {
  width: 160px; height: auto;
  border-radius: 32px;
  display: block;
}

/* STATS BAR */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
}
.stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 900; color: var(--blue); letter-spacing: -1px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* SECTION */
.section { padding: 72px 24px; }
.section-inner { max-width: 900px; margin: 0 auto; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900; letter-spacing: -1px;
  margin-bottom: 10px;
}
.section-header p { font-size: 16px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* SPORTS GRID */
.sports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.sport-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.sport-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.sport-emoji { font-size: 32px; margin-bottom: 8px; }
.sport-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.sport-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--text-muted);
  background: var(--border); border-radius: 50px; padding: 2px 8px;
}

/* FEATURES GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,.07); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.feature-icon.blue  { background: var(--blue-light); }
.feature-icon.orange { background: #FFF7ED; }
.feature-icon.green { background: #F0FDF4; }
.feature-icon.purple { background: #F5F3FF; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 520px; margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue), 0 8px 32px rgba(37,99,235,.15);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 14px; border-radius: 50px;
}
.pricing-name { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px; }
.pricing-price { font-size: 40px; font-weight: 900; color: var(--text); letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.pricing-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.pricing-list { list-style: none; text-align: left; margin-bottom: 24px; }
.pricing-list li { font-size: 14px; color: var(--text-muted); padding: 5px 0; display: flex; align-items: center; gap: 8px; }
.pricing-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
.btn-pricing {
  display: block; padding: 12px; border-radius: 50px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  text-align: center; transition: background .2s, transform .15s;
}
.btn-pricing.primary { background: var(--blue); color: #fff; }
.btn-pricing.primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-pricing.secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-pricing.secondary:hover { background: var(--border); }

/* FAQ ACCORDION */
.faq-item {
  background: var(--bg);
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-q .arrow { transition: transform .25s; font-size: 12px; color: #aaa; }
.faq-q.open .arrow { transform: rotate(180deg); color: var(--blue); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  font-size: 14px; color: var(--text-muted); line-height: 1.75;
  padding: 0 22px;
}
.faq-a.open { max-height: 400px; padding: 0 22px 20px; }
.faq-a a { color: var(--blue); text-decoration: none; }
.faq-a a:hover { text-decoration: underline; }

/* CONTACT BUTTON */
.btn-contact {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 13px 30px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(37,99,235,.3);
}
.btn-contact:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* PAGE HEADER (interior pages) */
.page-header {
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 60%, #7c2d12 100%);
  color: #fff;
  text-align: center;
  padding: 64px 24px 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,.2) 0%, transparent 70%);
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.page-header p { font-size: 16px; color: #94a3b8; max-width: 460px; margin: 0 auto; }

/* CONTENT WRAPPER */
.content {
  max-width: 740px;
  margin: 52px auto;
  padding: 0 24px 80px;
}

/* CARDS */
.card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 32px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* TYPOGRAPHY (legal pages) */
.prose h2 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.prose .updated { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; display: block; }
.prose h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 28px 0 10px; }
.prose p { font-size: 14px; color: #3a3a3c; margin-bottom: 12px; line-height: 1.75; }
.prose ul { padding-left: 20px; margin-bottom: 14px; }
.prose ul li { font-size: 14px; color: #3a3a3c; margin-bottom: 5px; line-height: 1.65; }
.prose a { color: var(--blue); text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); }

/* FOOTER */
footer {
  background: #0f172a; color: #64748b;
  padding: 40px 24px 28px;
}
.footer-inner { max-width: 900px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 28px; border-bottom: 1px solid #1e293b;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo .icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.footer-logo span { font-size: 16px; font-weight: 800; color: #e2e8f0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #64748b; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #60a5fa; }
.footer-bottom { margin-top: 24px; text-align: center; font-size: 13px; }

/* RESPONSIVE */
@media (max-width: 680px) {
  nav { padding: 14px 20px; }
  .nav-hide { display: none; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .card { padding: 24px 20px; }
  .screenshots { gap: 10px; }
  .screenshot-wrap img { width: 120px; }
  .screenshot-wrap { border-radius: 30px; padding: 6px; }
  .hero { padding: 60px 20px 56px; }
  .stats-inner { gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 320px; }
}
