/* ==========================================
   Sky Stack — Landing Website Styles
   ========================================== */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --surface: #1a1a28;
  --surface-hover: #222234;
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.6);
  --text-muted: rgba(255,255,255,0.35);
  --accent: #e94560;
  --accent-light: #ff6b6b;
  --accent-glow: rgba(233,69,96,0.3);
  --secondary: #ffd93d;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --max-width: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-light);
}

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

/* ==========================================
   Navbar
   ========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10,10,15,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav-logo img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 20%, rgba(233,69,96,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(77,150,255,0.08) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-icon {
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(233,69,96,0.3));
  animation: float 3s ease-in-out infinite;
}

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

.hero h1 {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.hero-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 8px 24px rgba(233,69,96,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(233,69,96,0.4);
  color: #fff;
}

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

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

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

/* ==========================================
   Sections
   ========================================== */

.section {
  padding: 100px 0;
}

.section h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 60px;
}

/* Play Section */

.play-section {
  background: var(--bg-elevated);
}

.game-preview {
  max-width: 420px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), var(--shadow-glow);
  border: 1px solid var(--border);
}

.game-preview iframe {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
}

/* Features */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* Themes */

.themes-section {
  background: var(--bg-elevated);
}

.themes-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.theme-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.theme-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.theme-swatch {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.theme-preview-card h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.theme-preview-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.theme-preview-card.neon .theme-swatch {
  background: linear-gradient(135deg, #e94560, #ff6b6b);
}

.theme-preview-card.pastel .theme-swatch {
  background: linear-gradient(135deg, #ffb3ba, #bae1ff);
}

.theme-preview-card.cyber .theme-swatch {
  background: linear-gradient(135deg, #00ff9f, #00d4ff);
}

.theme-preview-card.sunset .theme-swatch {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
}

/* CTA Section */

.cta-section {
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Legal Pages
   ========================================== */

.legal-page {
  padding-top: 80px;
}

.legal-content {
  padding: 60px 0 80px;
}

.legal-content h1 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.legal-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 48px;
}

.legal-content section {
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  text-align: left;
}

.legal-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--text-secondary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-content ul {
  color: var(--text-secondary);
  margin: 12px 0;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

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

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-brand img {
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

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

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

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

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .themes-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 12px 16px;
  }
  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 13px;
  }

  .hero h1 {
    font-size: 42px;
  }
  .hero-tagline {
    font-size: 17px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

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

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

  .game-preview iframe {
    height: 600px;
  }
}

@media (max-width: 400px) {
  .themes-showcase {
    grid-template-columns: 1fr;
  }
}
