/* ============================================
   EXISTING STYLES (preserved for policy/terms pages)
   ============================================ */
.center-logo {
  display: block;
  margin: 0 auto 2em auto;
  max-width: 80vw;
  max-height: 80vh;
}

.policy {
  /* никаких display: flex! */
  max-width: 700px;
  margin: 0 auto;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  background: #000225;
  margin: 0;
  padding: 2em 0;
}

a {
  color: #fff;
}

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* CSS Custom Properties */
:root {
  --color-bg: #000225;
  --color-text: #fff;
  --color-text-muted: rgba(255, 255, 255, 0.7);
  --color-accent: #6b5ce7;
  --color-accent-hover: #8677ed;
  --color-card-bg: rgba(255, 255, 255, 0.05);
  --color-card-border: rgba(255, 255, 255, 0.1);
  --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

/* Reset & Base for landing page */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.landing {
  font-family: var(--font-family);
  color: var(--color-text);
  line-height: 1.6;
  padding: 0;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 2, 37, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-card-border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--spacing-md);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--spacing-md) var(--spacing-xl);
  background:
    radial-gradient(ellipse at top, rgba(107, 92, 231, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(107, 92, 231, 0.1) 0%, transparent 40%),
    var(--color-bg);
}

.hero-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
  animation: float 3s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-accent-hover);
  margin: 0 0 var(--spacing-md) 0;
  font-weight: 300;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto var(--spacing-md) auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(107, 92, 231, 0.3);
}

/* Sections */
.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 var(--spacing-lg) 0;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  margin: var(--spacing-sm) auto 0;
  border-radius: 2px;
}

/* Game Section */
.game-section {
  background:
    radial-gradient(ellipse at center, rgba(107, 92, 231, 0.08) 0%, transparent 60%),
    var(--color-bg);
}

.game-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 20px;
  padding: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.game-icon {
  flex-shrink: 0;
}

.game-icon img {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(107, 92, 231, 0.2);
}

.game-info {
  flex: 1;
}

.game-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
}

.game-subtitle {
  color: var(--color-accent-hover);
  font-size: 1rem;
  margin: 0 0 var(--spacing-sm) 0;
}

.game-description {
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.7;
}

.game-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.game-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.feature-icon {
  color: var(--color-accent);
  font-weight: bold;
}

/* App Store Buttons */
.app-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
  color: var(--color-bg);
}

.app-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.app-btn-small {
  font-size: 0.65rem;
  opacity: 0.8;
}

.app-btn-large {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
}

/* About Section */
.about-section {
  background: var(--color-bg);
}

.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.8;
}

.about-content p:last-child {
  margin-bottom: 0;
}

/* Contact Section */
.contact-section {
  background:
    radial-gradient(ellipse at bottom, rgba(107, 92, 231, 0.1) 0%, transparent 50%),
    var(--color-bg);
  text-align: center;
}

.contact-intro {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto var(--spacing-md) auto;
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-accent-hover);
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-accent);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.contact-email:hover {
  background: var(--color-accent);
  color: var(--color-text);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.3);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid var(--color-card-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.footer-brand {
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: var(--spacing-md);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--color-card-border);
}

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

/* Tablet (768px and below) */
@media (max-width: 768px) {
  .nav-links {
    gap: var(--spacing-sm);
  }

  .game-card {
    flex-direction: column;
    text-align: center;
    padding: var(--spacing-md);
  }

  .game-features {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .app-buttons {
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
  }

  .nav-container {
    height: 60px;
  }

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

  .nav-links {
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 0.85rem;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-logo {
    width: 90px;
    height: 90px;
  }

  .game-icon img {
    width: 100px;
    height: 100px;
    border-radius: 22px;
  }

  .game-title {
    font-size: 1.4rem;
  }

  .app-buttons {
    flex-direction: column;
    align-items: center;
  }

  .app-btn {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .contact-email {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo {
    animation: none;
  }

  .btn, .app-btn, .contact-email {
    transition: none;
  }
}
