/* ========================================================================
   Finnova Landing Page — Premium dark theme with rich animations
   Inspired by Linear, Stripe, Mercury design patterns
   ======================================================================== */

:root {
  --fn-bg: #08090a;
  --fn-bg-elevated: #0f1011;
  --fn-card: #131418;
  --fn-card-border: rgba(255, 255, 255, 0.06);
  --fn-card-hover-border: rgba(124, 58, 237, 0.35);
  --fn-purple: #7c3aed;
  --fn-purple-dark: #6d28d9;
  --fn-purple-glow: rgba(124, 58, 237, 0.15);
  --fn-violet: #a78bfa;
  --fn-violet-dim: rgba(167, 139, 250, 0.8);
  --fn-indigo: #5e6ad2;
  --fn-amber: #fbbf24;
  --fn-emerald: #34d399;
  --fn-text: #f7f8f8;
  --fn-text-secondary: #8a8f98;
  --fn-text-dim: rgba(255, 255, 255, 0.3);
  --fn-shadow-purple: rgba(99, 48, 180, 0.15);
  --fn-radius-card: 1rem;
  --fn-radius-btn: 0.625rem;
  --fn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body.landing-body {
  font-family: var(--fn-font);
  margin: 0;
  background: var(--fn-bg);
  color: var(--fn-text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Scrollbar ===== */
body.landing-body::-webkit-scrollbar { width: 6px; }
body.landing-body::-webkit-scrollbar-track { background: var(--fn-bg); }
body.landing-body::-webkit-scrollbar-thumb {
  background: rgba(124, 58, 237, 0.25);
  border-radius: 3px;
}
body.landing-body::-webkit-scrollbar-thumb:hover { background: rgba(124, 58, 237, 0.45); }

/* ===== Animated Mesh Gradient Background ===== */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.landing-bg-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(56, 30, 114, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(30, 20, 60, 0.2) 0%, transparent 70%);
  animation: meshDrift 20s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% {
    background:
      radial-gradient(ellipse 80% 50% at 20% 80%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 20%, rgba(56, 30, 114, 0.15) 0%, transparent 55%),
      radial-gradient(ellipse 50% 50% at 50% 50%, rgba(30, 20, 60, 0.2) 0%, transparent 70%);
  }
  33% {
    background:
      radial-gradient(ellipse 70% 55% at 35% 75%, rgba(124, 58, 237, 0.14) 0%, transparent 60%),
      radial-gradient(ellipse 65% 45% at 70% 30%, rgba(94, 106, 210, 0.12) 0%, transparent 55%),
      radial-gradient(ellipse 45% 55% at 60% 45%, rgba(30, 20, 60, 0.18) 0%, transparent 70%);
  }
  66% {
    background:
      radial-gradient(ellipse 85% 45% at 25% 70%, rgba(109, 40, 217, 0.1) 0%, transparent 60%),
      radial-gradient(ellipse 55% 50% at 75% 25%, rgba(124, 58, 237, 0.16) 0%, transparent 55%),
      radial-gradient(ellipse 50% 40% at 40% 55%, rgba(56, 30, 114, 0.2) 0%, transparent 70%);
  }
}
.landing-bg-noise {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ===== Particle Canvas ===== */
.landing-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ===== Reveal animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Container ===== */
.landing-container {
  position: relative;
  z-index: 1;
}
.landing-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Glowing section separator ===== */
.section-divider {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 1px;
  position: relative;
}
.section-divider::after {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(124, 58, 237, 0.3) 25%,
    rgba(167, 139, 250, 0.4) 50%,
    rgba(124, 58, 237, 0.3) 75%,
    transparent 100%
  );
}

/* ===== Navbar ===== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.875rem 1.5rem;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 0.8px solid transparent;
}
.landing-nav.scrolled {
  background: rgba(8, 9, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}
.landing-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}
.landing-nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.25);
}
.landing-nav-name {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--fn-text);
  letter-spacing: -0.02em;
}
.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.landing-nav-links a {
  color: var(--fn-text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.landing-nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--fn-violet);
  transition: width 0.3s;
}
.landing-nav-links a:not(.nav-cta):hover::after { width: 100%; }
.landing-nav-links a:hover { color: var(--fn-text); }

/* Navbar CTA */
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4375rem 1.125rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  border-radius: var(--fn-radius-btn);
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.15s;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.3),
    0 2px 8px rgba(109, 40, 217, 0.25);
}
.nav-cta:hover {
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.5),
    0 4px 20px rgba(109, 40, 217, 0.4);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.landing-nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--fn-text-secondary);
}
.landing-nav-hamburger svg { width: 22px; height: 22px; }

