/* ============================================
   reelsdownload.org – Global Design System
   Instagram-Inspired Dark Glassmorphism Theme
   ============================================ */

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

/* ─── CSS Custom Properties ─── */
:root {
  --bg-base: #0F172A;
  --bg-card: #1E293B;
  --bg-card-hover: #243447;
  --bg-glass: rgba(30, 41, 59, 0.7);
  --accent: #E1306C;
  --accent-2: #833AB4;
  --accent-3: #F77737;
  --gradient: linear-gradient(135deg, #E1306C 0%, #833AB4 50%, #405DE6 100%);
  --gradient-btn: linear-gradient(135deg, #C4185A 0%, #6B2A9E 100%);
  --gradient-btn-hover: linear-gradient(135deg, #D4206A 0%, #7B35B0 100%);
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #A8B8CC;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(225, 48, 108, 0.3);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(225, 48, 108, 0.15);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ─── Selection ─── */
::selection { background: rgba(225, 48, 108, 0.35); color: var(--text-primary); }

/* ─── Container ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-btn);
  color: white;
  box-shadow: 0 4px 24px rgba(225, 48, 108, 0.35);
}

.btn-primary:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(225, 48, 108, 0.5);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(225, 48, 108, 0.08);
}

.btn-lg { padding: 18px 48px; font-size: 1.1rem; border-radius: var(--radius-xl); }

.btn-full { width: 100%; }

.btn-icon { padding: 12px 20px; }

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.05) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 0;
}

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

.card:hover::before { opacity: 1; }

.card-glass {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 20px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-btn);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

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

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.navbar-actions { display: flex; align-items: center; gap: 12px; }

.navbar-cta {
  background: var(--gradient-btn);
  color: white;
  padding: 9px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(225, 48, 108, 0.3);
}

.navbar-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(225, 48, 108, 0.45); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  z-index: 999;
  flex-direction: column;
  display: flex;
  gap: 2px;
  overflow-y: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s ease, visibility 0s linear 0s;
}

.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.mobile-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text-primary); }

/* ─── HERO ─── */
.hero {
  padding: 140px 20px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 4s ease-in-out infinite;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #E1306C, transparent 70%);
  top: -200px;
  left: -100px;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #833AB4, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: -2s;
}

.hero-orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #405DE6, transparent 70%);
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: -1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none; }
  .animate-on-scroll { transition: none !important; animation: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.3);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInDown 0.6s ease-out both;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* ─── DOWNLOADER BOX ─── */
.downloader-wrapper {
  max-width: 680px;
  margin: 0 auto;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.downloader-box {
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.4), 0 0 80px rgba(225, 48, 108, 0.1);
}

.downloader-input-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.downloader-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
}

.downloader-input::placeholder { color: var(--text-muted); }

.downloader-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.15);
  background: rgba(15, 23, 42, 0.8);
}

.downloader-btn {
  background: var(--gradient-btn);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.downloader-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(225, 48, 108, 0.55);
}

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

.downloader-btn.loading .btn-text { display: none; }
.downloader-btn:not(.loading) .btn-spinner { display: none; }

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.downloader-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

.downloader-note span { color: var(--accent); }

.downloader-result {
  margin-top: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 20px;
  display: none;
  animation: fadeInUp 0.4s ease-out both;
}

.downloader-result.visible { display: block; }

.result-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.result-options { display: flex; flex-direction: column; gap: 10px; }

.result-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition);
}

.result-option:hover { border-color: var(--accent); background: var(--bg-card-hover); }

.result-option-info { display: flex; align-items: center; gap: 10px; }

.result-quality {
  font-weight: 600;
  font-size: 0.9rem;
}

.result-size { font-size: 0.8rem; color: var(--text-muted); }

