/* ==========================================================================
   Videofy - Modern Colorful Design System & Stylesheet
   ========================================================================== */

:root {
  /* Default Theme: Vibrant Neon Violet & Radiant Magenta */
  --theme-name: "default";
  --bg-base: #0c0d14;
  --bg-surface: #141624;
  --bg-surface-elevated: #1d2035;
  --bg-glass: rgba(22, 25, 43, 0.72);
  --bg-glass-border: rgba(255, 255, 255, 0.12);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.45);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.4);
  --warning: #f59e0b;
  --success: #10b981;

  --grad-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #3b82f6 100%);
  --grad-glow: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25));
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #d8b4fe 50%, #f472b6 100%);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 50px -10px var(--primary-glow);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Themes matching Videofy In-App Themes */
[data-theme="tokyo-night"] {
  --bg-base: #1a1b26;
  --bg-surface: #24283b;
  --bg-surface-elevated: #2f354f;
  --bg-glass: rgba(36, 40, 59, 0.75);
  --primary: #7aa2f7;
  --primary-glow: rgba(122, 162, 247, 0.45);
  --secondary: #bb9af7;
  --secondary-glow: rgba(187, 154, 247, 0.4);
  --accent: #7dcfff;
  --grad-primary: linear-gradient(135deg, #7aa2f7 0%, #bb9af7 50%, #7dcfff 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #b4f9f8 50%, #bb9af7 100%);
}

[data-theme="catppuccin"] {
  --bg-base: #1e1e2e;
  --bg-surface: #26273c;
  --bg-surface-elevated: #313244;
  --bg-glass: rgba(38, 39, 60, 0.75);
  --primary: #cba6f7;
  --primary-glow: rgba(203, 166, 247, 0.45);
  --secondary: #f5c2e7;
  --secondary-glow: rgba(245, 194, 231, 0.4);
  --accent: #89dceb;
  --grad-primary: linear-gradient(135deg, #cba6f7 0%, #f5c2e7 50%, #89dceb 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #f5c2e7 50%, #cba6f7 100%);
}

[data-theme="dracula"] {
  --bg-base: #181924;
  --bg-surface: #282a36;
  --bg-surface-elevated: #343746;
  --bg-glass: rgba(40, 42, 54, 0.75);
  --primary: #bd93f9;
  --primary-glow: rgba(189, 147, 249, 0.45);
  --secondary: #ff79c6;
  --secondary-glow: rgba(255, 121, 198, 0.4);
  --accent: #50fa7b;
  --grad-primary: linear-gradient(135deg, #bd93f9 0%, #ff79c6 50%, #50fa7b 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #ff79c6 50%, #bd93f9 100%);
}

[data-theme="sunset"] {
  --bg-base: #120d18;
  --bg-surface: #221424;
  --bg-surface-elevated: #341e35;
  --bg-glass: rgba(34, 20, 36, 0.75);
  --primary: #f97316;
  --primary-glow: rgba(249, 115, 22, 0.45);
  --secondary: #ef4444;
  --secondary-glow: rgba(239, 68, 68, 0.4);
  --accent: #facc15;
  --grad-primary: linear-gradient(135deg, #f97316 0%, #ef4444 50%, #facc15 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #fed7aa 50%, #f97316 100%);
}

[data-theme="ocean"] {
  --bg-base: #061524;
  --bg-surface: #0e2439;
  --bg-surface-elevated: #15344f;
  --bg-glass: rgba(14, 36, 57, 0.75);
  --primary: #0ea5e9;
  --primary-glow: rgba(14, 165, 233, 0.45);
  --secondary: #06b6d4;
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #38bdf8;
  --grad-primary: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #38bdf8 100%);
  --grad-text: linear-gradient(135deg, #ffffff 15%, #bae6fd 50%, #38bdf8 100%);
}

[data-theme="amoled"] {
  --bg-base: #000000;
  --bg-surface: #0a0a0c;
  --bg-surface-elevated: #151518;
  --bg-glass: rgba(10, 10, 12, 0.85);
  --primary: #a855f7;
  --primary-glow: rgba(168, 85, 247, 0.55);
  --secondary: #f43f5e;
  --secondary-glow: rgba(244, 63, 94, 0.45);
  --accent: #22d3ee;
  --grad-primary: linear-gradient(135deg, #a855f7 0%, #f43f5e 50%, #22d3ee 100%);
}

/* Light Mode Option */
[data-theme="light"] {
  --bg-base: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-border: rgba(0, 0, 0, 0.08);
  --bg-glass-hover: rgba(0, 0, 0, 0.04);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.7) 100%);
  --grad-text: linear-gradient(135deg, #1e1b4b 15%, #6366f1 50%, #ec4899 100%);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Ambient Background Light Blobs */
.ambient-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 520px;
  height: 520px;
  background: var(--primary);
  top: -120px;
  left: -100px;
}

.glow-orb-2 {
  width: 480px;
  height: 480px;
  background: var(--secondary);
  top: 30%;
  right: -120px;
  animation-delay: -7s;
}

.glow-orb-3 {
  width: 550px;
  height: 550px;
  background: var(--accent);
  bottom: 5%;
  left: 20%;
  animation-delay: -14s;
  opacity: 0.25;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

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

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

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.section-badge svg {
  width: 16px;
  height: 16px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px auto;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--bg-glass-border);
  transition: var(--transition-smooth);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-logo-text {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.brand-icon-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-primary);
  box-shadow: 0 4px 16px var(--primary-glow);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Selector in Nav */
.theme-picker-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-picker-btn:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.theme-palette-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad-primary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  outline: none;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 6px 24px -4px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -4px var(--primary-glow);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

/* Hero Section */
.hero-section {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

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

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: var(--text-main);
}

.hero-pill svg {
  color: var(--accent);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--bg-glass-border);
}

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

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Interactive Player Phone Mockup */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 18.5;
  background: #000000;
  border-radius: 44px;
  padding: 12px;
  position: relative;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 0 1px rgba(255, 255, 255, 0.15),
              0 0 60px -10px var(--primary-glow);
  overflow: hidden;
  border: 6px solid #202336;
}

.phone-notch {
  width: 90px;
  height: 22px;
  background: #000000;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notch-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #111a2e;
}

.notch-speaker {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: #1f293d;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, #090a12 0%, #15182a 100%);
  display: flex;
  flex-direction: column;
}

/* Mock Player UI */
.mock-player-view {
  position: relative;
  flex: 1;
  background: radial-gradient(circle at center, #2e1065 0%, #0f172a 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px 16px;
}

.mock-bg-art {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3)),
              radial-gradient(ellipse at 80% 20%, rgba(6, 182, 212, 0.4) 0%, transparent 60%);
  filter: blur(10px);
  opacity: 0.9;
}

.mock-player-top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
}

.mock-video-title {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.mock-badge-anime4k {
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.mock-player-center {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mock-center-controls {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mock-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s;
}

.mock-circle-btn.play-btn {
  width: 54px;
  height: 54px;
  background: var(--grad-primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.mock-circle-btn:hover {
  transform: scale(1.08);
}

/* Dynamic Speed & Gestures HUD */
.mock-gesture-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 0.72rem;
  color: #ffffff;
  animation: pulseHud 2s infinite ease-in-out;
}

@keyframes pulseHud {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.mock-subtitles-box {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: #fef08a;
  text-shadow: 1px 1px 2px #000;
  text-align: center;
  max-width: 90%;
  margin-top: 10px;
}

.mock-player-bottom {
  position: relative;
  z-index: 10;
}

.mock-scrubber {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  position: relative;
  margin-bottom: 8px;
  overflow: visible;
}

.mock-scrubber-fill {
  width: 48%;
  height: 100%;
  background: var(--grad-primary);
  border-radius: 2px;
  position: relative;
}

.mock-scrubber-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px var(--primary);
}

.mock-time-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Floating Feature Badges around Phone */
.floating-badge {
  position: absolute;
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 20;
  animation: floatCard 6s ease-in-out infinite;
}

.floating-badge svg {
  width: 20px;
  height: 20px;
}

.badge-top-left {
  top: 15%;
  left: -20px;
  border-left: 3px solid var(--accent);
}

.badge-bottom-right {
  bottom: 18%;
  right: -25px;
  border-right: 3px solid var(--secondary);
  animation-delay: -3s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Theme Showcase Section */
.theme-showcase-section {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.theme-selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.theme-card-button {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.theme-card-button:hover, .theme-card-button.active {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px -6px var(--primary-glow);
}

.theme-card-button.active {
  outline: 2px solid var(--primary);
}

.color-swatch-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 3px;
  background: var(--bg-surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.color-swatch-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.theme-card-name {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Core Features Grid */
.features-section {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-card);
}

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

.feature-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon-box svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.feature-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  color: var(--text-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bg-glass-border);
}

/* Gesture Showcase Section */
.gestures-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

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

.gesture-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition-smooth);
}

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

.gesture-visual {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent);
}

.gesture-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.gesture-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Codec Support Banner */
.codecs-banner {
  padding: 70px 0;
  text-align: center;
}

.codecs-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.codec-pill {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.codec-pill:hover {
  border-color: var(--primary);
  background: var(--bg-surface-elevated);
  color: var(--accent);
  transform: scale(1.05);
}

/* Permissions Explained Section */
.permissions-section {
  padding: 100px 0;
}

.permissions-accordion {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.permission-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.permission-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-surface-elevated);
}

.permission-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.permission-content h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--text-main);
}

.permission-code {
  display: inline-block;
  font-family: monospace;
  font-size: 0.75rem;
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.permission-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.privacy-banner-box {
  max-width: 860px;
  margin: 40px auto 0;
  background: var(--grad-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px -10px var(--accent-glow);
}

.privacy-banner-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

/* Privacy Policy Preview / Summary on Landing Page */
.privacy-summary-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
}

.privacy-card-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-base);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
}

.privacy-grid-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.privacy-hl-item {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.privacy-hl-item h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-hl-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.privacy-cta-wrap {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-glass-border);
}

/* Full Standalone Privacy Policy Page Layout (`privacy.html`) */
.policy-page-header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--bg-glass-border);
  background: var(--bg-surface);
}

.policy-container {
  max-width: 860px;
  margin: 50px auto 100px;
  padding: 0 24px;
}

.policy-article {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-card);
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--bg-glass-border);
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.policy-badge-live {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid var(--success);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

.policy-article h2 {
  font-size: 1.5rem;
  margin: 36px 0 16px;
  color: var(--text-main);
  position: relative;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.policy-article h2:first-of-type {
  margin-top: 0;
}

.policy-article h3 {
  font-size: 1.2rem;
  margin: 24px 0 12px;
  color: var(--text-main);
}

.policy-article p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.policy-article ul, .policy-article ol {
  margin: 16px 0 24px 28px;
  color: var(--text-muted);
}

.policy-article li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.policy-callout {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.policy-callout p {
  margin-bottom: 0;
  color: var(--text-main);
}

/* FAQ Section */
.faq-section {
  padding: 100px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 28px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

/* App Download CTA Banner */
.download-cta-section {
  padding: 80px 0 120px;
}

.download-cta-card {
  background: var(--grad-primary);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 70px -15px var(--primary-glow);
}

.cta-mesh-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(0, 0, 0, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.download-cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: 18px;
}

.download-cta-card p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 36px;
}

.btn-white-play {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.btn-white-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  background: #ffffff;
}

/* Site Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--bg-glass-border);
  padding: 70px 0 30px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 340px;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

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

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--bg-glass-border);
  color: var(--text-subtle);
  font-size: 0.88rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Helper & Responsive Utility Classes */
.btn-text-short {
  display: none;
}

.btn-text-full {
  display: inline;
}

.mobile-drawer-cta {
  display: none;
}

.btn-copied-success {
  background: var(--success) !important;
  color: #ffffff !important;
  border-color: var(--success) !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4) !important;
}

.policy-hero-action {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

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

  .hero-highlights, .hero-cta-group, .hero-stats-row {
    justify-content: center;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Container Padding */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header & Navbar - Sleek & Compact */
  .nav-wrapper {
    height: 62px;
    gap: 8px;
  }

  .brand-logo {
    font-size: 1.25rem;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .brand-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .nav-actions {
    gap: 8px;
  }

  .btn-text-full {
    display: none;
  }

  .btn-text-short {
    display: inline;
  }

  .btn-header-cta {
    padding: 7px 14px;
    font-size: 0.82rem;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .btn-header-cta .btn-icon {
    width: 14px;
    height: 14px;
  }

  .btn-copy-header {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--bg-glass-border);
    color: var(--text-main);
    padding: 0;
    flex-shrink: 0;
  }

  /* Fullscreen Slide-Down Mobile Drawer */
  .nav-links {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 62px);
    background: rgba(12, 13, 20, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    padding: 24px 20px 40px;
    gap: 8px;
    display: none;
    overflow-y: auto;
    z-index: 998;
    border-top: 1px solid var(--bg-glass-border);
  }

  .nav-links.open {
    display: flex;
    animation: fadeInDown 0.25s ease-out;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .mobile-drawer-cta {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bg-glass-border);
  }

  /* Hero Section Mobile Polish */
  .hero-section {
    padding: 24px 0 50px;
  }

  .section-badge {
    font-size: 0.72rem;
    padding: 5px 12px;
    letter-spacing: 0.5px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .section-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 7.8vw, 2.75rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.6;
    margin-bottom: 22px;
    color: var(--text-muted);
  }

  .hero-highlights {
    gap: 6px;
    margin-bottom: 24px;
    justify-content: center;
  }

  .hero-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
    gap: 6px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
    justify-content: center;
  }

  .hero-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--bg-glass-border);
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  /* Phone Mockup on Mobile */
  .hero-mockup-wrapper {
    margin-top: 10px;
  }

  .phone-mockup {
    max-width: 290px;
    border-radius: 36px;
    padding: 8px;
    border-width: 4px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .floating-badge {
    display: none; /* Avoid overflowing mobile viewport */
  }

  /* Section Spacing & Titles */
  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.85rem;
    margin-bottom: 12px;
  }

  .section-description {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  /* Theme Grid on Mobile: 4 columns compact */
  .theme-showcase-section {
    padding: 50px 0;
  }

  .theme-selector-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .theme-card-button {
    padding: 10px 4px;
    border-radius: 12px;
    gap: 6px;
  }

  .color-swatch-ring {
    width: 30px;
    height: 30px;
    padding: 2px;
  }

  .theme-card-name {
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Features & Gestures Section */
  .features-section,
  .gestures-section,
  .permissions-section,
  .privacy-summary-section,
  .faq-section {
    padding: 55px 0;
  }

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

  .feature-card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .feature-icon-box {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .feature-icon-box svg {
    width: 24px;
    height: 24px;
  }

  .feature-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .feature-text {
    font-size: 0.92rem;
    margin-bottom: 14px;
  }

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

  .gesture-card {
    padding: 20px 16px;
    border-radius: 16px;
  }

  .gesture-visual {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
  }

  .gesture-visual svg {
    width: 24px;
    height: 24px;
  }

  /* Codecs Pills */
  .codecs-banner {
    padding: 45px 0;
  }

  .codecs-pills-wrap {
    gap: 8px;
  }

  .codec-pill {
    padding: 7px 14px;
    font-size: 0.82rem;
  }

  /* Permissions Mobile */
  .permission-card {
    padding: 16px;
    gap: 12px;
    border-radius: 14px;
  }

  .permission-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .permission-icon svg {
    width: 20px;
    height: 20px;
  }

  .permission-content h3 {
    font-size: 1.05rem;
  }

  .permission-content p {
    font-size: 0.88rem;
  }

  .privacy-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }

  .privacy-banner-icon {
    margin: 0 auto;
  }

  /* Privacy Cards */
  .privacy-card-container {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .privacy-grid-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 22px 0;
  }

  .privacy-hl-item {
    padding: 16px;
  }

  .privacy-cta-wrap .btn {
    width: 100%;
    margin-bottom: 8px;
  }

  /* FAQ Section */
  .faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.9rem;
    padding: 0 20px;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 18px;
  }

  /* Standalone Policy Page Layout (`privacy.html`) */
  .policy-page-header {
    padding: 36px 0 20px;
  }

  .policy-container {
    margin: 20px auto 50px;
    padding: 0 16px;
  }

  .policy-article {
    padding: 24px 16px;
    border-radius: 18px;
  }

  .policy-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .policy-meta-bar > div:last-child {
    text-align: left !important;
    width: 100%;
  }

  .policy-article h2 {
    font-size: 1.3rem;
    margin: 28px 0 12px;
  }

  .policy-article h3 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
  }

  .policy-article p {
    font-size: 0.94rem;
    line-height: 1.7;
    margin-bottom: 14px;
  }

  .policy-article ul, .policy-article ol {
    margin: 12px 0 18px 20px;
    font-size: 0.92rem;
  }

  .policy-callout {
    padding: 16px;
    margin: 20px 0;
  }

  /* Download CTA Banner */
  .download-cta-section {
    padding: 50px 0 70px;
  }

  .download-cta-card {
    padding: 40px 20px;
    border-radius: 22px;
  }

  .download-cta-card h2 {
    font-size: 1.85rem;
  }

  .download-cta-card p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .download-cta-card .btn {
    width: 100%;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

@media (max-width: 480px) {
  .theme-selector-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }

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

  .brand-logo {
    font-size: 1.2rem;
  }
}

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