/* ============================================================
   Vision Finance — Landing Pages
   landing.css | Shared styles for all marketing pages
   ============================================================ */

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

:root {
  /* ── Brand ───────────────────────────────────────────────── */
  --primary:       #10b981;
  --primary-dark:  #059669;
  --primary-light: rgba(16,185,129,0.12);
  --accent:        #0ea5e9;
  --accent-light:  rgba(14,165,233,0.12);
  --brand:         #4f46e5;
  --brand-dark:    #3730a3;
  --brand-light:   rgba(79,70,229,0.08);
  --brand-mid:     rgba(79,70,229,0.18);

  /* ── Neutral Slate Palette ───────────────────────────────── */
  --neutral-50:  #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;

  /* ── Semantic Tokens ─────────────────────────────────────── */
  --success: #16a34a;
  --danger:  #dc2626;
  --warning: #d97706;

  /* ── Surface / Text / Border ─────────────────────────────── */
  --bg:           #ffffff;
  --bg-subtle:    #f8fafc;
  --surface:      #ffffff;
  --surface-2:    #f8fafc;
  --text:         #0f172a;
  --text-1:       #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-4:       #94a3b8;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;

  /* ── Typography Scale ────────────────────────────────────── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;

  /* ── Spacing Scale (8px base) ────────────────────────────── */
  --space-1:  8px;
  --space-2:  16px;
  --space-3:  24px;
  --space-4:  32px;
  --space-5:  40px;
  --space-6:  48px;
  --space-8:  64px;
  --space-10: 80px;
  --space-12: 96px;

  /* ── Shadows ─────────────────────────────────────────────── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.06);

  /* ── Radii ───────────────────────────────────────────────── */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* ── Nav ─────────────────────────────────────────────────── */
  --nav-h: 68px;

  /* ── Transitions ─────────────────────────────────────────── */
  --t: 0.18s ease;
}

/* ── Dark Mode Overrides ─────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0f172a;
  --bg-subtle:    #1e293b;
  --surface:      #1e293b;
  --surface-2:    #0f172a;
  --text:         #f1f5f9;
  --text-1:       #f1f5f9;
  --text-2:       #cbd5e1;
  --text-3:       #94a3b8;
  --text-4:       #64748b;
  --border:       #1e293b;
  --border-light: #0f172a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
}

[data-theme="dark"] body { background: var(--bg); color: var(--text-1); }

[data-theme="dark"] .nav {
  background: rgba(15,23,42,0.92);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .nav--scrolled {
  background: rgba(15,23,42,0.97);
  box-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
[data-theme="dark"] .nav-brand  { color: var(--text-1); }
[data-theme="dark"] .nav-link   { color: var(--text-3); }
[data-theme="dark"] .nav-login  { color: var(--text-3); }
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active { color: var(--primary); background: var(--primary-light); }
[data-theme="dark"] .nav-login:hover { color: var(--primary); background: var(--primary-light); }
[data-theme="dark"] .nav-drawer { box-shadow: -8px 0 32px rgba(0,0,0,0.5); }
[data-theme="dark"] .nav-drawer-header { border-bottom-color: var(--border); }
[data-theme="dark"] .nav-drawer-brand  { color: var(--text-1); }
[data-theme="dark"] .nav-drawer-link   { color: var(--text-2); }
[data-theme="dark"] .nav-drawer-link:hover,
[data-theme="dark"] .nav-drawer-link.active { color: var(--primary); background: var(--primary-light); }
[data-theme="dark"] .nav-drawer-close  { color: var(--text-3); }
[data-theme="dark"] .nav-drawer-close:hover { background: var(--border); color: var(--text-1); }
[data-theme="dark"] .nav-drawer-actions { border-top-color: var(--border); }
[data-theme="dark"] .nav-drawer-login  { color: var(--text-3); }
[data-theme="dark"] .nav-drawer-login:hover { color: var(--primary); background: var(--primary-light); }

[data-theme="dark"] .section    { background: var(--bg); }
[data-theme="dark"] .steps-section { background: var(--bg-subtle); }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .value-card,
[data-theme="dark"] .faq-item   { background: var(--surface); border-color: var(--border); color: var(--text-1); }
[data-theme="dark"] .feature-desc,
[data-theme="dark"] .value-card p,
[data-theme="dark"] .faq-a      { color: var(--text-3); }
[data-theme="dark"] .feature-title,
[data-theme="dark"] .value-card h3,
[data-theme="dark"] .faq-q,
[data-theme="dark"] .step-title { color: var(--text-1); }
[data-theme="dark"] .step-desc  { color: var(--text-3); }
[data-theme="dark"] .section-title { color: var(--text-1); }
[data-theme="dark"] .section-sub   { color: var(--text-2); }

/* Swap nav logo via CSS — data-theme is set before body renders, so no flash */
[data-theme="dark"] .nav-brand-icon img,
[data-theme="dark"] .nav-drawer-brand-icon img {
  content: url('../DarkModeLogo.png');
}

