/* ==========================================================
   LUDO KING - OFFICIAL WEBSITE STYLESHEET
   Design System: Royal Dark Gaming & Glassmorphism
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #070B14;
  --bg-secondary: #0D1424;
  --bg-card: rgba(19, 28, 48, 0.7);
  --bg-card-hover: rgba(28, 42, 72, 0.85);
  
  /* Ludo Accent Colors */
  --ludo-gold: #F59E0B;
  --ludo-gold-light: #FDE68A;
  --ludo-gold-glow: rgba(245, 158, 11, 0.35);
  
  --ludo-red: #EF4444;
  --ludo-green: #10B981;
  --ludo-yellow: #EAB308;
  --ludo-blue: #3B82F6;
  
  /* UI Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-gold: rgba(245, 158, 11, 0.35);
  --glass-bg: rgba(13, 20, 36, 0.75);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.15), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(239, 68, 68, 0.12), transparent 45%),
    radial-gradient(circle at 50% 75%, rgba(245, 158, 11, 0.1), transparent 50%);
  background-attachment: fixed;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold {
  color: var(--ludo-gold);
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================
   NAVIGATION BAR
   ========================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--ludo-gold-glow);
  border: 1.5px solid var(--border-gold);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--ludo-gold-light);
  border: 1px solid var(--border-gold);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, #FBBF24 0%, #F59E0B 50%, #D97706 100%);
  color: #0F172A;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.55);
  color: #000;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================
   HERO SECTION
   ========================================================== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--ludo-gold-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 16px;
  background: #111827;
  border: 1.5px solid var(--border-glass);
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.store-badge-btn:hover {
  border-color: var(--ludo-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--ludo-gold-glow);
}

.store-badge-icon {
  width: 32px;
  height: 32px;
}

.store-badge-text small {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-badge-text strong {
  display: block;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Hero Media Showcase */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.banner-glow-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 6px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.4), rgba(59, 130, 246, 0.4), rgba(239, 68, 68, 0.4));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.banner-glow-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 60px rgba(245, 158, 11, 0.3);
}

.hero-banner-img {
  width: 100%;
  max-width: 520px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* Floating App Icon Badge */
.floating-icon-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 18px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  animation: floatBadge 4s ease-in-out infinite alternate;
}

.floating-icon-badge img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.floating-badge-text h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
}

.floating-badge-text span {
  font-size: 0.75rem;
  color: var(--ludo-gold);
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================
   FEATURES SECTION
   ========================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ludo-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 32px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--ludo-red), var(--ludo-yellow), var(--ludo-green), var(--ludo-blue));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

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

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================
   SCREENSHOTS SHOWCASE
   ========================================================== */
.screenshots-section {
  background: var(--bg-secondary);
  position: relative;
}

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 30px;
}

.screenshot-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid var(--border-glass);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
  cursor: pointer;
  background: #000;
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.screenshot-card:hover {
  transform: translateY(-8px);
  border-color: var(--ludo-gold);
  box-shadow: 0 20px 45px var(--ludo-gold-glow);
}

.screenshot-card:hover img {
  transform: scale(1.03);
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

/* ==========================================================
   HOW TO PLAY
   ========================================================== */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rule-step {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 24px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ludo-gold);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.rule-step h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* ==========================================================
   FAQ SECTION
   ========================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.3rem;
  transition: var(--transition);
  color: var(--ludo-gold);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 20px;
}

/* ==========================================================
   DOWNLOAD BANNER
   ========================================================== */
.cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #1E293B 50%, #0F172A 100%);
  border: 1px solid var(--border-gold);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--ludo-gold-glow) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: #04070D;
  border-top: 1px solid var(--border-glass);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ==========================================================
   PRIVACY POLICY SPECIFIC STYLES
   ========================================================== */
.privacy-wrapper {
  padding: 60px 0;
  max-width: 860px;
  margin: 0 auto;
}

.privacy-header {
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 24px;
}

.privacy-header h1 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.privacy-date {
  color: var(--ludo-gold);
  font-size: 0.95rem;
  font-weight: 600;
}

.privacy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(12px);
}

.privacy-section {
  margin-bottom: 32px;
}

.privacy-section h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy-section h2::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 18px;
  background: var(--ludo-gold);
  border-radius: 4px;
}

.privacy-section p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

.privacy-section ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
}

.privacy-section ul li {
  color: var(--text-muted);
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  line-height: 1.6;
}

.privacy-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ludo-green);
  font-weight: bold;
}

.highlight-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0;
}

.highlight-box p {
  margin-bottom: 0;
  color: var(--ludo-gold-light);
  font-weight: 500;
}

/* ==========================================================
   IMAGE LIGHTBOX MODAL
   ========================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.modal.open {
  display: flex;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 18px;
  border: 2px solid var(--border-gold);
  box-shadow: 0 0 40px var(--ludo-gold-glow);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--ludo-gold);
}

/* ==========================================================
   RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

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

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

  .floating-icon-badge {
    left: 20px;
    bottom: -15px;
  }

  .screenshots-row {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-glass);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
  }

  .nav-menu.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .screenshots-row {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 30px auto 0;
  }

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

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

  .privacy-card {
    padding: 24px;
  }

  .privacy-header h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    gap: 18px;
  }

  .stat-item h3 {
    font-size: 1.3rem;
  }

  .btn {
    width: 100%;
  }

  .store-badge-btn {
    width: 100%;
    justify-content: center;
  }
}
