/* ============================================
   IZRA SOLDIERS - Marketing Website
   Dark Fantasy Theme | RTL Hebrew
   ============================================ */

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

:root {
  --gold: #c8a84e;
  --gold-light: #e8d48b;
  --gold-dark: #a08030;
  --emerald: #3d8b5e;
  --emerald-light: #5ab87a;
  --emerald-dark: #1a3a28;
  --amber: #d4953a;
  --amber-glow: rgba(212, 149, 58, 0.25);
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a28;
  --text-primary: #e8e6e0;
  --text-secondary: #a0a0a0;
  --text-dim: #6a6a6a;
  --border-subtle: rgba(200, 168, 78, 0.15);
  --border-gold: rgba(200, 168, 78, 0.4);
  --shadow-gold: 0 0 30px rgba(200, 168, 78, 0.15);
  --font-heading: 'Cinzel', 'David Libre', serif;
  --font-body: 'Assistant', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --nav-height: 70px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  line-height: 1.3;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1a0a;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  text-align: center;
}
.btn:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #1a1a0a;
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
}
.btn-outline:hover {
  background: rgba(200, 168, 78, 0.1);
  color: var(--gold-light);
}
.btn-small, .btn-nav {
  padding: 10px 24px;
  font-size: 0.95rem;
}
.btn-large {
  padding: 18px 50px;
  font-size: 1.2rem;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* =====================
   NAVIGATION
   ===================== */
.navbar, .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled, .nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(61, 139, 94, 0.1);
}
.nav-container, .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo, .navbar .nav-logo {
  height: 50px;
  cursor: pointer;
  transition: opacity 0.3s;
}
.navbar .nav-logo { height: auto; }
.navbar .nav-logo img, a.nav-logo img { height: 50px; }
.nav-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links li { list-style: none; }
.nav-links a {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { margin-right: 8px; }

/* Hamburger (both class names used) */
.hamburger, .nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 8px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 15, 0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu-links a {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-family: var(--font-heading);
  transition: color 0.3s;
}
.mobile-menu a:hover, .mobile-menu-links a:hover { color: var(--gold); }
.mobile-menu-links { list-style: none; display: contents; }
.mobile-menu-links li { display: block; }
.mobile-menu-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.3) 0%,
    rgba(10, 10, 15, 0.55) 50%,
    rgba(10, 10, 15, 0.95) 90%,
    rgba(10, 10, 15, 1) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding-top: var(--nav-height);
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 0.8s ease-out;
}
.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}
.hero-buttons, .hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}
.hero-trust {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  color: var(--text-dim);
  font-size: 1.5rem;
}

/* =====================
   FEATURES
   ===================== */
.features {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative;
}
.features::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(61, 139, 94, 0.04) 0%, transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(61, 139, 94, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--gold), var(--emerald));
  opacity: 0;
  transition: opacity 0.4s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.feature-card:nth-child(2):hover { border-color: rgba(61, 139, 94, 0.4); box-shadow: 0 0 30px rgba(61, 139, 94, 0.15); }
.feature-card:nth-child(4):hover { border-color: rgba(61, 139, 94, 0.4); box-shadow: 0 0 30px rgba(61, 139, 94, 0.15); }
.feature-card:nth-child(5):hover { border-color: rgba(212, 149, 58, 0.4); box-shadow: 0 0 30px rgba(212, 149, 58, 0.15); }
.feature-card:nth-child(6):hover { border-color: rgba(212, 149, 58, 0.4); box-shadow: 0 0 30px rgba(212, 149, 58, 0.15); }
.feature-card:hover::before { opacity: 1; }

/* Alternate feature heading colors */
.feature-card:nth-child(2) h3 { color: var(--emerald-light); }
.feature-card:nth-child(4) h3 { color: var(--emerald-light); }
.feature-card:nth-child(5) h3 { color: var(--amber); }
.feature-card:nth-child(6) h3 { color: var(--amber); }
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =====================
   RACES
   ===================== */
.races {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1418 50%, var(--bg-dark) 100%);
  position: relative;
}
.races::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(61, 139, 94, 0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(61, 139, 94, 0.04) 0%, transparent 60%);
  pointer-events: none;
}
.races-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.race-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.4s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.race-card:hover {
  transform: translateY(-6px);
}
.race-card:nth-child(1):hover { border-color: var(--emerald); box-shadow: 0 0 30px rgba(61, 139, 94, 0.2); }
.race-card:nth-child(2):hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.race-card:nth-child(3):hover { border-color: var(--emerald); box-shadow: 0 0 30px rgba(61, 139, 94, 0.2); }
.race-card:nth-child(4):hover { border-color: var(--amber); box-shadow: 0 0 30px rgba(212, 149, 58, 0.2); }
.race-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.race-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.race-card:hover .race-image img {
  transform: scale(1.08);
}
.race-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.7) 0%, transparent 60%);
}
.race-info {
  padding: 20px;
  background: var(--bg-card);
  flex: 1;
}
.race-info h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.race-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.race-bonus {
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  background: rgba(200, 168, 78, 0.15);
  border-radius: 6px;
  display: inline-block;
}

/* =====================
   HOW IT WORKS
   ===================== */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0f14 50%, var(--bg-dark) 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  right: 16.66%;
  left: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald), var(--gold-dark), var(--emerald));
}
.step { text-align: center; position: relative; }
.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.step:nth-child(1) .step-number { border-color: var(--emerald); color: var(--emerald-light); box-shadow: 0 0 20px rgba(61, 139, 94, 0.2); }
.step:nth-child(2) .step-number { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 20px rgba(200, 168, 78, 0.2); }
.step:nth-child(3) .step-number { border-color: var(--emerald); color: var(--emerald-light); box-shadow: 0 0 20px rgba(61, 139, 94, 0.2); }
.step h3 { font-size: 1.2rem; margin-bottom: 12px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }

