/* ==========================================================================
   BlockyBoo: Block Drop Puzzle - Master Stylesheet
   Modern, Sleek, Fully Responsive Neon-Dark Theme
   Tested for all screen sizes (Mobile, Tablet, Laptop, Desktop)
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #04040f;
  --bg-secondary: #0c0c22;
  --bg-card: rgba(18, 18, 44, 0.78);
  --bg-card-hover: rgba(28, 28, 65, 0.9);
  --bg-glass: rgba(10, 10, 28, 0.9);
  --border-color: #252550;
  --border-focus: #6366f1;
  --border-glow: rgba(99, 102, 241, 0.35);

  /* Vibrant Game Accents */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --teal: #14b8a6;
  --emerald: #10b981;
  --amber: #f59e0b;
  --orange: #f97316;
  --cyan: #06b6d4;
  --purple: #8b5cf6;

  /* Typography */
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --text-white: #ffffff;

  /* Power-Up Theme Colors */
  --hammer-color: #f97316;
  --line-color: #06b6d4;
  --swap-color: #10b981;
  --bomb-color: #ec4899;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Menlo, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.35);
}

/* ── Reset & Global Rules ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden; /* Prevents accidental horizontal scrolling on mobile */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 10% 30%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 70%, rgba(20, 184, 166, 0.08) 0%, transparent 40%),
              var(--bg-primary);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
}

a:hover {
  color: var(--text-white);
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.07);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: #c7d2fe;
  word-break: break-all;
}

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

/* ── Header & Navigation (Responsive at all screen sizes) ──────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  min-height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 37, 80, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(4, 4, 15, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--border-color);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  color: var(--text-white);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.brand-text {
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 4px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.nav-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile Toggle (Visible on screens <= 1080px) */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: transparent;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
  flex-shrink: 0;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-white);
  border-radius: 3px;
  transition: var(--transition);
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero-section {
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  max-width: 100%;
}

.hero-tag-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  flex-shrink: 0;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 20%, #a5b4fc 50%, #ec4899 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: #d1d5db;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

/* Play Store Download Button */
.btn-playstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #111827;
  border: 1px solid #374151;
  border-radius: var(--radius-md);
  color: #fff !important;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.25);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-playstore:hover {
  background: #1f2937;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 28px rgba(99, 102, 241, 0.4);
}

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

.btn-playstore .btn-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-playstore .btn-micro {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #9ca3af;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
}

