/* SquadSphere home page — self-contained styles.
   Only index.html links this file, so the legal pages (which use styles.css)
   are never affected by anything here. */

:root {
  color-scheme: light;
  --teal: #2fbeaa;
  --teal-dark: #1ea593;
  --navy: #243d86;
  --navy-deep: #141f49;
  --amber: #ffb648;
  --ink: #0c1424;
  --muted: #5c6b86;
  --bg: #f5f8fe;
  --surface: #ffffff;
  --surface-alt: #eef3fc;
  --line: rgba(36, 61, 134, 0.12);
  --shadow: 0 24px 60px rgba(16, 28, 66, 0.14);
  --shadow-soft: 0 12px 30px rgba(16, 28, 66, 0.08);
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--teal-dark);
  background: rgba(47, 190, 170, 0.12);
  padding: 7px 14px; border-radius: 999px;
}
.eyebrow.on-dark { color: #bdf3ea; background: rgba(47, 190, 170, 0.18); }

h1, h2, h3 { line-height: 1.12; margin: 0; letter-spacing: -0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 13px 22px; border-radius: 14px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: #06231e; box-shadow: 0 10px 24px rgba(47, 190, 170, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(47, 190, 170, 0.45); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-alt); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,0.1); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 248, 254, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47,190,170,0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(255,182,72,0.18), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  color: #fff;
  padding: 72px 0 90px;
  border-radius: 0 0 40px 40px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { font-size: clamp(16px, 2vw, 18.5px); color: rgba(255,255,255,0.82); max-width: 540px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: #0b1020; color: #fff; padding: 11px 18px; border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14); transition: transform .15s ease, border-color .15s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.4); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-small { font-size: 10.5px; opacity: 0.8; letter-spacing: 0.04em; line-height: 1.1; }
.store-badge .sb-big { font-size: 16px; font-weight: 600; line-height: 1.15; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.hero-chips .chip {
  font-size: 13px; font-weight: 500; color: #eaf6f3;
  background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.16);
  padding: 7px 13px; border-radius: 999px;
}

/* hero phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 268px; height: 548px; border-radius: 42px;
  background: linear-gradient(170deg, #0f1733, #1b2a5e);
  padding: 13px; box-shadow: 0 40px 80px rgba(5, 12, 35, 0.55); border: 1px solid rgba(255,255,255,0.1);
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0b1020; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, #15306b 0%, #0c1b40 100%);
  display: flex; flex-direction: column;
}
.ps-top { padding: 40px 18px 14px; color: #fff; }
.ps-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: #ff6b6b; background: rgba(255,107,107,0.14); padding: 4px 10px; border-radius: 999px; }
.ps-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff5b5b; }
.ps-team { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.ps-team .t-name { font-size: 15px; font-weight: 600; }
.ps-team .t-score { font-size: 15px; font-weight: 700; color: var(--teal); }
.ps-main { margin-top: 6px; font-size: 40px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.ps-main span { font-size: 18px; color: rgba(255,255,255,0.6); font-weight: 600; }
.ps-meta { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.ps-overlay {
  margin: auto 12px 14px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(4px);
}
.ps-bar { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #fff; padding: 5px 0; }
.ps-bar + .ps-bar { border-top: 1px solid rgba(255,255,255,0.1); }
.ps-bar .muted { color: rgba(255,255,255,0.55); }
.ps-bar .teal { color: var(--teal); font-weight: 700; }
.float-card {
  position: absolute; background: #fff; color: var(--ink); border-radius: 16px; padding: 12px 15px;
  box-shadow: var(--shadow); font-size: 12.5px; font-weight: 600;
}
.float-card .fc-label { font-size: 10.5px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.float-top { top: 54px; left: -26px; }
.float-bottom { bottom: 70px; right: -22px; }
.float-bottom .fc-val { color: var(--teal-dark); }

/* ---------- generic section ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head .kicker { color: var(--teal-dark); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin: 0; }

/* ---------- sports ---------- */
.sports-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sport-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; text-align: center; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sport-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: rgba(47,190,170,0.4); }
.sport-icon {
  width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, rgba(47,190,170,0.16), rgba(36,61,134,0.12));
  color: var(--navy);
}
.sport-icon svg { width: 32px; height: 32px; }
.sport-icon i { font-size: 31px; line-height: 1; display: inline-flex; }
.sport-card .s-name { font-weight: 600; font-size: 16px; }
.sport-card .s-mode { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card.span-2 { grid-column: span 2; background: linear-gradient(145deg, var(--navy), var(--navy-deep)); color: #fff; border: none; }
.feature-card.span-2 .f-copy { color: rgba(255,255,255,0.82); }
.f-ico { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: rgba(47,190,170,0.14); color: var(--teal-dark); margin-bottom: 18px; }
.feature-card.span-2 .f-ico { background: rgba(255,255,255,0.14); color: #bff3ea; }
.f-ico svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 9px; }
.f-copy { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- how it works ---------- */
.steps-wrap { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 48px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step .s-num { width: 42px; height: 42px; border-radius: 12px; background: var(--teal); color: #06231e; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- download band ---------- */
.download-band {
  background:
    radial-gradient(700px 400px at 90% 0%, rgba(47,190,170,0.4), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
  color: #fff; border-radius: var(--radius-lg); padding: 56px; text-align: center;
}
.download-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin-bottom: 12px; }
.download-band p { color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 28px; font-size: 16.5px; }
.download-band .store-badges { justify-content: center; }

/* ---------- legal ---------- */
.legal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.legal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s ease, transform .15s ease; }
.legal-card:hover { border-color: rgba(47,190,170,0.4); transform: translateY(-3px); }
.legal-card .l-ico { width: 40px; height: 40px; border-radius: 11px; background: var(--surface-alt); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.legal-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.legal-card p { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.legal-card a.open { color: var(--teal-dark); font-weight: 600; font-size: 14px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .steps-wrap, .download-band { padding: 36px 24px; }
}
@media (max-width: 520px) {
  .sports-grid, .legal-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 70px; }
  .float-top { left: -8px; } .float-bottom { right: -6px; }
}
