/* ===================================================
   MediaBolt — Premium Design System v2.0
   =================================================== */

/* === CSS Variables === */
:root {
  --bg: #030712; /* Deep Midnight Blue */
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --primary: #8b5cf6; /* Matches Logo Purple */
  --primary-2: #6366f1; /* Matches Logo Indigo */
  --primary-hover: #7c3aed;
  --grad-brand: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%);
  --grad-gold: linear-gradient(135deg, #a855f7, #6366f1);
  --grad-blue: linear-gradient(135deg, #0ea5e9, #3b82f6);
  --grad-audio: linear-gradient(135deg, #818cf8, #6366f1);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #4b5563;
  --glass-bg: rgba(17, 24, 39, 0.5);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 60px rgba(0, 0, 0, 0.7);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 100px;
  --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* === GLOBAL BLUE THEME (As requested) === */
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --accent-grad: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* === Page Theme Classes (Differentiated) === */
.theme-home {
  --accent: #8b5cf6; /* Vibrant Purple from Logo */
  --accent-soft: rgba(139, 92, 246, 0.15);
  --accent-grad: linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #0ea5e9 100%);
  --accent-blob: #8b5cf6;
}

.theme-video {
  --accent: #0ea5e9; /* Sky Blue */
  --accent-soft: rgba(14, 165, 233, 0.15);
  --accent-grad: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
  --accent-blob: #0ea5e9;
}

.theme-audio {
  --accent: #7c3aed; /* Violet */
  --accent-soft: rgba(124, 58, 237, 0.15);
  --accent-grad: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
  --accent-blob: #7c3aed;
}

.theme-thumbnail {
  --accent: #f43f5e; /* Vibrant Rose */
  --accent-soft: rgba(244, 63, 94, 0.15);
  --accent-grad: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
  --accent-blob: #f43f5e;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(59, 130, 246, 0.1);
  --glass-shadow: 0 12px 40px rgba(59, 130, 246, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

/* Animated gradient background mesh — theme-aware version */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 80%, var(--accent-soft) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* === Typography === */
h1, h2, h3, h4, .logo span { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
.hidden { display: none !important; }

/* === Glassmorphism === */
.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Shimmer card effect */
.shimmer-card {
  position: relative;
  overflow: hidden;
}
.shimmer-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.07) 50%, transparent 60%);
  transition: left 0.6s ease;
  pointer-events: none;
}
.shimmer-card:hover::after { left: 150%; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  padding: 1.1rem 2rem;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(7, 0, 15, 0.85);
  border-color: var(--glass-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.4);
  backdrop-filter: blur(20px);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 238, 255, 0.85);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  position: relative;
}
.logo span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-img {
  height: 40px; width: auto;
  border-radius: 10px;
  object-fit: contain;
  transition: filter 0.3s ease;
}

/* Theme-specific logo icon tinting */
.theme-video .logo-img { filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.4)); }
.theme-audio .logo-img { filter: drop-shadow(0 0 8px rgba(124, 58, 237, 0.4)); }
.theme-thumbnail .logo-img { filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.4)); }

.nav-links { display: flex; list-style: none; gap: 0.5rem; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 16px; right: 16px;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-main); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle, .hamburger {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  cursor: pointer;
  padding: 9px;
  border-radius: 50%;
  transition: background var(--transition), transform var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover, .hamburger:hover {
  background: var(--bg-card-hover);
  transform: scale(1.1);
}
.hamburger { display: none; }

/* Mobile Nav Drawer */
.nav-drawer {
  position: fixed;
  top: 0; right: -100%;
  width: 70%; max-width: 300px;
  height: 100vh;
  background: rgba(7, 0, 15, 0.97);
  backdrop-filter: blur(30px);
  border-left: 1px solid var(--glass-border);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-theme="light"] .nav-drawer { background: rgba(240, 238, 255, 0.97); }
.nav-drawer.open { right: 0; }
.nav-drawer a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--text-main); background: var(--glass-bg); }
.drawer-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1.5rem; padding: 8px;
}
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1999;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }

/* Themed Section Utility */
.themed-section {
  position: relative;
  overflow: hidden;
}
.themed-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-soft);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}
[data-theme="light"] .themed-section::before {
  opacity: 0.05;
}


/* === HERO SECTION === */
/* Hero used on homepage/portal */
.portal-hero, .hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px 20px 30px;
  overflow: hidden;
  z-index: 1;
}


/* Animated blobs — now color-coded to match logo spectrum */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.25;
  animation: blobFloat 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.blob-1 { 
  width: 600px; height: 600px; 
  background: var(--accent-blob);
  top: -10%; left: -15%; 
}
.blob-2 { 
  width: 500px; height: 500px; 
  background: var(--accent-blob);
  filter: brightness(0.8) saturate(1.2);
  bottom: -10%; right: -10%; 
  animation-delay: -7s; 
}
.blob-3 { 
  width: 350px; height: 350px; 
  background: var(--accent-blob);
  filter: brightness(1.2);
  top: 35%; left: 45%; 
  animation-delay: -3s; 
}
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(30px, -50px) scale(1.1) rotate(5deg); }
  66% { transform: translate(-20px, 20px) scale(0.9) rotate(-5deg); }
  100% { transform: translate(10px, -10px) scale(1.05) rotate(0deg); }
}

.hero-content { 
  max-width: 820px; 
  margin: 0 auto;
  z-index: 2; 
  position: relative; 
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeSlideDown 0.7s ease both;
}