/* Mobile menu */
.landing-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(8, 9, 10, 0.97);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.landing-mobile-menu.open { display: flex; }
.landing-mobile-menu a {
  color: var(--fn-text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 600;
}
.landing-mobile-close {
  position: absolute;
  top: 1.125rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--fn-text-secondary);
  cursor: pointer;
}
.landing-mobile-close svg { width: 26px; height: 26px; }

@media (max-width: 768px) {
  .landing-nav-links { display: none; }
  .landing-nav-hamburger { display: block; }
}

/* ===== Hero ===== */
.landing-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  padding-bottom: 4rem;
}
.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(124, 58, 237, 0.08);
  border: 0.8px solid rgba(124, 58, 237, 0.2);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fn-violet);
  margin-bottom: 1.75rem;
  letter-spacing: 0.02em;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fn-purple);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(124, 58, 237, 0.6); }
  50% { opacity: 0.5; box-shadow: 0 0 4px rgba(124, 58, 237, 0.3); }
}

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.035em;
}
.hero-title .text-white { color: var(--fn-text); }
.hero-title .text-muted { color: var(--fn-text-secondary); }
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-violet), var(--fn-amber));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-subtitle {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fn-text-secondary);
  margin: 0 0 2.25rem 0;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Trusted-by strip in hero */
.hero-trusted {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-trusted-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fn-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hero-trusted-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  opacity: 0.35;
}
.hero-trusted-logos span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--fn-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  border: none;
  border-radius: var(--fn-radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s, transform 0.15s;
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.2),
    0 4px 16px rgba(109, 40, 217, 0.3);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
  background-size: 250% 250%;
  animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: -50% 0; }
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.4),
    0 8px 30px rgba(109, 40, 217, 0.45);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary svg { position: relative; z-index: 1; }
