/* ==========================================================================
   Ludo 3D - Modern Dark Gaming CSS System
   ========================================================================== */

:root {
  --bg-dark: #070913;
  --bg-card: rgba(18, 22, 45, 0.7);
  --bg-card-hover: rgba(26, 32, 64, 0.85);
  
  --primary-cyan: #00f2fe;
  --primary-blue: #4facfe;
  --accent-magenta: #ff007f;
  --accent-amber: #ffb300;
  --accent-green: #00e676;
  
  --text-main: #f0f4f8;
  --text-muted: #94a3b8;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-glow: rgba(0, 242, 254, 0.3);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Ambient Glows */
.bg-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

.bg-glow-1 {
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, var(--primary-cyan), transparent 70%);
}

.bg-glow-2 {
  top: 400px;
  right: -150px;
  background: radial-gradient(circle, var(--accent-magenta), transparent 70%);
}

.bg-glow-3 {
  bottom: 200px;
  left: 20%;
  background: radial-gradient(circle, var(--accent-amber), transparent 70%);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glow);
  box-shadow: 0 25px 50px rgba(0, 242, 254, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
  color: #070913;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-cyan);
  transform: translateY(-3px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-glow {
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo-icon {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px var(--primary-cyan));
}

.nav-menu {
  display: flex;
  gap: 32px;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--primary-cyan);
}

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

/* Hero Section */
.hero {
  padding: 160px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-cyan);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 242, 254, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  width: fit-content;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-cyan);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Hero Visual & Interactive 3D Mockup */
.game-preview-card {
  padding: 20px;
  position: relative;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.preview-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.board-3d-mockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 30px 20px;
}

/* 3D Cube CSS */
.cube-container {
  perspective: 800px;
  width: 100px;
  height: 100px;
}

.dice-3d-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(-30deg);
  transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cube-face {
  position: absolute;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.15);
}

.front  { transform: rotateY(0deg) translateZ(50px); }
.back   { transform: rotateY(180deg) translateZ(50px); }
.right  { transform: rotateY(90deg) translateZ(50px); }
.left   { transform: rotateY(-90deg) translateZ(50px); }
.top    { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }

.tokens-row {
  display: flex;
  gap: 16px;
}

.token-pillar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.red-pillar { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.green-pillar { background: linear-gradient(135deg, #11998e, #38ef7d); }
.yellow-pillar { background: linear-gradient(135deg, #ffe000, #799f0c); color: #000; }
.blue-pillar { background: linear-gradient(135deg, #00c6ff, #0072ff); }

.roll-btn {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid var(--primary-cyan);
  color: var(--primary-cyan);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.roll-btn:hover {
  background: var(--primary-cyan);
  color: #070913;
}

/* Features Grid */
.features {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
}

.section-badge {
  color: var(--accent-magenta);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 36px 28px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.cyan-icon { background: rgba(0, 242, 254, 0.15); color: var(--primary-cyan); }
.magenta-icon { background: rgba(255, 0, 127, 0.15); color: var(--accent-magenta); }
.amber-icon { background: rgba(255, 179, 0, 0.15); color: var(--accent-amber); }
.green-icon { background: rgba(0, 230, 118, 0.15); color: var(--accent-green); }

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

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

/* Dice Simulator Section */
.dice-demo {
  padding: 60px 0 100px;
}

.demo-box {
  padding: 60px;
  text-align: center;
}

.result-display {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-cyan);
  margin: 28px 0;
}

/* Download CTA */
.download-cta {
  padding: 60px 0 120px;
}

.cta-box {
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(18, 22, 45, 0.9) 0%, rgba(30, 20, 60, 0.9) 100%);
}

.cta-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 179, 0, 0.15);
  color: var(--accent-amber);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.cta-box h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 36px;
}

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

/* Footer */
.footer {
  border-top: 1px solid var(--border-light);
  background: rgba(7, 9, 19, 0.95);
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 320px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-main);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Legal / Privacy Policy Page */
.legal-page {
  padding-top: 120px;
}

.legal-container {
  padding-bottom: 100px;
}

.legal-card {
  padding: 60px 48px;
}

.legal-header h1 {
  font-size: 3rem;
  margin: 16px 0 8px;
}

.last-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
}

.legal-body {
  margin-top: 40px;
}

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

.legal-section h2 {
  font-size: 1.5rem;
  color: var(--primary-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-section p, .legal-section ul {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.legal-section ul {
  padding-left: 24px;
}

.legal-section li {
  margin-bottom: 10px;
}

.contact-box {
  padding: 24px;
  margin-top: 20px;
}

.accent-link {
  color: var(--primary-cyan);
  text-decoration: none;
}

.accent-link:hover {
  text-decoration: underline;
}

.legal-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 36px;
  }
  .hero-cta-group, .hero-stats {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #070913;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: block;
  }
  .legal-card {
    padding: 36px 20px;
  }
}
