:root {
  --bg: #151618;
  --bg-subtle: #1c1e22;
  --surface: #23262c;
  --surface-elevated: #2b2f36;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-primary: #f2f4f7;
  --text-secondary: #a1a7b0;
  --text-muted: #6c737f;
  --accent: #45eb88;
  --accent-pressed: #35d978;
  --accent-dim: rgba(69, 235, 136, 0.12);
  --max-width: 880px;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: block;
}

.brand .accent {
  color: var(--accent);
}

.brand-accent {
  color: var(--accent);
}

/* Inline Sporta wordmark used within text and headings.
   Art is now tightly cropped (421x180). The "Sportα" baseline sits ~10% up
   from the bottom, so a small negative vertical-align seats it on the
   surrounding text baseline. */
.logo-inline {
  height: 1.5em;
  width: auto;
  vertical-align: -0.42em;
  margin: 0 0.12em;
}

.section-title .logo-inline {
  height: 1.35em;
  vertical-align: -0.38em;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: var(--surface);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  background: radial-gradient(
      1200px 480px at 50% -10%,
      rgba(69, 235, 136, 0.16),
      transparent 60%
    ),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(69, 235, 136, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.btn-primary:hover {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Sections ---------- */
section {
  padding: 64px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ---------- About band ---------- */
.band {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.band .container {
  max-width: 720px;
}

.band p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ---------- Legal / article pages ---------- */
.legal {
  padding: 56px 0 72px;
}

.legal h1 {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 36px;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  padding-top: 8px;
  letter-spacing: -0.01em;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal ul {
  padding-left: 22px;
}

.legal li {
  margin-bottom: 8px;
}

.legal .note {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 28px 0;
}

.legal .note p {
  margin: 0;
}

.legal strong {
  color: var(--text-primary);
}

/* ---------- Download page ---------- */
.download-hero {
  position: relative;
  padding: 72px 0 80px;
  background: radial-gradient(
      900px 420px at 50% 0%,
      rgba(69, 235, 136, 0.14),
      transparent 65%
    ),
    var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--border);
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.download-logo {
  width: min(280px, 72vw);
  height: auto;
  margin: 0 auto 28px;
  display: block;
}

.coming-soon {
  display: inline-block;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 12px 22px;
  margin: 0 auto 28px;
}

.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}

.store-badges--join {
  margin-top: 8px;
  margin-bottom: 20px;
}

.store-badge-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.store-badge-link:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.store-badge-img {
  display: block;
  height: 40px;
  width: auto;
}

.store-badge-img--play {
  height: 40px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.store-badge--cta {
  background: var(--accent, #45eb88);
  color: #0a0a0a;
  text-decoration: none;
  font-weight: 700;
}

.store-badge--cta:hover {
  opacity: 0.92;
}

.store-badge-disabled {
  background: var(--surface);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.download-note,
.download-support {
  color: var(--text-secondary);
  font-size: 0.98rem;
  max-width: 480px;
  margin: 0 auto 12px;
}

.download-support a {
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #0f1012;
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .hero {
    padding: 64px 0 52px;
  }
  section {
    padding: 48px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
