:root {
  --blue-top: #3857a0;
  --blue-bottom: #24366b;
  --blue-deep: #1a2844;
  --cream: #f5f7fc;
  --accent: #fa8c38;
  --challenge: #b86cf8;
  --text: #1f2848;
  --text-muted: #4a5678;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 50px rgba(12, 20, 40, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(165deg, var(--blue-top) 0%, var(--blue-bottom) 55%, var(--blue-deep) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: #121d34;
}

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

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: white;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 1.25rem;
  opacity: 0.92;
}

.nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.12rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.pill-challenge {
  background: rgba(184, 108, 248, 0.28);
  border-color: rgba(220, 180, 255, 0.35);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #3a2208;
  font-weight: 800;
  padding: 0.9rem 1.5rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  color: #2a1805;
}

.btn-secondary {
  background: var(--cream);
  margin-left: 0.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art {
  text-align: center;
}

.hero-art img {
  width: min(320px, 78vw);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.section {
  padding: 1rem 0 3rem;
}

.card {
  background: var(--card);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: var(--blue-deep);
  letter-spacing: -0.02em;
}

.card h3 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

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

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

.feature {
  background: #f4f7fd;
  border: 1px solid #d8e2f4;
  border-radius: 16px;
  padding: 1.1rem;
}

.feature strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue-deep);
}

.feature-challenge {
  background: #f8f2ff;
  border-color: #e4d4f8;
}

.feature-challenge strong {
  color: #5a2d8a;
}

.mode-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.mode-table th,
.mode-table td {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #dde5f2;
}

.mode-table th {
  color: var(--blue-deep);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  text-align: center;
}

.site-footer a {
  color: white;
}

.legal-page {
  padding: 2rem 0 3rem;
}

.legal-page .card {
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-size: 2rem;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.legal-page .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin: 1.75rem 0 0.65rem;
}

.legal-page p,
.legal-page li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges,
  .hero-cta {
    justify-content: center;
  }

  .btn-secondary {
    margin-left: 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .nav a {
    margin-left: 0.75rem;
    font-size: 0.85rem;
  }
}
