/* ===== RESPONSIVE STYLES ===== */

/* Tablet Styles */
@media (max-width: 1024px) {
  .container {
    padding: 0 15px;
  }

  /* Hero Section */
  .hero {
    height: min(90vh, 860px);
    min-height: 660px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    padding-top: 64px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  /* Navigation */
  .nav-container {
    padding: 0.8rem 15px;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  /* Gameplay Section */
  .gameplay-content {
    gap: 50px;
  }

  .gameplay-text h2 {
    font-size: 2rem;
  }

  /* CTA Section */
  .cta-content h2 {
    font-size: 2.5rem;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.3rem; }

  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-container {
    padding: 0.8rem 15px;
    flex-direction: row;
    justify-content: space-between;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-img {
    width: 35px;
    height: 35px;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    min-width: 100px;
  }

  .btn-large {
    padding: 12px 24px;
    font-size: 1rem;
    min-width: 140px;
  }

  /* Hero Section */
  .hero {
    height: 90dvh;
    min-height: 600px;
  }

  .hero-depth-layer {
    object-position: center right; /* Show key content on narrow screens */
  }

  .hero:hover .hero-depth-layer {
    /* disable subtle hover-scale on mobile to save battery */
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 84px 20px 0;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .hero-stats {
    justify-content: center;
    margin-bottom: 1.25rem;
  }

  .count-up {
    margin-right: 10px;
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* Features Section */
  .features {
    margin-top: -20px;
    padding: calc(60px + 50px) 0 calc(60px + 95px);
  }

  .s-edge--mountain {
    height: 180px;
    transform: translateY(-70px);
  }

  .section-title {
    margin-bottom: 40px;
  }

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

  .feature-card {
    padding: 30px 20px;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }

  .feature-icon img {
    width: 40px;
    height: 40px;
  }

  /* Gameplay Section */
  .gameplay {
    margin-top: -15px;
    padding: calc(60px + 35px) 0 150px;
  }

  .s-edge--wave {
    height: 42px;
    transform: translateY(-40px);
  }

  .gameplay-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .gameplay-text {
    order: 2;
  }

  .gameplay-media {
    order: 1;
  }

  .gameplay-text p {
    font-size: 1rem;
  }

  .stat-bars {
    max-width: 440px;
    margin: 0 auto 24px;
  }

  .stat-bar-item {
    grid-template-columns: 90px 1fr auto;
    gap: 8px;
    font-size: 0.9rem;
  }

  .play-button {
    width: 60px;
    height: 60px;
  }

  /* CTA Section */
  .cta {
    margin-top: -45px;
    padding: calc(60px + 45px) 0 60px;
  }

  .cta-content h2 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .cta-content p {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .cta-actions {
    margin-bottom: 20px;
  }

  /* Footer */
  .footer {
    padding: 40px 0 20px;
  }

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

  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-depth-layer {
    object-position: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

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

  .count-up {
    font-size: 0.9rem;
    margin-right: 6px;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .feature-card {
    padding: 25px 15px;
  }

  .btn-large {
    padding: 12px 20px;
    min-width: 120px;
  }

  .nav-actions .btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-width: 80px;
  }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-bg-img,
  .logo-img,
  .character-img,
  .feature-icon img,
  .gameplay-img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 40px;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
    padding-top: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .character-img {
    max-width: 180px;
  }
}

/* Print Styles */
@media print {
  .hero-background,
  .hero-overlay,
  .cta-background,
  .cta-overlay {
    display: none;
  }

  .hero,
  .cta {
    background: white !important;
    color: black !important;
  }

  .landing-nav,
  .scroll-indicator,
  .play-button {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  .container {
    max-width: none;
    padding: 0;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-arrow {
    animation: none;
  }
}

/* Focus States for Accessibility */
.btn:focus,
.footer-link:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  /* This landing page is designed with a specific dark theme,
     so we maintain the design integrity */
}