[data-theme="dark"] .auth-panel-right { background: var(--bg-subtle); }
[data-theme="dark"] .auth-form-box { background: transparent; }
[data-theme="dark"] .form-input {
  background: var(--surface);
  border-color: rgba(255,255,255,0.14);
  color: var(--text-1);
}
[data-theme="dark"] .form-label { color: var(--text-2); }
[data-theme="dark"] .auth-form-title { color: var(--text-1); }
[data-theme="dark"] .auth-form-sub   { color: var(--text-3); }
[data-theme="dark"] .auth-switch     { color: var(--text-3); }
[data-theme="dark"] .mini-kpi,
[data-theme="dark"] .mini-table,
[data-theme="dark"] .mini-budget     { background: var(--surface); border-color: var(--border); }
[data-theme="dark"] .mini-label      { color: var(--text-4); }

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  bottom: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-3);
  box-shadow: var(--shadow-sm);
  transition: background var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
  z-index: 998;
}
.theme-toggle:hover { background: var(--brand-light); border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow); }
[data-theme="dark"] .theme-toggle { background: var(--surface); border-color: rgba(255,255,255,0.1); color: var(--text-3); }
[data-theme="dark"] .theme-toggle:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.theme-toggle svg { width: 15px; height: 15px; }
@media (max-width: 480px) {
  .theme-toggle { bottom: 20px; left: 20px; width: 32px; height: 32px; }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* Focus-visible outlines */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.22; font-weight: 700; color: var(--text-1); }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); letter-spacing: -0.015em; }

.display-1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
.display-2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.025em; }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.section    { padding: 88px 0; background: var(--bg); }
.section-sm { padding: 56px 0; background: var(--bg); }
.text-center { text-align: center; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-light); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-1px); }

.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Navbar ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 200;
}

.nav--scrolled {
  height: 58px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
  transition: height 0.25s ease, box-shadow 0.25s ease;
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-1);
  flex: 1;
}

.nav-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -4px;
}
.nav-brand-icon img { transform: scale(1); transform-origin: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.nav-link {
  padding: 7px 14px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--t);
}
.nav-link:hover, .nav-link.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: flex-end;
}

.nav-login {
  padding: 8px 18px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--t);
}
.nav-login:hover { color: var(--brand); background: var(--brand-light); }

/* ── Mobile hamburger button ─────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav overlay ──────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 201;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-overlay.show { opacity: 1; }

/* ── Mobile nav drawer ───────────────────────────────────── */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: var(--surface);
  z-index: 202;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 8px;
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-1);
}

.nav-drawer-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: -6px;
}

.nav-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.nav-drawer-close:hover { background: var(--border-light); color: var(--text-1); }
.nav-drawer-close svg { width: 20px; height: 20px; }

.nav-drawer-links {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-drawer-link {
  display: block;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--t), color var(--t);
}
.nav-drawer-link:hover,
.nav-drawer-link.active {
  color: var(--brand);
  background: var(--brand-light);
}

