/* ============================================================
   ScoreSheet — style.css
   Mobile-first, Dark Mode, Akzent #f99f16
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --accent:        #f99f16;
  --accent-dark:   #d98a0e;
  --accent-glow:   rgba(249, 159, 22, 0.15);

  --bg:            #121212;
  --bg-header:     rgba(18, 18, 18, 0.92);
  --card:          #1e1e1e;
  --card-hover:    #252525;
  --footer-bg:     #0d0d0d;
  --border:        rgba(255,255,255,0.07);

  --text:          #f0f0f0;
  --text-secondary: #999;
  --text-muted:    #555;

  --radius:        14px;
  --radius-sm:     8px;
  --radius-lg:     20px;

  --pad:           16px;
  --pad-sm:        8px;
  --pad-lg:        24px;

  --max-w:         960px;
  --max-w-prose:   720px;

  --shadow:        0 2px 12px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 24px rgba(249,159,22,0.2);

  --transition:    0.2s ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 72px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 5vw, 36px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--pad);
  line-height: 1.25;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 580px;
}

/* ── Header ─────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.header.scrolled {
  background: var(--bg-header);
  border-bottom-color: var(--border);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.header-brand span {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.header-nav {
  display: none;
  gap: var(--pad);
  align-items: center;
}

.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.header-nav a:hover { color: var(--text); }

.header-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 8px 16px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.header-cta:hover {
  background: var(--accent-dark) !important;
  color: #000 !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: var(--pad);
  flex-direction: column;
  gap: var(--pad);
  z-index: 99;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }

.mobile-nav .mobile-cta {
  background: var(--accent);
  color: #000;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  border: none;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(249,159,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(249,159,22,0.25);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}

.hero-title {
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(16px, 3vw, 19px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-badge {
  display: inline-block;
  transition: transform var(--transition), opacity var(--transition);
}

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

.store-badge img {
  height: 50px;
  width: auto;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-mockup {
  position: relative;
  width: 220px;
  height: 440px;
  background: #1a1a1a;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04), var(--shadow-accent);
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 2;
  border: 2px solid rgba(255,255,255,0.08);
  border-top: none;
}

.phone-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 42px;
  transition: opacity 1.2s ease;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 42px;
}

.phone-screen-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 20px;
  background: linear-gradient(160deg, #1e1e1e 0%, #161616 100%);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
  border-radius: 42px;
}

.phone-screen-placeholder svg {
  opacity: 0.4;
}

/* ── Features ───────────────────────────────────────────────── */
.features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pad);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.feature-card:hover {
  background: var(--card-hover);
  border-color: rgba(249,159,22,0.2);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Games ──────────────────────────────────────────────────── */
.games {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pad);
}

.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-card:hover {
  background: var(--card-hover);
  border-color: rgba(249,159,22,0.2);
  transform: translateY(-2px);
}

.game-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.game-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.game-icon svg { width: 24px; height: 24px; }

.game-meta { flex: 1; min-width: 0; }

.game-meta h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.game-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.game-players {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-glow);
  padding: 2px 8px;
  border-radius: 99px;
}

.game-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
}

details.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

details.faq-item[open] {
  border-color: rgba(249,159,22,0.25);
}

details.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad);
  padding: var(--pad) var(--pad-lg);
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  -webkit-appearance: none;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

details.faq-item[open] summary .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 var(--pad-lg) var(--pad-lg);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-answer a { color: var(--accent); }
.faq-answer a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-brand span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 300px;
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-kofi {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

/* ── Legal Pages ────────────────────────────────────────────── */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page .container {
  max-width: var(--max-w-prose);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  transition: color var(--transition);
}

.legal-back:hover { color: var(--accent); }

.legal-back svg { width: 16px; height: 16px; }

.legal-page h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content ul {
  margin: 0 0 14px 20px;
}

.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-placeholder {
  background: var(--card);
  border: 1px dashed rgba(249,159,22,0.3);
  border-radius: var(--radius);
  padding: var(--pad-lg);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── App Store Badge SVG ────────────────────────────────────── */
.badge-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* ── Divider ────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Responsive: 640px ──────────────────────────────────────── */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: 768px ──────────────────────────────────────── */
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .hamburger  { display: none; }

  .hero {
    padding: 140px 0 100px;
  }

  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }

  .hero-content {
    text-align: left;
    flex: 1;
  }

  .hero-eyebrow { /* stays centered on content */  }

  .hero-badges {
    align-items: flex-start;
  }

  .hero-visual {
    width: auto;
    flex-shrink: 0;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── Responsive: 1024px ─────────────────────────────────────── */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-title { letter-spacing: -0.04em; }
}
