/* ==========================================
   SSvid Landing Page — styles.css
   Design: Material 3 inspired, Crimson Red primary
   ========================================== */

/* --- CSS Variables (Light / Dark) --- */
:root {
  --color-primary: #8D021F;
  --color-primary-dark: #7A011A;
  --color-primary-light: #A00324;
  --color-primary-surface: #F9E5E7;

  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.1);

  --color-success: #16A34A;
  --color-error: #DC2626;

  --section-padding: clamp(64px, 8vw, 120px);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 200ms var(--ease-out-expo);
}

[data-theme="light"] {
  --bg: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F5F5F5;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #737373;
  --border: #E0E0E0;
  --border-light: #F0F0F0;
}

[data-theme="dark"] {
  --bg: #0a0a12;
  --bg-surface: #141419;
  --bg-surface-alt: #1e1e24;
  --text: #F0F0F0;
  --text-secondary: #B0B0B0;
  --text-muted: #a0a0a0;
  --border: rgba(255,255,255,0.10);
  --border-light: rgba(255,255,255,0.05);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 4px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.2), 0 10px 30px rgba(0,0,0,0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

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

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

h1, h2, h3, .stat-number, .price-value {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 44px;
}

.btn-sm { padding: 10px 16px; font-size: 0.875rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; min-height: 48px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(141, 2, 31, 0.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); }
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(15,15,26,0.8);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

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

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover {
  background: var(--bg-surface-alt);
  color: var(--text);
}

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   HERO
   ========================================== */
.hero {
  padding: 120px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

[data-theme="dark"] .hero-badge {
  background: rgba(141, 2, 31, 0.15);
}

/* Hero entrance — staggered page-load animation */
.hero-badge,
.hero h1,
.hero-subtitle,
.hero-actions,
.hero-social-proof,
.trust-badges,
.hero-platforms {
  opacity: 0;
  animation: fadeSlideUp 0.7s var(--ease-out-expo) forwards;
}

.hero-badge          { animation-delay: 0.05s; }
.hero h1             { animation-delay: 0.1s; }
.hero-subtitle       { animation-delay: 0.2s; }
.hero-actions        { animation-delay: 0.3s; }
.hero-social-proof   { animation-delay: 0.4s; }
.trust-badges        { animation-delay: 0.45s; }
.hero-platforms      { animation-delay: 0.5s; }

.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

@keyframes shimmer-slide {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    #D4213D 25%,
    #FF6B6B 50%,
    #D4213D 75%,
    var(--color-primary) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-slide 6s linear infinite;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.btn-text-link {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

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

.btn-text-link span {
  transition: transform 0.2s ease;
}

.btn-text-link:hover span {
  transform: translateX(3px);
}

.hero-platforms {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.platform-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.platform-link:hover {
  color: var(--color-primary);
}

.platform-sep {
  margin: 0 6px;
}

/* App Window Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
}

.app-window {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.window-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-surface-alt);
  border-bottom: 1px solid var(--border-light);
}

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

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }

.window-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.window-body {
  display: flex;
  min-height: 280px;
}

.mock-sidebar {
  width: 56px;
  background: var(--bg-surface-alt);
  border-right: 1px solid var(--border-light);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-nav-item {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-nav-item::after {
  content: attr(data-label);
  font-size: 0.375rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mock-nav-item.active::after {
  color: var(--color-primary);
}

.mock-nav-item.active {
  background: var(--color-primary-surface);
}

[data-theme="dark"] .mock-nav-item.active {
  background: rgba(141, 2, 31, 0.2);
}

.mock-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-url-bar {
  width: 100%;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  overflow: hidden;
}

.mock-url-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
}

.mock-url-text {
  overflow: hidden;
  flex: 1;
}

@keyframes cursor-blink {
  0%, 100% { border-color: var(--color-primary); }
  50% { border-color: transparent; }
}

.typewriter-text {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.6875rem;
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
  color: var(--text-secondary);
  border-right: 2px solid var(--color-primary);
  animation: cursor-blink 0.8s step-end infinite;
  width: 0;
  transition: none;
}

.mock-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
}

@keyframes thumbnail-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.mock-thumbnail {
  width: 80px;
  height: 52px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, var(--border-light) 25%, var(--color-primary-surface) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: thumbnail-shimmer 2s ease-in-out infinite;
}

[data-theme="dark"] .mock-thumbnail {
  background: linear-gradient(90deg, var(--border) 25%, rgba(141,2,31,0.15) 50%, var(--border) 75%);
  background-size: 200% 100%;
}

.mock-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.mock-text {
  height: 10px;
  border-radius: 4px;
  background: var(--border);
}

.mock-text.long { width: 90%; }
.mock-text.short { width: 55%; }

.mock-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.mock-meta {
  font-size: 0.5625rem;
  color: var(--text-muted);
  line-height: 1.2;
}

.mock-platform-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  color: #fff;
  line-height: 1.3;
}

.mock-yt { background: #FF0000; }
.mock-tk { background: #000; }
.mock-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.mock-quality.active {
  background: var(--color-primary);
  color: #fff;
}

.mock-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  overflow: hidden;
  margin-top: 4px;
}


.mock-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: width 0.15s linear;
}

.mock-quality-row {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

.mock-quality {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-surface);
  letter-spacing: 0.02em;
}

[data-theme="dark"] .mock-quality {
  background: rgba(141, 2, 31, 0.15);
}

.mock-speed {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--color-success);
  min-height: 14px;
}

/* Demo card orchestration — JS controls visibility */
.demo-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#demo-card-1 {
  opacity: 0;
  transform: translateY(12px);
}

#demo-card-1.visible {
  opacity: 1;
  transform: translateY(0);
}

#demo-card-2 {
  opacity: 0;
  transform: translateY(12px);
}

#demo-card-2.visible {
  opacity: 1;
  transform: translateY(0);
}

.mock-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-surface);
  width: fit-content;
}