.btn-playstore .btn-macro {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #4b5563;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(37, 37, 80, 0.5);
  width: 100%;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-white);
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Interactive Game Mockup Preview ───────────────────────────────────────── */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.device-frame {
  width: 100%;
  max-width: min(100%, 360px);
  background: linear-gradient(160deg, #181836 0%, #0d0d24 100%);
  border: 2px solid #2d2d60;
  border-radius: 32px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
              0 0 35px rgba(99, 102, 241, 0.25);
  position: relative;
}

.device-notch {
  width: 110px;
  height: 16px;
  background: #080816;
  border-radius: 0 0 10px 10px;
  margin: -16px auto 12px;
}

.game-preview-screen {
  background: #04040f;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid #1a1a3a;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-logo-badge {
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-score-box {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-align: right;
}

.preview-score-label {
  font-size: 0.58rem;
  font-weight: 800;
  color: var(--amber);
  letter-spacing: 0.5px;
}

.preview-score-num {
  font-size: 1rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* 10x10 Puzzle Board Preview */
.preview-board-wrap {
  position: relative;
  width: 100%;
}

.puzzle-grid-10 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2.5px;
  background: #0c0c22;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #22224d;
  aspect-ratio: 1;
}

.p-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: #10102b;
  border: 0.5px solid #1a1a40;
  transition: all 0.3s ease;
}

.p-cell.filled {
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.p-cell.c-indigo { background: #6366f1; border-color: #818cf8; }
.p-cell.c-pink   { background: #ec4899; border-color: #f472b6; }
.p-cell.c-teal   { background: #14b8a6; border-color: #2dd4bf; }
.p-cell.c-amber  { background: #f59e0b; border-color: #fbbf24; }
.p-cell.c-purple { background: #8b5cf6; border-color: #a78bfa; }
.p-cell.c-cyan   { background: #06b6d4; border-color: #22d3ee; }
.p-cell.c-green  { background: #10b981; border-color: #34d399; }

.p-cell.clearing {
  animation: cellClearAnim 1.8s infinite;
}

@keyframes cellClearAnim {
  0%, 100% { background: #ffffff; transform: scale(1.04); box-shadow: 0 0 6px #fff; }
  50% { background: #14b8a6; transform: scale(1); }
}

.floating-combo-tag {
  position: absolute;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #f97316, #ec4899);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.7);
  pointer-events: none;
  white-space: nowrap;
}

.preview-power-bar {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  padding: 5px;
  background: rgba(12, 12, 34, 0.9);
  border-radius: 8px;
  border: 1px solid #202048;
}

.preview-p-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px;
  border-radius: 5px;
  font-size: 0.6rem;
  font-weight: 800;
}

.preview-p-btn.hammer { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.preview-p-btn.line   { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.preview-p-btn.swap   { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.preview-p-btn.bomb   { background: rgba(236, 72, 153, 0.15); color: #ec4899; }

.preview-p-icon {
  font-size: 0.85rem;
  margin-bottom: 2px;
}

/* Floating Badges outside device (Desktop only) */
.mockup-floater {
  position: absolute;
  padding: 8px 14px;
  background: rgba(18, 18, 44, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  white-space: nowrap;
}

.floater-1 {
  top: 8%;
  right: -16px;
  color: var(--amber);
  border-color: rgba(251, 191, 36, 0.4);
}

.floater-2 {
  bottom: 12%;
  left: -20px;
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.4);
}

/* ── Highlights Strip ──────────────────────────────────────────────────────── */
.highlights-strip {
  padding: 26px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

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

.highlight-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.h-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.h-content h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 2px;
}

.h-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ── Section Header ────────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Features Section ──────────────────────────────────────────────────────── */
.features-section {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.f-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.f-icon-box.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.f-icon-box.pink   { background: rgba(236, 72, 153, 0.15); color: #f472b6; }
.f-icon-box.teal   { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; }
.f-icon-box.amber  { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.f-icon-box.purple { background: rgba(139, 92, 246, 0.15); color: #a78bfa; }
.f-icon-box.orange { background: rgba(249, 115, 22, 0.15); color: #fb923c; }

.f-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 10px;
}

.f-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Power-Ups Showcase Section ────────────────────────────────────────────── */
.powerups-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, #08081c 50%, var(--bg-primary) 100%);
}

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

.power-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 26px 18px;
  text-align: center;
  transition: var(--transition);
}

.power-card.hammer { border-color: rgba(249, 115, 22, 0.35); }
.power-card.line   { border-color: rgba(6, 182, 212, 0.35); }
.power-card.swap   { border-color: rgba(16, 185, 129, 0.35); }
.power-card.bomb   { border-color: rgba(236, 72, 153, 0.35); }

.power-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.6);
}

.power-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.power-card.hammer .power-icon-circle { background: rgba(249, 115, 22, 0.15); border: 2px solid var(--hammer-color); }
.power-card.line .power-icon-circle   { background: rgba(6, 182, 212, 0.15); border: 2px solid var(--line-color); }
.power-card.swap .power-icon-circle   { background: rgba(16, 185, 129, 0.15); border: 2px solid var(--swap-color); }
.power-card.bomb .power-icon-circle   { background: rgba(236, 72, 153, 0.15); border: 2px solid var(--bomb-color); }

.power-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 4px;
}

.power-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.power-card.hammer .power-tagline { color: var(--hammer-color); }
.power-card.line .power-tagline   { color: var(--line-color); }
.power-card.swap .power-tagline   { color: var(--swap-color); }
.power-card.bomb .power-tagline   { color: var(--bomb-color); }

.power-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.power-tip-box {
  background: rgba(4, 4, 15, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.76rem;
  color: #d1d5db;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── How to Play Section ───────────────────────────────────────────────────── */
.how-to-section {
  padding: 80px 0;
}

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.2);
  line-height: 1;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── FAQ Section ───────────────────────────────────────────────────────────── */
.faq-section {
  padding: 80px 0;
  background: var(--bg-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.5);
}

.faq-header {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  background: transparent;
  transition: var(--transition);
}

.faq-item.is-open .faq-header {
  color: var(--primary-light);
}

.faq-arrow {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.is-open .faq-arrow {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 22px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.is-open .faq-body {
  max-height: 500px;
  padding: 0 22px 20px;
}

/* ── Pre-footer CTA Banner ─────────────────────────────────────────────────── */
.cta-banner-section {
  padding: 70px 0;
}

.cta-banner-card {
  background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.22) 0%, rgba(12, 12, 34, 0.95) 75%),
              linear-gradient(135deg, #121235 0%, #070718 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 24px;
  padding: 50px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}

.cta-banner-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 14px;
}

.cta-banner-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 28px;
}

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

/* ── Legal & Policy Document Pages (Privacy & Terms) ───────────────────────── */
.legal-page-header {
  padding: 48px 0 32px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

/* Clean, non-breaking legal badge */
.legal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  max-width: 100%;
}

.legal-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.legal-content-wrapper {
  padding: 48px 0 70px;
  width: 100%;
}

.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 36px;
  align-items: flex-start;
  width: 100%;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 16px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.toc-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
  transition: var(--transition);
}

.toc-link:hover,
.toc-link.active {
  color: var(--primary-light);
  transform: translateX(3px);
}

/* Bulletproof responsive legal content container */
.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  font-size: 0.96rem;
  color: #d1d5db;
  line-height: 1.75;
  width: 100%;
  min-width: 0; /* Critical for grid containers */
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-body h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-white);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  line-height: 1.3;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #e5e7eb;
  margin: 20px 0 10px;
  line-height: 1.35;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px 22px;
}

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

.legal-body strong {
  color: var(--text-white);
}

.legal-alert {
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
}

.legal-alert.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--amber);
}

.legal-alert.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--emerald);
}

/* Responsive Table Styling */
.table-scroll-hint {
  display: none;
  font-size: 0.75rem;
  color: var(--primary-light);
  margin-bottom: 6px;
  text-align: right;
  font-weight: 600;
}

.policy-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 20px 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: rgba(12, 12, 34, 0.6);
}

.policy-table {
  width: 100%;
  min-width: 500px; /* Ensures table remains readable on mobile scroll */
  border-collapse: collapse;
  font-size: 0.88rem;
}

.policy-table th,
.policy-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.policy-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.policy-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Compact Contact Box */
.contact-card {
  background: rgba(12, 12, 34, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 18px 0;
}

/* ── Footer (Responsive on all screens) ────────────────────────────────────── */
.site-footer {
  background: #02020a;
  border-top: 1px solid var(--border-color);
  padding: 50px 0 24px;
  margin-top: auto;
}

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

.footer-col.brand-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

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

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

.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(3px);
}

.footer-dev-text {
  font-size: 0.84rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid rgba(37, 37, 80, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

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

.footer-bottom-links a {
  color: var(--text-dim);
}

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

/* ==========================================================================
   Comprehensive Responsive Breakpoints
   ========================================================================== */

/* ── Tablets & Small Laptops (<= 1080px) ─────────────────────────────────── */
@media (max-width: 1080px) {
  /* Switch navbar to mobile drawer to prevent overflowing */
  .mobile-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: rgba(4, 4, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 24px 20px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 999;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    display: block;
    width: 100%;
  }

  .nav-cta {
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
    width: 100%;
    margin-top: 6px;
  }

  /* Grid Layout Adjustments */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }

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

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-badges-row,
  .hero-actions,
  .hero-stats-row {
    justify-content: center;
  }

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

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

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

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }

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

  /* Legal Page: Hide sticky TOC and expand content column */
  .legal-layout {
    grid-template-columns: 100%;
    gap: 24px;
  }

  .legal-toc {
    display: none;
  }

  .table-scroll-hint {
    display: block;
  }
}

/* ── Mobile Devices (<= 768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .hero-section {
    padding: 36px 0;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .powerups-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

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

  /* Hide mockup floaters on mobile to prevent side-scrolling */
  .mockup-floater {
    display: none;
  }

  .legal-body {
    padding: 22px 16px;
    font-size: 0.92rem;
  }

  .legal-page-header {
    padding: 36px 0 24px;
  }
}

/* ── Very Small Phones (<= 480px) ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-playstore,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    text-align: center;
  }

  .legal-body {
    padding: 18px 12px;
  }

  .legal-body h2 {
    font-size: 1.25rem;
  }

  .legal-body h3 {
    font-size: 1.05rem;
  }

  .cta-banner-card {
    padding: 36px 16px;
  }
}
