:root {
  --bg-primary: #070913;
  --bg-secondary: #0f1225;
  --bg-card: rgba(22, 27, 54, 0.7);
  --bg-card-hover: rgba(32, 39, 78, 0.85);
  --border-color: rgba(120, 90, 255, 0.2);
  --border-glow: rgba(0, 242, 254, 0.4);
  
  --primary: #7952ff;
  --primary-glow: rgba(121, 82, 255, 0.5);
  --accent-cyan: #00f2fe;
  --accent-pink: #ff2a7a;
  --accent-gold: #ffd200;
  --accent-green: #00e676;
  
  --text-main: #f0f3ff;
  --text-muted: #9aa5c4;
  --text-dim: #64748b;
  
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(121, 82, 255, 0.35);
  --shadow-cyan: 0 0 25px rgba(0, 242, 254, 0.35);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(121, 82, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(0, 242, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 42, 122, 0.08) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography & Base */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient Text & Highlights */
.gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #7952ff 50%, #ff2a7a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(121, 82, 255, 0.15);
  border: 1px solid rgba(121, 82, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #c4b5fd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

/* Navigation Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 9, 19, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 18px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 15px var(--primary-glow);
  border: 1px solid rgba(121, 82, 255, 0.4);
  display: block;
  flex-shrink: 0;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7952ff, #00f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--primary-glow);
}

.logo-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.lang-btn:hover {
  background: rgba(121, 82, 255, 0.25);
  border-color: var(--primary);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, #7952ff 0%, #4f46e5 100%);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(121, 82, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(121, 82, 255, 0.6);
  background: linear-gradient(135deg, #8a66ff 0%, #5b52f5 100%);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-playstore {
  background: #0f1422;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  transition: var(--transition);
  text-align: left;
}

.btn-playstore:hover {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.btn-playstore .play-icon {
  width: 28px;
  height: 28px;
}

.btn-playstore .btn-text-small {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.btn-playstore .btn-text-large {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.1;
  display: block;
}

/* Hero Section */
.hero {
  padding: 90px 0 70px;
  position: relative;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 540px;
}

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

.hero-features-preview {
  display: flex;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.preview-item .icon {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.preview-item span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Interactive Board Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  background: #111428;
  border-radius: 40px;
  padding: 16px;
  border: 4px solid #282f54;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(121, 82, 255, 0.3);
  position: relative;
}

.phone-screen {
  background: #0b0d1e;
  border-radius: 28px;
  padding: 20px 16px;
  overflow: hidden;
}

.game-hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.hud-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  text-align: center;
}

.hud-pill span {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-pill strong {
  font-size: 1rem;
  color: var(--accent-gold);
}

/* 8x8 Grid Simulation */
.board-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  background: #070914;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.grid-cell {
  aspect-ratio: 1;
  background: #171c38;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.grid-cell.filled-1 { background: #4facfe; box-shadow: 0 0 8px rgba(79, 172, 254, 0.6); }
.grid-cell.filled-2 { background: #7952ff; box-shadow: 0 0 8px rgba(121, 82, 255, 0.6); }
.grid-cell.filled-3 { background: #ff2a7a; box-shadow: 0 0 8px rgba(255, 42, 122, 0.6); }
.grid-cell.filled-4 { background: #00e676; box-shadow: 0 0 8px rgba(0, 230, 118, 0.6); }
.grid-cell.filled-gold { background: #ffd200; box-shadow: 0 0 10px rgba(255, 210, 0, 0.8); }

.pieces-tray {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 6px;
  border-radius: 16px;
}

.tray-piece {
  display: grid;
  gap: 2px;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.tray-piece:hover {
  transform: scale(1.1);
}

.tray-piece .cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.tray-piece.piece-1 { grid-template-columns: repeat(2, 1fr); }
.tray-piece.piece-1 .cell { background: #00f2fe; }

.tray-piece.piece-2 { grid-template-columns: repeat(3, 1fr); }
.tray-piece.piece-2 .cell { background: #ff2a7a; }

.tray-piece.piece-3 { grid-template-columns: repeat(2, 1fr); }
.tray-piece.piece-3 .cell { background: #7952ff; }

/* Section Headers */
.section {
  padding: 100px 0;
}

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

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

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-glow);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(121, 82, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid rgba(121, 82, 255, 0.3);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
  fill: var(--accent-cyan);
}

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

/* How to Play Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  position: relative;
}

.step-number {
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(121, 82, 255, 0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--accent-cyan);
}

/* Powerups Showcase */
.powerups-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.powerup-box {
  background: linear-gradient(145deg, rgba(26, 32, 64, 0.6) 0%, rgba(13, 16, 35, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.powerup-icon {
  font-size: 2.2rem;
  background: rgba(255, 255, 255, 0.05);
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Download CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1b1642 0%, #0d1a3b 100%);
  border: 1px solid rgba(121, 82, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(121, 82, 255, 0.25);
  margin: 60px 0;
}

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

.cta-banner p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* Legal & Policy Page Styles */
.policy-page {
  padding: 60px 0 100px;
}

.policy-app-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(22, 27, 54, 0.85);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.policy-app-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  display: block;
}

.policy-app-info {
  display: flex;
  flex-direction: column;
}

.policy-app-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.policy-app-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.policy-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  margin-bottom: 40px;
}

.policy-header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.policy-meta {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.policy-lang-toggle {
  display: inline-flex;
  gap: 10px;
  margin: 20px 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-lang-btn {
  padding: 8px 18px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.policy-lang-btn.active {
  background: var(--primary);
  color: white;
}

.policy-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
}

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

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

.policy-section h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
  color: #c4b5fd;
}

.policy-section p, 
.policy-section ul {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

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

.policy-section li {
  margin-bottom: 8px;
}

.policy-alert {
  background: rgba(0, 242, 254, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}

.policy-table th, 
.policy-table td {
  padding: 14px 18px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.policy-table th {
  background: rgba(121, 82, 255, 0.2);
  color: var(--text-main);
  font-weight: 600;
}

.policy-table td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: #05060d;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 70px 0 30px;
}

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

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

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent-cyan);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-cyan);
}

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