[data-theme="dark"] .mock-badge {
  background: rgba(141, 2, 31, 0.15);
}

/* ==========================================
   FEATURES
   ========================================== */
.features {
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-surface) 8%, var(--bg-surface) 92%, var(--bg) 100%);
}

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

.feature-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}
.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) and (pointer: fine) {
  .feature-card:hover { transform: translateY(-2px); }
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-surface);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  margin-bottom: 20px;
}

[data-theme="dark"] .feature-icon {
  background: rgba(141, 2, 31, 0.12);
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing {
  padding: var(--section-padding) 0;
}

.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.billing-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.billing-label.active {
  color: var(--text);
  font-weight: 600;
}

.save-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 100px;
}

[data-theme="dark"] .save-badge {
  background: rgba(141, 2, 31, 0.15);
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--border);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition);
  padding: 0;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.toggle-switch.active {
  background: var(--color-primary);
}

.toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  pointer-events: none;
}

.toggle-switch.active .toggle-knob {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  box-shadow: var(--shadow-md);
}

.price-card.recommended {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(141, 2, 31, 0.08);
  padding-top: 48px;
  transform: scale(1.03);
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .price-card:hover { transform: translateY(-2px); }
  .price-card.recommended:hover { transform: scale(1.03) translateY(-2px); }
}

@media (max-width: 960px) {
  .price-card.recommended {
    transform: none;
  }
}
@media (max-width: 960px) and (hover: hover) and (pointer: fine) {
  .price-card.recommended:hover {
    transform: translateY(-2px);
  }
}

.price-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.price-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-value {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: opacity 0.15s ease;
}

