/* ==========================================================================
   INSTAGRAM INSIGHTS EDITOR - DARK THEME STYLESHEET (NO NEON)
   Ultra-Fast, High-Converting, Responsive Design System
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Variables
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette (Obsidian / Charcoal Dark Theme + Instagram Insights Violet Accent) */
  --bg-main: #090a0f;
  --bg-secondary: #0f121a;
  --bg-card: rgba(21, 25, 37, 0.7);
  --bg-card-hover: rgba(28, 33, 49, 0.85);
  --bg-card-solid: #151925;
  --bg-glass: rgba(15, 18, 26, 0.75);
  
  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-accent: rgba(139, 92, 246, 0.35);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #0f172a;

  /* Accents (Deep Violet / Purple - NO NEON) */
  --accent-purple: #8b5cf6;
  --accent-purple-dark: #7c3aed;
  --accent-purple-glow: rgba(139, 92, 246, 0.18);
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #8b5cf6 50%, #6366f1 100%);
  --gradient-card: linear-gradient(180deg, rgba(30, 36, 53, 0.4) 0%, rgba(15, 18, 26, 0.6) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.15) 0%, rgba(9, 10, 15, 0) 70%);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.25);

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   2. Resets & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  color: var(--text-primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* --------------------------------------------------------------------------
   3. Layout & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

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

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.4);
  filter: brightness(1.08);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-xl {
  padding: 1.2rem 2.5rem;
  font-size: 1.15rem;
  border-radius: var(--radius-lg);
}

.btn-full {
  width: 100%;
}

.btn small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.logo-text .highlight {
  color: var(--accent-purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding-top: 10rem;
  padding-bottom: 6rem;
  overflow: hidden;
  background: var(--gradient-glow);
}

.glow-effect {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(9, 10, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--border-accent);
  margin-bottom: 1.5rem;
}

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

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.badge-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-purple);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.trust-divider {
  width: 1px;
  height: 20px;
  background: var(--border-subtle);
}

/* Mockup Frame */
.hero-preview {
  position: relative;
}

.mockup-frame {
  background: var(--bg-card-solid);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform var(--transition-bounce);
}

.mockup-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 1.25rem;
  background: rgba(10, 12, 18, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}

