/* =========================================================================
   No Cookie YouTube — GitHub Pages Styles (Redesign)
   ========================================================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #070708;
  --surface: #111113;
  --surface-hover: #1a1a1e;
  --border: #1e1e22;
  --border-light: #2a2a30;
  --accent: #ff3333;
  --accent-dim: rgba(255, 51, 51, 0.15);
  --accent-hover: #e62e2e;
  --blue: #3ea6ff;
  --green: #22c55e;
  --purple: #a78bfa;
  --orange: #f97316;
  --text: #f1f1f3;
  --text-secondary: #9a9aa0;
  --text-muted: #5f5f6b;
  --max-width: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-bg: rgba(7, 7, 8, 0.7);
  --nav-bg-scrolled: rgba(7, 7, 8, 0.92);
}

[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --surface-hover: #f0f1f3;
  --border: #e2e4e8;
  --border-light: #d0d2d6;
  --accent: #e62e2e;
  --accent-dim: rgba(230, 46, 46, 0.1);
  --accent-hover: #cc2929;
  --blue: #2563eb;
  --green: #16a34a;
  --purple: #7c3aed;
  --orange: #ea580c;
  --text: #1a1a1e;
  --text-secondary: #5f5f6b;
  --text-muted: #70707a;
  --nav-bg: rgba(255, 255, 255, 0.7);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.92);
}

[data-theme="light"] .hero-grid {
  mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, black, transparent 50%);
  -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, black, transparent 50%);
}

[data-theme="light"] .browser-mockup {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-gradient {
  background:
    radial-gradient(ellipse 800px 500px at 30% 40%, rgba(255, 51, 51, 0.04), transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 60%, rgba(37, 99, 235, 0.03), transparent 60%);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .compare-before {
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .hero-stats {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="light"] .install-icon,
[data-theme="light"] .trust-icon {
  background: rgba(0, 0, 0, 0.04);
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 8px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  font-size: 0.85rem;
}
.skip-link:focus {
  top: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

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

code {
  background: var(--surface-hover);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* =========================================================================
   Typography
   ========================================================================= */

.text-accent { color: var(--accent); }
.text-glow {
  background: linear-gradient(135deg, #fff 0%, #ff3333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="light"] .text-glow {
  background: none;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

/* =========================================================================
   Navigation
   ========================================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg-scrolled);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--text); }
.nav-brand img { border-radius: 6px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-toggle:hover {
  color: var(--text);
}
.nav-toggle svg {
  display: block;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle[data-pref="dark"] .theme-icon-sun,
.theme-toggle[data-pref="light"] .theme-icon-moon,
.theme-toggle[data-pref="system"] .theme-icon-system {
  display: block;
}
.theme-toggle[data-pref="dark"] .theme-icon-moon,
.theme-toggle[data-pref="dark"] .theme-icon-system,
.theme-toggle[data-pref="light"] .theme-icon-sun,
.theme-toggle[data-pref="light"] .theme-icon-system,
.theme-toggle[data-pref="system"] .theme-icon-sun,
.theme-toggle[data-pref="system"] .theme-icon-moon {
  display: none;
}

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-xs);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-sm  { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg  { padding: 16px 32px; font-size: 1rem; }
.btn-sm .btn-badge { font-size: 0.7rem; padding: 1px 6px; }
.btn-lg .btn-badge { font-size: 0.8rem; padding: 3px 10px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(255, 51, 51, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: var(--border-light);
}

.btn-badge {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-badge:empty {
  display: none;
}

/* =========================================================================
   Sections
   ========================================================================= */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--surface);
}

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

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 30% 40%, rgba(255, 51, 51, 0.08), transparent 60%),
    radial-gradient(ellipse 600px 400px at 70% 60%, rgba(62, 166, 255, 0.05), transparent 60%),
    radial-gradient(ellipse 300px 300px at 50% 80%, rgba(167, 139, 250, 0.03), transparent 60%);
}

.hero-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: 60px 60px;
  mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 800px 500px at 50% 30%, black, transparent 70%);
}