.price-period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.price-billed-yearly {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-features {
  list-style: none;
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.price-features li svg {
  flex-shrink: 0;
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonials {
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-surface) 8%, var(--bg-surface) 92%, var(--bg) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--transition);
}

.carousel-dots {
  display: none;
  justify-content: center;
  gap: 0;
  margin-top: 8px;
}

.carousel-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.active::after {
  background: var(--color-primary);
  transform: scale(1.25);
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 50%;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

[data-theme="dark"] .author-avatar {
  background: rgba(141, 2, 31, 0.15);
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.author-handle {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.author-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
  padding: var(--section-padding) 0;
}

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

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

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

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  list-style: none;
  user-select: none;
  transition: color var(--transition);
}

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

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

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease-out-expo);
  padding: 0 24px;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 18px;
}

.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  overflow: hidden;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 64px 0 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

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

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
}

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

.footer-links h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-primary);
}

/* Newsletter */
.footer-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 48px;
}

.newsletter-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.newsletter-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.newsletter-form input {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 0.85rem;
  min-width: 240px;
  min-height: 44px;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--color-primary);
  outline: none;
}

.newsletter-form input:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

.newsletter-form input:invalid:not(:placeholder-shown) {
  border-color: var(--color-error);
}

.newsletter-msg {
  font-size: 0.8rem;
  margin-top: 8px;
  min-height: 1.2em;
}

.newsletter-msg.success {
  color: var(--color-success);
}

.newsletter-msg.error {
  color: var(--color-error);
}