.btn-primary span { position: relative; z-index: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fn-text-secondary);
  background: rgba(255,255,255,0.03);
  border: 0.8px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fn-radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.15s;
}
.btn-outline:hover {
  border-color: rgba(167, 139, 250, 0.3);
  color: var(--fn-text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

/* ===== Dashboard Mockup ===== */
.hero-mockup-wrapper {
  position: relative;
}
.hero-mockup-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-mockup {
  position: relative;
  z-index: 1;
  background: var(--fn-card);
  border: 0.8px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 25px 50px -12px rgba(0,0,0,0.5),
    0 0 100px -40px rgba(124, 58, 237, 0.2);
  aspect-ratio: 16/11;
}
/* Mouse-following glow on mockup */
.hero-mockup::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 10;
  transition: left 0.3s ease, top 0.3s ease;
}
.mockup-topbar {
  height: 32px;
  background: rgba(255,255,255,0.02);
  border-bottom: 0.8px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.mockup-dot-red, .mockup-dot-yellow, .mockup-dot-green {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.mockup-dot-red { background: #ef4444; opacity: 0.6; }
.mockup-dot-yellow { background: #f59e0b; opacity: 0.6; }
.mockup-dot-green { background: #22c55e; opacity: 0.6; }
.mockup-topbar-spacer { flex: 1; }
.mockup-topbar-pills {
  display: flex;
  gap: 4px;
}
.mockup-topbar-pill {
  width: 40px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.06);
}

.mockup-body {
  display: flex;
  height: calc(100% - 32px);
}
.mockup-sidebar {
  width: 44px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.015);
  border-right: 0.8px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  gap: 8px;
}
.mockup-sidebar-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}
.mockup-sidebar-icon.active {
  background: rgba(124, 58, 237, 0.25);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.2);
}
.mockup-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mockup-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-header-title {
  height: 10px;
  width: 90px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
}
.mockup-header-badge {
  height: 10px;
  width: 50px;
  background: rgba(52, 211, 153, 0.2);
  border-radius: 3px;
}
.mockup-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mockup-metric-card {
  padding: 10px;
  background: rgba(255,255,255,0.025);
  border: 0.8px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
}
.mockup-metric-label {
  height: 5px;
  width: 55%;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  margin-bottom: 6px;
}
.mockup-metric-value {
  height: 12px;
  width: 45%;
  border-radius: 3px;
}
.mockup-metric-card:nth-child(1) .mockup-metric-value { background: rgba(124, 58, 237, 0.35); }
.mockup-metric-card:nth-child(2) .mockup-metric-value { background: rgba(52, 211, 153, 0.3); width: 55%; }
.mockup-metric-card:nth-child(3) .mockup-metric-value { background: rgba(251, 191, 36, 0.3); width: 38%; }

/* Animated pulse on metric values */
.mockup-metric-card:nth-child(1) .mockup-metric-value { animation: metricPulse 3s ease-in-out infinite; }
.mockup-metric-card:nth-child(2) .mockup-metric-value { animation: metricPulse 3s ease-in-out 1s infinite; }
.mockup-metric-card:nth-child(3) .mockup-metric-value { animation: metricPulse 3s ease-in-out 2s infinite; }
@keyframes metricPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.mockup-chart {
  flex: 1;
  background: rgba(255,255,255,0.015);
  border: 0.8px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  min-height: 0;
}
.mockup-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transform-origin: bottom;
  animation: barGrow 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
  opacity: 0;
}
.mockup-bar:nth-child(odd) { background: linear-gradient(to top, var(--fn-purple), rgba(124, 58, 237, 0.4)); }
.mockup-bar:nth-child(even) { background: linear-gradient(to top, rgba(167, 139, 250, 0.5), rgba(167, 139, 250, 0.15)); }
@keyframes barGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.8; }
}
.mockup-bar:nth-child(1) { animation-delay: 0.3s; }
.mockup-bar:nth-child(2) { animation-delay: 0.4s; }
.mockup-bar:nth-child(3) { animation-delay: 0.5s; }
.mockup-bar:nth-child(4) { animation-delay: 0.6s; }
.mockup-bar:nth-child(5) { animation-delay: 0.7s; }
.mockup-bar:nth-child(6) { animation-delay: 0.8s; }
.mockup-bar:nth-child(7) { animation-delay: 0.9s; }
.mockup-bar:nth-child(8) { animation-delay: 1.0s; }
.mockup-bar:nth-child(9) { animation-delay: 1.1s; }
.mockup-bar:nth-child(10) { animation-delay: 1.2s; }
.mockup-bar:nth-child(11) { animation-delay: 1.3s; }
.mockup-bar:nth-child(12) { animation-delay: 1.4s; }

/* ===== Trusted By / Logo Marquee ===== */
.landing-logos {
  padding: 3rem 0 1rem;
  overflow: hidden;
  position: relative;
}
.landing-logos::before,
.landing-logos::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.landing-logos::before {
  left: 0;
  background: linear-gradient(90deg, var(--fn-bg), transparent);
}
.landing-logos::after {
  right: 0;
  background: linear-gradient(270deg, var(--fn-bg), transparent);
}
.logos-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fn-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.logos-set {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 0 1.5rem;
}
.logos-set span {
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.logos-track:hover .logos-set span {
  color: rgba(255, 255, 255, 0.35);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Features ===== */
.landing-features {
  padding: 6rem 0;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.875rem;
  background: rgba(124, 58, 237, 0.06);
  border: 0.8px solid rgba(124, 58, 237, 0.15);
  border-radius: 2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--fn-violet);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.section-title .text-white { color: var(--fn-text); }
.section-title .text-muted { color: var(--fn-text-secondary); }
.section-subtitle {
  font-size: 1rem;
  color: var(--fn-text-secondary);
  margin: 0 0 3.5rem 0;
  max-width: 540px;
  line-height: 1.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 0.8px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--fn-radius-card);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1),
              border-color 0.35s,
              box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
/* Mouse-following glow */
.feature-card::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, left 0.15s, top 0.15s;
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow:
    0 0 0 1px rgba(124, 58, 237, 0.08),
    0 8px 40px rgba(0, 0, 0, 0.2);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 58, 237, 0.08);
  border: 0.8px solid rgba(124, 58, 237, 0.15);
  border-radius: 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  color: var(--fn-violet);
  position: relative;
}
.feature-icon svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fn-text);
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--fn-text-secondary);
  margin: 0;
}

