:root {
  --primary-orange: #F48C41;
  --primary-dark-orange: #D1702A;
  --primary-light-orange: #FDEBD2;
  --secondary-green: #6EB57E;
  --neutral-white: #FFFFFF;
  --neutral-gray-100: #F8F9FA;
  --neutral-gray-200: #E9ECEF;
  --neutral-gray-400: #CED4DA;
  --text-dark: #2D2D2D;
  --text-body: #4A4A4A;
  --text-light: #757575;
  --accent-red: #E74C3C;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-xxxl: 64px;
  --container-padding: 120px;
  --gap-grid: 24px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(244, 140, 65, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(244, 140, 65, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--neutral-white);
  line-height: 1.5;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
}

h1 { font-size: 48px; }
h2 { font-size: 34px; }
h3 { font-size: 26px; }
h4 { font-size: 20px; }

p {
  margin: 0 0 var(--space-md) 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 80px;
  background: #ffffffb3;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--neutral-white);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
}

.brand img {
  width: 48px;
  height: 48px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 15px;
  position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--primary-orange);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--primary-orange);
  color: var(--primary-orange);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
}

.header-cta:hover {
  background: var(--primary-orange);
  color: var(--neutral-white);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
}

.mobile-menu {
  display: none;
  background: var(--neutral-white);
  border-top: 1px solid var(--neutral-gray-200);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.mobile-menu.active {
  max-height: 520px;
  opacity: 1;
  padding: var(--space-md) var(--container-padding) var(--space-lg);
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  color: var(--text-dark);
  font-weight: 500;
  border-bottom: 1px solid var(--neutral-gray-200);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--primary-orange);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-orange);
  color: var(--neutral-white);
}

.btn-primary:hover {
  background: var(--primary-dark-orange);
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-light {
  background: var(--neutral-white);
  color: var(--text-dark);
}

.btn-light:hover {
  background: var(--primary-light-orange);
  transform: scale(1.02);
}

.btn-green {
  background: var(--secondary-green);
  color: var(--neutral-white);
  padding: var(--space-sm) var(--space-xl);
}

.btn-green:hover {
  filter: brightness(0.92);
  transform: scale(1.02);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(45,45,45,0.78), rgba(45,45,45,0.55));
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-xxxl) var(--container-padding);
  max-width: 900px;
}

.hero-subtitle {
  color: var(--neutral-white);
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.hero h1 {
  color: var(--neutral-white);
  font-size: 56px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  margin-bottom: var(--space-lg);
}

.hero p {
  color: var(--neutral-white);
  opacity: 0.9;
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto var(--space-xl);
}

/* Highlight cards */
.highlight-cards {
  margin-top: -60px;
  position: relative;
  z-index: 3;
  padding-bottom: var(--space-xxxl);
}

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

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

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

.card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-orange);
}

.card-icon {
  color: var(--primary-orange);
  margin-bottom: var(--space-md);
}

.card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.card p {
  font-size: 14px;
  color: var(--text-body);
  margin: 0;
}

/* About / split sections */
.section-light {
  background: var(--neutral-gray-100);
}

.section-padded {
  padding: var(--space-xxxl) 0;
}

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
  align-items: center;
}

.split-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.split-content h2 {
  margin-bottom: var(--space-lg);
}

.split-content .quote {
  font-size: 18px;
  font-style: italic;
  color: var(--text-body);
  max-width: 500px;
  line-height: 1.8;
}

/* Welcome banner */
.welcome-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
}

.welcome-text {
  background: var(--primary-orange);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xxxl) var(--container-padding);
}

.welcome-text h2 {
  color: var(--neutral-white);
  margin-bottom: var(--space-md);
}

.welcome-text p {
  color: var(--neutral-white);
  opacity: 0.9;
  font-size: 18px;
  margin-bottom: var(--space-xl);
}

.welcome-image img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* Course / game cards */
.game-cards {
  padding: var(--space-xxxl) 0;
}

.game-card {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-card-body {
  padding: var(--space-lg);
}

.game-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-sm);
}

.game-card p {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

/* Program details */
.detail-cards {
  padding: var(--space-xxxl) 0;
}

.detail-card {
  background: var(--neutral-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-bottom-color: var(--primary-orange);
}

.detail-card h4 {
  margin-bottom: var(--space-sm);
}

.detail-card p {
  font-size: 14px;
  margin-bottom: var(--space-md);
}

.detail-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-body);
  font-size: 12px;
}

.detail-meta svg {
  color: var(--primary-orange);
}

/* Banner */
.banner-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(45,45,45,0.6);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: var(--space-xxxl) var(--container-padding);
}

.banner-content h2 {
  color: var(--neutral-white);
  margin-bottom: var(--space-md);
}

.banner-content p {
  color: var(--neutral-white);
  opacity: 0.9;
  font-size: 18px;
  margin-bottom: var(--space-xl);
}

/* Inner page header */
.page-header {
  padding: 140px 0 80px;
  background: var(--neutral-gray-100);
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: 18px;
  max-width: 640px;
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid var(--neutral-gray-200);
  background: var(--neutral-white);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(244, 140, 65, 0.2);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--accent-red);
}

/* Footer */
.site-footer {
  background: var(--neutral-gray-100);
  padding-top: var(--space-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding-bottom: var(--space-xxl);
}

.footer-divider {
  background: var(--neutral-gray-200);
  width: 1px;
  min-height: 120px;
}

.footer-col {
  text-align: center;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  color: var(--primary-orange);
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: var(--text-body);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-col a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid var(--neutral-gray-200);
  padding: var(--space-md) var(--container-padding);
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

/* Utility */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-lg { margin-top: var(--space-lg); }
.mb-lg { margin-bottom: var(--space-lg); }
.section-title { text-align: center; margin-bottom: var(--space-xxl); }
.section-title h2 { margin-bottom: var(--space-sm); }
.section-title p { max-width: 640px; margin: 0 auto; }

.list-plain {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg) 0;
}

.list-item-row {
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.banner-community {
  background-image: url('/assets/images/banner-community.jpg');
}

.banner-join {
  background-image: url('/assets/images/banner-join.jpg');
}

.form-status { margin-top: 16px; font-size: 14px; }
.form-status.success { color: var(--secondary-green); }
.form-status.error { color: var(--accent-red); }

/* Game review grid specific */
.review-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
}

.review-item {
  background: var(--neutral-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
}

.review-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.review-item-body {
  padding: var(--space-lg);
}

.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.review-tag {
  background: var(--primary-light-orange);
  color: var(--primary-dark-orange);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.review-score {
  color: var(--primary-orange);
  font-weight: 700;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  :root {
    --container-padding: 60px;
  }
}

@media (max-width: 900px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .mobile-menu {
    display: block;
  }
  .header-inner {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  .hero-content,
  .welcome-text {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }
  .grid-3,
  .grid-4,
  .split-section,
  .welcome-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-divider {
    display: none;
  }
  .split-image img,
  .welcome-image img {
    height: 320px;
    min-height: auto;
  }
  .welcome-text {
    order: 2;
  }
  .welcome-image {
    order: 1;
  }
}

@media (max-width: 700px) {
  :root {
    --container-padding: 24px;
  }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .hero h1 { font-size: 32px; }
  .section-padded,
  .game-cards,
  .detail-cards {
    padding: var(--space-xxl) 0;
  }
  .review-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 701px) and (max-width: 900px) {
  .review-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
