/* =========================================
   Board Game Now — Landing Page Styles
   ========================================= */

:root {
  --primary: #7C3AED;
  --primary-light: #A78BFA;
  --primary-dark: #5B21B6;
  --secondary: #EC4899;
  --accent: #F59E0B;
  --bg: #0F0B1A;
  --bg-secondary: #1A1128;
  --bg-card: #221736;
  --bg-card-hover: #2D1F47;
  --text: #F8F7FF;
  --text-secondary: #A89EC8;
  --text-muted: #7B6F99;
  --border: rgba(124, 58, 237, 0.15);
  --gradient: linear-gradient(135deg, #7C3AED 0%, #EC4899 100%);
  --gradient-text: linear-gradient(135deg, #A78BFA 0%, #F472B6 50%, #F59E0B 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

/* =========================================
   Typography
   ========================================= */

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; }

h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-top: 16px;
}

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.12);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.btn-white {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-lg .btn-icon { width: 22px; height: 22px; }

.btn-nav {
  background: var(--gradient);
  color: white;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}
.btn-nav:hover { transform: translateY(-1px); }

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(15, 11, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.08);
  transition: all var(--transition);
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(15, 11, 26, 0.95);
  border-bottom-color: rgba(124, 58, 237, 0.15);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

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

.hero {
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  opacity: 0.15;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  left: -100px;
  opacity: 0.1;
}

.shape-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 50%;
  left: 50%;
  opacity: 0.06;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 24px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--text); }

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Phone Mockup */
.hero-phone {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--bg-card);
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
}

.phone-frame::before {
  display: none;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--primary-dark) 100%);
}

.phone-frame.placeholder::after {
  content: '🎲';
  font-size: 64px;
  opacity: 0.3;
}

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

.features {
  padding: 120px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 58, 237, 0.15);
  border-radius: 12px;
  padding: 10px;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================
   Screenshots
   ========================================= */

.screenshots {
  padding: 120px 0;
  background: var(--bg-secondary);
  overflow: hidden;
}

.screenshots-carousel {
  position: relative;
  overflow: hidden;
  margin: 0 -24px;
  padding: 0 24px;
}

.screenshots-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.screenshots-track::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 11, 26, 0.85);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  opacity: 0.8;
}

.carousel-arrow:hover {
  opacity: 1;
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.carousel-arrow svg {
  width: 22px;
  height: 22px;
}

.carousel-prev { left: 32px; }
.carousel-next { right: 32px; }

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
}

.screenshot-phone {
  width: 220px;
  height: 440px;
  background: var(--bg-card);
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition);
  position: relative;
}

.screenshot-phone:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(124, 58, 237, 0.3);
}

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

.screenshot-phone.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(124, 58, 237, 0.15) 100%);
}

.screenshot-phone.placeholder::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.screenshot-phone.placeholder img { display: none; }

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

.games {
  padding: 120px 0;
}

.games-showcase {
  margin-bottom: 48px;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.game-tag {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: default;
}

.game-tag:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  color: var(--text);
  transform: translateY(-2px);
}

.game-tag:last-child {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  font-weight: 700;
}

.custom-game-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  max-width: 600px;
  margin: 0 auto;
}

.callout-icon { font-size: 2.5rem; }

.callout-content h3 {
  margin-bottom: 6px;
  color: var(--text);
}

.callout-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* =========================================
   How It Works
   ========================================= */

.how-it-works {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  max-width: 280px;
  padding: 0 24px;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.step h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* =========================================
   App Banner
   ========================================= */

.app-banner {
  padding: 80px 0;
}

.banner-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.banner-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   Download CTA
   ========================================= */

.download-cta {
  padding: 120px 0;
}

.cta-card {
  background: var(--gradient);
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-icon {
  margin-bottom: 24px;
}

.cta-app-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-content h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* QR Code — Desktop Only */
.cta-qr {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}

.qr-wrapper {
  display: inline-flex;
  border-radius: 12px;
  border: 2px solid var(--primary-light);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.qr-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.qr-image {
  width: 150px;
  height: 150px;
  max-width: 150px;
  max-height: 150px;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.qr-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
  font-weight: 500;
  letter-spacing: 0.03em;
}

@media (min-width: 769px) {
  .cta-qr {
    display: flex;
  }
}

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

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

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 280px; }

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.footer-name {
  display: block;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 12px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-container { gap: 48px; }
}

@media (max-width: 768px) {
  .hero { padding: 100px 0 50px; min-height: auto; }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }

  .hero-phone { order: -1; margin-bottom: 20px; }
  .phone-frame { width: 220px; height: 460px; }

  .features-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

  .features, .screenshots, .games, .how-it-works, .download-cta {
    padding: 80px 0;
  }

  .app-banner { padding: 40px 0; }

  .screenshots-track { padding: 20px 16px; }
  .carousel-arrow { display: none; }

  .screenshot-phone {
    width: 180px;
    height: 370px;
  }

  .steps { flex-direction: column; align-items: center; gap: 32px; }
  .step-connector { width: 2px; height: 40px; margin: 0; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 11, 26, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu-btn { display: flex; }

  .footer-content { flex-direction: column; gap: 40px; }
  .footer-links { gap: 40px; flex-wrap: wrap; }

  .cta-card { padding: 48px 24px; }
  .cta-app-icon { width: 64px; height: 64px; border-radius: 16px; }

  .game-tags { gap: 8px; }
  .game-tag { font-size: 0.8rem; padding: 8px 14px; }

  .custom-game-callout { flex-direction: column; text-align: center; padding: 24px; }

  .section-header p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 0 40px; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 36px; height: 1px; }
  .footer-links { flex-direction: column; gap: 28px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }

  .phone-frame { width: 200px; height: 420px; }

  .screenshot-phone {
    width: 160px;
    height: 330px;
  }

  .features, .screenshots, .games, .how-it-works, .download-cta {
    padding: 60px 0;
  }

  .banner-wrapper { border-radius: 16px; }
}

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

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =========================================
   Back to Top
   ========================================= */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(15, 11, 26, 0.9);
  backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-to-top.visible {
  opacity: 0.8;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  opacity: 1;
  background: rgba(124, 58, 237, 0.3);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}
