/* ============================================================
   Sovernote — Product Website Styles
   ============================================================ */

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

:root {
  color-scheme: dark light;

  --bg:          #0a0c10;
  --bg-card:     #111418;
  --bg-card-alt: #161b22;
  --border:      rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);

  --text-primary: #f0f1f3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;

  --accent:       #4f8ef7;
  --accent-dim:   rgba(79,142,247,0.15);
  --accent-glow:  rgba(79,142,247,0.25);
  --accent-hover: #6fa3f9;

  --green:  #3fb950;
  --yellow: #d29922;
  --red:    #f85149;
  --blue:   #58a6ff;
  --gray:   #484f58;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 64px;
  --max-w: 1180px;

  /* theme-sensitive tokens (overridden in light mode below) */
  --nav-bg:              rgba(10,12,16,0.85);
  --nav-scrolled-bg:     rgba(10,12,16,0.95);
  --nav-mobile-bg:       rgba(10,12,16,0.97);
  --scrollbar-thumb:     rgba(255,255,255,0.1);
  --scrollbar-thumb-hover: rgba(255,255,255,0.18);
  --mockup-shadow:       0 0 80px rgba(79,142,247,0.08), 0 32px 64px rgba(0,0,0,0.5);
  --hover-tint:          rgba(255,255,255,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Utilities ----------------------------------------------*/
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, #a78bfa 60%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Buttons ------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 13px 26px; font-size: 0.9375rem; border-radius: var(--radius-md); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: rgba(127,127,127,0.25); background: var(--hover-tint); }

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

.btn-block { width: 100%; justify-content: center; }

/* --- Badges -------------------------------------------------*/
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
  letter-spacing: 0.02em;
}
.badge-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

/* --- Nav ----------------------------------------------------*/
.nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: var(--hover-tint); }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero ---------------------------------------------------*/
.hero {
  padding: 100px 0 0;
  text-align: center;
  overflow: hidden;
}

.hero-eyebrow {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* --- App mockup ---------------------------------------------*/
.hero-visual {
  margin-top: 72px;
  padding-bottom: 0;
}

.app-mockup {
  max-width: 880px;
  margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--mockup-shadow);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.mockup-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 36px;
}

.mockup-body {
  display: flex;
  min-height: 340px;
}

.mockup-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--bg-card-alt);
  border-right: 1px solid var(--border-soft);
  padding: 12px 0;
  font-size: 0.75rem;
}

.mockup-sidebar-section {
  padding: 12px 16px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mockup-sidebar-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
  margin: 0 6px;
  transition: background 0.15s;
}
.mockup-sidebar-item.active { background: rgba(79,142,247,0.12); color: var(--accent); }
.mockup-sidebar-item.indent { padding-left: 30px; }
.mockup-sidebar-item:hover:not(.active) { background: var(--hover-tint); color: var(--text-primary); }

.mockup-content {
  flex: 1;
  padding: 28px 32px;
  overflow: hidden;
}

.mockup-page-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.mockup-editor-line {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding: 3px 0;
}
.mockup-editor-line.heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  margin-bottom: 12px;
}
.mockup-editor-line.task {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-editor-line.task.done { color: var(--text-muted); text-decoration: line-through; }
.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  flex-shrink: 0;
}
.check-empty {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
}

.mockup-table {
  margin-top: 20px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-size: 0.75rem;
}
.mockup-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 7px 12px;
  background: var(--hover-tint);
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
  gap: 8px;
}
.mockup-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-soft);
  align-items: center;
  gap: 8px;
}
.mockup-table-row:last-child { border-bottom: none; }

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}
.tag-green  { background: rgba(63,185,80,0.15);  color: var(--green);  }
.tag-blue   { background: rgba(88,166,255,0.15); color: var(--blue);   }
.tag-red    { background: rgba(248,81,73,0.15);  color: var(--red);    }
.tag-yellow { background: rgba(210,153,34,0.15); color: var(--yellow); }
.tag-gray   { background: rgba(72,79,88,0.3);    color: var(--text-secondary); }
.dim { color: var(--text-muted); }

/* --- Trust strip -------------------------------------------*/
.trust-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-card-alt);
  padding: 20px 0;
}
.trust-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 24px;
}
.trust-item svg { color: var(--accent); flex-shrink: 0; }