.nav-drawer-actions {
  padding: 16px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.nav-drawer-login {
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: background var(--t), color var(--t);
}
.nav-drawer-login:hover { color: var(--brand); background: var(--brand-light); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: linear-gradient(140deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 65% 45%, rgba(99,102,241,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(139,92,246,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 72px 0 80px;
}

.hero-content { color: #fff; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79,70,229,0.25);
  border: 1px solid rgba(99,102,241,0.35);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 { color: #fff; margin-bottom: 20px; }

.hero-sub {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 460px;
}

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

.hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-note svg { color: #6366f1; }

/* ── App Mockup ──────────────────────────────────────────── */
.mockup-wrap { position: relative; }

.mockup-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.28) 0%, transparent 68%);
  pointer-events: none;
}

.mockup {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07);
  position: relative;
}

.mockup-bar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot:nth-child(1) { background: #fc8181; }
.mockup-dot:nth-child(2) { background: #f6ad55; }
.mockup-dot:nth-child(3) { background: #68d391; }

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

.mockup-sidebar {
  width: 54px;
  background: #1e1b4b;
  padding: 12px 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-nav-dot {
  width: 40px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mockup-nav-dot.active { background: rgba(99,102,241,0.45); }
.mockup-nav-dot svg { opacity: 0.55; }
.mockup-nav-dot.active svg { opacity: 1; }

.mockup-main {
  flex: 1;
  background: #f8fafc;
  padding: 12px;
  overflow: hidden;
}

.mockup-topbar {
  height: 28px;
  background: #fff;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.mockup-topbar-title {
  font-size: 7px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.mockup-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 10px;
}

.mockup-kpi {
  background: #fff;
  border-radius: 8px;
  padding: 9px;
  border: 1px solid #e2e8f0;
}

.mockup-kpi-label {
  font-size: 5px;
  color: #94a3b8;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.mockup-kpi-value {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.mkv-green { color: #16a34a; }
.mkv-red   { color: #dc2626; }
.mkv-blue  { color: #4f46e5; }
.mkv-gray  { color: #94a3b8; }

.mockup-charts {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 7px;
  margin-bottom: 10px;
}

.mockup-chart-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 9px;
  height: 108px;
  overflow: hidden;
}

.mockup-chart-hdr {
  font-size: 5.5px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.mockup-line {
  height: 64px;
  overflow: hidden;
}

.mockup-donut-wrap { display: flex; align-items: center; justify-content: center; height: 64px; }
.mockup-donut {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(#4f46e5 0% 38%, #818cf8 38% 62%, #a5b4fc 62% 80%, #e0e7ff 80% 100%);
}

.mockup-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.mockup-list-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 9px;
}

.m-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid #f1f5f9;
}
.m-row:last-child { border-bottom: none; }

.mockup-list-hdr {
  font-size: 5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.m-lbl { font-size: 5px; color: #475569; white-space: nowrap; overflow: hidden; }
.m-val { font-size: 5px; font-weight: 600; flex-shrink: 0; }
.m-val.green { color: #16a34a; }
.m-val.red   { color: #dc2626; }

/* ── Section Headers ─────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 16px;
  letter-spacing: -0.025em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Feature Cards ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2.5px;
  background: var(--fc, var(--brand));
  border-radius: 2px 2px 0 0;
  opacity: 0;
  transition: opacity var(--t);
}
.feature-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: rgba(79,70,229,0.2);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
}

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

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-3);
  line-height: 1.65;
}

/* ── Steps ───────────────────────────────────────────────── */
.steps-section { background: var(--border-light); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 26px;
  left: calc(16.67% + 26px);
  right: calc(16.67% + 26px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0, var(--brand) 6px, transparent 6px, transparent 14px);
  opacity: 0.25;
}

.step { text-align: center; }

.step-num {
  width: 52px;
  height: 52px;
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(79,70,229,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc { font-size: 0.9rem; color: var(--text-3); line-height: 1.65; }

/* ── Privacy Strip ───────────────────────────────────────── */
.privacy-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 64px 0;
  border-top: 1px solid rgba(99,102,241,0.2);
}

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

.privacy-icon {
  width: 52px;
  height: 52px;
  background: rgba(99,102,241,0.3);
  border: 1px solid rgba(99,102,241,0.4);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #a5b4fc;
}

.privacy-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.privacy-desc {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #6d28d9 100%);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section > .container { position: relative; }

.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.75); margin-bottom: 36px; font-size: 1.05rem; max-width: 480px; margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.cta-section .btn-ghost { border-color: rgba(255,255,255,0.35); }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  background: linear-gradient(140deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(99,102,241,0.2) 0%, transparent 70%);
}

.page-hero > * { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: 16px; }
.page-hero p { color: #94a3b8; max-width: 580px; margin: 0 auto; font-size: 1.1rem; line-height: 1.7; }

/* ── About Page ──────────────────────────────────────────── */
.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.mission-block p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.mission-visual {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mission-visual--dark {
  background: linear-gradient(140deg, #0f172a, #1e1b4b);
  border-color: rgba(99,102,241,0.25);
}
.mission-visual--dark .mini-kpi {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.mission-visual--dark .mini-label { color: rgba(255,255,255,0.5); }
.mission-visual--dark .c-green    { color: #6ee7b7; }
.mission-visual--dark .c-red      { color: #fca5a5; }
.mission-visual--dark .c-brand    { color: #a5b4fc; }

.mission-visual-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 80%;
}

.mission-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
}

.mission-kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.mission-kpi-val {
  font-size: 1.2rem;
  font-weight: 700;
}
.c-green { color: #16a34a; }
.c-red   { color: #dc2626; }
.c-brand { color: var(--brand); }

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

.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: all var(--t);
}
.value-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(79,70,229,0.25); }

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-light);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 14px;
}

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

.value-card p { font-size: 0.875rem; color: var(--text-3); line-height: 1.65; }

/* ── Learn More Page ─────────────────────────────────────── */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}
.feature-detail:last-child { border-bottom: none; }
.feature-detail.reverse .feature-detail-text { order: 2; }
.feature-detail.reverse .feature-detail-vis  { order: 1; }

.feature-detail-icon {
  width: 52px;
  height: 52px;
  background: var(--brand-light);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 20px;
}

.feature-detail h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.feature-detail p {
  color: var(--text-3);
  line-height: 1.72;
  margin-bottom: 22px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

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

.check-list li::before {
  content: '';
  width: 18px;
  min-width: 18px;
  height: 18px;
  background: var(--brand-light);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.feature-detail-vis {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  overflow: hidden;
}

/* Mini dashboard mockup for detail visuals */
.mini-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.mini-kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
}

.mini-label {
  font-size: 0.72rem;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 6px;
}

.mini-value {
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  width: 100%;
}

.mini-th {
  padding: 8px 12px;
  background: var(--border-light);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

.mini-tr {
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.82rem;
  align-items: center;
}

.mini-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-blue   { background: #e0e7ff; color: var(--brand); }
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-orange { background: #ffedd5; color: #c2410c; }

.mini-progress-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }

.mini-goal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
}

.mini-goal-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
}
.mini-goal-name { font-weight: 600; }
.mini-goal-pct  { color: var(--brand); font-weight: 700; }

.mini-bar-bg {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.mini-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
}
.mini-bar-fill.green { background: #16a34a; }

.mini-budget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  width: 100%;
}

.mini-budget-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
}
.mini-budget-row:first-child { border-top: none; }
.mini-budget-lbl { color: var(--text-2); }
.mini-budget-val { font-weight: 700; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.faq-q {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--text-1);
}

.faq-a { font-size: 0.875rem; color: var(--text-3); line-height: 1.65; }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding-bottom: 48px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  padding: 44px;
  width: 100%;
  max-width: 440px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 32px;
  color: var(--text-1);
}

.auth-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: -6px;
  margin-top: -4px;
}

.auth-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-3); font-size: 0.9rem; margin-bottom: 28px; }

.form-field { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 0.855rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
}
.form-input::placeholder { color: var(--text-4); }
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.form-link {
  font-size: 0.855rem;
  color: var(--brand);
  font-weight: 500;
}
.form-link:hover { text-decoration: underline; }

.auth-note {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--brand-light);
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  color: var(--brand);
  text-align: center;
  line-height: 1.5;
}

.auth-switch {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-3);
  margin-top: 22px;
}
.auth-switch a { color: var(--brand); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  padding: 56px 0 28px;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand-icon {
  width: 51px;
  height: 51px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: -8px;
  margin-top: -5px;
}
.footer-brand-icon img { transform: scale(1); transform-origin: center; }

.footer-tagline { font-size: 0.875rem; color: #475569; line-height: 1.6; max-width: 220px; }

.footer-col-title {
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 14px;
}

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

.footer-link { font-size: 0.875rem; color: #475569; transition: color var(--t); }
.footer-link:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 0.82rem; color: #334155; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .mockup-wrap { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 56px 0 64px; }
  .hero-sub { max-width: 100%; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mission-block { grid-template-columns: 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .nav-brand { flex: 1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .feature-detail { grid-template-columns: 1fr; gap: 32px; }
  .feature-detail.reverse .feature-detail-text { order: unset; }
  .feature-detail.reverse .feature-detail-vis  { order: unset; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section { padding: 56px 0; }
  .auth-card { padding: 32px 24px; margin: 0 16px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .mini-kpi-grid { grid-template-columns: 1fr; }
  .nav-brand-icon { width: 38px; height: 38px; }
  .nav-brand { font-size: 0.95rem; }
  .features-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; gap: 14px; }
  .hero-trust-item { font-size: 0.78rem; }
}

/* ── Hero Trust Row ──────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: #475569;
}

.hero-trust-item svg { color: #6366f1; flex-shrink: 0; }

/* ── Keyframe Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow  { animation: fadeUp 0.6s ease 0.10s both; }
  .hero h1       { animation: fadeUp 0.7s ease 0.25s both; }
  .hero-sub      { animation: fadeUp 0.7s ease 0.40s both; }
  .hero-actions  { animation: fadeUp 0.7s ease 0.55s both; }
  .hero-trust    { animation: fadeUp 0.6s ease 0.70s both; }
  .mockup-wrap   { animation: floatMockup 6s ease-in-out infinite; }
}

/* ── Scroll Reveal ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.from-left  { transform: translateX(-24px); }
.reveal.from-right { transform: translateX(24px); }
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Auth Split Layout (login / signup) ─────────────────── */
.auth-split {
  min-height: 100vh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-panel-left {
  background: linear-gradient(150deg, #0f172a 0%, #1e1b4b 55%, #312e81 100%);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 40% 60%, rgba(99,102,241,0.25) 0%, transparent 65%);
  pointer-events: none;
}

.auth-panel-left > * { position: relative; }

.auth-panel-brand {
  display: flex;
  align-items: center;
  gap: 0;
  font-weight: 700;
  font-size: 1.575rem;
  color: #fff;
  margin-bottom: 48px;
  text-decoration: none;
}

.auth-panel-brand-icon {
  width: 61px;
  height: 61px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin-right: -8px;
  margin-top: -5px;
}
.auth-panel-brand-icon img { transform: scale(1); transform-origin: center; }

.auth-panel-headline {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.auth-panel-sub {
  font-size: 0.925rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 360px;
}

.auth-panel-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-panel-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: #cbd5e1;
}

.auth-panel-features li::before {
  content: '';
  width: 20px;
  min-width: 20px;
  height: 20px;
  background: rgba(99,102,241,0.25);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.auth-panel-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 56px 40px;
  overflow-y: auto;
}

.auth-form-box {
  width: 100%;
  max-width: 380px;
}

.auth-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-form-sub {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 28px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { min-height: calc(100vh - var(--nav-h)); padding: 40px 24px; }
}

/* ── Entrance & Scroll Animations ─────────────────────────── */

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

@keyframes lp-slide-down {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Homepage hero — cascade each child */
.hero .hero-eyebrow { opacity: 0; animation: lp-fade-up 0.6s ease 0.08s both; }
.hero .display-1    { opacity: 0; animation: lp-fade-up 0.65s ease 0.18s both; }
.hero .hero-sub     { opacity: 0; animation: lp-fade-up 0.6s ease 0.30s both; }
.hero .hero-actions { opacity: 0; animation: lp-fade-up 0.6s ease 0.42s both; }
.hero .hero-trust   { opacity: 0; animation: lp-fade-up 0.55s ease 0.54s both; }

/* App mockup floats up */
.mockup-wrap {
  opacity: 0;
  animation: lp-fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

/* Inner page hero (Features, About) */
.page-hero .section-eyebrow { opacity: 0; animation: lp-fade-up 0.5s ease 0.08s both; }
.page-hero .display-1        { opacity: 0; animation: lp-fade-up 0.6s ease 0.18s both; }
.page-hero p                 { opacity: 0; animation: lp-fade-up 0.5s ease 0.28s both; }

/* Auth pages — left panel + right form */
.auth-panel-left  { opacity: 0; animation: lp-fade-up 0.55s ease 0.08s both; }
.auth-panel-right { opacity: 0; animation: lp-fade-up 0.55s ease 0.22s both; }

/* ── Scroll reveal base (driven by IntersectionObserver) ───── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.from-left  { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.visible    { opacity: 1; transform: none; }

/* ── Back to Top ─────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16,185,129,0.4);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease;
  pointer-events: none;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(16,185,129,0.5);
}
.back-to-top svg { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero .hero-eyebrow, .hero .display-1, .hero .hero-sub,
  .hero .hero-actions, .hero .hero-trust, .mockup-wrap,
  .page-hero .section-eyebrow, .page-hero .display-1, .page-hero p,
  .auth-panel-left, .auth-panel-right {
    animation: none;
    opacity: 1;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
}