.result-dl-btn {
  background: var(--gradient-btn);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.result-dl-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.downloader-error {
  margin-top: 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #FCA5A5;
  display: none;
}

.downloader-error.visible { display: block; }

/* ─── TRUST BADGES (hero bottom) ─── */
.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-badge-item .badge-icon { font-size: 1rem; }

/* ─── AD ZONES ─── */
.ad-zone {
  max-width: 728px;
  margin: 0 auto;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── SECTIONS ─── */
.section { padding: 80px 0; }
.section-alt { background: rgba(30, 41, 59, 0.3); }

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transition: var(--transition);
}

.stat-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.stat-card:hover::after { transform: scaleX(1); }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.9rem; color: var(--text-muted); margin-top: 4px; }

/* ─── HOW IT WORKS ─── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

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

.step-number {
  width: 56px;
  height: 56px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

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

.step-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }

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

/* ─── POPULAR TOOLS ─── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

.tool-icon {
  width: 52px;
  height: 52px;
  background: var(--gradient-btn);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
}

.tool-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }

.tool-tag {
  font-size: 0.72rem;
  background: rgba(225, 48, 108, 0.12);
  color: var(--accent);
  border: 1px solid rgba(225, 48, 108, 0.25);
  padding: 2px 10px;
  border-radius: 100px;
}

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition);
}

.feature-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(225, 48, 108, 0.12);
  border: 1px solid rgba(225, 48, 108, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-content { flex: 1; }

.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }

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

/* ─── FAQ ─── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

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

.faq-item.open { border-color: var(--border-glow); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(255,255,255,0.02); }

.faq-chevron {
  width: 28px;
  height: 28px;
  background: rgba(225, 48, 108, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); background: var(--gradient-btn); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 24px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }

/* ─── BLOG CARDS ─── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

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

.blog-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #E1306C22, #833AB422);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.blog-card-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(225, 48, 108, 0.1);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
  margin-bottom: 12px;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  flex: 1;
}

.blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: auto;
}

.blog-card-date { display: flex; align-items: center; gap: 6px; }

.blog-read-more {
  color: var(--accent);
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-read-more:hover { gap: 8px; }

/* ─── FOOTER ─── */
.footer {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

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

.footer-brand .footer-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo .logo-icon-sm {
  width: 32px;
  height: 32px;
  background: var(--gradient-btn);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-desc { font-size: 1rem; color: var(--text-muted); line-height: 1.7; max-width: 280px; }

.footer-socials { display: flex; gap: 10px; margin-top: 20px; }

.social-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition);
  cursor: pointer;
}

.social-btn:hover { border-color: var(--accent); background: rgba(225, 48, 108, 0.1); }

.footer-col-title {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }

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

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright { font-size: 1rem; color: var(--text-muted); }

.footer-legal { display: flex; gap: 20px; }

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

.footer-legal a:hover { color: var(--accent); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: 120px 20px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at top center, rgba(225, 48, 108, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero-title { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 16px; }

.page-hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── BREADCRUMB ─── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  justify-content: center;
}

.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb span { color: var(--text-primary); }

/* ─── FEATURE CHECK LIST ─── */
.check-list { display: flex; flex-direction: column; gap: 12px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.check-icon {
  width: 22px;
  height: 22px;
  background: var(--gradient-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  flex-shrink: 0;
  margin-top: 2px;
  color: white;
  font-weight: 700;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: if JS fails or prefers-reduced-motion, show content */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
}

/* Noscript fallback handled via JS timeout in initScrollAnimation */

/* ─── CONTACT FORM ─── */
.form-group { margin-bottom: 20px; }

.form-label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary) !important;
  -webkit-text-fill-color: var(--text-primary);
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* Fix browser autofill dark background override */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(15,23,42,0.95) inset;
  -webkit-text-fill-color: var(--text-primary);
  caret-color: var(--text-primary);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225, 48, 108, 0.12);
}

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

.form-select option { background: var(--bg-card); color: var(--text-primary); }