.trust-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
}

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

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

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Features grid -----------------------------------------*/
.features { background: var(--bg); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: rgba(79,142,247,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79,142,247,0.07);
}
.feature-card--wide { grid-column: span 2; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(79,142,247,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

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

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.feature-tags span {
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--hover-tint);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Privacy section ----------------------------------------*/
.privacy-section {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.privacy-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.privacy-steps { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }

.privacy-step {
  display: flex;
  gap: 16px;
}
.step-num {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  background: var(--accent-dim);
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.privacy-step strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.privacy-step p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

.privacy-code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.code-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
}
.code-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.code-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-left: 4px;
}
.code-body {
  padding: 24px;
  overflow-x: auto;
}
.code-body code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: #cdd9e5;
  display: block;
}
.code-body .c { color: var(--text-muted); font-style: italic; }

/* --- Pricing ------------------------------------------------*/
.pricing-section { background: var(--bg); }

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.02);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.price-period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-desc {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.pricing-features li svg { flex-shrink: 0; color: var(--green); }
.pricing-features li.muted { color: var(--text-muted); }
.pricing-features li.muted svg { color: var(--text-muted); }

/* --- FAQ ----------------------------------------------------*/
.faq-section { background: var(--bg-card-alt); border-top: 1px solid var(--border-soft); }

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(79,142,247,0.3); }

.faq-item summary {
  padding: 20px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.75;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}
.faq-item p em { color: var(--text-primary); font-style: italic; }

/* --- CTA ----------------------------------------------------*/
.cta-section {
  padding: 120px 0;
  background: var(--bg);
}

.cta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-inner p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 36px; }

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* --- Footer -------------------------------------------------*/
.footer {
  background: var(--bg-card-alt);
  border-top: 1px solid var(--border-soft);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.6; max-width: 220px; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* --- Corner ribbon -----------------------------------------*/
.corner-ribbon {
  position: fixed;
  top: 28px;
  right: -36px;
  z-index: 200;
  width: 160px;
  padding: 7px 0;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  pointer-events: none;
  user-select: none;
}

/* --- Nav scroll state ---------------------------------------*/
.nav-wrapper.scrolled {
  background: var(--nav-scrolled-bg);
}

/* --- Responsive ---------------------------------------------*/
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card--featured { transform: none; }
  .privacy-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .trust-strip-inner { flex-direction: column; gap: 0; }
  .trust-sep { display: none; }
  .trust-item { padding: 10px 16px; }
  .mockup-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
  .section { padding: 72px 0; }
  .cta-section { padding: 80px 0; }
}

/* --- Mobile nav drawer --------------------------------------*/
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--nav-mobile-bg);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  padding: 24px;
  gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
}
.mobile-nav a:hover { background: var(--hover-tint); }
.mobile-nav .btn { margin-top: 16px; width: 100%; justify-content: center; }

/* --- Scrollbar ----------------------------------------------*/
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

/* --- Subtle entrance animations ----------------------------*/
@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow, .hero-headline, .hero-sub, .hero-actions, .hero-note {
    animation: fade-up 0.6s ease both;
  }
  .hero-headline  { animation-delay: 0.05s; }
  .hero-sub       { animation-delay: 0.1s; }
  .hero-actions   { animation-delay: 0.15s; }
  .hero-note      { animation-delay: 0.2s; }
  .hero-visual    { animation: fade-up 0.8s 0.25s ease both; }

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

/* ============================================================
   Light theme — follows system preference
   ============================================================ */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --bg:          #faf9f7;
    --bg-card:     #ffffff;
    --bg-card-alt: #f3f1ee;
    --border:      rgba(0,0,0,0.09);
    --border-soft: rgba(0,0,0,0.06);

    --text-primary:   #18160f;
    --text-secondary: #52504a;
    --text-muted:     #a09d96;

    --accent:       #2563eb;
    --accent-dim:   rgba(37,99,235,0.1);
    --accent-glow:  rgba(37,99,235,0.22);
    --accent-hover: #1d4ed8;

    --green:  #16a34a;
    --yellow: #ca8a04;
    --red:    #dc2626;
    --blue:   #2563eb;
    --gray:   #6b7280;

    --nav-bg:              rgba(250,249,247,0.88);
    --nav-scrolled-bg:     rgba(250,249,247,0.97);
    --nav-mobile-bg:       rgba(250,249,247,0.98);
    --scrollbar-thumb:     rgba(0,0,0,0.15);
    --scrollbar-thumb-hover: rgba(0,0,0,0.25);
    --mockup-shadow:       0 0 80px rgba(37,99,235,0.06), 0 32px 64px rgba(0,0,0,0.08);
    --hover-tint:          rgba(0,0,0,0.05);
  }

  /* Keep the code block always dark — common design pattern */
  .privacy-code-block {
    background: #161b22;
    border-color: rgba(255,255,255,0.07);
  }
  .code-header {
    background: rgba(255,255,255,0.03);
    border-bottom-color: rgba(255,255,255,0.06);
  }
  .code-dot { background: rgba(255,255,255,0.2); }
  .code-label { color: #8b949e; }
  .code-body code { color: #cdd9e5; }
  .code-body .c { color: #6e7681; }

  /* Active sidebar item adapts accent */
  .mockup-sidebar-item.active { background: rgba(37,99,235,0.1); }

  /* Tag backgrounds: original rgba won't look wrong on light bg,
     but bump green/blue slightly for better contrast */
  .tag-gray { background: rgba(107,114,128,0.15); }

  /* Pricing featured card shadow uses the updated --accent-glow var already */
}
