/* ============================================
   My Financial Inventory — Premium SaaS Landing
   Pure CSS3. Mobile-first. No frameworks.
   ============================================ */

:root {
  --bg-primary: #0f172a;
  --bg-secondary: #111827;
  --accent-blue: #2563eb;
  --accent-blue-light: #3b82f6;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --card-white: #ffffff;
  --surface-light: #f8fafc;
  --ink: #0f172a;
  --ink-muted: #64748b;
  --border-light: #e2e8f0;
  --danger: #ef4444;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

svg {
  width: 1.25em;
  height: 1.25em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

section {
  scroll-margin-top: var(--nav-height);
}

::selection {
  background: var(--accent-blue);
  color: #fff;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-light {
  background: var(--surface-light);
  color: var(--ink);
}

.section-dark {
  background: var(--bg-secondary);
  color: var(--text-light);
}

.section-header {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 14px 0 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.section-dark .section-subtitle,
.section-security .section-subtitle,
.section-cta .section-subtitle {
  color: var(--text-muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-emerald-light);
  padding: 6px 14px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
}

.eyebrow-blue {
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

.eyebrow-red {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(2, 6, 23, 0.4);
}

.nav-inner {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-emerald));
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-light);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-height) + 48px) 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    linear-gradient(180deg, #0b1120 0%, var(--bg-primary) 55%, #0d1526 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-glow-blue {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -100px;
  background: rgba(37, 99, 235, 0.35);
  animation: floatGlow 12s ease-in-out infinite;
}

.hero-glow-emerald {
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -120px;
  background: rgba(16, 185, 129, 0.25);
  animation: floatGlow 14s ease-in-out infinite reverse;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.08); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: 32px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.text-gradient {
  background: linear-gradient(92deg, var(--accent-blue-light) 0%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 44px;
}

/* ---------- Signup Form ---------- */
.signup-form {
  max-width: 560px;
  margin: 0 auto;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.signup-row:focus-within {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.45), 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.signup-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-light);
  background: transparent;
  border: none;
  outline: none;
}

.signup-input::placeholder {
  color: #94a3b8;
}

.form-message {
  min-height: 24px;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.error {
  color: #fca5a5;
}

.form-message.success {
  color: var(--accent-emerald-light);
}

/* ---------- Trust Badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 44px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.trust-badge svg {
  color: var(--accent-emerald-light);
  width: 17px;
  height: 17px;
}

.trust-badge:hover {
  color: var(--text-light);
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(203, 213, 225, 0.3);
  border-radius: 14px;
  display: none;
}

.hero-scroll-hint span {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--text-muted);
  animation: scrollHint 1.8s infinite;
}

@keyframes scrollHint {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Card Grids ---------- */
.card-grid {
  display: grid;
  gap: 24px;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 20px 0 10px;
}

.card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* Problem cards (light section) */
.problem-card {
  background: var(--card-white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.problem-card p {
  color: var(--ink-muted);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 68, 68, 0.25);
}

.icon-red {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
}

/* Solution glass cards (dark section) */
.glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.glass-card p {
  color: var(--text-muted);
}

.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.5);
}

.icon-blue {
  color: var(--accent-blue-light);
  background: rgba(37, 99, 235, 0.14);
}

.icon-emerald {
  color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.14);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-top: 12px;
}

.timeline-line {
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-light);
  border-radius: 2px;
}

.timeline-progress {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 2px;
  transition: height 1.6s var(--ease-out);
}

.timeline-step {
  position: relative;
  padding-left: 72px;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), #1e40af);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
  border: 4px solid var(--surface-light);
  z-index: 1;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.timeline-step:hover .step-number {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

.step-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.09);
  margin-bottom: 16px;
}

.step-icon svg {
  width: 23px;
  height: 23px;
}

.timeline-step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
  max-width: 380px;
}

/* ---------- Security ---------- */
.section-security {
  background: var(--bg-primary);
  color: var(--text-light);
  overflow: hidden;
}

.security-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.07) 0%, transparent 60%);
  pointer-events: none;
}

.security-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  position: relative;
}

.security-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), transparent 40%, transparent 60%, rgba(16, 185, 129, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.security-card p {
  color: var(--text-muted);
}

.security-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.12), 0 24px 50px rgba(2, 6, 23, 0.55);
}

.security-card:hover::before {
  opacity: 1;
}

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 72px;
  padding: 44px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(92deg, var(--accent-blue-light), var(--accent-emerald-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */
.pricing-card {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-white);
  color: var(--ink);
  border-radius: 28px;
  padding: 64px 44px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.pricing-card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
  pointer-events: none;
}

.pricing-ribbon {
  position: absolute;
  top: 22px;
  right: -36px;
  transform: rotate(38deg);
  background: linear-gradient(90deg, var(--accent-emerald), #059669);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 44px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.pricing-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.09);
  margin-bottom: 24px;
}

.pricing-icon svg {
  width: 36px;
  height: 36px;
}

.pricing-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.pricing-text {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin-bottom: 32px;
}

/* ---------- FAQ ---------- */
.section-faq {
  background: #fff;
  color: var(--ink);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.active {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  padding: 22px 26px;
  transition: color 0.25s;
}

.faq-question:hover {
  color: var(--accent-blue);
}

.faq-chevron {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out), background-color 0.3s, color 0.3s;
}

.faq-chevron svg {
  width: 18px;
  height: 18px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  background: var(--accent-blue);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-out);
}

.faq-answer p {
  padding: 0 26px 24px;
  color: var(--ink-muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.section-cta {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  color: var(--text-light);
  overflow: hidden;
  text-align: center;
  padding: 120px 0;
}

.cta-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.18), transparent 65%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin-bottom: 20px;
}

.cta-subtitle {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-bottom: 44px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 56px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 300px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.footer-links a {
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
  text-align: center;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero .fade-in:nth-child(1) { transition-delay: 0.05s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.15s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.25s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.35s; }
.hero .fade-in:nth-child(5) { transition-delay: 0.45s; }

.card-grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.card-grid .fade-in:nth-child(3) { transition-delay: 0.2s; }
.card-grid .fade-in:nth-child(4) { transition-delay: 0.3s; }
.card-grid .fade-in:nth-child(5) { transition-delay: 0.15s; }
.card-grid .fade-in:nth-child(6) { transition-delay: 0.25s; }

.timeline .fade-in:nth-of-type(2) { transition-delay: 0.12s; }
.timeline .fade-in:nth-of-type(3) { transition-delay: 0.24s; }
.timeline .fade-in:nth-of-type(4) { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-in {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Responsive — Tablet (≥640px)
   ============================================ */
@media (min-width: 640px) {
  .signup-row {
    flex-direction: row;
    align-items: center;
    border-radius: 999px;
    padding: 8px 8px 8px 10px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-scroll-hint {
    display: block;
  }
}

/* ============================================
   Responsive — Desktop (≥1024px)
   ============================================ */
@media (min-width: 1024px) {
  .section {
    padding: 120px 0;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Horizontal timeline */
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 0;
  }

  .timeline-line {
    left: 0;
    right: 0;
    top: 27px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .timeline-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
    transition: width 1.6s var(--ease-out);
  }

  .timeline-step {
    padding-left: 0;
    padding-top: 84px;
  }

  .step-number {
    top: 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   Mobile Navigation (≤860px)
   ============================================ */
@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    background: rgba(15, 23, 42, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.5);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-radius: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    margin: 12px 0 0;
    justify-content: center;
  }

  .brand-text {
    font-size: 0.95rem;
  }
}
