/* ============================================
   CRSHR Landing Page - Dark Minimal Design
   ============================================ */

:root {
  /* Colors */
  --bg-primary: #0a0a0b;
  --bg-secondary: #0d0d0f;
  --bg-surface: #141416;
  --bg-surface-2: #1a1a1d;
  --bg-surface-3: #222225;

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;

  --accent: #3C30EB;
  --accent-hover: #4a3ef5;
  --accent-glow: rgba(60, 48, 235, 0.3);

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1200px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-georgian: 'Noto Sans Georgian', 'Inter', sans-serif;

  /* Transitions */
  --transition: 0.2s ease;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* Georgian Language Font */
html[lang="ka"] body {
  font-family: var(--font-family-georgian);
}

html[lang="ka"] .lang-btn {
  font-family: var(--font-family-georgian);
}

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

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

/* ============================================
   Scroll Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for grid items */
.features-grid .fade-in:nth-child(1) { transition-delay: 0s; }
.features-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.features-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.features-grid .fade-in:nth-child(5) { transition-delay: 0.4s; }
.features-grid .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   Keyframe Animations
   ============================================ */

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 5px var(--accent-glow); }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-download {
  background: var(--accent);
  color: var(--text-primary) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}

.nav-download:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
}

.lang-dropdown-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface-2);
}

.lang-dropdown.open .lang-dropdown-toggle {
  color: var(--text-primary);
  border-color: var(--accent);
}

.lang-icon {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.lang-current {
  min-width: 20px;
}

.lang-chevron {
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transition: transform var(--transition);
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-family);
}

.lang-option:hover {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.lang-option.active {
  background: rgba(60, 48, 235, 0.1);
  color: var(--accent);
}

.lang-option-text {
  font-weight: 500;
}

.lang-option-code {
  font-size: 12px;
  opacity: 0.6;
  font-weight: 400;
}

html[lang="ka"] .lang-dropdown-toggle,
html[lang="ka"] .lang-option {
  font-family: var(--font-family-georgian);
}

@media (max-width: 768px) {
  .lang-dropdown {
    margin-left: 8px;
    padding-left: 8px;
  }

  .lang-dropdown-toggle {
    padding: 6px 10px;
    font-size: 12px;
  }

  .lang-icon {
    width: 14px;
    height: 14px;
  }

  .lang-dropdown-menu {
    min-width: 140px;
  }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 16px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition);
}

.stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   Interactive Demo
   ============================================ */

.hero-demo {
  flex: 1;
  max-width: 400px;
}

.demo-container {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}

.demo-preview {
  background: var(--bg-surface-2);
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.demo-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-surface-2) 70%);
  pointer-events: none;
}

#crosshair-demo {
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 10px currentColor);
  animation: float 3s ease-in-out infinite;
}

.demo-controls {
  padding-top: 16px;
}

.demo-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.color-picker {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.color-btn:hover {
  transform: scale(1.15);
}

.color-btn.active {
  border-color: var(--text-primary);
  transform: scale(1.15);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Animated Download Button */
.hero-buttons .btn-primary {
  position: relative;
  overflow: hidden;
}

.hero-buttons .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.hero-buttons .btn-primary:hover::before {
  left: 100%;
}

.btn-secondary {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-hover);
}

.btn-large {
  padding: 18px 36px;
  font-size: 16px;
}

/* ============================================
   Section Styles
   ============================================ */

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ============================================
   Features Section
   ============================================ */

.features {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-surface-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  transform: scale(1.1);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
  transition: stroke var(--transition);
}

.feature-card:hover .feature-icon svg {
  stroke: white;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   App Screenshots Section
   ============================================ */

.screenshots-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.screenshots-showcase {
  max-width: 900px;
  margin: 0 auto;
}

.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.screenshot-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.screenshot-tab svg {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}

.screenshot-tab:hover {
  background: var(--bg-surface-2);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.screenshot-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-primary);
}

.screenshot-tab.active svg {
  opacity: 1;
}

.screenshot-display {
  margin-bottom: 24px;
}

.screenshot-frame {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

.screenshot-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screenshot-content.active {
  opacity: 1;
  visibility: visible;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.screenshot-features {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.screenshot-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.5;
  transition: all var(--transition);
}

.screenshot-feature.active {
  opacity: 1;
  color: var(--text-secondary);
}

.feature-dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: all var(--transition);
}

.screenshot-feature.active .feature-dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

@media (max-width: 768px) {
  .screenshot-tabs {
    flex-wrap: wrap;
  }

  .screenshot-tab {
    padding: 10px 16px;
    font-size: 13px;
  }

  .screenshot-tab span {
    display: none;
  }

  .screenshot-features {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

/* ============================================
   Before/After Comparison Section
   ============================================ */

.compare-demo-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.before-after-container {
  max-width: 800px;
  margin: 0 auto;
}

.before-after-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: ew-resize;
  user-select: none;
}

.before-image,
.after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.before-image {
  z-index: 1;
}

.after-image {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.game-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-label {
  position: absolute;
  top: 16px;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.before-label {
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  color: #ef4444;
}

.after-label {
  right: 16px;
  background: rgba(60, 48, 235, 0.9);
  color: #fff;
}

.crosshair-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(0, 255, 0, 0.8)) drop-shadow(0 0 16px rgba(0, 255, 0, 0.4));
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.slider-button {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  pointer-events: auto;
  cursor: ew-resize;
}

.slider-button svg {
  width: 24px;
  height: 24px;
  color: white;
}

.slider-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .slider-button {
    width: 40px;
    height: 40px;
  }

  .slider-button svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   Video Section
   ============================================ */

.video-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.video-container {
  max-width: 900px;
  margin: 0 auto;
}

.video-container iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.play-icon {
  width: 64px;
  height: 64px;
  color: var(--accent);
}

.video-placeholder p {
  font-size: 18px;
  font-weight: 500;
}

.video-note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================
   Games Section
   ============================================ */

.games-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.game-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  transition: all var(--transition);
}

.game-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.game-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  transition: transform var(--transition);
}

.game-card:hover .game-icon {
  transform: scale(1.1);
}

.game-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.games-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   FAQ Section
   ============================================ */

.faq-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-surface);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================================
   Download Section
   ============================================ */

.download {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.download-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 13px;
  color: #22c55e;
  margin-bottom: 24px;
}

.download-badge svg {
  width: 16px;
  height: 16px;
}

.download-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  margin-bottom: 32px;
}