.mockup-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-header .dot.red { background: #ef4444; }
.mockup-header .dot.yellow { background: #f59e0b; }
.mockup-header .dot.green { background: #10b981; }

.mockup-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-body {
  position: relative;
  background: #000;
  max-height: 520px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(15, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.badge-1 { top: 15%; left: -20px; }
.badge-2 { bottom: 15%; right: -20px; }

/* --------------------------------------------------------------------------
   6. Keyword Bar Section
   -------------------------------------------------------------------------- */
.keyword-bar-section {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-y: 1px solid var(--border-subtle);
}

.keyword-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.kw-tag {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.kw-tag:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: var(--border-accent);
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   7. Features Showcase Grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-purple { background: rgba(139, 92, 246, 0.15); color: #a855f7; }
.icon-indigo { background: rgba(99, 102, 241, 0.15); color: #6366f1; }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-violet { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   8. Whop & Clipster Special Section
   -------------------------------------------------------------------------- */
.whop-clipster-section {
  background: var(--bg-secondary);
}

.whop-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.whop-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.pill-whop {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #818cf8;
}

.whop-content h2 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.whop-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.whop-checklist {
  list-style: none;
  margin: 1.75rem 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.whop-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.whop-checklist li strong {
  color: var(--text-primary);
}

.whop-visual {
  position: relative;
}

.whop-preview-box {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
}

.whop-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.stat-callout {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 18, 26, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-title {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   9. App Screenshot Gallery Grid & Lightbox
   -------------------------------------------------------------------------- */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  cursor: pointer;
}

.screenshot-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-image-wrap {
  position: relative;
  aspect-ratio: 9/16;
  background: #000;
  overflow: hidden;
  max-height: 480px;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.screenshot-card:hover .card-image-wrap img {
  transform: scale(1.04);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 15, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.screenshot-card:hover .card-overlay {
  opacity: 1;
}

.zoom-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.overlay-caption {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.card-info {
  padding: 1.25rem;
}

.card-info h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.card-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-height: 80vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.lightbox-caption {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   10. Step-by-Step APK Installation Guide
   -------------------------------------------------------------------------- */
.install-section {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(139, 92, 246, 0.25);
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* --------------------------------------------------------------------------
   11. Technical Specifications Table
   -------------------------------------------------------------------------- */
.specs-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.specs-header {
  margin-bottom: 2rem;
}

.specs-header h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.specs-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.specs-table th, .specs-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

.specs-table tr:last-child th, .specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table th {
  width: 30%;
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.015);
}

.specs-table td {
  color: var(--text-primary);
  font-weight: 500;
}

.specs-table code {
  background: rgba(139, 92, 246, 0.15);
  color: var(--accent-purple);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
}

/* --------------------------------------------------------------------------
   12. FAQ Accordions (AEO Optimized)
   -------------------------------------------------------------------------- */
.faq-section {
  background: var(--bg-secondary);
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.faq-item:hover, .faq-item.active {
  border-color: var(--border-accent);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  gap: 1rem;
}

.faq-question svg {
  transition: transform var(--transition-normal);
  color: var(--accent-purple);
  flex-shrink: 0;
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  background: rgba(10, 12, 18, 0.4);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   13. 100+ Keyword Matrix & Glossary Section
   -------------------------------------------------------------------------- */
.keyword-matrix-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
}

.keyword-matrix-box h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.matrix-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

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

.matrix-col h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}

.matrix-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.matrix-col li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.matrix-col li a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   14. Bottom CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-section {
  padding: 6rem 0;
  position: relative;
}

.cta-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-card p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem auto;
}

/* --------------------------------------------------------------------------
   15. Download Modal Popup
   -------------------------------------------------------------------------- */
.download-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.download-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.download-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.download-modal-card {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 480px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  text-align: center;
}

.download-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--text-secondary);
  font-size: 1.5rem;
  line-height: 1;
}

.apk-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
}

.download-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.apk-filename {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.download-progress-box {
  background: var(--bg-main);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.progress-bar-bg {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width 0.1s linear;
}

.progress-status {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.download-trust-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 1.5rem;
}

.download-instructions {
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-subtle);
}

.download-instructions h4 {
  font-size: 0.85rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.download-instructions ol {
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   16. Footer & Back to Top
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-main);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col li a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col li a:hover {
  color: var(--accent-purple);
}

.disclaimer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
}

.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.scroll-top-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.scroll-top-btn:hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
}

/* --------------------------------------------------------------------------
   17. Comprehensive Fluid Responsive Design System (Mobile, Tablet, Desktop)
   -------------------------------------------------------------------------- */

/* Fluid Typography Base */
.hero-title {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.section-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
}

.cta-card h2 {
  font-size: clamp(1.6rem, 5vw, 2.75rem);
}

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

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   18. Adsterra Monetization Responsive Styles
   -------------------------------------------------------------------------- */
.top-ad-wrapper {
  background: rgba(10, 12, 18, 0.95);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  width: 100%;
}

.ad-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  overflow: hidden;
  max-width: 100%;
}

.ad-box iframe {
  max-width: 100% !important;
}

.native-ad-section {
  padding: 1.5rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  overflow: hidden;
}

.native-ad-box {
  max-width: 900px;
  margin: 0 auto;
  min-height: 100px;
  overflow: hidden;
}

.gallery-layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 2rem;
  align-items: start;
}

.gallery-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sticky-mobile-ad {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-accent);
  padding: 4px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

/* Breakpoint 1: Laptops & Tablets (max-width: 1100px) */
@media (max-width: 1100px) {
  .gallery-layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .gallery-sidebar {
    display: none;
  }
}

/* Breakpoint 2: Tablets (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .whop-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
    gap: 2rem;
  }

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

  .badge-1, .badge-2 {
    display: none;
  }
}

/* Breakpoint 3: Mobile Devices & Small Tablets (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .desktop-ad {
    display: none !important;
  }

  .site-header {
    padding: 0.75rem 0;
  }

  .hero-section {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }

  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-card-solid);
    border-bottom: 1px solid var(--border-accent);
    padding: 1.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
    z-index: 1001;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    text-align: center;
  }

  .hero-trust-bar {
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
  }

  .trust-divider {
    display: none;
  }

  .whop-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .whop-content h2 {
    font-size: 1.6rem;
  }

  .specs-box, .keyword-matrix-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .cta-card {
    padding: 2.5rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .specs-table th, .specs-table td {
    padding: 0.75rem 0.6rem;
    font-size: 0.85rem;
  }

  .specs-table th {
    width: 40%;
  }

  .download-modal-card {
    width: 95%;
    padding: 1.75rem 1.25rem;
  }

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

  body {
    padding-bottom: 60px; /* Space for fixed mobile bottom ad */
  }
}

/* Breakpoint 4: Small Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .nav-actions .btn-sm {
    display: none; /* Hide top small header button on phone so logo & hamburger toggle align cleanly */
  }

  .hero-preview, .whop-visual {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }

  .mockup-frame, .whop-preview-box {
    max-width: 310px;
    margin: 0 auto;
  }

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

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

  .feature-card {
    padding: 1.25rem;
  }

  .step-card {
    padding: 1.25rem;
  }

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

  .badge-pill {
    padding: 0.3rem 0.75rem;
  }

  .badge-text {
    font-size: 0.78rem;
  }

  .mockup-frame {
    transform: none;
  }

  .mockup-frame:hover {
    transform: none;
  }

  .download-modal-card {
    padding: 1.5rem 1rem;
  }

  .apk-icon-circle {
    width: 50px;
    height: 50px;
  }
}

@media (min-width: 769px) {
  .mobile-ad {
    display: none !important;
  }
  .sticky-mobile-ad {
    display: none !important;
  }
}


/* ==========================================================================
   SEO OPTIMIZATION ADDITIONS — Snippet Answer Block & Keyword Tag Highlights
   ========================================================================== */

/* Primary keyword tags (top-ranked search queries) */
.kw-tag-primary {
  background: rgba(139, 92, 246, 0.18) !important;
  border-color: rgba(139, 92, 246, 0.5) !important;
  color: #c4b5fd !important;
  font-weight: 600;
  position: relative;
}
.kw-tag-primary::before {
  content: '#1';
  font-size: 0.6rem;
  background: var(--accent-purple);
  color: #fff;
  border-radius: 4px;
  padding: 1px 4px;
  margin-right: 5px;
  font-weight: 700;
  vertical-align: middle;
}

/* ---- Featured Snippet Answer Section ---- */
.snippet-answer-section {
  padding: 1.5rem 0 2rem;
}
.snippet-answer-box {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(21, 25, 37, 0.65);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-left: 4px solid var(--accent-purple);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.snippet-answer-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 0% 0%, rgba(139, 92, 246, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.snippet-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  margin-top: 4px;
}
.snippet-content {
  flex: 1;
  min-width: 0;
}
.snippet-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.85rem;
  font-family: var(--font-heading);
}
.snippet-content > p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.snippet-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.5rem;
}
.fact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.fact-item svg {
  flex-shrink: 0;
}
.snippet-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
}

@media (max-width: 600px) {
  .snippet-answer-box {
    flex-direction: column;
    gap: 1rem;
    padding: 1.4rem 1.25rem;
  }
  .snippet-icon {
    width: 44px;
    height: 44px;
  }
  .snippet-facts {
    grid-template-columns: 1fr;
  }
}