/* =====================
   CTA SECTION (season section removed)

/* =====================
   CTA SECTION
   ===================== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 50%, rgba(212, 149, 58, 0.06) 0%, transparent 45%),
              radial-gradient(ellipse at 60% 50%, rgba(200, 168, 78, 0.08) 0%, transparent 45%),
              radial-gradient(ellipse at center bottom, rgba(61, 139, 94, 0.05) 0%, transparent 60%);
}
.cta-section h2, .cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p, .cta-content p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.cta-content { position: relative; }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #060609;
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), var(--gold-dark), var(--emerald), transparent);
}
.footer-grid, .footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  height: 50px;
  margin-bottom: 12px;
}
.footer-col p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 8px;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* =====================
   INNER PAGE HERO
   ===================== */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/background.jpg') center top/cover no-repeat;
  opacity: 0.3;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.6), rgba(10, 10, 15, 1));
}
.page-hero h1 {
  position: relative;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.page-hero p {
  position: relative;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* =====================
   STORY PAGE
   ===================== */
.story-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.story-chapter {
  margin-bottom: 60px;
}
.story-chapter h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.story-chapter h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.story-chapter:nth-child(2) h2::after { background: linear-gradient(90deg, var(--emerald-light), transparent); }
.story-chapter:nth-child(4) h2::after { background: linear-gradient(90deg, var(--emerald-light), transparent); }
.story-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 2;
  margin-bottom: 16px;
}
.story-divider {
  text-align: center;
  margin: 48px 0;
  color: var(--gold-dark);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 8px;
}
.story-chapter:nth-child(odd) h2 { color: var(--gold); }
.story-chapter:nth-child(2) h2 { color: var(--emerald-light); }
.story-chapter:nth-child(4) h2 { color: var(--emerald-light); }
.story-highlight {
  color: var(--text-primary);
  font-weight: 600;
  font-style: italic;
}

/* =====================
   GUIDE PAGE
   ===================== */
.guide-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.guide-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 60px;
}
.guide-toc h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.guide-toc ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.guide-toc a {
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s;
}
.guide-toc a:hover {
  background: rgba(200, 168, 78, 0.08);
  color: var(--gold);
}
.guide-toc .toc-icon, .guide-toc svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--gold);
  stroke: var(--gold);
}
.guide-section {
  margin-bottom: 60px;
  scroll-margin-top: calc(var(--nav-height) + 20px);
}
.guide-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}
.guide-section:nth-child(3n+1) .guide-section-header { border-bottom-color: rgba(61, 139, 94, 0.2); }
.guide-section:nth-child(3n+2) .guide-section-header { border-bottom-color: rgba(61, 139, 94, 0.2); }
.guide-section-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 168, 78, 0.1);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--gold);
}
.guide-section-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}
/* Alternate guide section accent colors */
.guide-section:nth-child(3n+1) .guide-section-icon { background: rgba(61, 139, 94, 0.12); border-color: rgba(61, 139, 94, 0.25); }
.guide-section:nth-child(3n+1) .guide-section-icon svg { stroke: var(--emerald-light); }
.guide-section:nth-child(3n+1) h2 { color: var(--emerald-light); }
.guide-section:nth-child(3n+2) .guide-section-icon { background: rgba(61, 139, 94, 0.12); border-color: rgba(61, 139, 94, 0.25); }
.guide-section:nth-child(3n+2) .guide-section-icon svg { stroke: var(--emerald-light); }
.guide-section:nth-child(3n+2) h2 { color: var(--emerald-light); }
.guide-section:nth-child(3n) .guide-section-icon { background: rgba(200, 168, 78, 0.1); border-color: var(--border-subtle); }
.guide-section:nth-child(3n) .guide-section-icon svg { stroke: var(--gold); }
.guide-section h2 { font-size: 1.6rem; }
.guide-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 14px;
}
.guide-section strong { color: var(--gold-light); }
.guide-tip {
  background: rgba(61, 139, 94, 0.06);
  border-right: 3px solid var(--emerald);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* =====================
   TERMS PAGE
   ===================== */
.terms-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}
.terms-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.terms-content h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
}
.terms-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 12px;
}
.terms-content ul {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  padding-right: 24px;
  margin-bottom: 12px;
  list-style: disc;
}
.terms-content li { margin-bottom: 6px; }
.terms-date {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

/* =====================
   LOGIN MODAL
   ===================== */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
}
.login-modal-overlay.open {
  display: flex;
}
.login-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--shadow-gold);
}
.login-modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s;
}
.login-modal-close:hover {
  color: var(--text-primary);
}
.login-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.login-modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}
.login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: linear-gradient(135deg, #1a1a28, #22223a);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-google:hover {
  background: linear-gradient(135deg, #22223a, #2a2a48);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15);
  color: #fff;
  transform: translateY(-1px);
}
.btn-google svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.btn-email {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn-email:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 4px 0;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* Scroll reveal - only apply when JS is loaded */
.js-loaded .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js-loaded .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero reveals always animate (above the fold) */
.hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .races-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid, .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 60px; }
  .nav-links { display: none; }
  .hamburger, .nav-hamburger { display: block; }
  .btn-nav, .nav-cta { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1.05rem; }
  .section-header h2 { font-size: 1.8rem; }
  .features-grid { grid-template-columns: 1fr; }
  .races-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { display: none; }
  .footer-grid, .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 130px 0 60px; }
  .page-hero h1 { font-size: 2rem; }
  .guide-toc ul { grid-template-columns: 1fr; }
  .cta-section h2, .cta-content h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-buttons .btn, .hero-cta .btn { width: 100%; }
  .races-grid { grid-template-columns: 1fr; }
}