/* ===== How It Works ===== */
.landing-how {
  padding: 6rem 0;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3.5rem;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 28px);
  right: calc(16.66% + 28px);
  height: 2px;
  background: linear-gradient(90deg,
    var(--fn-purple),
    var(--fn-violet),
    var(--fn-purple)
  );
  opacity: 0.25;
}
.how-step {
  text-align: center;
  position: relative;
}
.how-step-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(124, 58, 237, 0.1),
    0 4px 20px rgba(109, 40, 217, 0.3);
  position: relative;
  z-index: 1;
}
.how-step-num svg { width: 28px; height: 28px; }
/* Pulsing ring */
.how-step-num::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(124, 58, 237, 0.25);
  animation: ringPulse 3s ease-in-out infinite;
}
.how-step:nth-child(2) .how-step-num::after { animation-delay: 1s; }
.how-step:nth-child(3) .how-step-num::after { animation-delay: 2s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0; }
}
.how-step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--fn-text);
  margin: 0 0 0.5rem 0;
}
.how-step-desc {
  font-size: 0.8125rem;
  color: var(--fn-text-secondary);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 240px;
}

/* ===== Metrics ===== */
.landing-metrics {
  padding: 5rem 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.metric-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.015);
  border: 0.8px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--fn-radius-card);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.metric-item:hover {
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.05);
}
.metric-value {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--fn-text);
  margin-bottom: 0.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric-value .metric-suffix {
  color: var(--fn-violet);
}
.metric-label {
  font-size: 0.8125rem;
  color: var(--fn-text-secondary);
}

/* ===== Testimonials ===== */
.landing-testimonials {
  padding: 6rem 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: rgba(255,255,255,0.02);
  border: 0.8px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--fn-radius-card);
  padding: 1.75rem;
  transition: transform 0.35s cubic-bezier(0.215, 0.61, 0.355, 1), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
/* Mouse-following glow on testimonials */
.testimonial-card::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
  left: var(--mouse-x, 50%);
  top: var(--mouse-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s, left 0.15s, top 0.15s;
}
.testimonial-card:hover::before { opacity: 1; }
.testimonial-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.testimonial-stars {
  display: flex;
  gap: 0.1875rem;
  margin-bottom: 1rem;
}
.testimonial-stars svg {
  width: 14px;
  height: 14px;
  fill: var(--fn-amber);
}
.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin: 0 0 1.25rem 0;
  position: relative;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  position: relative;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.2);
}
.testimonial-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fn-text);
}
.testimonial-role {
  font-size: 0.6875rem;
  color: var(--fn-text-dim);
}

/* ===== CTA Section ===== */
.landing-cta {
  padding: 6rem 0;
  text-align: center;
}
.cta-box {
  position: relative;
  overflow: hidden;
  background: var(--fn-bg-elevated);
  border: 0.8px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--fn-radius-card);
  padding: 5rem 2rem;
}
/* Animated gradient behind CTA */
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 100%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  animation: ctaGlow 6s ease-in-out infinite alternate;
}
@keyframes ctaGlow {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}
.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fn-text);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.03em;
  position: relative;
}
.cta-subtitle {
  font-size: 1rem;
  color: var(--fn-text-secondary);
  margin: 0 0 2rem 0;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  position: relative;
}
.cta-box .btn-primary { position: relative; }

/* ===== Footer ===== */
.landing-footer {
  border-top: 0.8px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
}
.landing-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-logo {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, var(--fn-purple), var(--fn-purple-dark));
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}
.footer-name {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--fn-text-secondary);
}
.footer-copyright {
  font-size: 0.75rem;
  color: var(--fn-text-dim);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  color: var(--fn-text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fn-violet); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.75rem; }
  .section-title { font-size: 2rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .landing-hero { min-height: auto; padding-top: 6rem; padding-bottom: 3rem; }
  .landing-hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-title { font-size: 2.25rem; }
  .hero-subtitle { font-size: 0.9375rem; }
  .hero-mockup-wrapper { max-width: 440px; margin: 0 auto; }
  .hero-trusted { flex-direction: column; gap: 0.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .how-steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .how-steps::before { display: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .cta-title { font-size: 1.75rem; }
  .cta-box { padding: 3.5rem 1.5rem; }
  .landing-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.875rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-value { font-size: 2.25rem; }
  .landing-particles { display: none; }
}
