:root {
  --bg: #020617;
  --bg-alt: #020617;
  --card: #0b1120;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.18);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border: #1f2937;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 55%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #020617;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #4ade80, #22c55e 40%, #16a34a);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.6);
}

.nav-logo-mark span {
  font-size: 0.8rem;
  color: #022c22;
  font-weight: 700;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text small {
  font-size: 0.7rem;
  color: #9ca3af;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
  padding: 0.1rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.35);
  color: #022c22;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(34, 197, 94, 0.45);
}

.btn-outline {
  border-color: #334155;
  color: var(--muted);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(15, 23, 42, 0.95);
}

/* Mobile nav */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  header.nav-open .nav-links,
  header.nav-open .nav-cta {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4rem;
    right: 1.5rem;
    background: #020617;
    padding: 1rem 1.3rem;
    border-radius: 1.25rem;
    border: 1px solid #1f2937;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    min-width: 220px;
  }

  header.nav-open .nav-links {
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 0.6rem;
  }

  header.nav-open .nav-cta {
    gap: 0.5rem;
  }

  header.nav-open .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Layout */

main {
  padding: 2.5rem 0 3.5rem;
}

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

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.25rem;
  }
}

/* Hero */

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 2.6rem;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.hero-title span {
  color: #4ade80;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-meta-item strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

/* Hero side card */

.hero-card {
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.22), transparent 55%),
    var(--card);
  border-radius: 1.5rem;
  padding: 1.5rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-soft);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bbf7d0;
  border: 1px solid rgba(74, 222, 128, 0.4);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin: 0;
}

.hero-list {
  list-style: none;
  padding-left: 0;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.hero-list li::before {
  content: "• ";
  color: #4ade80;
}

.disclaimer {
  font-size: 0.75rem;
  color: #6b7280;
}

/* Generic sections */

.section {
  padding: 2rem 0 0;
}

.section-header {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.section-title {
  font-size: 1.4rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 30rem;
}

/* Grids & cards */

.grid {
  display: grid;
  gap: 1rem;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1.1rem 1.1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.card h3 {
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

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

.card ul {
  list-style: none;
  padding-left: 0;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0;
}

.card ul li::before {
  content: "– ";
  color: #64748b;
}

/* Steps list */

.steps {
  list-style: decimal;
  padding-left: 1.3rem;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Competitions extras */

.competition-hero {
  margin-bottom: 2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
}

.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.9);
}

.leaderboard {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.leaderboard th,
.leaderboard td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #1f2937;
  text-align: left;
}

.leaderboard th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #9ca3af;
}

/* Footer */

footer {
  border-top: 1px solid #111827;
  padding: 1.25rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.18em;
}