/* ─── POLICY PAGES ─── */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.policy-content h2 {
  font-size: 1.4rem;
  margin: 36px 0 12px;
  color: var(--accent);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ul {
  list-style: disc;
  padding-left: 24px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 12px;
}

.policy-content a { color: var(--accent); }

.policy-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  background: rgba(225, 48, 108, 0.08);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  /* ─── Navbar ─── */
  .navbar-nav, .navbar-actions { display: none; }
  .hamburger { display: flex; }

  /* ─── Hero ─── */
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: clamp(1.9rem, 7vw, 2.8rem); }
  .hero-subtitle { font-size: 1rem; }
  .hero-badges { gap: 10px; flex-wrap: wrap; justify-content: center; }
  .hero-badge-item { font-size: 0.8rem; padding: 6px 12px; }

  /* ─── Downloader ─── */
  .downloader-input-row { flex-direction: column; }
  .downloader-input { border-radius: var(--radius-md) !important; font-size: 0.95rem; }
  .downloader-btn { border-radius: var(--radius-md) !important; width: 100%; justify-content: center; }

  /* ─── Result options ─── */
  .result-option { flex-direction: column; align-items: flex-start; gap: 12px; }
  .result-dl-btn { width: 100%; justify-content: center; }

  /* ─── Section titles ─── */
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-subtitle { font-size: 0.95rem; }

  /* ─── Grids: stack to single column on small screens ─── */
  .steps-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* ─── Page hero ─── */
  .page-hero { padding: 80px 20px 40px; }
  .page-hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .page-hero-sub { font-size: 0.95rem; }

  /* ─── Contact form ─── */
  .contact-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .form-row-2col { grid-template-columns: 1fr !important; }

  /* ─── Footer ─── */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  /* ─── Policy pages ─── */
  .policy-content { padding: 28px 20px; }

  /* ─── Cards padding ─── */
  .card { padding: 20px; }
  .feature-card { padding: 20px; }
  .step-card { padding: 24px 16px; }
}

@media (max-width: 480px) {
  /* ─── Hero ─── */
  .hero { padding: 90px 16px 48px; }
  .hero-title { font-size: 1.75rem; }
  .hero-badges { gap: 8px; }
  .hero-badge-item { font-size: 0.75rem; padding: 5px 10px; }

  /* ─── Tools grid: 2 cols on small ─── */
  .tools-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tool-card { padding: 16px 10px; }

  /* ─── Stats ─── */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* ─── Footer ─── */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 8px; }

  /* ─── Downloader input ─── */
  .downloader-box { padding: 20px 16px; }

  /* ─── FAQ ─── */
  .faq-question { font-size: 1rem; padding: 16px 18px; }
  .faq-answer { font-size: 1rem; }

  /* ─── Blog cards ─── */
  .blog-card-img { height: 140px; }

  /* ─── Section spacing ─── */
  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }

  /* ─── Page hero ─── */
  .page-hero { padding: 70px 16px 36px; }
  .page-hero-title { font-size: 1.5rem; }

  /* ─── Breadcrumb ─── */
  .breadcrumb { font-size: 0.8rem; }
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.py-80 { padding-top: 80px; padding-bottom: 80px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ─── Form 2-column row ─── */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── Contact grid ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

/* ─── Navbar Tools Dropdown ─────────────────────────────── */
.navbar-nav .nav-dropdown {
  position: relative;
}
.navbar-nav .nav-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
  display: inline-block;
  transition: transform 0.2s;
}
.navbar-nav .nav-dropdown:hover > a::after {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  /* Use visibility+opacity instead of display:none so transitions work */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;           /* no gap — bridge pseudo-element covers it */
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 210px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}
/* Invisible bridge fills gap between nav link and dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(225,48,108,0.1);
  color: var(--text-primary);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

/* ─── Accessibility: links must have underline or non-color indicator ─── */
.article-body a,
.policy-content a,
.tip-box a,
p a:not(.btn):not(.blog-read-more):not(.navbar-logo):not(.related-card) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Global: all inline text links must be underlined ─── */
a[style*="color:var(--accent)"],
a[style*="color: var(--accent)"] {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