/* Tool Badges Variants — synchronized with branding */
.badge-video { background: rgba(14, 165, 233, 0.12); border-color: rgba(14, 165, 233, 0.3); color: #7dd3fc; }
.badge-audio { background: rgba(124, 58, 237, 0.12); border-color: rgba(124, 58, 237, 0.3); color: #c7d2fe; }
.badge-thumb { background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.3); color: #fda4af; }

[data-theme="light"] .hero-badge { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); opacity: 0.9; }
[data-theme="light"] .badge-video { background: rgba(14, 165, 233, 0.08); border-color: rgba(14, 165, 233, 0.25); color: #0284c7; }
[data-theme="light"] .badge-audio { background: rgba(124, 58, 237, 0.08); border-color: rgba(124, 58, 237, 0.25); color: #6d28d9; }
[data-theme="light"] .badge-thumb { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.25); color: #be123c; }
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }
.hero-badge span { animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform: scale(1); } 50% { opacity:0.6; transform: scale(0.85); } }

/* Headings */
.gradient-text {
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeSlideUp 0.8s ease 0.1s both;
}
[data-theme="light"] .gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-main);
  opacity: 0.85;
  margin-bottom: 28px;
  max-width: 580px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
  animation: fadeSlideUp 0.8s ease 0.2s both;
}

/* Hero input wrapper — keeps input centered + constrained */
.hero-input-wrap {
  max-width: 680px;
  margin: 0 auto 20px;
}

