/* ============================================
   MyHistory Landing
   ============================================ */

:root {
  --bg: #FDFDFC;
  --bg-2: #F4F5F3;
  --bg-3: #E7E9E4;
  --card: #FFFFFF;
  --text: #111318;
  --text-2: #4A4D56;
  --text-3: #6B7280;
  --border: #DEE0DB;
  --border-2: #ECEFEB;
  --accent: #1E40AF;
  --accent-h: #1E3A8A;
  --accent-bg: rgba(30,64,175,0.06);
  --accent-ring: rgba(30,64,175,0.15);
  --green: #15803D;
  --green-bg: rgba(22,163,74,0.07);
  --red: #DC2626;
  --sh-1: 0 1px 3px rgba(0,0,0,0.04);
  --sh-2: 0 4px 20px rgba(0,0,0,0.06);
  --sh-3: 0 12px 40px rgba(0,0,0,0.08);
  --sh-4: 0 24px 64px rgba(0,0,0,0.10);
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --mw: 1080px;
  --nav: 60px;
  --mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0A0A0C;
  --bg-2: #131316;
  --bg-3: #1C1C21;
  --card: #141418;
  --text: #EDEDF0;
  --text-2: #9898A0;
  --text-3: #7C818A;
  --border: #252529;
  --border-2: #1C1C21;
  --accent: #2563EB;
  --accent-h: #3B82F6;
  --accent-bg: rgba(37,99,235,0.10);
  --accent-ring: rgba(37,99,235,0.20);
  --green: #4ADE80;
  --green-bg: rgba(74,222,128,0.10);
  --red: #F87171;
  --sh-1: 0 1px 3px rgba(0,0,0,0.20);
  --sh-2: 0 4px 20px rgba(0,0,0,0.30);
  --sh-3: 0 12px 40px rgba(0,0,0,0.40);
  --sh-4: 0 24px 64px rgba(0,0,0,0.50);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 112px; }
section[id] { scroll-margin-top: 100px; }

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

/* ---- Utilities ---- */
.section { max-width: var(--mw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-desc { font-size: 17px; color: var(--text-2); max-width: 480px; margin: 0 auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  white-space: nowrap;
  position: relative;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,0.2); }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(37,99,235,0.2); }
.btn-ghost { background: var(--card); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--text-3); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(0); }
.icon-btn {
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--bg-2); color: var(--text); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: fixed;
  top: 8px; left: 8px;
  width: auto; height: auto;
  margin: 0; padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  clip: auto;
  white-space: normal;
}

