:root {
  --bg-deep: #0b1410;
  --bg-surface: #12211a;
  --bg-card: #172a21;
  --bg-card-hover: #1d3529;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(252, 209, 22, 0.35);

  --red: #ce1126;
  --red-dark: #8a1020;
  --gold: #fcd116;
  --gold-soft: #ffe36e;
  --green: #009460;
  --green-light: #16b37a;
  --green-dark: #006b42;

  --text-main: #f5f7f6;
  --text-muted: #b6c5bd;
  --text-soft: #8ea398;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 10%, rgba(206, 17, 38, 0.16), transparent 36%),
    radial-gradient(circle at 88% 15%, rgba(252, 209, 22, 0.12), transparent 34%),
    radial-gradient(circle at 50% 85%, rgba(0, 148, 96, 0.16), transparent 44%),
    linear-gradient(165deg, #13251c 0%, #0b1410 55%, #070e0b 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--gold-soft);
}

h1,
h2,
h3,
h4,
.brand-name {
  font-family: 'Fredoka', 'Outfit', -apple-system, sans-serif;
  margin-top: 0;
  line-height: 1.2;
}

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

/* Tricolor Guinea ribbon */
.guinea-ribbon {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--red) 0% 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66% 100%);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 20, 16, 0.82);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
}

.brand:hover {
  color: var(--text-main);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(252, 209, 22, 0.25);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-sub {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(252, 209, 22, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: rgba(252, 209, 22, 0.22);
}

/* Buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.45rem;
  border-radius: 16px;
  font-family: 'Fredoka', 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 148, 96, 0.35), 0 4px 0 #004c2f;
}

.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(0, 148, 96, 0.45), 0 4px 0 #004c2f;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(206, 17, 38, 0.32), 0 4px 0 #5e0914;
}

.btn-secondary:hover {
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(206, 17, 38, 0.42), 0 4px 0 #5e0914;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover {
  color: var(--gold);
  border-color: var(--border-gold);
  background: rgba(252, 209, 22, 0.08);
}

.btn-meta {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-meta small {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.88;
}

.btn-meta strong {
  font-size: 0.98rem;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(252, 209, 22, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(90deg, #ff5f6d 0%, var(--gold) 50%, #3ee8a5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 0 1.85rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.55rem;
  color: var(--gold);
}

.stat-item span {
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 100%;
  max-width: 330px;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(155deg, #253b30, #101b15);
  border: 2px solid rgba(252, 209, 22, 0.35);
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 148, 96, 0.22);
}

.phone-screen {
  border-radius: 26px;
  padding: 1.35rem 1.15rem 1.4rem;
  background: linear-gradient(170deg, #162b21 0%, #0d1813 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.phone-notch {
  width: 96px;
  height: 18px;
  margin: 0 auto 1.1rem;
  border-radius: 999px;
  background: #070d0a;
}

.phone-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hud-chip {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #1d120b;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
}

.hud-timer {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #fff8e8;
  border: 1.5px solid var(--red);
  color: var(--red);
}

.phone-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.phone-question {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.9rem;
}

.phone-option {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #ffffff;
  background: var(--green-dark);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 0 #00472c;
}

.phone-option.correct {
  background: var(--green-light);
  border-color: var(--gold);
  box-shadow: 0 3px 0 var(--green-dark);
}

.phone-option.accent {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 3px 0 #5b0813;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2.6rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 0.7rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, rgba(26, 46, 36, 0.92), rgba(17, 31, 24, 0.94));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  background: rgba(252, 209, 22, 0.12);
  border: 1px solid var(--border-gold);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

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

.mode-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: var(--radius-lg);
}

.mode-card.challenge {
  border-color: rgba(206, 17, 38, 0.45);
  background: linear-gradient(155deg, rgba(206, 17, 38, 0.16), rgba(18, 33, 26, 0.96) 55%);
}

.mode-card.duel {
  border-color: rgba(0, 148, 96, 0.5);
  background: linear-gradient(155deg, rgba(0, 148, 96, 0.2), rgba(18, 33, 26, 0.96) 55%);
}

.mode-tag {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.mode-card.challenge .mode-tag {
  background: rgba(206, 17, 38, 0.24);
  color: #ff99a4;
}

.mode-card.duel .mode-tag {
  background: rgba(0, 148, 96, 0.25);
  color: #7bf0c3;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
}

/* CTA Banner */
.cta-banner {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  background:
    linear-gradient(135deg, rgba(0, 148, 96, 0.22), rgba(206, 17, 38, 0.18)),
    var(--bg-card);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-banner h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 55ch;
}

/* Privacy Policy Layout */
.policy-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.policy-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 0.8rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.4rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 1rem;
}

.policy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.25rem;
  padding: 2.75rem 0 4.5rem;
  align-items: start;
}

.policy-toc {
  position: sticky;
  top: 96px;
  background: rgba(18, 33, 26, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.policy-toc h2 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.policy-toc ol {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.policy-toc a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.policy-toc a:hover {
  color: var(--gold);
}

.policy-content {
  display: grid;
  gap: 1.5rem;
}

.policy-card {
  background: rgba(18, 33, 26, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  scroll-margin-top: 92px;
}

.policy-card h2 {
  font-size: 1.38rem;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.policy-card h3 {
  font-size: 1.08rem;
  color: var(--text-main);
  margin: 1.2rem 0 0.45rem;
}

.policy-card p,
.policy-card li {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.policy-card ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.9rem;
  display: grid;
  gap: 0.4rem;
}

.policy-highlight {
  margin: 1rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 148, 96, 0.12);
  border-left: 4px solid var(--green-light);
  color: var(--text-main);
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.data-table th {
  background: rgba(252, 209, 22, 0.1);
  color: var(--gold);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.data-table td {
  color: var(--text-muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.badge-platform {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(7, 14, 11, 0.92);
  padding: 2.5rem 0;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.92rem;
}

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

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

.footer-copy {
  color: var(--text-soft);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-toc {
    position: static;
  }

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

@media (max-width: 680px) {
  .header-inner {
    padding: 0.75rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 2.75rem 0 2.25rem;
  }

  .cards-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .cta-banner,
  .policy-card {
    padding: 1.35rem;
  }
}

/* Print support for privacy policy */
@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  .site-header,
  .policy-toc,
  .site-footer,
  .guinea-ribbon {
    display: none;
  }

  .policy-layout {
    display: block;
    padding: 0;
  }

  .policy-card {
    background: #ffffff;
    border: 1px solid #cccccc;
    break-inside: avoid;
    margin-bottom: 1rem;
  }

  .policy-card h2,
  .policy-card h3,
  .policy-card p,
  .policy-card li,
  .data-table th,
  .data-table td {
    color: #111111;
  }
}