/* Input Group */
.input-group {
  display: flex;
  padding: 6px;
  border-radius: var(--radius-pill);
  max-width: 650px;
  margin: 0 auto 12px;
  /* Strong white background — clearly visible against any page gradient */
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all var(--transition);
  animation: fadeSlideUp 0.8s ease 0.3s both;
}
.input-icon { display: flex; align-items: center; padding-left: 20px; color: #64748b; }
.input-group input {
  flex: 1;
  min-width: 0;
}
.input-group button {
  flex: 0 0 auto;
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 8px 32px rgba(0, 0, 0, 0.2);
}
.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  color: #0f172a;
  outline: none;
  font-family: inherit;
}
/* Placeholder always dark on the white input box */
.input-group input::placeholder { color: #94a3b8; }

/* Light mode: slightly blue-tinted border */
[data-theme="light"] .input-group {
  background: #ffffff;
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 8px 24px rgba(59, 130, 246, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .input-group input { color: #0f172a; }
[data-theme="light"] .input-group input::placeholder { color: #94a3b8; }

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0 28px;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.03);
  box-shadow: 0 6px 24px var(--accent-soft);
}
.btn-primary:active { transform: scale(0.98); }

/* Ripple effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* Hero Mockup */
.hero-mockup-container {
  position: relative;
  max-width: 900px;
  margin: 40px auto 0;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.hero-mockup {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.mockup-shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
  animation: mockupShimmer 3s infinite;
  pointer-events: none;
}
@keyframes mockupShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
  animation: fadeSlideUp 0.8s ease 0.5s both;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.stat-item svg { color: var(--accent); flex-shrink: 0; }
.stat-separator { color: var(--text-dim); font-size: 1.2rem; }

/* Error Message */
.error-msg { color: #ff5c6c; margin-top: 12px; font-size: 0.9rem; animation: fadeSlideDown 0.3s ease; }

/* === LOADER === */
.loader-container {
  display: flex; flex-direction: column;
  align-items: center; margin: 50px 0; z-index: 2; position: relative;
}
.spinner {
  width: 50px; height: 50px;
  border: 3px solid var(--glass-border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite; margin-bottom: 16px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* === RESULT SECTION === */
.result-section {
  max-width: 1020px;
  margin: 60px auto 100px;
  padding: 0 20px;
  position: relative; z-index: 5;
  animation: fadeSlideUp 0.5s ease both;
  scroll-margin-top: 100px;
}

.result-card {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
}

/* Thumbnail */
.video-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.video-preview img {
  width: 100%; height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, brightness 0.3s ease;
}
.video-preview:hover img { transform: scale(1.07); filter: brightness(0.7); }

.thumb-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition);
}
.video-preview:hover .thumb-overlay { opacity: 1; }
.thumb-overlay svg { color: #fff; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }

.duration-badge {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.85);
  color: #fff; padding: 4px 10px;
  border-radius: 6px; font-size: 0.8rem; font-weight: 600;
}

.video-info h2 {
  font-size: 1.4rem; margin-bottom: 8px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vid-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  padding: 5px;
  border-radius: var(--radius-pill);
  width: fit-content;
}
[data-theme="light"] .tabs {
  background: rgba(108,82,255,0.05);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition);
  white-space: nowrap;
}
.tab-btn:hover {
  color: var(--text-main);
  background: var(--accent-soft);
}
.tab-btn.active {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-soft);
}
.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tab-icon svg {
  transition: transform var(--transition);
}
.tab-btn:hover .tab-icon svg { transform: scale(1.15); }

/* Progress Bar */
.progress-bar-container {
  margin-bottom: 20px; padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  animation: fadeSlideUp 0.3s ease;
}
.progress-info { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.85rem; font-weight: 500; }
.progress-track { height: 8px; background: rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%;
  background: var(--accent-grad);
  border-radius: 8px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px var(--accent-soft);
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: rgba(255,255,255,0.3);
  animation: progressShimmer 1.5s infinite;
}
@keyframes progressShimmer { to { left: 200%; } }

/* Download Buttons */
.tab-content h3 { font-size: 1rem; margin-bottom: 14px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }

.download-btn {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 16px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: all var(--transition);
  font-family: inherit;
  position: relative; overflow: hidden;
}
.download-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.download-btn:active { transform: translateY(-1px); }

.q-label { font-size: 1.25rem; font-weight: 800; font-family: 'Outfit', sans-serif; letter-spacing: -0.01em; }
.q-format { font-size: 0.78rem; color: var(--text-muted); margin-top: 1px; }
.download-btn svg { color: var(--accent); margin-top: 6px; opacity: 0.8; transition: opacity var(--transition), transform var(--transition); }
.download-btn:hover svg { opacity: 1; transform: translateY(2px); }

/* Quality badge variants */
.btn-4k { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15)); border-color: rgba(168, 85, 247, 0.35); }
.btn-4k .q-label { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-4k:hover { box-shadow: 0 8px 24px rgba(168, 85, 247, 0.2); }

.btn-1080p { background: var(--accent-soft); border-color: var(--accent); opacity: 0.9; }
.btn-1080p .q-label { background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-1080p:hover { opacity: 1; }
.btn-720p { background: linear-gradient(135deg, rgba(79,172,254,0.15), rgba(0,242,254,0.1)); border-color: rgba(79,172,254,0.3); }
.btn-720p .q-label { background: var(--grad-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* 480p / 360p — rose/warm subtle style */
.btn-sd { background: linear-gradient(135deg, rgba(129, 140, 248, 0.1), rgba(99, 102, 241, 0.08)); border-color: rgba(129, 140, 248, 0.25); }
.btn-sd .q-label { background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.btn-sd:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15); }

.audio-btn {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(99, 102, 241, 0.1));
  border-color: rgba(139, 92, 246, 0.35);
}
.audio-btn .q-label {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.audio-btn svg { color: #8b5cf6; }
.audio-btn:hover { box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25); border-color: rgba(139, 92, 246, 0.5); }

/* Thumbnail buttons */
.btn-thumb {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(79, 70, 229, 0.1));
  border-color: rgba(99, 102, 241, 0.35);
}
.btn-thumb .q-label {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn-thumb svg { color: #6366f1; }
.btn-thumb:hover { box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25); border-color: rgba(99, 102, 241, 0.5); }


/* === FEATURES SECTION === */
.features {
  max-width: 1200px; 
  margin: 60px auto 120px; 
  padding: 0 20px;
  position: relative; 
  z-index: 1;
  text-align: center;
}

.section-label {
  text-align: center; margin-bottom: 12px;
  font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title {
  text-align: center; margin-bottom: 60px;
  font-size: 2.8rem; font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.section-title span {
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

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

.feature-card {
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  position: relative; overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px var(--accent-soft);
  background: var(--accent-grad);
  border-color: transparent;
}

/* Text turns white on gradient hover */
.feature-card:hover h3 { color: #fff; }
.feature-card:hover p { color: rgba(255,255,255,0.8); }
.f-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--accent, rgba(108,82,255,0.1));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.6rem;
  transition: all var(--transition);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.feature-card:hover .f-icon {
  transform: scale(1.1) rotate(5deg);
  background: #ffffff;
  color: var(--accent); /* Switch to the specific accent color on white background */
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.feature-card:hover .f-icon svg {
  color: inherit !important;
}
.feature-card h3 { font-size: 1.35rem; margin-bottom: 12px; transition: color var(--transition); letter-spacing: -0.02em; }
.feature-card p { color: var(--text-muted); line-height: 1.75; font-size: 0.95rem; transition: color var(--transition); }

/* Scroll-reveal utility */
.reveal { 
  opacity: 0; 
  transform: translateY(40px) scale(0.96); 
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); 
  will-change: transform, opacity;
}
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }


/* Trust Section */
.trust-section {
  max-width: 1000px;
  margin: 0 auto 120px;
  padding: 0 20px;
}
.trust-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
}
.trust-item { flex: 1; }
.trust-number { font-size: 3rem; font-weight: 800; font-family: 'Outfit', sans-serif; margin-bottom: 5px; background: var(--accent-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.trust-label { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.trust-divider { width: 1px; height: 50px; background: var(--glass-border); }

@media (max-width: 768px) {
  .trust-container { flex-direction: column; gap: 40px; }
  .trust-divider { width: 100px; height: 1px; }
}

/* === HOW-TO SECTION (MOCKUP STYLE) === */
.how-to-section {
  max-width: 1100px;
  margin: 0 auto 100px;
  padding: 0 20px;
}

.how-grid-v2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  --mockup-accent: var(--accent); /* Unified with Global Accent */
  --mockup-accent-soft: var(--accent-soft);
}

/* Mockup Accent Utility Classes */
.mockup-accent-bg { background: var(--mockup-accent) !important; }
.mockup-accent-text { color: var(--mockup-accent) !important; }
.mockup-accent-border { border-color: var(--mockup-accent) !important; }
.mockup-accent-soft-bg { background: var(--mockup-accent-soft) !important; }

.how-card-v2 {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

[data-theme="dark"] .how-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}

.how-card-v2:hover {
  transform: translateY(-5px);
}

.step-info-v2 {
  text-align: center;
  margin-bottom: 25px;
}

.step-tag-v2 {
  color: var(--accent) !important;
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 5px;
}

.step-title-v2 {
  font-weight: 700;
  font-size: 1.25rem;
  color: #1a1a1a;
}

[data-theme="dark"] .step-title-v2 {
  color: #fff;
}

.step-desc-v2 {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 8px;
  line-height: 1.5;
}

/* Mockup Illustrations */
.mockup-box {
  border-radius: 16px;
  padding: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 220px;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Step-specific themed backgrounds — now theme-aware */
.mockup-step-1, .mockup-step-2, .mockup-step-3, .mockup-step-4, .mockup-step-5 {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  opacity: 0.95;
}

[data-theme="dark"] .mockup-step-1, [data-theme="dark"] .mockup-step-2, [data-theme="dark"] .mockup-step-3, [data-theme="dark"] .mockup-step-4, [data-theme="dark"] .mockup-step-5 {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-soft) 100%);
  border-color: var(--accent);
}
.browser-window {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
}

[data-theme="dark"] .browser-window {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.browser-header {
  padding: 10px 14px;
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #f1f5f9;
  background: #fdfdfd;
}

[data-theme="dark"] .browser-header {
  background: #0f172a;
  border-bottom-color: rgba(255,255,255,0.1);
}

.dot { width: 8px; height: 8px; border-radius: 50%; opacity: 0.8; }
.dot-r { background: #a855f7; } /* Brand Purple */
.dot-y { background: #0ea5e9; } /* Brand Cyan */
.dot-g { background: #6366f1; } /* Brand Indigo */

.browser-body {
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Address Bar style */
.addr-bar {
  width: 100%;
  height: 34px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 11px;
  color: #64748b;
  overflow: hidden;
  white-space: nowrap;
}

[data-theme="dark"] .addr-bar {
  background: #334155;
  border-color: #475569;
  color: #94a3b8;
}

.addr-bar.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

[data-theme="dark"] .addr-bar.active {
  background: var(--accent-soft);
}

.mouse-cursor {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='black' stroke-width='1.5'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Brand Card */
.brand-card-v2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.brand-card-v2 .brand-text {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--mockup-accent);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .how-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.step-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-grad);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px var(--accent-soft);
    z-index: 2;
}

.how-step-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.how-step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Animations for Visuals */
.visual-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
    filter: drop-shadow(0 4px 8px var(--accent-soft));
}

@media (max-width: 1100px) {
    .how-it-works-premium {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works-premium {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .how-it-works-premium {
        grid-template-columns: 1fr;
    }
}



/* === FAQ SECTION === */
.faq-section {
  max-width: 780px; margin: 0 auto 120px; padding: 0 20px;
  position: relative; z-index: 1;
}

.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open { border-color: rgba(108,82,255,0.4); box-shadow: 0 4px 24px rgba(108,82,255,0.1); }

.faq-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer; user-select: none;
  gap: 16px;
}
.faq-header h3 { font-size: 1.05rem; font-weight: 600; flex: 1; text-align: left; }

.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  transition: transform var(--transition), background var(--transition);
  font-size: 1.3rem; line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(108,82,255,0.2); }

.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.4s ease;
  padding: 0 24px;
}
.faq-item.open .faq-body { max-height: 200px; padding-bottom: 20px; }
.faq-body p { color: var(--text-muted); line-height: 1.75; font-size: 0.95rem; }

/* Left accent border on open */
.faq-item.open { border-left: 3px solid var(--primary); }


/* === FOOTER === */
.footer {
  position: relative; z-index: 1;
  padding: 60px 20px 30px;
  border-top: none;
}
.footer::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-soft), transparent);
}

.footer-container {
  max-width: 1200px; margin: 0 auto 40px;
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px;
  align-items: start;
}
.footer-brand h3 {
  font-size: 1.5rem; font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 10px;
}
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; max-width: 260px; }

.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.footer-nav-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--text-muted); font-size: 0.9rem;
  transition: color var(--transition);
  position: relative; padding-left: 0;
}
.footer-links a:hover { color: var(--text-main); }

.copyright {
  text-align: center;
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim); font-size: 0.85rem;
}


/* === STATIC PAGES === */
.page-content { padding: 120px 20px 60px; max-width: 800px; margin: 0 auto; min-height: 80vh; position: relative; z-index: 1; }
.page-card { padding: 44px; border-radius: var(--radius-lg); line-height: 1.8; }
.page-card h1 { font-size: 2.4rem; margin-bottom: 6px; }
.page-card h2 { font-size: 1.3rem; margin-top: 32px; margin-bottom: 14px; }
.page-card p { color: var(--text-muted); margin-bottom: 14px; }
.page-card a { color: var(--primary); text-decoration: underline; }
.contact-info { background: var(--glass-bg); padding: 20px 24px; border-radius: var(--radius-md); border: 1px solid var(--glass-border); margin: 24px 0; }


/* === COOKIE BANNER === */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 90%; max-width: 580px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 20px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner p { font-size: 0.9rem; color: var(--text-main); line-height: 1.5; flex: 1; }
.cookie-banner a { color: var(--primary); text-decoration: underline; }
.cookie-banner .btn-primary { padding: 10px 20px; flex-shrink: 0; font-size: 0.9rem; }


/* === ANIMATIONS === */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* === RESPONSIVE === */
/* Desktop-first layout preserved */

/* ============================================================
   HOME TOOL CARDS — Premium Redesign
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1180px;
  margin: 16px auto 80px;
  padding: 0 20px;
}



.portal-card {
  position: relative;
  padding: 0;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.38s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .portal-card {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Gradient top accent bar */
.portal-card::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 2;
  border-radius: 24px 24px 0 0;
  transition: height 0.35s ease;
}
.card-video { --accent: #0ea5e9; --accent-soft: rgba(14, 165, 233, 0.15); }
.card-audio { --accent: #8b5cf6; --accent-soft: rgba(139, 92, 246, 0.15); }
.card-thumb { --accent: #f43f5e; --accent-soft: rgba(244, 63, 94, 0.15); }

.card-video::before  { background: linear-gradient(90deg, #0ea5e9, #3b82f6); }
.card-audio::before  { background: linear-gradient(90deg, #8b5cf6, #6366f1); }
.card-thumb::before  { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.portal-card:hover {
  transform: translateY(-10px);
}
.card-video:hover  { box-shadow: 0 24px 56px rgba(14, 165, 233, 0.22);  border-color: rgba(14, 165, 233, 0.3); }
.card-audio:hover  { box-shadow: 0 24px 56px rgba(139, 92, 246, 0.2);   border-color: rgba(139, 92, 246, 0.3); }
.card-thumb:hover  { box-shadow: 0 24px 56px rgba(244, 63, 94, 0.2);   border-color: rgba(244, 63, 94, 0.3); }

/* Card body padding */
.portal-card .card-body {
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Icon wrapper */
.portal-card .card-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}
.card-video .card-icon  { background: linear-gradient(135deg, #0ea5e9, #3b82f6); box-shadow: 0 8px 24px rgba(14,165,233,0.35), 0 0 0 8px rgba(14,165,233,0.08); color: #fff; }
.card-audio .card-icon  { background: linear-gradient(135deg, #8b5cf6, #6366f1); box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35), 0 0 0 8px rgba(139, 92, 246, 0.08); color: #fff; }
.card-thumb .card-icon  { background: linear-gradient(135deg, #f43f5e, #fb7185); box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35),  0 0 0 8px rgba(244, 63, 94, 0.08);  color: #fff; }

.portal-card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.card-video:hover  .card-icon  { box-shadow: 0 12px 32px rgba(14,165,233,0.5),  0 0 0 10px rgba(14,165,233,0.1); }
.card-audio:hover  .card-icon  { box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5),   0 0 0 10px rgba(139, 92, 246, 0.1); }
.card-thumb:hover  .card-icon  { box-shadow: 0 12px 32px rgba(244, 63, 94, 0.5),   0 0 0 10px rgba(244, 63, 94, 0.1); }

.portal-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.portal-card > .card-body > p,
.portal-card .card-body p.card-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

/* Pills row */
.card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.card-pill {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}
.card-video  .card-pill { background: rgba(14, 165, 233, 0.12);  color: #38bdf8;  border: 1px solid rgba(14, 165, 233, 0.25); }
.card-audio  .card-pill { background: rgba(139, 92, 246, 0.12);  color: #a78bfa;  border: 1px solid rgba(139, 92, 246, 0.25); }
.card-thumb  .card-pill { background: rgba(244, 63, 94, 0.12);  color: #fb7185;  border: 1px solid rgba(244, 63, 94, 0.25); }
[data-theme="light"] .card-video  .card-pill { background: rgba(14, 165, 233, 0.08);  color: #0284c7; }
[data-theme="light"] .card-audio  .card-pill { background: rgba(139, 92, 246, 0.08);  color: #8b5cf6; }
[data-theme="light"] .card-thumb  .card-pill { background: rgba(244, 63, 94, 0.08);  color: #f43f5e; }

/* CTA Button */
.btn-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
  transition: all 0.3s ease;
  border: 1.5px solid transparent;
  margin-top: auto;
  width: 100%;
}
.btn-launch svg { transition: transform 0.3s ease; }
.btn-launch:hover svg { transform: translateX(4px); }

.card-video  .btn-launch { color: #0ea5e9; background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.25); }
.card-audio  .btn-launch { color: #8b5cf6; background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.25); }
.card-thumb  .btn-launch { color: #f43f5e; background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.25); }

.card-video:hover  .btn-launch { background: linear-gradient(135deg,#0ea5e9,#3b82f6); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4); }
.card-audio:hover  .btn-launch { background: linear-gradient(135deg,#8b5cf6,#6366f1); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4); }
.card-thumb:hover  .btn-launch { background: linear-gradient(135deg,#f43f5e,#fb7185); color: #fff; border-color: transparent; box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4); }

/* ── Testimonials Section ────────────────────────────────────────────────── */
.testimonials {
  padding: 100px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  margin-bottom: 60px;
}

.testimonials-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.testimonial-item {
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.testimonial-item:hover {
  transform: scale(1.1);
  z-index: 50;
}

.testimonial-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 4px solid var(--glass-border);
  object-fit: cover;
  transition: border-color var(--transition);
  background: var(--glass-bg);
}

.testimonial-item:hover .testimonial-avatar {
  border-color: #ACA0FB;
  animation: avatarPulse 2s infinite;
}

.testimonial-item.has-been-hovered .testimonial-avatar {
  border-color: #ACA0FB;
}

@keyframes avatarPulse {
  0% { box-shadow: 0 0 0 0 rgba(172, 160, 251, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(172, 160, 251, 0); }
  100% { box-shadow: 0 0 0 0 rgba(172, 160, 251, 0); }
}

/* Tooltip Bubble */
.testimonial-tooltip {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: white;
  color: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 10px 20px rgba(0,0,0,0.1);
  width: 270px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
  z-index: 100;
}

.testimonial-item:hover .testimonial-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-content {
  height: 105px;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  overflow: hidden;
  white-space: pre-wrap;
  color: #333;
}

.tooltip-author {
  text-align: right;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.author-name {
  font-weight: 800;
  font-size: 0.95rem;
  font-family: 'Outfit', sans-serif;
  color: #111;
  margin-bottom: 2px;
}

.author-job {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background: #ACA0FB;
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

/* Tooltip Tail (Floating Bubbles) */
.tooltip-tail {
  position: absolute;
  bottom: -45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tail-dot {
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.tail-dot:nth-child(1) { width: 12px; height: 12px; }
.tail-dot:nth-child(2) { width: 8px; height: 8px; }
.tail-dot:nth-child(3) { width: 5px; height: 5px; }

/* Dark mode specific - keep the tooltip white for that premium "clean" float effect */
[data-theme="dark"] .testimonial-tooltip {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .testimonials-container {
    gap: 16px;
  }
  .testimonial-avatar {
    width: 56px;
    height: 56px;
  }
  .testimonial-tooltip {
    width: 220px;
    bottom: 75px;
    padding: 15px;
  }
  .tooltip-content {
    height: 110px;
    font-size: 0.8rem;
  }
}

/* Section is now handled by the premium styles above */


/* === FORMAT BADGES === */
.formats-section { max-width: 1000px; margin: 0 auto 120px; text-align: center; padding: 0 20px; }
.formats-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 40px;
}
.format-badge {
  padding: 12px 25px; border-radius: var(--radius-pill);
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  color: var(--text-main); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition);
}
.format-badge:hover {
  background: #fff; color: var(--bg); transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
}

/* === FAQ SECTION (Homepage) — Premium Redesign === */
.faq-section { max-width: 860px; margin: 0 auto 120px; padding: 0 20px; }

.faq-container {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: faq-counter;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  background: var(--bg-card);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  /* Left accent bar */
  border-left: 3px solid transparent;
  counter-increment: faq-counter;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Subtle card shadow */
.faq-item:not(.active) {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Light mode base */
[data-theme="light"] .faq-item {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 14px rgba(59, 130, 246, 0.06);
}

/* Hover — lift + tint */
.faq-item:hover {
  border-color: rgba(108, 82, 255, 0.3);
  border-left-color: rgba(108, 82, 255, 0.5);
  box-shadow: 0 6px 28px rgba(108, 82, 255, 0.12);
  transform: translateY(-1px);
}

[data-theme="light"] .faq-item:hover {
  border-color: var(--accent);
  opacity: 0.9;
}

/* Active — branded glow */
.faq-item.active {
  border-color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 8px 36px var(--accent-soft), inset 3px 0 0 0 var(--accent);
  transform: translateY(-2px);
}

[data-theme="light"] .faq-item.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 8px 32px var(--accent-soft);
}
.faq-question {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}

/* Auto-numbered label before question */
.faq-question::before {
  content: "0" counter(faq-counter);
  font-size: 0.75rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 26px;
  opacity: 0.8;
}

.faq-question span {
  flex: 1;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--text-main);
  transition: color 0.3s ease;
}

.faq-item.active .faq-question span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .faq-item.active .faq-question span {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
}

/* Chevron icon wrapper */
.faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(108, 82, 255, 0.1);
  border: 1px solid rgba(108, 82, 255, 0.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: var(--grad-brand);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 82, 255, 0.35);
}

[data-theme="light"] .faq-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.18);
}

/* Answer reveal */
.faq-answer {
  max-height: 0;
  padding: 0 28px;
  color: var(--text-muted);
  line-height: 1.85;
  font-size: 0.97rem;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.35s ease,
              opacity 0.35s ease;
  opacity: 0;
  overflow: hidden;
}

/* Divider line before answer */
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 28px 26px;
  opacity: 1;
  border-top: 1px solid var(--glass-border);
  margin-top: -1px;
  padding-top: 18px;
}

.faq-answer p { margin: 0; }

/* === BOTTOM CTA === */
.bottom-cta {
  max-width: 1200px; margin: 0 auto 100px; padding: 0 20px;
}
.cta-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border-radius: var(--radius-lg); border: 1px solid var(--glass-border);
  padding: 80px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta-box h2 { font-size: 3rem; margin-bottom: 20px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 30px; }

@media (max-width: 600px) {
  .cta-box h2 { font-size: 2rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
}

/* =====================================================
   BOTTOM FLOATING NAVIGATION BAR (Mobile) — Pill Style
   ===================================================== */

/* Hide on desktop — show on mobile */
@media (min-width: 769px) {
  .bottom-nav { display: none !important; }
}

.bottom-nav {
  display: flex; /* visible by default — hidden on desktop via media query */
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  pointer-events: none;
}

.bottom-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(18, 10, 38, 0.88);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  padding: 8px 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  pointer-events: all;
}

[data-theme="light"] .bottom-nav-inner {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  cursor: pointer;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.bottom-nav-item svg {
  width: 22px; height: 22px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

/* Hide text labels — icon-only pill design */
.bottom-nav-item span { display: none; }

.bottom-nav-item:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

[data-theme="light"] .bottom-nav-item:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}

/* Active state — filled circle background */
.bottom-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

[data-theme="light"] .bottom-nav-item.active {
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

.bottom-nav-item.active svg {
  transform: scale(1.15);
}

/* Tool-specific active colors */
.bottom-nav-item.nav-home.active {
  background: rgba(168, 157, 255, 0.15);
  color: #a89dff;
}

.bottom-nav-item.nav-video.active {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.bottom-nav-item.nav-audio.active {
  background: rgba(124, 58, 237, 0.15);
  color: #7c3aed;
}

.bottom-nav-item.nav-thumb.active {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.bottom-nav-item.nav-settings.active {
  background: rgba(156, 163, 175, 0.15);
  color: #9ca3af;
}

/* Divider between items */
.bottom-nav-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  margin: 0 2px;
}

[data-theme="light"] .bottom-nav-divider {
  background: rgba(0, 0, 0, 0.07);
}

/* Settings panel */
.settings-panel {
  position: fixed;
  bottom: -100%;
  left: 0; right: 0;
  z-index: 2000; /* Above bottom nav */
  background: rgba(7, 0, 20, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px 28px 0 0;
  padding: 28px 24px 40px;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80vh;
  overflow-y: auto;
}

[data-theme="light"] .settings-panel {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(59, 130, 246, 0.15);
}

.settings-panel.open { bottom: 0; }

.settings-handle {
  width: 40px; height: 4px;
  background: var(--glass-border);
  border-radius: 4px;
  margin: 0 auto 24px;
}

.settings-panel h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: center;
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--glass-border);
}

.settings-row:last-child { border-bottom: none; }

.settings-row-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.settings-row-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--glass-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
}

/* Toggle Switch */
.toggle-switch {
  width: 48px; height: 26px;
  background: #cbd5e1; /* light-mode visible track */
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  padding: 0;
}

[data-theme="dark"] .toggle-switch {
  background: rgba(255,255,255,0.15);
}

.toggle-switch.on { background: var(--grad-brand); }

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.3s ease;
  /* Stronger shadow so the white dot is always visible on any background */
  box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.08);
}

.toggle-switch.on::after { transform: translateX(22px); }

/* =====================================================
   MOBILE RESPONSIVE — App-Like Compact Layout (≤768px)
   ===================================================== */

@media (max-width: 768px) {
  /* Show bottom nav pill, hide hamburger */
  .bottom-nav { display: flex; }
  .hamburger, .nav-links { display: none !important; }

  /* Body: extra bottom padding so floating pill never overlaps content */
  body { padding-bottom: 96px; }

  /* ── Navbar ─────────────────────────────────────────── */
  .navbar {
    padding: 10px 16px;
    min-height: 52px;
  }
  .nav-container { gap: 0; }
  .nav-logo { font-size: 1.1rem; }
  .nav-logo svg { width: 26px; height: 26px; }
  .theme-toggle { width: 36px; height: 36px; }

  /* ── Hero: ultracompact — input MUST be above fold ──── */
  .portal-hero, .hero {
    min-height: unset !important;
    height: auto;
    padding: 70px 16px 20px; /* navbar offset top, tight bottom */
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    padding-top: 0;
  }

  /* Badge — tiny pill */
  .hero-badge {
    font-size: 0.7rem;
    padding: 5px 12px;
    margin-bottom: 10px;
  }

  /* Title — compact, 2 lines max */
  h1, .gradient-text {
    font-size: clamp(1.45rem, 6.5vw, 2rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.02em;
  }

  /* Subtitle — clamp to 2 lines */
  .subtitle {
    font-size: 0.93rem;
    line-height: 1.55;
    margin-bottom: 14px;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 2.8em;
    padding: 0 4px;
  }

  /* ── Input Card: glass pill, always visible ──────────── */
  .input-group {
    flex-direction: row;
    padding: 5px;
    margin: 0 0 12px;
    width: 100%;
    max-width: 100% !important;
    position: sticky;
    top: 56px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid rgba(108, 82, 255, 0.2);
    box-shadow:
      0 4px 20px rgba(0, 0, 0, 0.18),
      0 1px 4px rgba(0, 0, 0, 0.08);
    border-radius: 100px;
  }

  .input-group input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .input-group input::placeholder {
    font-size: 0.88rem;
  }

  /* Button: compact pill — ONLY inside input group */
  .input-group .btn-primary {
    flex: 0 0 auto;
    padding: 0 16px;
    font-size: 0.84rem;
    min-height: 40px;
    max-width: 128px;
    white-space: nowrap;
    overflow: hidden;
    gap: 4px;
  }

  /* Hide the trailing SVG arrow/icon in button on mobile */
  .input-group .btn-primary svg {
    display: none;
  }

  /* Global btn-primary mobile (outside input group) */
  .btn-primary {
    padding: 0 18px;
    font-size: 0.85rem;
    min-height: 42px;
    gap: 6px;
  }

  /* Input icon hidden on mobile to save space */
  .input-icon { display: none; }

  /* ── Hero stats row ─────────────────────────────────── */
  .hero-stats {
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 4px;
  }
  .stat-item { font-size: 0.82rem; gap: 5px; }
  .stat-item svg { width: 13px; height: 13px; }
  .stat-separator { display: none; }

  /* ── Tool Grid ──────────────────────────────────────── */
  .tool-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 16px;
    margin-bottom: 32px;
  }
  .portal-card { padding: 20px 18px; }

  /* ── Features Section ───────────────────────────────── */
  .features {
    padding: 40px 16px 0;
    margin-bottom: 48px;
  }
  .features-grid { grid-template-columns: 1fr; gap: 12px; }
  .features-header { margin-bottom: 24px; }
  .features-header h2 { font-size: 1.6rem; }

  .feature-card {
    padding: 18px 16px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .f-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    flex-shrink: 0; margin: 0;
  }
  .feature-icon { font-size: 1.7rem; margin: 0; flex-shrink: 0; }
  .feature-card h3 { font-size: 1.05rem; margin-bottom: 5px; }
  .feature-card p { font-size: 0.9rem; line-height: 1.6; }

  /* ── How it Works ───────────────────────────────────── */
  .how-to-section { padding: 0 16px; margin-bottom: 48px; }
  .how-to-section .section-title { margin-bottom: 24px; }
  .how-to-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .how-to-steps::before { display: none; }
  .step-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }
  .step-num { margin: 0; flex-shrink: 0; width: 38px; height: 38px; font-size: 1rem; }
  .step-icon { display: none; }
  .step-card h3 { font-size: 1rem; margin-bottom: 4px; }
  .step-card p { font-size: 0.9rem; line-height: 1.55; }

  /* ── FAQ ────────────────────────────────────────────── */
  .faq-section { padding: 0 16px; margin-bottom: 48px; }
  .faq-question { padding: 16px 20px; font-size: 0.97rem; }
  .faq-item.active .faq-answer { padding: 0 20px 18px; }
  .faq-header { padding: 16px 20px; }
  .faq-header h3 { font-size: 0.97rem; }

  /* ── Formats ────────────────────────────────────────── */
  .formats-section { padding: 0 16px; margin-bottom: 48px; }
  .formats-grid { gap: 8px; }
  .format-badge { padding: 8px 16px; font-size: 0.88rem; }

  /* ── Trust / Stats ──────────────────────────────────── */
  .trust-section { padding: 0 16px; margin-bottom: 48px; }
  .trust-container {
    flex-direction: column;
    gap: 16px;
    padding: 20px 18px;
  }
  .trust-number { font-size: 2.2rem; }
  .trust-divider { width: 50px; height: 1px; }

  /* ── Testimonials ───────────────────────────────────── */
  .testimonials { padding: 48px 0; }
  .testimonials-container { padding: 0 16px; }

  /* ── CTA ────────────────────────────────────────────── */
  .bottom-cta { padding: 0 16px; margin-bottom: 48px; }
  .cta-box { padding: 40px 20px; }
  .cta-box h2 { font-size: 1.6rem; }
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 10px; }

  /* ── Result section ─────────────────────────────────── */
  .result-section { padding: 0 16px; margin-bottom: 48px; }
  .result-card { grid-template-columns: 1fr; padding: 18px; gap: 16px; }

  /* ── Download ───────────────────────────────────────── */
  .download-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .download-btn { padding: 12px 8px; }

  /* ── Tabs ───────────────────────────────────────────── */
  .tabs { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .tab-btn { font-size: 0.78rem; padding: 8px 12px; }

  /* ── Section labels ─────────────────────────────────── */
  .section-label { font-size: 0.72rem; }

  /* ── Footer ─────────────────────────────────────────── */
  .footer-container { flex-direction: column; gap: 24px; }
  .footer-nav { flex-direction: column; gap: 16px; }

  /* ── Bottom Floating Nav — slimmer on mobile ────────── */
  .bottom-nav { bottom: 16px; }
  .bottom-nav-inner { padding: 6px 10px; gap: 2px; }
  .bottom-nav-item {
    width: 46px;
    height: 46px;
  }
  .bottom-nav-item svg { width: 20px; height: 20px; }
  .bottom-nav-divider { height: 20px; margin: 0 1px; }
}

/* ── 480px and below: even tighter ──────────────────── */
@media (max-width: 480px) {
  .portal-hero, .hero {
    padding: 64px 14px 16px;
  }

  h1, .gradient-text {
    font-size: clamp(1.3rem, 7vw, 1.8rem) !important;
    margin-bottom: 6px !important;
  }

  .subtitle {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .hero-badge { font-size: 0.65rem; margin-bottom: 8px; }

  .input-group {
    padding: 4px;
    top: 52px;
  }
  .input-group input { padding: 9px 10px; font-size: 0.8rem; }
  .input-group .btn-primary {
    padding: 0 12px;
    font-size: 0.74rem;
    min-height: 36px;
    max-width: 110px;
  }
  .btn-primary { padding: 0 16px; font-size: 0.8rem; min-height: 40px; }

  .hero-stats { gap: 6px; margin-top: 10px; }
  .stat-item { font-size: 0.68rem; }

  .portal-card h3 { font-size: 1rem; }
  .portal-card { padding: 18px 14px; }

  .bottom-nav-item { width: 42px; height: 42px; }
  .bottom-nav-item svg { width: 18px; height: 18px; }
}



/* =====================================================
   TOOL PAGE SECTION STYLES (feature-icon, section-title, etc.)
   ===================================================== */

/* Section shared styles */
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-main) 20%, var(--accent) 70%, var(--accent) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
[data-theme="light"] .section-title {
  background: linear-gradient(135deg, #1a1030 0%, var(--accent) 60%);
  -webkit-background-clip: text; background-clip: text;
}

/* Feature section (tool pages) */
.features {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 60px 24px 0;
}
.features .features-header {
  text-align: center;
  margin-bottom: 50px;
}
.features .features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--accent-soft);
  border-color: var(--accent);
}
.feature-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* How-to section (tool pages) */
.how-to-section {
  max-width: 900px;
  margin: 0 auto 80px;
  padding: 0 24px;
  text-align: center;
}
.how-to-section .section-label {
  text-align: center;
  margin-bottom: 8px;
}
.how-to-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}
.how-to-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.how-to-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  opacity: 0.3;
  z-index: 0;
}
.step-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: transform var(--transition);
  backdrop-filter: blur(12px);
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
  width: 44px; height: 44px;
  background: var(--accent-grad);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  color: #fff;
  margin: 0 auto 14px;
  font-family: 'Outfit', sans-serif;
}
.step-icon { font-size: 1.8rem; margin-bottom: 12px; }
.step-card h3 {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Outfit', sans-serif;
}
.step-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* Mockup Theme Helpers */
.mockup-accent-bg {
  background: var(--accent) !important;
}
.mockup-accent-text {
  color: var(--accent) !important;
}
.mockup-accent-border {
  border-color: var(--accent) !important;
}

[data-theme="light"] .mockup-accent-bg {
  background: var(--accent) !important;
}

/* FAQ section (tool pages) — different from homepage FAQ */
.faq-section {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 0 24px;
}
.faq-section .section-label { text-align: center; margin-bottom: 8px; }
.faq-section .section-title { text-align: center; margin-bottom: 40px; }

.faq-accordion { display: flex; flex-direction: column; gap: 12px; }

.faq-accordion .faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(12px);
}
.faq-accordion .faq-item:hover {
  border-color: rgba(108, 82, 255, 0.3);
}
.faq-accordion .faq-item.active {
  border-color: rgba(108, 82, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(108,82,255,0.08);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  gap: 16px;
  user-select: none;
}
.faq-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  line-height: 1.4;
  margin: 0;
}
.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  font-family: 'Outfit', sans-serif;
}
.faq-accordion .faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-body p {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}
.faq-body a { color: var(--primary); text-decoration: underline; }
.faq-accordion .faq-item.active .faq-body { max-height: 300px; }





/* =========================================================================
   PREMIUM TOAST NOTIFICATIONS
   ========================================================================= */
.premium-toast-container {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 15px;
  pointer-events: none;
}

.premium-toast {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px inset rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  transform: translateY(100px) scale(0.9);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: auto;
  min-width: 340px;
}

.premium-toast.show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.premium-toast .toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--accent-soft);
}

.premium-toast .toast-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.premium-toast .toast-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
  color: var(--primary);
}

.premium-toast .toast-message {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}



/* === Social Media Redesign (Boxed Icons) === */
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.social-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.social-box svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
}

.social-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.social-box svg {
  position: relative;
  z-index: 1;
}

.social-box:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.social-box:hover::before {
  opacity: 0.15;
}

.social-box:hover svg {
  transform: scale(1.1);
}

[data-theme="light"] .social-box {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

[data-theme="light"] .social-box:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Ad & Affiliate Sections ────────────────────────────────────────────────── */
.ad-slot-horizontal {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.ad-label {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  pointer-events: none;
}

.affiliate-card {
  background: linear-gradient(135deg, var(--accent-soft), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--accent-soft);
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.affiliate-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 15px 35px rgba(108, 82, 255, 0.2);
}

.affiliate-badge {
  background: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-block;
}

.affiliate-content h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.affiliate-content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.affiliate-icon {
  font-size: 40px;
  filter: drop-shadow(0 0 10px var(--accent));
}