/* ---- Banner ---- */
.banner {
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  color: #fff;
  padding: 10px 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.banner.hidden { transform: translateY(-100%); }
.banner-inner {
  max-width: var(--mw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.banner-badge {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.banner-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 4px;
  margin-left: 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}
.banner-close:hover { color: #fff; background: rgba(255,255,255,0.15); }
.banner-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.banner-link:hover { opacity: 0.8; }

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 40px; left: 0; right: 0;
  height: var(--nav);
  background: rgba(253,253,252,0.80);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--border-2);
  z-index: 100;
  transition: all 0.3s;
}
[data-theme="dark"] .nav { background: rgba(10,10,12,0.80); }
.nav.scrolled {
  box-shadow: var(--sh-2);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}
.nav-logo { width: 24px; height: 24px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.2s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { transform: scaleX(1); background: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  position: relative;
  z-index: 210;
}
.mobile-toggle:hover { background: var(--accent-bg); }
.mobile-toggle:active { transform: scale(0.95); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.mobile-toggle.open .hamburger-line.top { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.open .hamburger-line.mid { opacity: 0; }
.mobile-toggle.open .hamburger-line.bot { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  padding: 140px 24px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.banner-closed .hero { padding-top: 80px; }
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37,99,235,0.05) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(91,155,246,0.06) 0%, transparent 70%);
}
.hero-bg-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
}
[data-theme="dark"] .hero-bg-dots { opacity: 0.15; }
.hero-inner {
  max-width: var(--mw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  padding: 6px 14px;
  background: var(--bg-2);
  border-radius: var(--r);
  border: 1px solid var(--border-2);
}
.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-line {
  display: block;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-line-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 50%, #EC4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.typing-cursor {
  -webkit-text-fill-color: var(--accent);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-2);
}
.proof-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.proof-item svg { color: var(--green); flex-shrink: 0; }
.proof-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* ---- Mockup ---- */
.hero-visual { display: flex; justify-content: center; }
.hero-mockup-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
[data-theme="dark"] .hero-glow {
  background: radial-gradient(ellipse, rgba(91,155,246,0.1) 0%, rgba(139,92,246,0.05) 40%, transparent 70%);
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  box-shadow: var(--sh-2);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-float svg { flex-shrink: 0; }
.hero-float-1 {
  top: -12px;
  right: -36px;
  animation-delay: 0s;
}
.hero-float-1 svg { color: #059669; }
.hero-float-2 {
  bottom: 40px;
  right: -48px;
  animation-delay: 1.5s;
}
.hero-float-2 svg { color: #DC2626; }
.hero-float-3 {
  top: 40px;
  left: -44px;
  animation-delay: 3s;
}
.hero-float-3 svg { color: #4F46E5; }
.hero-float-4 {
  bottom: -12px;
  left: -36px;
  animation-delay: 4.5s;
}
.hero-float-4 svg { color: #D97706; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.mockup {
  width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-4), 0 0 0 1px rgba(0,0,0,0.02);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), box-shadow 0.4s;
  will-change: transform;
  position: relative;
  z-index: 1;
}
.mockup:hover {
  box-shadow: 0 32px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.03);
}
.mockup-chrome-bar {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
}
.mockup-dots { display: flex; gap: 7px; }
.mockup-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #FF5F57; }
.mockup-dots span:nth-child(2) { background: #FEBC2E; }
.mockup-dots span:nth-child(3) { background: #28C840; }
.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px 10px;
}
.mockup-icon { width: 22px; height: 22px; border-radius: 5px; }
.mockup-title { font-size: 14px; font-weight: 600; }
.mockup-tabs {
  display: flex;
  gap: 2px;
  padding: 0 14px;
  background: var(--bg-2);
}
.mockup-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  border-radius: 6px 6px 0 0;
}
.mockup-tab.active { background: var(--card); color: var(--text); font-weight: 600; }
.mockup-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 14px;
  padding: 10px 14px;
  background: var(--bg-2);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-3);
  min-height: 36px;
}
#mockup-search-text { color: var(--text); font-size: 12px; }
.mockup-cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.mockup-filters { display: flex; gap: 7px; padding: 0 14px 10px; }
.mockup-chip {
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border-2);
}
.mockup-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.mockup-list { padding: 0 10px 12px; }
.mockup-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  transition: background 0.12s;
  cursor: default;
}
.mockup-row:hover { background: var(--bg-2); }
.mockup-row.dimmed { opacity: 0.2; transform: translateX(4px); }
.mockup-row.highlight { background: var(--accent-bg); }
.mockup-dot {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex-shrink: 0;
}
.mockup-text { flex: 1; min-width: 0; }
.mockup-t { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mockup-u { font-size: 11px; color: var(--text-3); }
.mockup-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; font-variant-numeric: tabular-nums; }

