/* Scoring Room — palette from AppTheme.swift */

:root {
  --bullseye-yellow: #fdee30;
  --board-green: #1b5e20;
  --board-green-mid: #2e7d32;
  --center-red: #d32f2f;
  --room-canvas: #f0efea;
  --room-surface: #fafaf7;
  --room-elevated: #ffffff;
  --room-divider: #e4e2db;
  --text-primary: #1a261e;
  --text-secondary: #4a5c50;
  --text-muted: #6b7d72;
  --shadow-green: rgba(27, 94, 32, 0.12);
  --glow-yellow: rgba(253, 238, 48, 0.45);
  --glow-green: rgba(27, 94, 32, 0.18);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--room-canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Background atmosphere ── */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.glow--yellow {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--glow-yellow) 0%, transparent 70%);
  top: -80px;
  right: 5%;
  animation: pulse 14s ease-in-out infinite alternate;
}

.glow--green {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--glow-green) 0%, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation: pulse 18s ease-in-out infinite alternate-reverse;
}

.board-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--board-green);
  opacity: 0.06;
}

.board-ring--outer {
  width: 520px;
  height: 520px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
}

.board-ring--inner {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -38%);
  border-color: var(--center-red);
  opacity: 0.05;
}

@keyframes pulse {
  from { transform: translate(0, 0) scale(1); opacity: 0.7; }
  to   { transform: translate(16px, -12px) scale(1.06); opacity: 1; }
}

.page-wrap {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ── Navigation ── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(240, 239, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--room-divider);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
  height: 100%;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-decoration: none;
}

.wordmark span {
  color: var(--board-green);
}

.wordmark-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--center-red) 0%, var(--center-red) 22%, var(--bullseye-yellow) 22%, var(--bullseye-yellow) 55%, var(--board-green) 55%, var(--board-green) 100%);
  box-shadow: 0 0 12px var(--glow-yellow);
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--room-divider);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-primary);
  background: var(--room-elevated);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--board-green);
}

/* ── Hero ── */

.hero {
  padding: 4.5rem 0 5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--board-green);
  background: rgba(27, 94, 32, 0.08);
  border: 1px solid rgba(27, 94, 32, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
}

.hero h1 .accent {
  display: block;
  color: var(--board-green);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-desc {
  max-width: 38rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--board-green), var(--board-green-mid));
  color: #fff;
  box-shadow: 0 4px 20px var(--shadow-green), 0 0 24px var(--glow-green);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px var(--shadow-green), 0 0 32px var(--glow-green);
}

.btn-ghost {
  background: var(--room-elevated);
  color: var(--board-green);
  border: 1px solid var(--room-divider);
}

.btn-ghost:hover {
  border-color: var(--board-green);
  transform: translateY(-1px);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.stat-pill {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--room-elevated);
  border: 1px solid var(--room-divider);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  box-shadow: 0 2px 8px var(--shadow-green);
}

.stat-pill strong {
  color: var(--board-green);
}

/* ── Sections ── */

section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: linear-gradient(180deg, rgba(250, 250, 247, 0.6) 0%, rgba(240, 239, 234, 0.4) 100%);
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--center-red);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  max-width: 28rem;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

/* ── Features ── */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--room-elevated);
  border: 1px solid var(--room-divider);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 16px var(--shadow-green);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(27, 94, 32, 0.25);
  box-shadow: 0 8px 28px var(--shadow-green), 0 0 20px var(--glow-green);
}

.feature-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  color: var(--bullseye-yellow);
  background: var(--board-green);
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  letter-spacing: 0.05em;
}

.feature-card h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--board-green);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── About ── */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-copy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 3px solid var(--bullseye-yellow);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bullseye {
  position: relative;
  width: 220px;
  height: 220px;
}

.bullseye__ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bullseye__ring--1 {
  width: 100%;
  height: 100%;
  background: var(--board-green);
  box-shadow: 0 0 40px var(--glow-green);
}

.bullseye__ring--2 {
  width: 72%;
  height: 72%;
  background: var(--room-canvas);
}

.bullseye__ring--3 {
  width: 48%;
  height: 48%;
  background: var(--bullseye-yellow);
  box-shadow: 0 0 20px var(--glow-yellow);
}

.bullseye__center {
  position: absolute;
  width: 18%;
  height: 18%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--center-red);
}

/* ── Privacy ── */

.privacy-effective {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.privacy-card {
  background: var(--room-elevated);
  border: 1px solid var(--room-divider);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.privacy-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--board-green);
  margin-bottom: 0.65rem;
}

.privacy-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Contact ── */

.contact-block {
  text-align: center;
}

.contact-block .section-title,
.contact-block .section-lead {
  margin-inline: auto;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 260px;
  padding: 1.25rem 1.5rem;
  background: var(--room-elevated);
  border: 1px solid var(--room-divider);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 4px 16px var(--shadow-green);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--board-green);
  box-shadow: 0 8px 24px var(--shadow-green);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--board-green);
}

/* ── Footer ── */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--room-divider);
  background: var(--room-surface);
}

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

.footer-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--board-green);
}

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

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* ── Mobile ── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--room-elevated);
    border-bottom: 1px solid var(--room-divider);
    padding: 0.5rem 0;
    box-shadow: 0 8px 24px var(--shadow-green);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--room-divider);
  }

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

  .site-nav {
    position: relative;
  }

  .nav-inner {
    position: relative;
  }

  .hero {
    padding: 3rem 0 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .bullseye {
    width: 160px;
    height: 160px;
  }

  section {
    padding: 3.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
