/* ============================================================
   FinTrack — Landing Page Styles
   Premium, modern, responsive
   ============================================================ */

/* ── LANDING WRAPPER ──────────────────────────────────────── */
.landing {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.landing-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.35s ease;
  background: transparent;
}

.landing-nav.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.04);
}

[data-theme="dark"] .landing-nav.scrolled {
  background: rgba(11,15,26,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.landing-nav .nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-nav .nav-brand .brand-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.4);
}

.landing-nav .nav-brand .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.landing-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-nav .btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
}

.landing-nav .btn-login:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.landing-nav .btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}

.landing-nav .btn-cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.45);
  color: #fff;
}

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 140px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge .badge-dot {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 10px;
}

.hero-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #6366F1, #8B5CF6, #A855F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0 auto 36px;
  max-width: 560px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6366F1, #7C3AED);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 6px 24px rgba(99,102,241,0.35);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.5);
  color: #fff;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--card-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: inherit;
}

.btn-hero-secondary:hover {
  background: var(--bg-secondary);
  transform: translateY(-1px);
  color: var(--text-primary);
}

/* Hero Stat Cards (floating) */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  min-width: 200px;
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.hero-stat-card .stat-ico {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.hero-stat-card .stat-ico.green  { background: rgba(16,185,129,0.12); color: #10B981; }
.hero-stat-card .stat-ico.purple { background: rgba(99,102,241,0.12); color: #6366F1; }
.hero-stat-card .stat-ico.orange { background: rgba(245,158,11,0.12); color: #F59E0B; }

.hero-stat-card .stat-lbl {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.hero-stat-card .stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* ── FEATURES SECTION ─────────────────────────────────────── */
.features-section {
  padding: 80px 24px;
  position: relative;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin: 0 0 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin: 0 0 48px;
}

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

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #8B5CF6);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA SECTION ──────────────────────────────────────────── */
.cta-section {
  padding: 80px 24px;
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  border-radius: 28px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(99,102,241,0.35) 0%, transparent 70%);
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.25) 0%, transparent 70%);
}

.cta-card .cta-content {
  position: relative;
  z-index: 2;
}

.cta-card h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
  line-height: 1.2;
}

.cta-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 440px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-card .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: #fff;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 6px 24px rgba(99,102,241,0.4);
}

.cta-card .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(99,102,241,0.55);
  color: #fff;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.landing-footer {
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.landing-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

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

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-section { padding: 120px 20px 60px; }

  .hero-title {
    font-size: 34px;
    letter-spacing: -0.8px;
  }

  .hero-desc {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
    padding: 13px 24px;
    font-size: 15px;
  }

  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-stat-card {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }

  .section-title {
    font-size: 26px;
  }

  .section-desc {
    font-size: 14px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .cta-card {
    padding: 40px 24px;
    border-radius: 20px;
  }

  .cta-card h2 {
    font-size: 24px;
  }

  .cta-card p {
    font-size: 14px;
  }

  .landing-nav .btn-login {
    padding: 8px 14px;
    font-size: 13px;
  }

  .landing-nav .btn-cta-nav {
    padding: 8px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-section { padding: 110px 16px 48px; }
}