.download-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--bg-surface-2);
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.download-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.download-note {
  font-size: 14px;
  color: var(--text-muted);
}

.download-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  transition: color var(--transition);
}

.download-note a:hover {
  color: var(--accent);
}

.download-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.download-info .dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

@media (max-width: 600px) {
  .download-meta {
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 64px 24px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-size: 18px;
  font-weight: 600;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-columns {
  display: flex;
  gap: 64px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.footer-column a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-column a svg {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-made {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-made svg {
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-columns {
    flex-wrap: wrap;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .footer-columns {
    flex-direction: column;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-demo {
    max-width: 100%;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links a:not(.nav-download) {
    display: none;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

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

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

  .download-card {
    padding: 48px 24px;
  }

  .download-title {
    font-size: 28px;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .download-info {
    flex-wrap: wrap;
  }

  .faq-question {
    font-size: 14px;
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

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

  .demo-container {
    padding: 24px;
  }

  .demo-preview {
    padding: 24px;
  }
}

/* ============================================
   Guide Section (How To Use)
   ============================================ */

.guide-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

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

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   Requirements Section
   ============================================ */

.requirements-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.req-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.req-card.recommended {
  border-color: var(--accent);
}

.req-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--accent);
  color: var(--text-primary);
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.req-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  padding-top: 8px;
}

.req-list {
  list-style: none;
}

.req-list li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.req-list li:last-child {
  border-bottom: none;
}

.req-label {
  color: var(--text-primary);
  font-weight: 500;
}

@media (max-width: 768px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Comparison Section
   ============================================ */

.compare-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-surface);
}

.compare-table th,
.compare-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  background: var(--bg-surface-2);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
}

.compare-table th.highlight {
  color: var(--accent);
}

.compare-table td.highlight {
  background: rgba(60, 48, 235, 0.05);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover {
  background: var(--bg-surface-2);
}

.compare-table .check {
  font-weight: 500;
}

.compare-table .check.green {
  color: #22c55e;
}

.compare-table .check.red {
  color: #ef4444;
}

.compare-table .check.yellow {
  color: #eab308;
}

.compare-table .price {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .compare-table th,
  .compare-table td {
    padding: 12px 16px;
    font-size: 13px;
  }
}

/* ============================================
   Changelog Section
   ============================================ */

.changelog-section {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.changelog-list {
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.changelog-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}

.changelog-header:hover {
  background: var(--bg-surface-2);
}

.changelog-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.changelog-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.version-tag {
  background: var(--bg-surface-2);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: monospace;
}

.version-tag.latest {
  background: var(--accent);
  color: var(--text-primary);
}

.version-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.version-date {
  font-size: 13px;
  color: var(--text-muted);
}

.changelog-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.changelog-item.open .changelog-chevron {
  transform: rotate(180deg);
}

.changelog-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.changelog-item.open .changelog-content {
  max-height: 500px;
}

.changelog-content ul {
  list-style: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
  margin-top: 0;
  padding-top: 20px;
}

.changelog-content li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.changelog-content .badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.changelog-content .badge.new {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.changelog-content .badge.fix {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.changelog-content .badge.improve {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.changelog-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.changelog-all-link:hover {
  color: var(--accent);
}

.changelog-all-link svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .changelog-header-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================
   Troubleshooting Section
   ============================================ */

.troubleshooting-section {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.trouble-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all var(--transition);
}

.trouble-card:hover {
  border-color: var(--border-hover);
}

.trouble-icon {
  width: 48px;
  height: 48px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.trouble-icon svg {
  width: 24px;
  height: 24px;
  stroke: #ef4444;
}

.trouble-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.trouble-solution {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.trouble-solution strong {
  color: #22c55e;
}

.trouble-solution em {
  color: var(--text-primary);
  font-style: normal;
  background: var(--bg-surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.trouble-note {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-secondary);
}

.trouble-note a {
  color: var(--accent);
  text-decoration: underline;
}

.trouble-note a:hover {
  color: var(--accent-hover);
}

@media (max-width: 768px) {
  .trouble-grid {
    grid-template-columns: 1fr;
  }
}