.hero-orbs {
  position: absolute;
  inset: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 51, 51, 0.15);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(62, 166, 255, 0.1);
  bottom: 10%;
  left: -5%;
  animation-delay: -7s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: rgba(167, 139, 250, 0.1);
  bottom: -5%;
  right: 30%;
  animation-delay: -14s;
}

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

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 60px;
  flex: 1;
}

.hero-text {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Browser mockup */
.browser-mockup {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  animation: float 6s ease-in-out infinite;
}

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

.browser-bar {
  height: 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
}
.browser-bar span:not(.browser-url) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.3;
}
.browser-bar span:nth-child(1) { background: #ff5f57; opacity: 1; }
.browser-bar span:nth-child(2) { background: #febc2e; opacity: 1; }
.browser-bar span:nth-child(3) { background: #28c840; opacity: 1; }

.browser-url {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 3px 12px;
  border-radius: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #0a0a0c;
  overflow: hidden;
}
@supports not (aspect-ratio: 16/11) {
  .browser-content {
    padding-bottom: 68.75%;
    height: 0;
  }
}
[data-theme="light"] .browser-content {
  background: #e8e8ec;
}

.yt-thumbnail {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a20 0%, #0a0a0c 100%);
  display: flex;
  align-items: center;
}
[data-theme="light"] .yt-thumbnail {
  background: linear-gradient(135deg, #d0d0d8 0%, #c0c0c8 100%);
}
  justify-content: center;
}

.yt-play-btn {
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}
.yt-play-btn svg { width: 24px; height: 24px; }

.yt-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.yt-title {
  height: 10px;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.yt-meta {
  height: 8px;
  width: 35%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

/* Popup overlay on the mockup */
.popup-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  animation: popupAppear 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(8px);
  animation-delay: 0.5s;
}

@keyframes popupAppear {
  to { opacity: 1; transform: translateY(0); }
}

.popup-mockup {
  width: 190px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.popup-header img { border-radius: 4px; }
.popup-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.popup-body {
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.popup-mode {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 5px 8px;
  border-radius: 4px;
}
.popup-mode.active {
  background: var(--accent-dim);
  color: var(--text);
}
.popup-mode.active .popup-dot { background: var(--accent); }

.popup-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.popup-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
}

.toggle-switch {
  width: 32px;
  height: 18px;
  border-radius: 10px;
  position: relative;
  transition: background var(--transition);
}
.toggle-switch.on { background: var(--green); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--transition);
}
.toggle-switch.on::after { transform: translateX(14px); }

/* Hero stats bar */
.hero-stats {
  width: 100%;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  position: relative;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 28px 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid var(--border);
  padding: 4px 12px;
}
.stat-item:last-child { border-right: none; }

.stat-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

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

/* =========================================================================
   Trusted-by / Logos
   ========================================================================= */

.section-logos {
  padding: 48px 0;
}

.logos-label {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.logos-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  transition: opacity var(--transition);
  letter-spacing: -0.01em;
}

.logo-item:hover { opacity: 0.8; }

/* =========================================================================
   Features
   ========================================================================= */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

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

.feature-icon-red { background: rgba(255, 51, 51, 0.12); color: var(--accent); }
.feature-icon-blue { background: rgba(62, 166, 255, 0.12); color: var(--blue); }
.feature-icon-green { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.feature-icon-purple { background: rgba(167, 139, 250, 0.12); color: var(--purple); }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

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

/* =========================================================================
   Comparison
   ========================================================================= */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

.compare-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.compare-before {
  background: rgba(255, 255, 255, 0.02);
}
.compare-after {
  background: var(--accent-dim);
  border-color: rgba(255, 51, 51, 0.2);
}

.compare-head {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.compare-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}

.compare-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.compare-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.compare-no svg { color: var(--text-muted); stroke: var(--text-muted); }
.compare-yes svg { color: var(--green); stroke: var(--green); }

.compare-after .compare-list li {
  color: var(--text);
}

/* =========================================================================
   How It Works
   ========================================================================= */

.how-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.how-step {
  text-align: center;
  flex: 1;
  max-width: 280px;
}

.how-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.how-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.how-icon svg { width: 28px; height: 28px; }

.how-icon-globe { background: rgba(62, 166, 255, 0.12); color: var(--blue); }
.how-icon-shield { background: rgba(255, 51, 51, 0.12); color: var(--accent); }
.how-icon-eye { background: rgba(34, 197, 94, 0.12); color: var(--green); }

.how-step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.how-step p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.how-arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
  margin-bottom: 40px;
}

.how-arrow svg {
  width: 28px;
  height: 28px;
  opacity: 0.6;
}

/* =========================================================================
   Screenshots
   ========================================================================= */

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.screenshot-card {
  text-align: center;
}

.device-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.screenshot-card:hover .device-frame {
  border-color: var(--border-light);
}

.device-bar {
  height: 34px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.device-bar span:not(.device-url) {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.25;
}
.device-url {
  margin-left: auto;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.device-screen {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}
@supports not (aspect-ratio: 16/10) {
  .device-screen {
    padding-bottom: 62.5%;
    height: 0;
  }
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: pointer;
}

.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  padding: 32px;
}

.screenshot-placeholder svg {
  width: 36px;
  height: 36px;
  opacity: 0.3;
}

.screenshot-placeholder span {
  font-size: 0.8rem;
  font-weight: 500;
}

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

/* =========================================================================
   Installation
   ========================================================================= */

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
}

.install-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.install-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.install-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.install-icon svg { width: 22px; height: 22px; color: var(--text-secondary); }

.install-card h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.install-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.install-card a {
  color: var(--accent);
}

.install-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

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

/* =========================================================================
   Trust & Privacy
   ========================================================================= */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 780px;
  margin: 0 auto;
}

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

.trust-card:hover {
  border-color: var(--border-light);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.trust-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

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

.trust-card a {
  color: var(--accent);
}

/* =========================================================================
   FAQ
   ========================================================================= */

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

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

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

.faq-item summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.93rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  gap: 16px;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* =========================================================================
   CTA Section
   ========================================================================= */

.section-cta {
  padding: 80px 0;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255, 51, 51, 0.05) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 64px 40px;
  max-width: 640px;
  margin: 0 auto;
}

.cta-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* =========================================================================
   Footer
   ========================================================================= */

.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-brand img { border-radius: 4px; }

.footer-copy {
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-copy a { color: var(--text-muted); }
.footer-copy a:hover { color: var(--text); }

.footer-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-link:hover { color: var(--text); }

/* =========================================================================
   Back to top
   ========================================================================= */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(255, 51, 51, 0.3);
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
  color: #fff;
}
.back-to-top:active {
  transform: translateY(0);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* =========================================================================
   Version History
   ========================================================================= */

.version-info {
  width: 100%;
  max-width: 560px;
  margin-top: 24px;
}

.version-loading {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: var(--border-light);
  animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.skeleton-line--short { width: 40%; }
.skeleton-line--medium { width: 70%; }
.skeleton-line--long { width: 90%; }

@keyframes skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.whats-new {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
}

.whats-new-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.whats-new-header svg {
  flex-shrink: 0;
  color: var(--accent);
}

.whats-new-date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.download-count {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  white-space: nowrap;
}

.whats-new-header .download-count {
  margin-left: 8px;
}

.release-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.release-body p {
  margin-bottom: 6px;
}

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

.release-body li {
  display: block;
  padding: 2px 0;
  padding-left: 16px;
  position: relative;
}

.release-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.release-body h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 14px 0 6px;
}

.release-body h3 {
  font-size: 1rem;
  color: var(--text);
  margin: 12px 0 6px;
}

.release-body h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 12px 0 6px;
}

.release-body h5 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 10px 0 4px;
}

.release-body a {
  color: var(--blue);
  text-decoration: underline;
}

.release-body a:hover {
  color: var(--accent);
}

.release-body code {
  font-size: 0.82em;
}

.version-others {
  margin-top: 12px;
}

.version-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.version-toggle:hover {
  border-color: var(--border-light);
  color: var(--text);
  background: var(--surface-hover);
}

.version-toggle svg {
  transition: transform var(--transition);
}

.version-toggle.open svg {
  transform: rotate(180deg);
}

.version-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-list.open {
  max-height: 3000px;
}

.version-list.animating {
  overflow: hidden;
}

.version-list > .version-item:first-child {
  margin-top: 8px;
}

.version-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: left;
  transition: border-color var(--transition);
}

.version-item.expanded {
  border-color: var(--border-light);
}

.version-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: all var(--transition);
  flex-shrink: 0;
}

