/* ==========================================================================
   ReelsGrab.com - Ultimate Modern Design System
   Aesthetics: Sleek Cyber-Dark, Vibrant Neon Glassmorphism, Premium Micro-Animations
   ========================================================================== */

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

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-card: rgba(18, 22, 36, 0.75);
  --bg-card-hover: rgba(26, 32, 54, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(138, 43, 226, 0.35);

  /* Vibrant Neons */
  --neon-purple: #8a2be2;
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-blue: #3b82f6;
  --neon-emerald: #10b981;
  --neon-amber: #f59e0b;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #8a2be2 0%, #ff007f 100%);
  --gradient-cyan: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%);
  --gradient-dark: linear-gradient(180deg, rgba(16, 20, 36, 0.9) 0%, rgba(10, 12, 20, 0.95) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 30%, #a78bfa 100%);
  --gradient-glow: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.25) 0%, rgba(0, 0, 0, 0) 70%);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f3f4f6;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(138, 43, 226, 0.4);
  --shadow-cyan-glow: 0 0 35px rgba(0, 240, 255, 0.3);

  /* Transitions */
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(138, 43, 226, 0.12) 0%, transparent 40%),
              radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 50% 80%, rgba(255, 0, 127, 0.08) 0%, transparent 50%),
              var(--bg-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Background Animated Grid Overlay */
.bg-grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 900px;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 0.8rem; }
h4 { font-size: 1.2rem; }

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

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px var(--neon-cyan);
}

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

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

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 0;
  transition: var(--transition-smooth);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo svg {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 10px var(--neon-pink));
}

.brand-logo span {
  background: linear-gradient(135deg, #ffffff 40%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(138, 43, 226, 0.25);
  border: 1px solid rgba(138, 43, 226, 0.6);
  color: var(--neon-cyan);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-pink);
}

.nav-cta {
  background: var(--gradient-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(138, 43, 226, 0.7);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.7rem;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(9, 12, 20, 0.98);
  backdrop-filter: blur(20px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  transform: translateY(-120%);
  transition: transform 0.35s ease;
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 1.15rem;
  color: var(--text-main);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  color: #d8b4fe;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

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

@keyframes pulseAnimation {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-subtitle {
  max-width: 680px;
  margin: 1.2rem auto 2.5rem;
  font-size: 1.18rem;
  color: #cbd5e1;
}

/* Downloader Box */
.downloader-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 40px rgba(138, 43, 226, 0.15);
  max-width: 860px;
  margin: 0 auto 2.5rem;
  position: relative;
  overflow: hidden;
}

.downloader-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink), var(--neon-cyan));
}

.platform-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.platform-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition-smooth);
}

.platform-tab:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.platform-tab.active {
  background: rgba(138, 43, 226, 0.25);
  border-color: var(--neon-purple);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

/* Input Form */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(9, 11, 20, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.5rem 0.6rem 0.5rem 1.4rem;
  transition: var(--transition-smooth);
}

.input-wrapper:focus-within {
  border-color: var(--neon-pink);
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.35);
}

.input-icon {
  color: var(--text-dim);
  font-size: 1.25rem;
  margin-right: 0.8rem;
  display: flex;
  align-items: center;
}

.url-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  min-width: 0;
}

.url-input::placeholder {
  color: #64748b;
}

.action-btns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-paste {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-smooth);
}

.btn-paste:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.btn-submit {
  background: var(--gradient-primary);
  border: none;
  color: #ffffff;
  padding: 0.85rem 1.8rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.4);
  transition: var(--transition-smooth);
  letter-spacing: 0.01em;
}

.btn-submit:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(138, 43, 226, 0.7);
}

.input-meta-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Progress / Analyzer State */
.analyzer-box {
  display: none;
  margin-top: 2rem;
  padding: 1.6rem;
  background: rgba(13, 16, 28, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(138, 43, 226, 0.3);
  text-align: left;
}

.analyzer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.analyzer-title {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--neon-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-cyan));
  box-shadow: 0 0 12px var(--neon-cyan);
  transition: width 0.3s ease;
  border-radius: 9999px;
}

.analyzer-steps {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.analyzer-steps span.completed {
  color: var(--neon-cyan);
}

/* Download Results Box */
.download-results {
  display: none;
  margin-top: 2rem;
  text-align: left;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: rgba(14, 18, 32, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}

.preview-media-box {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  aspect-ratio: 9/16;
  max-height: 380px;
  margin: 0 auto;
}

.preview-media-box img, .preview-media-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-tag-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.duration-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.result-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.video-title-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--neon-cyan);
}

.author-chip img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.download-options-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.download-options-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
}

.download-options-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-main);
  vertical-align: middle;
}

.format-badge {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.btn-download-action {
  background: var(--gradient-primary);
  border: none;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-download-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
  color: #ffffff;
}

/* Stats Counter Row */
.stats-strip {
  padding: 2rem 0 3.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.25rem;
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

/* Steps Workflow */
.steps-section {
  padding: 5rem 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.step-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.step-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.2), rgba(0, 240, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--neon-cyan);
  font-size: 1.6rem;
}

/* Feature Spotlight & Graphics */
.features-section {
  padding: 5rem 0;
  background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.05) 0%, transparent 60%);
}

.feature-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-split-row.reversed {
  direction: rtl;
}

.feature-split-row.reversed > * {
  direction: ltr;
}