/* ---- Stats Bar ---- */
.stats-bar {
  padding: 56px 0;
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.stats-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .stats-glow {
  background: radial-gradient(ellipse, rgba(91,155,246,0.04) 0%, transparent 70%);
}
.stats-grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 0 36px;
  position: relative;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: transform 0.2s;
}
.stat-item:hover .stat-icon { transform: scale(1.1); }
.stat-icon-features { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #4F46E5; }
[data-theme="dark"] .stat-icon-features { background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(79,70,229,0.12)); color: #818CF8; }
.stat-icon-export { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
[data-theme="dark"] .stat-icon-export { background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(217,119,6,0.12)); color: #FBBF24; }
.stat-icon-privacy { background: linear-gradient(135deg, #D1FAE5, #A7F3D0); color: #059669; }
[data-theme="dark"] .stat-icon-privacy { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.12)); color: #34D399; }
.stat-icon-speed { background: linear-gradient(135deg, #FEE2E2, #FECACA); color: #DC2626; }
[data-theme="dark"] .stat-icon-speed { background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(220,38,38,0.12)); color: #F87171; }
.stat-num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-detail {
  font-size: 12px;
  color: var(--text-3);
}
.stat-divider {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
  flex-shrink: 0;
}

/* ---- Features ---- */
.features { padding: 100px 0; background: var(--bg-2); }

.feat-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 48px;
  margin-bottom: 24px;
}
.feat-hero-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.feat-hero h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.feat-hero p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.feat-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-tags span {
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-2);
  border-radius: 6px;
}

.feat-demo {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 16px;
  font-family: 'SF Mono', 'JetBrains Mono', 'Fira Code', monospace;
}
.feat-demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-3);
}
.feat-demo-input { color: var(--text); font-weight: 500; }
.feat-demo-cursor {
  color: var(--accent);
  animation: blink 1s step-end infinite;
}
.feat-demo-results { display: flex; flex-direction: column; gap: 6px; }
.feat-demo-row {
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.feat-demo-match { color: var(--accent); font-weight: 600; }

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--accent-ring);
}
.feat-card-wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.feat-card-visual {
  margin-bottom: 12px;
}
.feat-card-wide .feat-card-visual {
  margin-bottom: 0;
  flex: 0 0 200px;
}
.feat-card-content { flex: 1; }
.feat-card-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feat-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* Feature card visuals */
.feat-export-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-2);
}
.feat-export-row { display: flex; gap: 6px; margin-bottom: 10px; }
.feat-badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.feat-badge-blue { background: rgba(37,99,235,0.1); color: #2563EB; }
.feat-badge-green { background: rgba(22,163,74,0.1); color: #16A34A; }
.feat-badge-purple { background: rgba(139,92,246,0.1); color: #8B5CF6; }
.feat-badge-orange { background: rgba(249,115,22,0.1); color: #F97316; }
.feat-export-preview {
  background: var(--card);
  border-radius: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border-2);
}
.feat-export-line {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text-3);
  line-height: 1.8;
}
.feat-privacy-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-2);
}
.feat-privacy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.feat-blocked svg { color: var(--red); }
.feat-allowed svg { color: var(--green); }
.feat-label-red {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(220,38,38,0.1);
  color: var(--red);
}
.feat-label-green {
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(22,163,74,0.1);
  color: var(--green);
}
.feat-schedule-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-2);
}
.feat-schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 4px 0;
  border-bottom: 1px solid var(--border-2);
}
.feat-schedule-row:last-child { border-bottom: none; }
.feat-schedule-label { color: var(--text-3); }
.feat-schedule-val { color: var(--text); font-weight: 500; }
.feat-sessions-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border-2);
}
.feat-session {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.feat-session-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-chart-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 14px 12px 10px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  border: 1px solid var(--border-2);
}
.feat-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent), rgba(37,99,235,0.4));
  border-radius: 3px 3px 0 0;
  transition: height 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.feat-bar:nth-child(odd) {
  background: linear-gradient(180deg, #7C3AED, rgba(124,58,237,0.4));
}
.feat-actions-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-2);
}
.feat-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
  padding: 4px 8px;
  background: var(--card);
  border-radius: 6px;
  border: 1px solid var(--border-2);
}
.feat-action-row svg { color: var(--text-3); flex-shrink: 0; }
.feat-recent-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-2);
}
.feat-recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.feat-recent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.feat-recent-time {
  margin-left: auto;
  color: var(--text-3);
  font-size: 10px;
}
.feat-dark-demo {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  height: 64px;
}
.feat-dark-half {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
}
.feat-dark-light {
  background: #F8F9FA;
  color: #374151;
}
.feat-dark-dark {
  background: #1a1a2e;
  color: #E2E8F0;
}
.feat-vault-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border-2);
}
.feat-vault-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
  font-family: 'SF Mono', 'JetBrains Mono', monospace;
  margin-bottom: 6px;
}
.feat-vault-file svg { color: var(--accent); flex-shrink: 0; }
.feat-vault-size {
  font-size: 10px;
  color: var(--text-3);
}
.feat-keys-demo {
  background: var(--bg-2);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border-2);
}
.feat-key {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-2);
}
.feat-key kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text);
  box-shadow: 0 1px 0 var(--border);
}

/* ---- How it works ---- */
.how { padding: 100px 0; }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-step {
  text-align: center;
  padding: 40px 24px;
}
.how-num {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--border) 0%, var(--text-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="dark"] .how-num {
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--text-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.how-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.how-step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ---- Compare ---- */
.compare { padding: 100px 0; background: var(--bg-2); }
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--sh-1);
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--border-2); }
.cmp-feature-col { text-align: left !important; width: 200px; }
.cmp-table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-2);
  background: var(--bg-2);
  position: sticky;
  top: 0;
}
.cmp-table th.cmp-hl { color: var(--accent); background: var(--accent-bg); font-size: 12px; }
.cmp-table td:first-child { text-align: left; font-weight: 500; color: var(--text-2); }
.cmp-table td.cmp-hl { background: rgba(37,99,235,0.03); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table tr:hover td { background: var(--bg-2); }
.cmp-table tr:hover td.cmp-hl { background: var(--accent-bg); }
.cmp-table tr { transition: background 0.15s; }
.cmp-price { color: var(--green); font-weight: 600; }
.cmp-detail { font-size: 11px; color: var(--text-2); font-weight: 500; line-height: 1.4; }
.cmp-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  margin-top: 16px;
  font-style: italic;
}
.cmp-table tbody tr:nth-child(even) { background: rgba(0,0,0,0.03); }
[data-theme="dark"] .cmp-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.03); }

.chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chk svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  stroke-width: 2.5;
  fill: none;
}
.x-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.x-mark svg {
  width: 18px;
  height: 18px;
  stroke: var(--red);
  stroke-width: 2.5;
  fill: none;
}
.partial { font-size: 12px; color: var(--text-3); font-weight: 500; }

/* ---- Privacy ---- */
.privacy { padding: 100px 0; }
.privacy-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  max-width: 800px;
  margin: 0 auto;
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.privacy-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.privacy-left h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
}
.privacy-left p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
}
.privacy-right { display: flex; flex-direction: column; gap: 20px; }
.privacy-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.privacy-check {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.privacy-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.privacy-item span {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

/* ---- Testimonials ---- */
.testimonials { padding: 100px 0; }
.testi-carousel {
  position: relative;
  overflow: hidden;
}
.testi-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.testi-carousel .testi-card {
  flex-shrink: 0;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.testi-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.testi-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--sh-2);
  z-index: 5;
}
.testi-nav:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.testi-prev { left: 12px; }
.testi-next { right: 12px; }
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: var(--accent-ring);
}
.testi-featured {
  border-color: var(--accent-ring);
  background: linear-gradient(135deg, var(--card) 0%, rgba(37,99,235,0.02) 100%);
}
.testi-stars {
  color: #92400E;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
[data-theme="dark"] .testi-stars { color: #FBBF24; }
.testi-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
  flex: 1;
}
.testi-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.testi-tags span {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  background: var(--accent-bg);
  color: var(--accent);
  letter-spacing: 0.01em;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-2);
}
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.testi-name {
  font-size: 13px;
  font-weight: 600;
}
.testi-role {
  font-size: 12px;
  color: var(--text-3);
}

/* ---- Support ---- */
.support { padding: 100px 0; background: var(--bg-2); }
.support-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.support-card-email {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.support-card-email:hover {
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(37,99,235,0.08), var(--sh-1);
  transform: translateY(-2px);
}
[data-theme="dark"] .support-card-email:hover {
  box-shadow: 0 16px 48px rgba(91,155,246,0.06), var(--sh-1);
}
.support-email-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-email-content { flex: 1; min-width: 0; }
.support-email-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.support-email-content p {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 8px;
}
.support-email-addr {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}
.support-email-arrow {
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}
.support-card-email:hover .support-email-arrow {
  color: var(--accent);
  transform: translateX(3px);
}
.support-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-card-side {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  flex: 1;
}
.support-card-side:hover {
  border-color: var(--accent-ring);
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
}
.support-side-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.support-side-star {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
}
[data-theme="dark"] .support-side-star {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(217,119,6,0.12));
  color: #FBBF24;
}
.support-side-linkedin {
  background: #0A66C2;
  color: #fff;
}
.support-side-text { flex: 1; min-width: 0; }
.support-side-text h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.support-side-text p {
  font-size: 12px;
  color: var(--text-3);
}

/* ---- Sponsor ---- */
.sponsor {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.sponsor-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.03) 0%, transparent 50%, rgba(236,72,153,0.03) 100%);
  pointer-events: none;
}
[data-theme="dark"] .sponsor-bg {
  background: linear-gradient(135deg, rgba(91,155,246,0.02) 0%, transparent 50%, rgba(236,72,153,0.02) 100%);
}
.sponsor-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.sponsor-quote { margin-bottom: 16px; }
.sponsor-main h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.sponsor-main p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.sponsor-sub {
  font-size: 14px !important;
  color: var(--text-3) !important;
  font-style: italic;
}
.sponsor-actions-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sponsor-tier {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.2s;
}
.sponsor-tier:hover {
  border-color: var(--accent-ring);
  box-shadow: var(--sh-1);
}
.sponsor-tier-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sponsor-tier:first-child .sponsor-tier-icon {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #D97706;
}
[data-theme="dark"] .sponsor-tier:first-child .sponsor-tier-icon {
  background: linear-gradient(135deg, rgba(251,191,36,0.15), rgba(217,119,6,0.15));
  color: #FBBF24;
}
.sponsor-tier:last-child .sponsor-tier-icon {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #DC2626;
}
[data-theme="dark"] .sponsor-tier:last-child .sponsor-tier-icon {
  background: linear-gradient(135deg, rgba(239,68,68,0.15), rgba(220,38,38,0.15));
  color: #F87171;
}
.sponsor-tier-name {
  font-size: 14px;
  font-weight: 600;
}
.sponsor-tier-desc {
  font-size: 12px;
  color: var(--text-3);
}
.sponsor-tier .btn {
  margin-left: auto;
  flex-shrink: 0;
}