.version-expand:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.version-expand svg {
  transition: transform var(--transition);
}

.version-expand.open svg {
  transform: rotate(90deg);
}

.version-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.version-tag-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-tag {
  font-weight: 700;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.version-current {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.version-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: auto;
}

.version-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}

.version-dl-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.version-header .download-count {
  font-size: 0.72rem;
}

.version-body {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.version-item.expanded .version-body {
  display: block;
}

.version-body p {
  margin-bottom: 4px;
}

.version-body li {
  display: block;
  padding: 1px 0;
  padding-left: 14px;
  position: relative;
}

.version-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.version-body h2 {
  font-size: 1rem;
  color: var(--text);
  margin: 10px 0 4px;
}

.version-body h3 {
  font-size: 0.95rem;
  color: var(--text);
  margin: 10px 0 4px;
}

.version-body h4 {
  font-size: 0.9rem;
  color: var(--text);
  margin: 8px 0 4px;
}

.version-body h5 {
  font-size: 0.85rem;
  color: var(--text);
  margin: 8px 0 4px;
}

.version-body a {
  color: var(--accent);
  text-decoration: underline;
}

.version-body a:hover {
  color: var(--accent);
}

.version-body code {
  font-size: 0.82em;
}

@media (max-width: 480px) {
  .whats-new {
    padding: 16px;
  }
  .whats-new-header {
    font-size: 0.85rem;
  }
  .whats-new-date {
    margin-left: 0;
    width: 100%;
  }
  .version-header {
    gap: 8px;
  }
  .version-date {
    width: 100%;
    margin-right: 0;
  }
  .version-dl-btn {
    margin-left: auto;
  }
}

/* =========================================================================
   Animations
   ========================================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@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;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-text {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-subtitle { max-width: 100%; }
  .hero h1 { font-size: 2.8rem; }
  .hero-actions { justify-content: center; }
  .browser-mockup { max-width: 400px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .install-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-title { font-size: 1.8rem; }
  .section-desc { font-size: 0.95rem; }

  .nav-links {
    display: flex;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--nav-bg-scrolled);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }
  [data-theme="light"] .nav-links {
    background: rgba(255, 255, 255, 0.98);
  }
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    padding: 16px 28px;
  }
  .nav-toggle { display: flex; }

  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }

  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 0;
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-value { font-size: 1.3rem; }

  .logos-row { gap: 24px; }
  .logo-item { font-size: 0.95rem; }

  .features-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr; }

  .how-grid {
    flex-direction: column;
    gap: 20px;
  }
  .how-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .trust-grid { grid-template-columns: 1fr; }

  .install-grid { grid-template-columns: 1fr; }

  .cta-card { padding: 40px 28px; }
  .cta-card h2 { font-size: 1.7rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-right { justify-content: center; }
}

/* =========================================================================
   Lightbox
   ========================================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 40px;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10;
  font-family: inherit;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  cursor: default;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.lightbox.open .lightbox-img {
  animation: lightboxFadeIn 0.25s ease-out;
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .browser-mockup { max-width: 100%; }
  .popup-mockup { width: 160px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  .nav, .back-to-top, .lightbox, .hero-bg, .hero-stats,
  .version-toggle, .version-dl-btn, .theme-toggle,
  .footer-right { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 20px 0; }
  .feature-card, .trust-card, .install-card { break-inside: avoid; }
}
