:root {
  --navy: #08245c;
  --navy-dark: #051733;
  --blue: #1693ef;
  --blue-light: #e8f4fd;
  --orange: #ff7a00;
  --orange-light: #ff9a3d;
  --white: #ffffff;
  --text: #1a3566;
  --muted: #5a6f94;
  --border: rgba(8, 36, 92, 0.08);
  --shadow-sm: 0 4px 20px rgba(8, 36, 92, 0.06);
  --shadow: 0 16px 48px rgba(8, 36, 92, 0.1);
  --shadow-lg: 0 24px 64px rgba(8, 36, 92, 0.14);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width: 1200px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #f4f9fd;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* —— Header & hero banner —— */
.site-header {
  position: relative;
  background: var(--navy-dark);
}

.header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(5, 23, 51, 0.72) 80%, transparent 100%);
}

.header-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(255, 122, 0, 0.35);
}

nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
  font-size: 1.2rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
}

.hero-banner {
  position: relative;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  max-height: min(72vh, 740px);
  object-fit: cover;
  object-position: center top;
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #f4f9fd, transparent);
  pointer-events: none;
}

/* —— Intro strip —— */
.intro {
  padding: 48px 0 15px;
  text-align: center;
}

.intro p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: var(--white);
  box-shadow: 0 10px 28px rgba(255, 122, 0, 0.28);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* —— Sections —— */
.section {
  padding: 56px 0 72px;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--orange);
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--navy);
}

.section-heading p {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.65;
}

/* —— Game cards (centered) —— */
.cards-wrap {
  display: flex;
  justify-content: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 320px));
  gap: 22px;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
}

.card:nth-child(2) .card-accent {
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}

.card:nth-child(3) .card-accent {
  background: linear-gradient(90deg, var(--blue), var(--navy));
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, var(--blue-light) 0%, #dceefb 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  pointer-events: none;
}

.card-media-placeholder::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%235a6f94' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10.5' r='1.5' fill='%235a6f94' stroke='none'/%3E%3Cpath d='M21 17l-5.5-5.5a1.5 1.5 0 0 0-2.12 0L7 18'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 4px 12px rgba(8, 36, 92, 0.08);
}

.card-media-placeholder code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card h3 {
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.card p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.card-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-decoration: none;
  background: var(--navy);
  color: var(--white);
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.card-link:hover {
  background: var(--orange);
}

/* —— Learning section —— */
.learn-panel {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
}

.learn-panel h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.2;
}

.learn-panel > p {
  max-width: 580px;
  margin: 0 auto 32px;
  font-weight: 500;
  color: var(--muted);
  font-size: 1.02rem;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.benefit {
  background: linear-gradient(160deg, var(--navy) 0%, #0c3278 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
}

.benefit-visual {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.benefit-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.benefit h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.benefit p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

/* —— CTA —— */
.cta-box {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 48px 40px;
  text-align: center;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 12px;
}

.cta-box p {
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--muted);
}

footer {
  margin-top: 48px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  padding: 28px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

footer span {
  opacity: 0.6;
  margin: 0 8px;
}

@media (max-width: 960px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--max-width));
  }

  .header-bar {
    padding: 14px 0;
  }

  nav a {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .hero-banner img {
    max-height: 55vh;
  }

  .intro {
    padding: 36px 0 44px;
  }

  .learn-panel,
  .cta-box {
    padding: 32px 22px;
  }

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