/**
 * NotchHub — Premium Dark Theme
 * Unique design inspired by Linear, Raycast, Vercel
 */

/* ==========================================================================
   CSS VARIABLES
   ========================================================================== */
:root {
  /* Colors - Dark Theme */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-elevated: #1e1e2a;
  
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-active: rgba(255, 255, 255, 0.08);
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --text-muted: rgba(255, 255, 255, 0.25);
  
  /* Accent Colors */
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-green: #22c55e;
  --accent-orange: #f97316;
  --accent-pink: #ec4899;
  --accent-red: #ef4444;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #3b82f6 50%, #22d3ee 100%);
  --gradient-purple: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
  
  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px rgba(168, 85, 247, 0.3);
  --shadow-glow-blue: 0 0 60px rgba(59, 130, 246, 0.3);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;
  
  /* Typography */
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-base: 0.25s var(--ease-out);
  --transition-slow: 0.4s var(--ease-out);
  
  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-purple);
  outline-offset: 2px;
}

::selection {
  background: rgba(168, 85, 247, 0.3);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

/* ==========================================================================
   CURSOR GLOW
   ========================================================================== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ==========================================================================
   NOISE OVERLAY
   ========================================================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

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

.btn-primary {
  background: var(--gradient-purple);
  color: white;
  box-shadow: var(--shadow-md), 0 0 40px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(168, 85, 247, 0.4);
}

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

.btn-glass:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--bg-primary);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* Button Sizes */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: 14px; }
.btn-md { padding: var(--space-3) var(--space-6); font-size: 15px; }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: 16px; }
.btn-xl { padding: var(--space-5) var(--space-10); font-size: 17px; }

.btn-full { width: 100%; }

.btn-badge {
  padding: 2px 8px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.btn-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border-radius: 50%;
  margin-left: var(--space-2);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 18px;
  z-index: 10;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-notch {
  width: 16px;
  height: 8px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--surface);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 6px;
  z-index: 10;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  padding: calc(var(--header-height) + var(--space-8)) var(--space-6) var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav a {
  display: block;
  padding: var(--space-4);
  font-size: 18px;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: background var(--transition-fast);
}

.mobile-nav a:hover {
  background: var(--surface);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-8);
  overflow: hidden;
}

.hero > .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.hero-badge:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.badge-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-badge:hover .badge-glow {
  opacity: 0.1;
}

.badge-icon {
  font-size: 16px;
}

/* Hero Title */
.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-title .line {
  display: block;
}

/* Hero Description */
.hero-desc {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

/* Hero Trust */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-secondary);
}

.trust-item svg {
  color: var(--accent-green);
}

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

/* ==========================================================================
   HERO VISUAL - 3D MACBOOK
   ========================================================================== */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) 0;
  position: relative;
  z-index: 2;
}

.macbook-wrapper {
  position: relative;
  perspective: 1500px;
}

.macbook-glow {
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.2) 0%, transparent 60%);
  filter: blur(40px);
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.macbook {
  position: relative;
  transform: rotateX(5deg);
  transform-style: preserve-3d;
}

.macbook-screen {
  width: 700px;
  height: 450px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

/* Menu Bar */
.screen-menubar {
  height: 28px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  font-size: 13px;
  font-weight: 500;
  position: relative;
  z-index: 10;
}

.menubar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--text-secondary);
}

.apple-logo::before {
  content: '';
  font-family: system-ui;
}

.menubar-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menubar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-secondary);
}

.menubar-icon {
  font-family: system-ui;
  font-size: 14px;
}

/* Notch in Hero */
.notch {
  background: #000;
  width: 140px;
  height: 28px;
  border-radius: 0 0 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s var(--ease-out);
}

.notch.expanded {
  width: 280px;
  height: 48px;
  border-radius: 24px;
  transform: translateY(8px);
}

.notch-camera {
  width: 6px;
  height: 6px;
  background: #1a1a1a;
  border-radius: 50%;
  border: 1px solid #333;
  position: absolute;
  right: 20px;
  opacity: 1;
  transition: opacity 0.2s;
}

.notch.expanded .notch-camera {
  opacity: 0;
}

.notch-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
  font-size: 13px;
  padding: 0 var(--space-3);
}

.notch.expanded .notch-content {
  opacity: 1;
}