/* Social links */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.footer-social a:hover {
  color: var(--text);
  background: var(--bg-surface-alt);
}

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

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Status indicator */
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    max-width: 100%;
    overflow: hidden;
  }

  .app-window {
    max-width: 440px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    min-width: 80vw;
    max-width: 85vw;
    scroll-snap-align: center;
    flex-shrink: 0;
    padding: 20px;
  }

  .testimonial-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .testimonial-stars {
    margin-bottom: 12px;
  }

  .author-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.8125rem;
  }

  .author-name {
    font-size: 0.8125rem;
  }

  .author-role {
    font-size: 0.6875rem;
  }

  .carousel-dots {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 12px;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-header p {
    font-size: 1rem;
  }

  .hero-content {
    min-width: 0;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .btn-sm.btn-primary {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .btn-text-link {
    justify-content: center;
    width: 100%;
    max-width: 280px;
  }

  .hero {
    padding: 100px 0 60px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  /* App window — mobile fix */
  .app-window {
    max-width: 100%;
  }

  .window-body {
    min-height: 220px;
  }

  .mock-sidebar {
    width: 40px;
    padding: 8px 4px;
  }

  .mock-nav-item {
    height: 28px;
  }

  .mock-content {
    padding: 10px;
    gap: 8px;
    overflow: hidden;
    min-width: 0;
  }

  .mock-url-bar {
    height: 30px;
    padding: 0 8px;
    gap: 6px;
  }

  .mock-url-text {
    font-size: 0.5625rem;
  }

  .typewriter-text {
    font-size: 0.5625rem;
  }

  .mock-card {
    padding: 8px;
    gap: 8px;
  }

  .mock-thumbnail {
    width: 56px;
    height: 40px;
  }

  .mock-text {
    height: 8px;
  }

  .mock-quality {
    font-size: 0.5rem;
    padding: 1px 3px;
  }

  .mock-progress {
    height: 4px;
  }

  .mock-speed {
    font-size: 0.5rem;
  }

  .mock-badge {
    font-size: 0.5rem;
    padding: 1px 6px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 380px) {
  .mock-sidebar {
    display: none;
  }
}

@media (min-width: 961px) and (max-width: 1100px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .feature-card,
  .price-card,
  .testimonial-card {
    padding: 24px 20px;
  }

  .legal-container {
    padding: 24px 16px 48px;
  }

  .legal-container h1 {
    font-size: 1.75rem;
  }

  .legal-container h2 {
    font-size: 1.2rem;
  }
}

/* ==================== Legal Pages ==================== */
.legal-page {
  padding-top: 100px;
  min-height: calc(100vh - 200px);
}

.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-container h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.legal-container h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.legal-container h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-container p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-container ul {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-container li {
  margin-bottom: 8px;
}

.legal-container a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-container a:hover {
  text-decoration: underline;
}

/* ==========================================
   SCROLL-REVEAL ANIMATIONS
   CSS scroll-driven animations (view timeline)
   with Intersection Observer JS fallback
   ========================================== */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Elements start hidden, revealed by JS fallback or CSS view() */
.reveal,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed {
  will-change: auto; /* free GPU memory after animation */
}

.reveal.revealed {
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-left.revealed {
  animation: fadeSlideRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-right.revealed {
  animation: fadeSlideLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal-scale.revealed {
  animation: scaleIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Stagger delays for grid children — auto-applied by JS */
.stagger-1 { animation-delay: 0.08s; }
.stagger-2 { animation-delay: 0.16s; }
.stagger-3 { animation-delay: 0.24s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.4s; }
.stagger-6 { animation-delay: 0.48s; }

/* CSS scroll-driven (Chrome 115+, Safari 18+) */
@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: fadeSlideUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .reveal-left {
    animation: fadeSlideRight 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .reveal-right {
    animation: fadeSlideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .reveal-scale {
    animation: scaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
  .reveal.revealed,
  .reveal-left.revealed,
  .reveal-right.revealed,
  .reveal-scale.revealed {
    animation-delay: 0s;
  }
}

/* ==========================================
   ACCESSIBILITY: SKIP LINK + FOCUS-VISIBLE
   ========================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 10000;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 5px var(--color-primary);
}

.nav-links a:focus-visible {
  background: var(--color-primary-surface);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  margin: -4px -8px;
}

.faq-item summary:focus-visible {
  outline-offset: -3px;
}

.theme-toggle:focus-visible {
  border-color: var(--color-primary);
}

/* WCAG 2.2 SC 2.5.8 — Minimum target size */
.faq-item summary {
  min-height: 44px;
}

/* High contrast mode (Windows) */
@media (forced-colors: active) {
  .btn-primary {
    border: 2px solid ButtonText;
  }
  .text-gradient {
    background: none;
    -webkit-text-fill-color: LinkText;
    color: LinkText;
  }
  .hero-badge {
    border: 1px solid ButtonText;
  }
  .badge-dot {
    background: Highlight;
  }
}

/* ==========================================
   PERFORMANCE: CONTENT-VISIBILITY
   ========================================== */
.stats,
.features,
.how-it-works,
.comparison,
.pricing,
.testimonials,
.changelog,
.faq,
.final-cta,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero::before,
  .hero-visual::before,
  .orb,
  .typewriter-text,
  .badge-dot,
  .status-dot,
  .platforms-logos {
    animation: none !important;
  }
  .hero-badge,
  .hero h1,
  .hero-subtitle,
  .hero-actions,
  .hero-social-proof,
  .trust-badges,
  .hero-platforms {
    opacity: 1 !important;
    animation: none !important;
  }
  .typewriter-text {
    width: auto !important;
    border-right: none;
  }
  .hero::after {
    display: none;
  }
  .demo-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mock-thumbnail {
    animation: none !important;
  }
}

/* ==========================================
   HERO ANIMATED AURORA + GRAIN
   ========================================== */
@keyframes aurora-drift {
  0%   { background-position: 0% 50%, 100% 50%, 50% 100%; }
  33%  { background-position: 100% 0%, 0% 100%, 50% 0%; }
  66%  { background-position: 50% 100%, 50% 0%, 0% 50%; }
  100% { background-position: 0% 50%, 100% 50%, 50% 100%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: -50%;
  will-change: background-position;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(141,2,31,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(160,3,36,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 60% 80%, rgba(200,20,60,0.07) 0%, transparent 55%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
  animation: aurora-drift 20s ease-in-out infinite;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

[data-theme="dark"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(141,2,31,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(160,3,36,0.20) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 60% 80%, rgba(200,20,60,0.15) 0%, transparent 55%);
  background-size: 200% 200%, 200% 200%, 200% 200%;
}

/* Floating orbs */
.hero-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -50px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.02); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform;
}

[data-theme="dark"] .orb { opacity: 0.22; }

.orb-1 {
  width: 400px; height: 400px;
  background: var(--color-primary);
  top: -10%; right: 10%;
  animation: float-orb 25s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: #D4213D;
  bottom: 10%; left: 5%;
  animation: float-orb 30s ease-in-out infinite reverse;
}
.orb-3 {
  width: 200px; height: 200px;
  background: #FF6B6B;
  top: 40%; left: 40%;
  animation: float-orb 20s ease-in-out infinite 5s;
}

/* Morphing blob behind app mockup */
@keyframes morph-blob {
  0%   { border-radius: 52% 48% 66% 34% / 38% 64% 36% 62%; }
  25%  { border-radius: 64% 36% 52% 48% / 62% 38% 64% 36%; }
  50%  { border-radius: 58% 42% 42% 58% / 58% 69% 31% 42%; }
  75%  { border-radius: 42% 58% 58% 42% / 42% 31% 69% 58%; }
  100% { border-radius: 52% 48% 66% 34% / 38% 64% 36% 62%; }
}

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%; height: 120%;
  background: radial-gradient(ellipse at center, rgba(141,2,31,0.08) 0%, transparent 70%);
  border-radius: 52% 48% 66% 34% / 38% 64% 36% 62%;
  animation: morph-blob 12s ease-in-out infinite;
  filter: blur(40px);
  pointer-events: none;
  z-index: -1;
}

[data-theme="dark"] .hero-visual::before {
  background: radial-gradient(ellipse at center, rgba(141,2,31,0.2) 0%, transparent 70%);
}

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

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

[data-theme="dark"] .hero::after {
  opacity: 0.05;
}

/* ==========================================
   MICRO-INTERACTIONS & ENHANCED HOVER
   ========================================== */

/* Button glow on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(120px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255,255,255,0.2), transparent 70%);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::after { opacity: 1; }
}

/* Feature card hover — subtle top-border accent (pointer devices only) */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover::before { transform: scaleX(1); }
}

/* Price card glow */
.price-card.recommended {
  overflow: hidden;
}

.price-card.recommended::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -20%;
  width: 140%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(141,2,31,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Testimonial card subtle lift */
.testimonial-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
}

/* App window mockup enhanced shadow */
.app-window {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .app-window:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  }
  [data-theme="dark"] .app-window:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
}

/* ==========================================
   PLATFORM LOGOS STRIP
   ========================================== */
.platforms-strip {
  padding: 48px 0;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.platforms-strip .strip-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.platforms-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
  .platforms-logos:hover {
    animation-play-state: paused;
  }
}

.platform-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--transition);
}

.platform-logo:hover {
  color: var(--text);
}

.platform-logo svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.platform-logo:hover svg {
  opacity: 1;
}

/* ==========================================
   STATS / NUMBERS SECTION
   ========================================== */
.stats {
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-surface) 8%, var(--bg-surface) 92%, var(--bg) 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  padding: 24px 16px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: 8px;
}

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

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-number {
    font-size: 2.25rem;
  }
}

/* ==========================================
   PRIVACY STATEMENT — full-bleed rhythm break
   ========================================== */

.privacy-statement {
  padding: var(--section-padding) 0;
  background: var(--bg-surface);
  text-align: center;
}

.privacy-statement-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1rem + 2.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto;
  text-wrap: balance;
}

[data-theme="dark"] .privacy-statement {
  background: #0e0e14;
}

/* ==========================================
   HOW IT WORKS — 3 STEPS
   ========================================== */
.how-it-works {
  padding: var(--section-padding) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light), var(--color-primary));
  opacity: 0.3;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-primary-surface);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 3px var(--color-primary-surface);
}

.step-item[data-step]::before {
  content: attr(data-step);
  position: absolute;
  top: 0;
  right: calc(50% - 44px);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

[data-theme="dark"] .step-number {
  background: rgba(141,2,31,0.15);
  border-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(141,2,31,0.15);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.step-item h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 240px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 400px;
  }
  .steps-grid::before {
    display: none;
  }
}

/* ==========================================
   COMPARISON TABLE
   ========================================== */
.comparison {
  padding: var(--section-padding) 0;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg-surface) 8%, var(--bg-surface) 92%, var(--bg) 100%);
}