/* ---- FAQ ---- */
.faq { padding: 100px 0; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 8px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: grid-template-rows 0.3s ease, box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.faq-item[open] {
  grid-template-rows: auto 1fr;
}
.faq-item > :not(summary) {
  overflow: hidden;
}
.feat-card:hover, .faq-item:hover { box-shadow: var(--sh-1); border-color: var(--text-3); }
.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.15s;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- CTA ---- */
.cta {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(37,99,235,0.06) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .cta-bg {
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(91,155,246,0.04) 0%, transparent 70%);
}
.cta-card {
  text-align: center;
  padding: 64px 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.cta-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7C3AED, #EC4899, var(--accent));
  background-size: 200% 100%;
  animation: gradient-slide 4s linear infinite;
}
@keyframes gradient-slide {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.cta-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--accent-ring);
  margin-bottom: 20px;
}
.cta-card h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cta-card p {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
}
.cta-note svg { color: var(--green); }

/* ---- Footer ---- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-2);
  background: var(--bg);
}
.footer-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-2);
  margin-bottom: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-brand span { font-weight: 600; font-size: 16px; }
.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col .footer-heading,
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; gap: 16px; }
.footer-links a {
  color: var(--text-3);
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-3); }
.footer-copy a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 2px;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4,0,0.2,1), transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }
.reveal-d4 { transition-delay: 0.24s; }
.reveal-d5 { transition-delay: 0.30s; }
.reveal-d6 { transition-delay: 0.36s; }
.reveal-d7 { transition-delay: 0.42s; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .mockup { width: 100%; max-width: 420px; }
  .feat-hero { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-card-wide { grid-column: span 2; flex-direction: row; }
  .how-grid { gap: 8px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 32px; }
  .testi-nav { display: none; }
  .stats-grid { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .stat-item { padding: 0 16px; }
  .support-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .hero-float { display: none; }
  .sponsor-content { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    border-left: 1px solid var(--border-2);
    padding: 80px 24px 24px;
    gap: 2px;
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  }
  [data-theme="dark"] .nav-links { box-shadow: -8px 0 32px rgba(0,0,0,0.3); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 8px;
    color: var(--text-2);
    transition: background 0.15s, color 0.15s;
  }
  .nav-links a:hover { background: var(--accent-bg); color: var(--text); }
  .nav-links a.active { color: var(--accent); background: var(--accent-bg); }
  .nav-links::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: -1;
  }
  .nav-links.open::before { opacity: 1; pointer-events: auto; }
  .mobile-toggle { display: flex; z-index: 201; }
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stat-item { padding: 0 8px; }
  .stat-num { font-size: 28px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card-wide { grid-column: span 1; flex-direction: column; }
  .feat-card-wide .feat-card-visual { flex: 0 0 auto; width: 100%; }
  .how-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---- Page Load Animation ---- */
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
body.page-ready .page-wrapper { animation: page-in 0.4s ease both; }

/* ---- Gradient Section Dividers ---- */
.features::before, .compare::before, .testimonials::before, .sponsor::before, .faq::before {
  content: '';
  display: block;
  width: 120px;
  height: 2px;
  margin: 0 auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  border-radius: 1px;
}

/* ---- Feature Card Hover Glow ---- */
.feat-card {
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(37,99,235,0.06), transparent 40%);
  pointer-events: none;
}
[data-theme="dark"] .feat-card::after {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(91,155,246,0.04), transparent 40%);
}
.feat-card:hover::after { opacity: 1; }

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 100;
  box-shadow: var(--sh-2);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--sh-3);
  transform: translateY(-2px);
}

/* ---- Animated Gradient Headline ---- */
.hero-line-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #7C3AED 40%, #EC4899 70%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift-text 4s ease-in-out infinite;
}
@keyframes gradient-shift-text {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