/* Desktop */
.screen-desktop {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.desktop-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.desktop-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Floating Windows */
.floating-window {
  position: absolute;
  background: rgba(30, 30, 40, 0.9);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: floatWindow 6s ease-in-out infinite;
}

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

.window-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-title {
  font-size: 12px;
  color: var(--text-secondary);
}

.window-content {
  padding: var(--space-4);
}

/* Code Window */
.window-code {
  width: 280px;
  left: 40px;
  top: 60px;
  animation-delay: 0s;
}

.window-code code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.code-keyword { color: #c792ea; }
.code-type { color: #82aaff; }
.code-func { color: #82aaff; }
.code-prop { color: #f78c6c; }

/* Music Window */
.window-music {
  width: 260px;
  right: 40px;
  top: 100px;
  animation-delay: -2s;
}

.music-player {
  display: flex;
  gap: var(--space-3);
}

.album-art {
  width: 60px;
  height: 60px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.album-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.2));
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.track-progress {
  width: 100%;
}

.progress-bar {
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  width: 40%;
  height: 100%;
  background: var(--gradient-purple);
  border-radius: 2px;
  animation: progressMove 10s linear infinite;
}

@keyframes progressMove {
  0% { width: 0%; }
  100% { width: 100%; }
}

.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-tertiary);
}

/* Dock */
.screen-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-item {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s var(--ease-spring);
  cursor: pointer;
}

.dock-item:hover {
  transform: translateY(-8px) scale(1.15);
}

.dock-item.active {
  background: var(--gradient-purple);
}

.dock-item.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.dock-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 4px;
}

/* MacBook Bottom */
.macbook-bottom {
  width: 100%;
  height: 16px;
  background: linear-gradient(180deg, #2a2a35 0%, #1a1a22 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  border: 1px solid var(--border);
  border-top: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.macbook-notch-bottom {
  width: 120px;
  height: 4px;
  background: #0a0a0f;
  border-radius: 0 0 4px 4px;
}

/* MacBook Reflection */
.macbook-reflection {
  width: 80%;
  height: 100px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, transparent 100%);
  filter: blur(30px);
  transform: scaleY(-0.3) translateY(-100%);
  opacity: 0.5;
}

/* ==========================================================================
   HERO BACKGROUND
   ========================================================================== */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(168, 85, 247, 0.15);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(59, 130, 246, 0.15);
  bottom: -100px;
  left: -100px;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: rgba(34, 211, 238, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -10s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -30px); }
  50% { transform: translate(-20px, 20px); }
  75% { transform: translate(20px, 30px); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

/* ==========================================================================
   LOGOS SECTION
   ========================================================================== */
.logos-section {
  padding: var(--space-16) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.logos-label {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-8);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-tertiary);
  transition: all var(--transition-base);
}

.logo-item:hover {
  color: var(--text-primary);
  transform: translateY(-4px);
}

.logo-item svg {
  width: 32px;
  height: 32px;
}

.logo-item span {
  font-size: 12px;
  font-weight: 500;
}

/* ==========================================================================
   FEATURES SECTION - BENTO GRID
   ========================================================================== */
.features-section {
  padding: var(--space-24) 0;
  position: relative;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-16);
}

.section-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: var(--space-4);
}

/* Bento Card Base */
.bento-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.bento-card:hover .card-glow {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--accent-purple);
}

.card-icon.purple { color: var(--accent-purple); }
.card-icon.blue { color: var(--accent-blue); }
.card-icon.green { color: var(--accent-green); }
.card-icon.orange { color: var(--accent-orange); }
.card-icon.pink { color: var(--accent-pink); }

.bento-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* Bento Sizes */
.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-medium {
  grid-column: span 2;
}

.bento-small {
  grid-column: span 1;
}

.bento-wide {
  grid-column: span 2;
}

/* Live Activity Demo */
.live-activity-demo {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0 var(--space-6) var(--space-6);
}

.la-music, .la-timer {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
}

.la-album {
  width: 40px;
  height: 40px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.la-info {
  flex: 1;
}

.la-title {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
}

.la-subtitle {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.la-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 20px;
}

.la-wave span {
  width: 3px;
  background: var(--accent-green);
  border-radius: 2px;
  animation: laWave 0.6s ease-in-out infinite alternate;
}

.la-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.la-wave span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.la-wave span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.la-wave span:nth-child(4) { height: 18px; animation-delay: 0.15s; }

@keyframes laWave {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1); }
}

.la-ring {
  width: 40px;
  height: 40px;
  position: relative;
}

.la-ring svg {
  width: 100%;
  height: 100%;
}

.la-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.la-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Notifications Visual */
.notifications-visual {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.notif-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-lg);
  animation: slideIn 0.5s ease-out both;
}