.comparison-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  text-align: center;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: var(--bg-surface-alt);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text);
}

.comparison-table th.highlight {
  color: var(--color-primary);
  background: var(--color-primary-surface);
}

[data-theme="dark"] .comparison-table th.highlight {
  background: rgba(141,2,31,0.15);
}

.comparison-table td.highlight {
  background: rgba(141,2,31,0.03);
}

[data-theme="dark"] .comparison-table td.highlight {
  background: rgba(141,2,31,0.06);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .check {
  color: var(--color-primary);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
  opacity: 0.5;
}

/* ==========================================
   CHANGELOG / WHAT'S NEW
   ========================================== */
.changelog {
  padding: var(--section-padding) 0;
}

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

.changelog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.changelog-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.changelog-date {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.changelog-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.tag-feature { background: #DBEAFE; color: #1D4ED8; }
.tag-fix { background: #FEE2E2; color: #9B1C1C; }
.tag-perf { background: #D1FAE5; color: #059669; }

[data-theme="dark"] .tag-feature { background: #1E3A5F; color: #93C5FD; }
[data-theme="dark"] .tag-fix { background: #4C1D1D; color: #FCA5A5; }
[data-theme="dark"] .tag-perf { background: #1C3D2D; color: #6EE7B7; }

.changelog-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.4;
}

.changelog-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.changelog-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace;
}

[data-theme="dark"] .changelog-card {
  border-color: rgba(255,255,255,0.06);
}

/* ==========================================
   TECH TRANSPARENCY SECTION
   ========================================== */
.tech-section {
  padding: var(--section-padding) 0;
  background: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tech-card {
  padding: 28px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out-expo);
}

.tech-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}
@media (hover: hover) and (pointer: fine) {
  .tech-card:hover { transform: translateY(-2px); }
}

.tech-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-primary-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--color-primary);
}

[data-theme="dark"] .tech-icon {
  background: rgba(141, 2, 31, 0.15);
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.tech-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

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

@media (max-width: 480px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   FINAL CTA SECTION
   ========================================== */
.final-cta {
  padding: var(--section-padding) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(141,2,31,0.06) 0%, transparent 60%);
  pointer-events: none;
}

[data-theme="dark"] .final-cta::before {
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(141,2,31,0.12) 0%, transparent 60%);
}

.final-cta .container {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 32px;
}

.final-cta .btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.final-cta-founder {
  margin-top: 32px;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}


/* ==========================================
   SOCIAL PROOF + BADGE
   ========================================== */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.proof-avatars {
  display: flex;
}

.proof-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  margin-left: -8px;
}

.proof-avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.proof-text strong {
  color: var(--text);
  font-weight: 700;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.badge-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Smart CTA: two-line download button */
.download-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.download-main {
  font-weight: 700;
  font-size: 1rem;
}

.download-meta {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 400;
}

/* Trust badges */
.trust-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-badge svg {
  flex-shrink: 0;
}

/* Button active state */
.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary:active {
  box-shadow: 0 2px 8px rgba(141, 2, 31, 0.2);
}

/* ==========================================
   WAVE DIVIDER
   ========================================== */
.wave-divider {
  position: relative;
  margin-top: -1px;
  line-height: 0;
  overflow: hidden;
}

.wave-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

/* ==========================================
   DARK MODE DEPTH ENHANCEMENTS
   ========================================== */
[data-theme="dark"] .feature-card {
  border-color: rgba(255,255,255,0.06);
  box-shadow: 0 1px 3px rgba(141,2,31,0.08);
}

[data-theme="dark"] .feature-card:hover {
  border-color: rgba(141,2,31,0.3);
  box-shadow: 0 4px 20px rgba(141,2,31,0.15);
}

[data-theme="dark"] .price-card {
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .price-card.recommended {
  border-color: rgba(141,2,31,0.5);
  box-shadow: 0 0 40px rgba(141,2,31,0.12), 0 4px 20px rgba(0,0,0,0.3);
}

[data-theme="dark"] .testimonial-card {
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .comparison-table {
  border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .faq-item {
  border-color: rgba(255,255,255,0.06);
}

/* Noise texture on dark surfaces */
[data-theme="dark"] .features,
[data-theme="dark"] .stats,
[data-theme="dark"] .comparison,
[data-theme="dark"] .testimonials,
[data-theme="dark"] .footer {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  background-blend-mode: overlay;
}

/* ==========================================
   RESPONSIVE: NEW ELEMENTS
   ========================================== */
@media (max-width: 960px) {
  .hero-social-proof {
    justify-content: center;
  }
  .trust-badges {
    justify-content: center;
  }
  .download-info {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .wave-divider svg {
    height: 30px;
  }
  .hero-social-proof {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-image:
      linear-gradient(to right, var(--bg-surface), var(--bg-surface)),
      linear-gradient(to right, rgba(0,0,0,0.15), transparent),
      linear-gradient(to left, rgba(0,0,0,0.15), transparent);
    background-size: 100% 100%, 20px 100%, 20px 100%;
    background-position: center, left, right;
    background-repeat: no-repeat;
    background-attachment: local, scroll, scroll;
  }
  .comparison-table {
    font-size: 0.8125rem;
    min-width: 520px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
  .footer-newsletter {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }
  .newsletter-form input {
    min-width: auto;
  }
  .changelog {
    padding: 64px 0;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* ==========================================
   404 PAGE
   ========================================== */
.page-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}

.page-404 h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ==========================================
   SCROLL PROGRESS BAR
   ========================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  z-index: 10001;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ==========================================
   BACK TO TOP BUTTON
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
  z-index: 999;
  color: var(--text);
}

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

.back-to-top:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ==========================================
   STICKY MOBILE CTA
   ========================================== */
.mobile-sticky-cta {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 998;
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-sticky-cta.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-sticky-cta .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
  }

  /* Add bottom padding to footer so sticky CTA doesn't overlap */
  .footer {
    padding-bottom: 72px;
  }

  .back-to-top {
    bottom: 80px;
  }
}

/* Dark mode depth for new elements */
[data-theme="dark"] .back-to-top {
  background: var(--bg-surface-alt);
  border-color: var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

[data-theme="dark"] .scroll-progress {
  box-shadow: 0 0 8px rgba(141,2,31,0.4);
}

@media (max-width: 768px) {
  [data-theme="dark"] .mobile-sticky-cta {
    background: var(--bg-surface-alt);
    border-top-color: var(--border);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
  }
}

/* ==========================================
   COOKIE CONSENT BANNER
   ========================================== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.cookie-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-actions {
  flex-shrink: 0;
}

[data-theme="dark"] .cookie-consent {
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

@media (max-width: 768px) {
  .cookie-consent.visible {
    bottom: 56px;
  }
}

@media (max-width: 640px) {
  .cookie-content {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.cookie-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  cursor: pointer;
  padding: 8px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.cookie-dismiss:hover {
  color: var(--text);
}

/* ===== Print Stylesheet ===== */

@media print {
  .navbar,
  .mobile-sticky-cta,
  .back-to-top,
  .cookie-consent,
  .scroll-progress,
  .hero-actions,
  .hero-platforms,
  .final-cta,
  .theme-toggle {
    display: none !important;
  }

  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }

  a {
    text-decoration: underline;
    color: black !important;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555 !important;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .hero, section {
    page-break-inside: avoid;
    padding: 24px 0 !important;
  }

  img {
    max-width: 100% !important;
  }
}