.feature-graphic-box {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.feature-graphic-box img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-graphic-box:hover img {
  transform: scale(1.03);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
  font-size: 1rem;
}

.feature-list li svg {
  color: var(--neon-cyan);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Supported Platforms Cards */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.platform-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition-smooth);
}

.platform-box:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: var(--shadow-cyan-glow);
}

.platform-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

/* Platform specific colors */
.p-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.p-youtube { background: #ff0000; color: #fff; }
.p-tiktok { background: #000000; border: 1px solid #333; color: #00f0ff; }
.p-facebook { background: #1877f2; color: #fff; }
.p-twitter { background: #000000; border: 1px solid #333; color: #fff; }
.p-pinterest { background: #bd081c; color: #fff; }
.p-threads { background: #101010; border: 1px solid #333; color: #fff; }
.p-audio { background: linear-gradient(135deg, #10b981, #06b6d4); color: #fff; }

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
}

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

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

.faq-item.active {
  border-color: rgba(138, 43, 226, 0.4);
  background: rgba(22, 28, 46, 0.95);
}

.faq-question {
  padding: 1.4rem 1.8rem;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--neon-cyan);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 1.8rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* SEO Educational Long-Form Content Section */
.seo-content-article {
  background: rgba(13, 17, 30, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem;
  margin: 4rem 0;
  box-shadow: var(--shadow-lg);
}

.seo-content-article h2 {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
  margin-top: 2.2rem;
}

.seo-content-article h3 {
  color: #e2e8f0;
  margin-top: 1.8rem;
}

.seo-content-article p {
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.seo-content-article ul, .seo-content-article ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #cbd5e1;
}

.seo-content-article li {
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.callout-box {
  background: rgba(138, 43, 226, 0.1);
  border-left: 4px solid var(--neon-purple);
  padding: 1.4rem 1.6rem;
  border-radius: 0 14px 14px 0;
  margin: 1.8rem 0;
}

.callout-box.info {
  background: rgba(0, 240, 255, 0.08);
  border-left-color: var(--neon-cyan);
}

.callout-box p {
  margin: 0;
  color: #e2e8f0;
}

/* Blog Styles */
.blog-hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 4rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(138, 43, 226, 0.4);
  box-shadow: var(--shadow-glow);
}

.article-thumb-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #111422;
  overflow: hidden;
}

.article-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-thumb-wrap img {
  transform: scale(1.05);
}

.article-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  color: var(--neon-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.article-body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.article-title a {
  color: #ffffff;
}

.article-title a:hover {
  color: var(--neon-cyan);
}

.article-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  flex: 1;
}

.article-footer-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--neon-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.article-footer-link:hover {
  gap: 0.6rem;
}

/* Single Article Reader */
.article-reading-header {
  padding: 4rem 0 2rem;
  text-align: center;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.2rem 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.article-banner-hero {
  border-radius: 24px;
  overflow: hidden;
  margin: 2rem 0 3.5rem;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
}

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

.article-content-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3.5rem;
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.6rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 0.65rem;
}

.toc-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: block;
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--neon-cyan);
  transform: translateX(4px);
}

.article-main-body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #d1d5db;
}

.article-main-body h2 {
  font-size: 1.85rem;
  color: #ffffff;
  margin: 2.8rem 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.article-main-body h3 {
  font-size: 1.4rem;
  color: #e5e7eb;
  margin: 2rem 0 0.9rem;
}

.article-main-body p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.article-main-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.article-main-body th {
  background: rgba(138, 43, 226, 0.15);
  color: #ffffff;
  padding: 1rem;
  text-align: left;
}

.article-main-body td {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
}

/* Contact & Static Pages */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin: 3.5rem 0 5rem;
}

.contact-card-info {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  background: rgba(9, 11, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #040609;
  border-top: 1px solid var(--border-glass);
  padding: 4.5rem 0 2rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  font-weight: 700;
}

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

.footer-links li {
  margin-bottom: 0.7rem;
}

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

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

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

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(14, 18, 32, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.3);
  backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInToast 0.3s ease;
}

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .feature-split-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-split-row.reversed { direction: ltr; }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .article-content-container { grid-template-columns: 1fr; }
  .toc-sidebar { display: none; }
  .footer-top-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
  .downloader-card { padding: 1.5rem 1.2rem; }
  .input-wrapper { flex-direction: column; gap: 0.8rem; padding: 1rem; }
  .action-btns { width: 100%; justify-content: stretch; }
  .action-btns .btn-paste, .action-btns .btn-submit { width: 100%; justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .seo-content-article { padding: 1.8rem; }
  .footer-top-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Google AdSense Integrated Zones for ReelsGrab
   ========================================================================== */
.reelsgrab-header-ad-zone {
  width: 100%;
  background: rgba(10, 14, 24, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1.25rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.reelsgrab-header-ad-zone .ad-display-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 1rem;
}

.reelsgrab-footer-ad-zone {
  width: 100%;
  background: rgba(4, 6, 9, 0.95);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2.75rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.reelsgrab-footer-ad-zone .ad-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.ad-label-tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ad-label-tag i {
  color: var(--neon-cyan);
}

.workflow-ad-showcase-section {
  padding: 1rem 0 4.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.workflow-ad-showcase-section .ad-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.workflow-openhouse-ad-container {
  background: rgba(14, 18, 32, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