.notif-item:nth-child(2) {
  animation-delay: 0.2s;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.notif-icon.slack {
  background: linear-gradient(135deg, #4A154B, #36C5F0);
  color: white;
}

.notif-icon.imessage {
  background: linear-gradient(135deg, #34C759, #30D158);
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.notif-text span {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Gesture Visual */
.gesture-visual {
  padding: 0 var(--space-6) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.gesture-hand {
  font-size: 48px;
  position: relative;
  animation: gestureMove 2s ease-in-out infinite;
}

@keyframes gestureMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(20px); }
}

.gesture-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  background: var(--gradient-purple);
  border-radius: 50%;
  opacity: 0.2;
  transform: translate(-50%, -50%);
  animation: gestureRipple 2s ease-out infinite;
}

@keyframes gestureRipple {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.gesture-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.gesture-actions span {
  font-size: 12px;
  color: var(--text-secondary);
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  border-radius: var(--radius-sm);
}

/* Themes Visual */
.themes-visual {
  display: flex;
  gap: var(--space-3);
  padding: 0 var(--space-6) var(--space-6);
}

.theme-preview {
  width: 60px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  border: 2px solid transparent;
}

.theme-preview:hover {
  transform: scale(1.1);
}

.theme-preview.active {
  border-color: var(--accent-purple);
}

.theme-preview.dark {
  background: linear-gradient(180deg, #1a1a2e, #0f0f1a);
}

.theme-preview.light {
  background: linear-gradient(180deg, #f0f0f5, #e0e0e8);
}

.theme-preview.purple {
  background: linear-gradient(180deg, #2d1b4e, #1a0f2e);
}

.theme-preview.gradient {
  background: linear-gradient(135deg, #1a1a2e, #2d1b4e, #1a2e3d);
}

.theme-notch {
  width: 24px;
  height: 8px;
  background: #000;
  border-radius: 4px;
}

.theme-preview.light .theme-notch {
  background: #1a1a1a;
}

/* ==========================================================================
   DEMO SECTION
   ========================================================================== */
.demo-section {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.demo-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Demo Screen */
.demo-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-8);
}

.demo-glow {
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

/* Demo Notch */
.demo-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.notch-pill {
  background: #000;
  width: 120px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.notch-pill.expanded {
  width: 280px;
  height: 52px;
  border-radius: 26px;
}

.notch-pill.expanded-lg {
  width: 320px;
  height: 68px;
  border-radius: 34px;
}

.pill-camera {
  width: 8px;
  height: 8px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 50%;
  position: absolute;
  right: 20px;
  transition: opacity 0.2s;
}

.notch-pill.expanded .pill-camera,
.notch-pill.expanded-lg .pill-camera {
  opacity: 0;
}

.pill-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.25s var(--ease-out);
  color: white;
  font-size: 13px;
  padding: 0 12px;
}

.notch-pill.expanded .pill-content,
.notch-pill.expanded-lg .pill-content {
  opacity: 1;
  transform: scale(1);
}

/* Demo Desktop */
.demo-desktop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(168, 85, 247, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 40%),
    linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.demo-hint {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 14px;
  transition: opacity var(--transition-slow);
}

.demo-hint.hidden {
  opacity: 0;
  pointer-events: none;
}

.hint-icon {
  animation: bounceUp 1s ease-in-out infinite;
}

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

/* Demo Dock */
.demo-dock {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.dock-glass {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dock-glass span {
  width: 36px;
  height: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s var(--ease-spring);
}

.dock-glass span:hover {
  transform: translateY(-6px) scale(1.1);
}

/* Demo Controls */
.demo-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.control-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  min-width: 90px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.control-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.control-btn.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.control-icon {
  font-size: 28px;
}

.control-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   ISLAND CONTENT STYLES
   ========================================================================== */

/* Music */
.pill-music {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pill-music .pm-art {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fc466b, #3f5efb);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.pill-music .pm-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pill-music .pm-name {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-music .pm-artist {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.pill-music .pm-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.pill-music .pm-wave span {
  width: 3px;
  background: #1db954;
  border-radius: 2px;
  animation: pmWave 0.5s ease-in-out infinite alternate;
}

.pill-music .pm-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.pill-music .pm-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.pill-music .pm-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }
.pill-music .pm-wave span:nth-child(4) { height: 16px; animation-delay: 0.15s; }

@keyframes pmWave {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

/* Call */
.pill-call {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.pill-call .pc-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-call .pc-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #a855f7, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  animation: pcPulse 1.5s ease-in-out infinite;
}

@keyframes pcPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
}

.pill-call .pc-details {
  text-align: left;
}

.pill-call .pc-name {
  font-weight: 600;
  font-size: 14px;
}

.pill-call .pc-label {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.pill-call .pc-actions {
  display: flex;
  gap: 8px;
}

.pill-call .pc-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.15s;
}

.pill-call .pc-btn:hover {
  transform: scale(1.15);
}

.pill-call .pc-decline {
  background: #ff3b30;
}

.pill-call .pc-accept {
  background: #30d158;
}

/* Message */
.pill-message {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pill-message .pm-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #34c759, #30d158);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pill-message .pm-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.pill-message .pm-sender {
  font-weight: 600;
  font-size: 13px;
}

.pill-message .pm-text {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-message .pm-time {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

/* Timer */
.pill-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pill-timer .pt-ring {
  width: 36px;
  height: 36px;
  position: relative;
}

.pill-timer .pt-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pill-timer .pt-ring circle {
  fill: none;
  stroke-width: 3;
}

.pill-timer .pt-ring .ring-bg {
  stroke: rgba(255,255,255,0.15);
}

.pill-timer .pt-ring .ring-fill {
  stroke: #f97316;
  stroke-linecap: round;
  stroke-dasharray: 95;
  stroke-dashoffset: 10;
}

.pill-timer .pt-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.pill-timer .pt-info {
  text-align: left;
}

.pill-timer .pt-time {
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.pill-timer .pt-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

/* Download */
.pill-download {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.pill-download .pd-icon {
  font-size: 18px;
  animation: pdBounce 1s ease-in-out infinite;
}

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

.pill-download .pd-info {
  flex: 1;
  text-align: left;
}

.pill-download .pd-name {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 4px;
}

.pill-download .pd-bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 3px;
}

.pill-download .pd-fill {
  height: 100%;
  background: linear-gradient(90deg, #007aff, #5ac8fa);
  border-radius: 2px;
  transition: width 0.1s;
}

.pill-download .pd-status {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

/* AirPods */
.pill-airpods {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pill-airpods .pa-icon {
  font-size: 24px;
  animation: paConnect 1s ease-out;
}

@keyframes paConnect {
  0% { transform: scale(0.5); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.pill-airpods .pa-info {
  flex: 1;
  text-align: left;
}

.pill-airpods .pa-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.pill-airpods .pa-battery {
  display: flex;
  gap: 8px;
}

.pill-airpods .pa-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.pill-airpods .pa-bar {
  width: 24px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 2px;
  padding: 1px;
  position: relative;
}

.pill-airpods .pa-bar::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: rgba(255,255,255,0.4);
  border-radius: 0 1px 1px 0;
}

.pill-airpods .pa-level {
  height: 100%;
  background: #30d158;
  border-radius: 1px;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: var(--space-24) 0;
  position: relative;
}

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-10);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.pricing-card .card-glow {
  background: radial-gradient(ellipse at top, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}

.pricing-header {
  text-align: center;
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 2;
}

.pricing-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-2);
}

.price-amount {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.price-period {
  font-size: 18px;
  color: var(--text-secondary);
}

.pricing-features {
  margin-bottom: var(--space-8);
  position: relative;
  z-index: 2;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.pricing-features span {
  font-size: 15px;
}

.pricing-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: 13px;
  color: var(--text-tertiary);
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.faq-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

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

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

.faq-item[open] {
  border-color: var(--accent-purple);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--surface);
}

.faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  background: var(--accent-purple);
  color: white;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--text-secondary);
  line-height: 1.7;
  animation: fadeIn 0.3s ease;
}

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

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  padding: var(--space-24) 0;
}

.cta-card {
  position: relative;
  padding: var(--space-16);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.cta-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.cta-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* CTA Background Elements */
.cta-bg-elements {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.cta-orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(168, 85, 247, 0.2);
  top: -100px;
  right: -50px;
}

.cta-orb-2 {
  width: 250px;
  height: 250px;
  background: rgba(59, 130, 246, 0.2);
  bottom: -100px;
  left: -50px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: var(--space-16) 0 var(--space-10);
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--space-12);
  margin-bottom: var(--space-10);
}

.footer-brand p {
  margin: var(--space-4) 0 var(--space-6);
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--accent-purple);
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col a {
  display: block;
  padding: var(--space-2) 0;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-animate="fade-down"] {
  transform: translateY(-30px);
}

[data-animate="scale"] {
  transform: scale(0.95);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="50"] { transition-delay: 50ms; }
[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="250"] { transition-delay: 250ms; }
[data-delay="300"] { transition-delay: 300ms; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }
  
  .bento-wide {
    grid-column: span 2;
  }
  
  .macbook-screen {
    width: 600px;
    height: 380px;
  }
  
  .window-code,
  .window-music {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-visual {
    padding: var(--space-8) 0;
  }
  
  .macbook-screen {
    width: 500px;
    height: 320px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

@media (max-width: 768px) {
  .nav,
  .header-actions .btn {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .header-actions {
    gap: var(--space-2);
  }
  
  .hero {
    min-height: auto;
    padding-bottom: var(--space-12);
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .hero-trust {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .trust-divider {
    display: none;
  }
  
  .macbook-wrapper {
    transform: scale(0.65);
    transform-origin: top center;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-large,
  .bento-medium,
  .bento-wide {
    grid-column: span 1;
  }
  
  .logos-grid {
    gap: var(--space-8);
  }
  
  .demo-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .control-btn {
    min-width: auto;
  }
  
  .control-label {
    display: none;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }
  
  .macbook-wrapper {
    transform: scale(0.5);
  }
  
  .faq-item summary {
    padding: var(--space-4);
    font-size: 15px;
  }
  
  .faq-answer {
    padding: 0 var(--space-4) var(--space-4);
    font-size: 14px;
  }
  
  .pricing-card {
    padding: var(--space-6);
  }
  
  .price-amount {
    font-size: 48px;
  }
  
  .cta-card {
    padding: var(--space-10) var(--space-6);
  }
  
  .demo-controls {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  
  .cursor-glow {
    display: none;
  }
}

/* ==========================================================================
   PRINT
   ========================================================================== */
@media print {
  .header,
  .footer,
  .demo-section,
  .cta-section,
  .mobile-menu,
  .cursor-glow,
  .noise-overlay {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ==========================================================================
   VIDEO SECTION
   ========================================================================== */
.video-section {
  padding: var(--space-24) 0;
  position: relative;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.video-glow {
  position: absolute;
  inset: -100px;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.2) 0%, transparent 60%);
  filter: blur(60px);
  pointer-events: none;
}

.video-frame {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  overflow: hidden;
}

.video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.video-facade:hover .video-poster {
  transform: scale(1.05);
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring);
  z-index: 2;
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play svg circle {
  transition: fill 0.3s;
}

.video-play:hover svg circle {
  fill: rgba(168, 85, 247, 1);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  display: flex;
  justify-content: center;
}

.video-overlay span {
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}

.video-facade.loaded .video-poster,
.video-facade.loaded .video-play,
.video-facade.loaded .video-overlay {
  display: none;
}

.video-facade iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
  padding: var(--space-20) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.stat-card {
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

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

.stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.stat-icon.purple { color: var(--accent-purple); }
.stat-icon.blue { color: var(--accent-blue); }
.stat-icon.green { color: var(--accent-green); }
.stat-icon.orange { color: var(--accent-orange); }

.stat-number {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  padding: var(--space-1) var(--space-2);
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  border-radius: var(--radius-full);
}

.stat-trend.down {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.stat-stars {
  display: flex;
  justify-content: center;
  gap: 2px;
  color: #fbbf24;
  font-size: 16px;
}

.stat-badge {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
}

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

.testimonial-card.featured {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
  border-color: rgba(168, 85, 247, 0.3);
  grid-row: span 2;
}

.testimonial-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

.testimonial-content strong {
  color: var(--text-primary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.author-avatar.purple { background: var(--gradient-purple); }
.author-avatar.blue { background: linear-gradient(135deg, #3b82f6, #22d3ee); }
.author-avatar.orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.author-avatar.green { background: linear-gradient(135deg, #22c55e, #10b981); }
.author-avatar.pink { background: linear-gradient(135deg, #ec4899, #f472b6); }

.author-info {
  flex: 1;
}

.author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.author-info span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.twitter-icon {
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.testimonial-card:hover .twitter-icon {
  color: #1DA1F2;
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison-section {
  padding: var(--space-24) 0;
  background: var(--bg-secondary);
}

.comparison-table {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
}

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

.comparison-row:hover {
  background: var(--surface);
}

.comparison-cell {
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.feature-cell {
  font-weight: 500;
  color: var(--text-secondary);
}

.our-cell {
  justify-content: center;
  background: rgba(168, 85, 247, 0.05);
}

.other-cell {
  justify-content: center;
  color: var(--text-tertiary);
}

.our-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
}

.logo-icon.small {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
}

.logo-icon.small .logo-notch {
  width: 10px;
  height: 5px;
  border-radius: 2px;
}

.highlight {
  color: var(--accent-green);
  font-weight: 600;
}

.check {
  color: var(--accent-green);
}

.check.dim {
  color: var(--text-tertiary);
}

.x {
  color: var(--accent-red);
}

.varies {
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ==========================================================================
   CHANGELOG SECTION
   ========================================================================== */
.changelog-section {
  padding: var(--space-24) 0;
}

.changelog-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-12);
}

.changelog-info .section-title {
  margin-bottom: 0;
}

.changelog-timeline {
  position: relative;
  padding-left: var(--space-8);
}

.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue), transparent);
  border-radius: 1px;
}

.changelog-item {
  position: relative;
  padding-bottom: var(--space-10);
}

.changelog-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
}

.changelog-version {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.version-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-purple);
}

.version-date {
  font-size: 13px;
  color: var(--text-tertiary);
}

.version-tag {
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-tertiary);
}

.version-tag.new {
  background: var(--accent-green);
  color: white;
}

.changelog-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.changelog-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.changelog-content li {
  font-size: 14px;
  color: var(--text-secondary);
  padding-left: var(--space-1);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.5s, visibility 0.5s;
}

.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

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

.preloader-logo {
  width: 60px;
  height: 60px;
  background: var(--gradient-purple);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.preloader-logo .logo-notch {
  width: 24px;
  height: 12px;
  background: rgba(0,0,0,0.8);
  border-radius: 6px;
}

.preloader-text {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   SCROLL PROGRESS
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-purple);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s;
}

/* ==========================================================================
   BACK TO TOP BUTTON
   ========================================================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: 100;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent-purple);
  color: white;
  border-color: var(--accent-purple);
  transform: translateY(-4px);
}

/* ==========================================================================
   COOKIE BANNER (Optional)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  max-width: 400px;
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  animation: slideUp 0.5s var(--ease-out);
}

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

.cookie-banner.hidden {
  display: none;
}

.cookie-content p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
}

.cookie-actions .btn {
  flex: 1;
}

/* ==========================================================================
   TOOLTIP
   ========================================================================== */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  pointer-events: none;
  z-index: 100;
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ==========================================================================
   ADDITIONAL RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-card.featured {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-table {
    font-size: 14px;
  }
  
  .comparison-cell {
    padding: var(--space-3) var(--space-4);
  }
  
  .changelog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .cookie-banner {
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }
  
  .back-to-top {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   PAGE STYLES (Changelog, Privacy, Terms, Docs)
   ========================================================================== */

/* Page Hero */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-12);
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: var(--space-6);
  transition: color var(--transition-fast);
}

.back-link:hover {
  color: var(--text-primary);
}

.page-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-purple);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.page-icon svg {
  color: white;
}

.page-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.page-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: var(--space-6);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.meta-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--accent-green);
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-tertiary);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* ==========================================================================
   CHANGELOG PAGE
   ========================================================================== */
.changelog-page-section {
  padding: var(--space-16) 0;
}

.changelog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}

.filter-btn {
  padding: var(--space-2) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

.changelog-full-timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.changelog-entry {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--space-6);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.entry-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.entry-version h2 {
  font-size: 24px;
  font-weight: 600;
}

.version-badge {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.version-badge.latest {
  background: var(--accent-green);
  color: white;
}

.version-badge.major {
  background: var(--gradient-purple);
  color: white;
}

.version-date {
  font-size: 14px;
  color: var(--text-tertiary);
}

.version-link {
  padding: var(--space-2);
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

.version-link:hover {
  color: var(--text-primary);
}

.entry-content {
  padding: var(--space-6);
}

.entry-section {
  margin-bottom: var(--space-6);
}

.entry-section:last-child {
  margin-bottom: 0;
}

.entry-section h3 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.section-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.entry-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-left: var(--space-8);
}

.entry-section li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  position: relative;
}

.entry-section li::before {
  content: '•';
  position: absolute;
  left: -16px;
  color: var(--text-tertiary);
}

.entry-section li strong {
  color: var(--text-primary);
}

/* Legacy Section */
.changelog-entry.legacy {
  opacity: 0.7;
}

.legacy-note {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: var(--space-4);
}

.legacy-details summary {
  cursor: pointer;
  color: var(--accent-purple);
  font-weight: 500;
}

.legacy-content {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.legacy-content h4 {
  font-size: 14px;
  margin: var(--space-4) 0 var(--space-2);
}

.legacy-content ul {
  font-size: 13px;
}

/* Subscribe Card */
.changelog-subscribe {
  margin-top: var(--space-12);
}

.subscribe-card {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.subscribe-icon {
  width: 56px;
  height: 56px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  flex-shrink: 0;
}

.subscribe-content {
  flex: 1;
}

.subscribe-content h3 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.subscribe-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

.subscribe-actions {
  display: flex;
  gap: var(--space-3);
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms)
   ========================================================================== */
.legal-content-section {
  padding: var(--space-16) 0;
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
}

/* TLDR Box */
.tldr-box {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.tldr-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.tldr-icon {
  font-size: 24px;
}

.tldr-header h2 {
  font-size: 18px;
  color: var(--accent-green);
}

.tldr-content ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.tldr-content li {
  font-size: 15px;
  color: var(--text-primary);
}

.tldr-content p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Legal Article */
.legal-article {
  color: var(--text-secondary);
}

.legal-section {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.legal-section h3 {
  font-size: 18px;
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-3);
}

.legal-section p {
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.legal-section ul,
.legal-section ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-section li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.legal-section ul li {
  list-style: disc;
}

.legal-section ol li {
  list-style: decimal;
}

.legal-section a {
  color: var(--accent-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover {
  color: var(--text-primary);
}

/* Code blocks in legal */
.code-block {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin: var(--space-3) 0;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-purple);
}

/* Permissions Table */
.permissions-table {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-4) 0;
}

.permission-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
}

.permission-name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.permission-icon {
  font-size: 20px;
}

.permission-reason {
  font-size: 14px;
  line-height: 1.6;
}

/* Legal Highlight Boxes */
.legal-highlight {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.legal-highlight.warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.legal-highlight p {
  margin-bottom: var(--space-3);
}

.legal-highlight p:last-child {
  margin-bottom: 0;
}

.legal-highlight ul {
  margin-bottom: 0;
}

/* Legal Signature */
.legal-signature {
  margin-top: var(--space-8);
  padding: var(--space-6);
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  text-align: center;
}

.legal-signature p:first-child {
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.legal-signature p:last-child {
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* Privacy Badges */
.privacy-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}

.badge-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon.green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

.badge-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.badge-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
}

.badge-icon.orange {
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent-orange);
}

.badge-card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ==========================================================================
   DOCUMENTATION PAGE
   ========================================================================== */
.docs-page .page-hero {
  padding-bottom: var(--space-8);
}

/* Docs Search */
.docs-search {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 500px;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  margin-top: var(--space-6);
  transition: border-color var(--transition-fast);
}

.docs-search:focus-within {
  border-color: var(--accent-purple);
}

.docs-search svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.docs-search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
}

.docs-search input::placeholder {
  color: var(--text-tertiary);
}

.docs-search kbd {
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Docs Layout */
.docs-content-section {
  padding: var(--space-8) 0 var(--space-24);
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--space-12);
}

/* Docs Sidebar */
.docs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - var(--space-12));
  overflow-y: auto;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.nav-group h3 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.nav-item {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-item:hover {
  color: var(--text-primary);
  background: var(--surface);
}

.nav-item.active {
  color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.1);
}

/* Docs Main Content */
.docs-main {
  min-width: 0;
}

.docs-article {
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--border);
}

.docs-article:last-child {
  border-bottom: none;
}

.article-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.article-icon {
  font-size: 32px;
}

.article-header h2 {
  font-size: 28px;
  font-weight: 600;
}

.article-content {
  color: var(--text-secondary);
  line-height: 1.8;
}

.article-content h3 {
  font-size: 20px;
  color: var(--text-primary);
  margin: var(--space-8) 0 var(--space-4);
}

.article-content h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: var(--space-6) 0 var(--space-3);
}

.article-content p {
  margin-bottom: var(--space-4);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.article-content li {
  margin-bottom: var(--space-2);
}

.article-content ul li {
  list-style: disc;
}

.article-content ol li {
  list-style: decimal;
}

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

/* Steps List */
.steps-list {
  list-style: none !important;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.steps-list li {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  list-style: none !important;
}

.steps-list li::before {
  display: none !important;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.step-content strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.step-content p {
  margin: 0;
  font-size: 14px;
}

/* Info Box */
.info-box {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.info-box.small {
  padding: var(--space-3);
  margin: var(--space-3) 0;
}

.info-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.info-content {
  font-size: 14px;
  line-height: 1.6;
}

.info-content strong {
  color: var(--text-primary);
}

/* Warning Box */
.warning-box {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}

.warning-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.warning-content {
  font-size: 14px;
  line-height: 1.6;
}

.warning-content strong {
  color: var(--text-primary);
}

/* Feature Preview */
.feature-preview {
  display: flex;
  justify-content: center;
  padding: var(--space-8) 0;
}

.preview-notch {
  background: #000;
  border-radius: 24px;
  padding: var(--space-3) var(--space-4);
  min-width: 280px;
}

.preview-content {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: white;
}

.preview-album {
  width: 36px;
  height: 36px;
  background: var(--gradient-purple);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-info {
  flex: 1;
}

.preview-title {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
}

.preview-artist {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.preview-wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.preview-wave span {
  width: 3px;
  background: var(--accent-green);
  border-radius: 2px;
  animation: previewWave 0.5s ease-in-out infinite alternate;
}

.preview-wave span:nth-child(1) { height: 6px; animation-delay: 0s; }
.preview-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
.preview-wave span:nth-child(3) { height: 10px; animation-delay: 0.2s; }

@keyframes previewWave {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1); }
}

/* Gesture Grid */
.gesture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.gesture-item {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.gesture-icon {
  font-size: 32px;
  margin-bottom: var(--space-2);
}

.gesture-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.gesture-item p {
  font-size: 12px;
  margin: 0;
}

/* Requirements Grid */
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.requirement-item {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.req-icon {
  font-size: 28px;
  margin-bottom: var(--space-2);
}

.requirement-item strong {
  display: block;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: var(--space-1);
}

.requirement-item p {
  font-size: 13px;
  margin: 0;
}

/* Permission Cards */
.permission-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin: var(--space-4) 0;
  overflow: hidden;
}

.permission-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.permission-header .permission-icon {
  font-size: 24px;
}

.permission-header h4 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}

.permission-status {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.permission-status.required {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.permission-status.optional {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.permission-body {
  padding: var(--space-5);
}

.permission-body p {
  margin-bottom: var(--space-3);
}

.permission-body p:last-child {
  margin-bottom: 0;
}

/* Activity Grid */
.activity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.activity-item {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.activity-icon {
  font-size: 28px;
  margin-bottom: var(--space-2);
}

.activity-item strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.activity-item p {
  font-size: 12px;
  margin: 0;
}

/* Docs Table */
.docs-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
}

.docs-table th,
.docs-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.docs-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}

.docs-table td {
  font-size: 14px;
}

.docs-table kbd {
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* FAQ Items in Docs */
.faq-item-docs {
  margin: var(--space-4) 0;
  padding: var(--space-5);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.faq-item-docs h4 {
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 var(--space-3) 0;
}

.faq-item-docs .solution {
  color: var(--text-secondary);
}

.faq-item-docs .solution ol {
  margin: 0;
  padding-left: var(--space-5);
}

.faq-item-docs .solution li {
  margin-bottom: var(--space-2);
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-4px);
}

.contact-icon {
  font-size: 32px;
}

.contact-card strong {
  font-size: 16px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 14px;
  margin: 0;
}

.response-time {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ==========================================================================
   RESPONSIVE STYLES FOR PAGES
   ========================================================================== */
@media (max-width: 1024px) {
  .docs-layout {
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
  }
  
  .gesture-grid,
  .requirements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .privacy-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-8);
  }
  
  .docs-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
  }
  
  .nav-group {
    min-width: 150px;
  }
  
  .subscribe-card {
    flex-direction: column;
    text-align: center;
  }
  
  .subscribe-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .subscribe-actions .btn {
    width: 100%;
  }
  
  .permission-row {
    grid-template-columns: 1fr;
  }
  
  .gesture-grid,
  .requirements-grid,
  .activity-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .privacy-badges {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .entry-header {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .entry-version {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 32px;
  }
  
  .page-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .gesture-grid,
  .requirements-grid,
  .activity-grid,
  .privacy-badges {
    grid-template-columns: 1fr;
  }
  
  .docs-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
  }
  
  .docs-search kbd {
    display: none;
  }
  
  .changelog-filters {
    justify-content: stretch;
  }
  
  .filter-btn {
    flex: 1;
    text-align: center;
  }
}

/* ==========================================================================
   PRINT STYLES FOR LEGAL PAGES
   ========================================================================== */
@media print {
  .header,
  .footer,
  .back-link,
  .docs-sidebar,
  .docs-search,
  .subscribe-card,
  .changelog-filters {
    display: none !important;
  }
  
  .page-hero {
    padding-top: 0;
  }
  
  .legal-container,
  .docs-main {
    max-width: 100%;
  }
  
  .legal-section,
  .docs-article {
    break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
  
  a {
    color: black;
    text-decoration: underline;
  }
}

/* ==========================================================================
   CONVERSION ELEMENTS
   ========================================================================== */

/* ==========================================================================
   EXIT INTENT POPUP
   ========================================================================== */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.exit-popup.active {
  opacity: 1;
  visibility: visible;
}

.exit-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.exit-popup-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: var(--space-8);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: var(--shadow-xl), 0 0 100px rgba(168, 85, 247, 0.2);
}

.exit-popup.active .exit-popup-content {
  transform: scale(1) translateY(0);
}

.exit-popup-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exit-popup-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.exit-popup-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-5);
  background: var(--gradient-purple);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  animation: exitIconBounce 0.6s var(--ease-spring) 0.2s both;
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.3);
}

@keyframes exitIconBounce {
  0% { transform: scale(0) rotate(-10deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

.exit-popup-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.exit-popup-content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-size: 15px;
  line-height: 1.6;
}

.exit-popup-content > p strong {
  color: var(--accent-green);
}

.exit-popup-features {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.exit-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 13px;
  color: var(--text-secondary);
}

.exit-feature svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.exit-popup-cta {
  width: 100%;
  margin-bottom: var(--space-4);
  font-size: 16px;
  padding: var(--space-4) var(--space-6);
}

.exit-popup-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 0;
}

/* ==========================================================================
   SOCIAL PROOF TOAST
   ========================================================================== */
.social-proof-toast {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transform: translateX(calc(-100% - var(--space-6)));
  opacity: 0;
  transition: all 0.5s var(--ease-spring);
  max-width: 340px;
}

.social-proof-toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-avatar {
  width: 42px;
  height: 42px;
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-content span {
  font-size: 13px;
  color: var(--text-secondary);
}

.toast-time {
  font-size: 11px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  padding: var(--space-1) var(--space-2);
  background: var(--surface);
  border-radius: var(--radius-full);
}

.toast-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-tertiary);
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-fast);
}

.social-proof-toast:hover .toast-close {
  opacity: 1;
}

.toast-close:hover {
  background: var(--surface);
  color: var(--text-primary);
}

/* ==========================================================================
   SUCCESS MODAL
   ========================================================================== */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
}

.success-modal.active {
  opacity: 1;
  visibility: visible;
}

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

.success-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: var(--space-8);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.4s var(--ease-spring);
  box-shadow: var(--shadow-xl);
}

.success-modal.active .success-modal-content {
  transform: scale(1);
}

.success-modal-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.success-modal-close:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

/* Success Animation */
.success-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-6);
}

.success-circle {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-green), #10b981);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: successPop 0.6s var(--ease-spring) both;
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.4);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.success-check {
  color: white;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: checkDraw 0.5s ease-out 0.4s forwards;
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* Confetti */
.confetti-container {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  top: 50%;
  left: 50%;
  animation: confettiFall 1.2s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
    opacity: 1;
  }
  20% {
    transform: translate(var(--x, 0), var(--y, 0)) rotate(180deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--x, 0), calc(var(--y, 0) + 80px)) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

.success-modal-content h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.success-modal-content > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}

/* Success Steps */
.success-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  text-align: left;
}

.success-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--text-secondary);
}

.success-step-num {
  width: 28px;
  height: 28px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.success-step strong {
  color: var(--text-primary);
}

/* Success Actions */
.success-actions {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.success-actions .btn {
  flex: 1;
  padding: var(--space-3) var(--space-4);
}

/* Share Section */
.success-share {
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.success-share > span {
  display: block;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.share-btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.share-btn:nth-child(1):hover {
  background: #000;
  border-color: #000;
  color: white;
}

.share-btn:nth-child(2):hover {
  background: #0A66C2;
  border-color: #0A66C2;
  color: white;
}

.share-btn:nth-child(3):hover {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: white;
}

.share-btn.copied {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: white !important;
}

/* ==========================================================================
   RESPONSIVE FOR CONVERSION ELEMENTS
   ========================================================================== */
@media (max-width: 768px) {
  .exit-popup-content {
    padding: var(--space-6);
    margin: var(--space-4);
  }
  
  .exit-popup-icon {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
  
  .exit-popup-content h3 {
    font-size: 22px;
  }
  
  .exit-popup-features {
    flex-direction: column;
    gap: var(--space-2);
    align-items: center;
  }
  
  .social-proof-toast {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
    max-width: none;
  }
  
  .success-modal-content {
    padding: var(--space-6);
    margin: var(--space-4);
  }
  
  .success-animation {
    width: 80px;
    height: 80px;
  }
  
  .success-circle {
    width: 80px;
    height: 80px;
  }
  
  .success-circle svg {
    width: 36px;
    height: 36px;
  }
  
  .success-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .exit-popup-content h3 {
    font-size: 20px;
  }
  
  .toast-time {
    display: none;
  }
  
  .share-buttons {
    gap: var(--space-2);
  }
  
  .share-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .exit-popup-icon,
  .success-circle,
  .success-check,
  .confetti {
    animation: none !important;
  }
  
  .exit-popup-content,
  .success-modal-content {
    transform: scale(1) translateY(0) !important;
  }
  
  .social-proof-toast {
    transition: opacity 0.3s !important;
    transform: translateX(0) !important;
  }
  
  .social-proof-toast:not(.visible) {
    opacity: 0;
  }
}