/* ==========================================================================
   Stacking Capital Blueprint — Premium Landing Page
   Design System: Dark fintech aesthetic (Linear × luxury finance)
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #080d19;
  --bg-card: #111a2e;
  --bg-card-hover: #162038;
  --accent: #00d68f;
  --accent-dim: rgba(0, 214, 143, 0.15);
  --accent-glow: rgba(0, 214, 143, 0.25);
  --accent-strong: rgba(0, 214, 143, 0.4);
  --text-primary: #e8ecf4;
  --text-secondary: rgba(232, 236, 244, 0.6);
  --text-muted: rgba(232, 236, 244, 0.35);
  --border-glow: rgba(0, 214, 143, 0.15);
  --border-subtle: rgba(232, 236, 244, 0.08);
  --red-accent: #ff4d6a;
  --red-dim: rgba(255, 77, 106, 0.12);

  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-med: 350ms;
  --duration-slow: 600ms;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--sp-6);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.7;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }
.reveal-delay-7 { transition-delay: 560ms; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--duration-med) var(--ease-out),
              border-color var(--duration-med) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(8, 13, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 214, 143, 0.3);
  background: #00e89b;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary-lg {
  font-size: 16px;
  padding: 14px 32px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Gradient mesh background */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.15), transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 140, 255, 0.08), transparent 70%);
  bottom: 0;
  left: -10%;
  animation-delay: -7s;
}

.hero-orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 214, 143, 0.08), transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(15px, 15px) scale(1.02); }
}

/* Dot grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(232, 236, 244, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Left */
.hero-content {
  padding: var(--sp-12) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--accent-dim);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--sp-8);
  position: relative;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(0, 214, 143, 0); }
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: var(--sp-6);
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: var(--sp-10);
}

.hero-cta {
  margin-bottom: var(--sp-12);
}

/* Stats Bar */
.stats-bar {
  display: flex;
  gap: var(--sp-10);
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* Hero Right — Animated Feed */
.hero-feed {
  position: relative;
  height: 520px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.feed-track {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  animation: feedScroll 35s linear infinite;
}

.feed-track:hover {
  animation-play-state: paused;
}

@keyframes feedScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-width: 320px;
  flex-shrink: 0;
  transition: border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.feed-card:hover {
  border-color: var(--border-glow);
  transform: scale(1.02);
}

.feed-card:nth-child(odd) {
  transform: translateX(10px);
}

.feed-card:nth-child(3n) {
  transform: translateX(-8px) rotate(-0.5deg);
}

.feed-card:nth-child(3n):hover {
  transform: translateX(-8px) rotate(-0.5deg) scale(1.02);
}

.feed-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dim);
  flex-shrink: 0;
}

.feed-card-info {
  flex: 1;
  min-width: 0;
}

.feed-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 1px;
}

.feed-card-role {
  font-size: 12px;
  color: var(--text-muted);
}

.feed-card-amount {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.feed-card-metrics {
  display: flex;
  gap: 3px;
  margin-top: 4px;
}

.feed-card-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
}

.feed-card-dot.active {
  opacity: 1;
}

/* Funded Notification Toast */
.toast-container {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  pointer-events: none;
}

.funded-toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(17, 26, 46, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(16px) scale(0.95);
  transition: opacity 400ms var(--ease-out),
              transform 400ms var(--ease-out);
  pointer-events: auto;
}

.funded-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-check svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.toast-text {
  font-size: 13px;
  line-height: 1.4;
}

.toast-name {
  font-weight: 600;
}

.toast-amount {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   SOCIAL PROOF / RESULTS
   ========================================================================== */

.results {
  background: var(--bg-primary);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.result-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(0, 214, 143, 0.08);
}

.result-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-8);
  border-color: var(--border-glow);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 214, 143, 0.03));
}

.result-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.result-card.featured .result-card-header {
  margin-bottom: 0;
}

.result-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dim);
}

.result-card.featured .result-avatar {
  width: 72px;
  height: 72px;
}

.result-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.result-role {
  font-size: 13px;
  color: var(--text-secondary);
}

.result-fico {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.result-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.result-card.featured .result-amount {
  font-size: 36px;
  text-align: right;
}

.result-timeline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}

.result-card.featured .result-timeline {
  text-align: right;
}

.result-banks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.result-card.featured .result-banks {
  justify-content: flex-end;
}

.bank-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(232, 236, 244, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.result-card.featured .result-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.result-card.featured .result-funding {
  text-align: right;
}

/* ==========================================================================
   PROBLEM / SOLUTION
   ========================================================================== */

.prob-sol {
  background: var(--bg-primary);
}

.prob-sol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  margin-top: var(--sp-12);
}

.prob-sol-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
}

.prob-sol-card--problem {
  border-color: rgba(255, 77, 106, 0.12);
}

.prob-sol-card--solution {
  border-color: var(--border-glow);
}

.prob-sol-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-8);
}

.prob-sol-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.prob-sol-item:last-child {
  margin-bottom: 0;
}

.prob-sol-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prob-sol-icon--red {
  background: var(--red-dim);
  color: var(--red-accent);
}

.prob-sol-icon--green {
  background: var(--accent-dim);
  color: var(--accent);
}

.prob-sol-icon svg {
  width: 16px;
  height: 16px;
}

.prob-sol-text h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.prob-sol-text p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how-it-works {
  background: var(--bg-primary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--sp-10);
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 8px 40px rgba(0, 214, 143, 0.06);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: var(--sp-6);
  letter-spacing: -2px;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.comparison {
  background: var(--bg-primary);
}

.comparison-table {
  margin-top: var(--sp-12);
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.comparison-table thead th {
  background: var(--bg-card);
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table thead th:first-child {
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
}

.comparison-table thead th.highlight {
  color: var(--accent);
  background: rgba(0, 214, 143, 0.04);
  border-top: 2px solid var(--accent);
}

.comparison-table tbody td {
  padding: var(--sp-4) var(--sp-6);
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 13px;
}

.comparison-table tbody td.highlight {
  background: rgba(0, 214, 143, 0.04);
  color: var(--text-primary);
  font-weight: 500;
}

.check-icon {
  color: var(--accent);
}

.x-icon {
  color: var(--red-accent);
}

/* ==========================================================================
   LEAD CAPTURE FORM
   ========================================================================== */

.lead-capture {
  background: var(--bg-primary);
}

.form-card {
  max-width: 640px;
  margin: var(--sp-12) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--sp-12);
  box-shadow: 0 0 80px rgba(0, 214, 143, 0.05);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-label .optional {
  opacity: 0.5;
  font-weight: 400;
}

.form-input {
  background: rgba(232, 236, 244, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 214, 143, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input.error {
  border-color: var(--red-accent);
  box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.1);
}

.form-submit-wrap {
  grid-column: 1 / -1;
  margin-top: var(--sp-4);
}

.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 214, 143, 0.3);
  background: #00e89b;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit.loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-submit .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(8, 13, 25, 0.3);
  border-top-color: var(--bg-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.btn-submit.loading .spinner {
  display: block;
}

.btn-submit.loading .btn-text {
  opacity: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success State */
.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-10) 0;
}

.form-success.show {
  display: block;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-6);
  animation: successPop 0.5s var(--ease-out);
}

@keyframes successPop {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.form-success-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--sp-3);
}

.form-success p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ==========================================================================
   GUARANTEE SECTION
   ========================================================================== */

.guarantee {
  background: var(--bg-primary);
}

.guarantee-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: var(--sp-12) var(--sp-16);
  text-align: center;
  box-shadow: 0 0 80px rgba(0, 214, 143, 0.04);
}

.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.guarantee-badge svg {
  width: 20px;
  height: 20px;
}

.guarantee-card h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: var(--sp-6);
  line-height: 1.2;
}

.guarantee-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ==========================================================================
   FINAL CTA
   ========================================================================== */

.final-cta {
  background: var(--bg-primary);
  text-align: center;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: var(--sp-8);
  letter-spacing: -1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-10) 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.footer-brand svg {
  width: 28px;
  height: 28px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hero-feed {
    height: 350px;
    max-width: 400px;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--sp-10));
    padding-bottom: var(--sp-10);
  }

  .prob-sol-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .result-card.featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .result-card.featured .result-card-header {
    justify-content: center;
    margin-bottom: var(--sp-4);
  }

  .result-card.featured .result-funding {
    text-align: center;
  }

  .result-card.featured .result-banks {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--sp-16) 0;
  }

  .container {
    padding: 0 var(--sp-5);
  }

  .hero-title {
    font-size: clamp(30px, 8vw, 40px);
    letter-spacing: -0.5px;
  }

  .stats-bar {
    gap: var(--sp-6);
  }

  .stat-value {
    font-size: 18px;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .form-card {
    padding: var(--sp-8);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .guarantee-card {
    padding: var(--sp-8);
  }

  .footer .container {
    flex-direction: column;
    gap: var(--sp-4);
    text-align: center;
  }

  .toast-container {
    right: var(--sp-4);
    bottom: var(--sp-4);
    left: var(--sp-4);
  }

  .funded-toast {
    font-size: 12px;
  }

  .nav-brand-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-feed {
    max-width: 100%;
  }

  .feed-card {
    min-width: 260px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 5px 12px;
  }

  .result-amount {
    font-size: 24px;
  }
}

/* ==========================================================================
   CASE STUDY CAROUSEL — Upgraded Social Proof
   ========================================================================== */

.cs-carousel {
  margin-top: var(--sp-12);
  position: relative;
}

.cs-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.cs-carousel-track {
  display: flex;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.cs-card {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 var(--sp-2);
}

.cs-card-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--sp-10) var(--sp-10) var(--sp-8);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.cs-card-inner:hover {
  border-color: var(--border-glow);
  box-shadow: 0 8px 48px rgba(0, 214, 143, 0.06);
}

.cs-card--featured .cs-card-inner {
  border-color: var(--border-glow);
  background: linear-gradient(135deg, var(--bg-card), rgba(0, 214, 143, 0.03));
  box-shadow: 0 0 60px rgba(0, 214, 143, 0.04);
}

/* Card Header */
.cs-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--border-subtle);
}

.cs-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-dim);
  flex-shrink: 0;
}

.cs-card--featured .cs-avatar {
  width: 64px;
  height: 64px;
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 214, 143, 0.15);
}

.cs-header-info {
  flex: 1;
  min-width: 0;
}

.cs-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.cs-role {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.cs-fico-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(232, 236, 244, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-4);
  flex-shrink: 0;
}

.cs-fico-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.cs-fico-score {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

/* Timeline */
.cs-timeline {
  position: relative;
  padding-left: var(--sp-8);
}

.cs-timeline-line {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(255, 77, 106, 0.3) 0%,
    rgba(255, 77, 106, 0.1) 20%,
    rgba(100, 140, 220, 0.2) 40%,
    rgba(100, 140, 220, 0.1) 60%,
    rgba(0, 214, 143, 0.3) 80%,
    rgba(0, 214, 143, 0.5) 100%
  );
  border-radius: 2px;
}

.cs-phase {
  position: relative;
  display: flex;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.cs-phase:last-child {
  margin-bottom: 0;
}

.cs-phase-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-left: calc(-1 * var(--sp-8));
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.cs-phase-dot--red {
  background: rgba(255, 77, 106, 0.2);
  border: 2px solid var(--red-accent);
  box-shadow: 0 0 8px rgba(255, 77, 106, 0.15);
}

.cs-phase-dot--blue {
  background: rgba(100, 140, 220, 0.15);
  border: 2px solid rgba(100, 140, 220, 0.6);
  box-shadow: 0 0 8px rgba(100, 140, 220, 0.1);
}

.cs-phase-dot--green {
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(0, 214, 143, 0.2);
}

.cs-phase-content {
  flex: 1;
  min-width: 0;
}

.cs-phase-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}

.cs-phase--before .cs-phase-label {
  color: var(--red-accent);
}

.cs-phase--strategy .cs-phase-label {
  color: rgba(100, 140, 220, 0.8);
}

.cs-phase--result .cs-phase-label {
  color: var(--accent);
}

.cs-phase--before {
  padding: var(--sp-4);
  padding-left: 0;
  margin-left: calc(-1 * var(--sp-1));
  background: linear-gradient(90deg, rgba(255, 77, 106, 0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-phase--strategy {
  padding: var(--sp-4);
  padding-left: 0;
  margin-left: calc(-1 * var(--sp-1));
  background: linear-gradient(90deg, rgba(100, 140, 220, 0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-phase--result {
  padding: var(--sp-4);
  padding-left: 0;
  margin-left: calc(-1 * var(--sp-1));
  background: linear-gradient(90deg, rgba(0, 214, 143, 0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cs-phase p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.cs-strategy-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.cs-strategy-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: var(--sp-5);
  position: relative;
}

.cs-strategy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 140, 220, 0.4);
}

/* Result Block */
.cs-result-block {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-6);
}

.cs-funded-amount {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-shadow: 0 0 30px rgba(0, 214, 143, 0.2);
}

.cs-card--featured .cs-funded-amount {
  font-size: 38px;
}

.cs-funded-timeline {
  font-size: 14px;
  color: var(--text-secondary);
}

.cs-funded-banks {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-1);
}

/* Carousel Controls */
.cs-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.cs-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
}

.cs-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 214, 143, 0.12);
}

.cs-arrow svg {
  width: 20px;
  height: 20px;
}

.cs-dots {
  display: flex;
  gap: var(--sp-2);
}

.cs-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(232, 236, 244, 0.12);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.cs-dot:hover {
  background: rgba(232, 236, 244, 0.25);
}

.cs-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 214, 143, 0.3);
  width: 28px;
  border-radius: var(--radius-full);
}

/* View More button — hidden on desktop, shown on mobile */
.cs-view-more-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  width: 100%;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.cs-view-more-mobile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cs-view-more-mobile svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.cs-view-more-mobile.expanded svg {
  transform: rotate(180deg);
}

/* Carousel Responsive — Tablet */
@media (max-width: 900px) {
  .cs-card-inner {
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
  }

  .cs-avatar {
    width: 44px;
    height: 44px;
  }

  .cs-card--featured .cs-avatar {
    width: 48px;
    height: 48px;
  }

  .cs-name {
    font-size: 16px;
  }

  .cs-funded-amount {
    font-size: 26px;
  }

  .cs-card--featured .cs-funded-amount {
    font-size: 28px;
  }

  .cs-timeline {
    padding-left: var(--sp-6);
  }

  .cs-phase-dot {
    margin-left: calc(-1 * var(--sp-6));
    width: 14px;
    height: 14px;
  }

  .cs-timeline-line {
    left: 6px;
  }

  .cs-fico-score {
    font-size: 17px;
  }

  .cs-arrow {
    width: 40px;
    height: 40px;
  }

  .cs-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Carousel Responsive — Mobile: Stack cards vertically */
@media (max-width: 768px) {
  .cs-carousel-viewport {
    overflow: visible;
    border-radius: 0;
  }

  .cs-carousel-track {
    flex-direction: column;
    transform: none !important;
    gap: var(--sp-5);
  }

  .cs-card {
    min-width: 100%;
    padding: 0;
  }

  .cs-card-inner {
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    border-radius: var(--radius-lg);
  }

  .cs-card--featured .cs-card-inner {
    border-radius: var(--radius-lg);
  }

  /* Collapse all cards except first 3, with expand button */
  .cs-card:nth-child(n+4) {
    display: none;
  }

  .cs-card.cs-card--show-mobile {
    display: block;
  }

  /* Hide carousel controls on mobile — replaced by show more */
  .cs-carousel-controls {
    display: none;
  }

  /* Show the mobile "View More" button */
  .cs-view-more-mobile {
    display: flex;
  }

  .cs-avatar {
    width: 40px;
    height: 40px;
  }

  .cs-card--featured .cs-avatar {
    width: 44px;
    height: 44px;
  }

  .cs-card-header {
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-4);
  }

  .cs-name {
    font-size: 15px;
  }

  .cs-role {
    font-size: 12px;
  }

  .cs-fico-badge {
    padding: var(--sp-1) var(--sp-3);
  }

  .cs-fico-label {
    font-size: 9px;
  }

  .cs-fico-score {
    font-size: 16px;
  }

  .cs-timeline {
    padding-left: var(--sp-6);
  }

  .cs-phase-dot {
    margin-left: calc(-1 * var(--sp-6));
    width: 12px;
    height: 12px;
  }

  .cs-timeline-line {
    left: 5px;
  }

  .cs-phase {
    margin-bottom: var(--sp-4);
  }

  .cs-phase-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    margin-bottom: var(--sp-1);
  }

  .cs-phase p {
    font-size: 13px;
    line-height: 1.55;
  }

  .cs-strategy-list li {
    font-size: 13px;
    line-height: 1.5;
    padding-left: var(--sp-4);
  }

  .cs-strategy-list li::before {
    top: 8px;
    width: 5px;
    height: 5px;
  }

  .cs-phase--before,
  .cs-phase--strategy,
  .cs-phase--result {
    padding: var(--sp-3);
    padding-left: 0;
  }

  .cs-funded-amount {
    font-size: 24px;
  }

  .cs-card--featured .cs-funded-amount {
    font-size: 26px;
  }

  .cs-funded-timeline {
    font-size: 13px;
  }

  .cs-result-block {
    gap: var(--sp-2) var(--sp-4);
  }

  .bank-tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  .cs-arrow {
    width: 36px;
    height: 36px;
  }

  .cs-arrow svg {
    width: 16px;
    height: 16px;
  }
}

/* ==========================================================================
   MULTI-STEP FORM — Interactive Lead Capture
   ========================================================================== */

.msf-card {
  max-width: 640px;
  margin: var(--sp-12) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow:
    0 0 80px rgba(0, 214, 143, 0.05),
    0 0 0 1px rgba(0, 214, 143, 0.06);
  overflow: hidden;
  position: relative;
}

.msf-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(0, 214, 143, 0.2) 0%,
    transparent 40%,
    transparent 60%,
    rgba(0, 214, 143, 0.1) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

/* Progress Bar */
.msf-progress {
  position: relative;
  height: 4px;
  background: rgba(232, 236, 244, 0.06);
}

.msf-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #00e89b);
  border-radius: 0 2px 2px 0;
  transition: width 500ms var(--ease-out);
  box-shadow: 0 0 12px rgba(0, 214, 143, 0.3);
}

.msf-progress-label {
  position: absolute;
  right: var(--sp-5);
  top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Steps */
.msf-step {
  display: none;
  padding: var(--sp-10) var(--sp-10) var(--sp-8);
  animation: msfFadeIn 400ms var(--ease-out);
}

.msf-step--active {
  display: block;
}

@keyframes msfFadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.msf-step-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.msf-step-number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msf-step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}

.msf-step-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Nav Buttons */
.msf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-subtle);
}

.msf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all var(--duration-fast) var(--ease-out);
  cursor: pointer;
  border: none;
}

.msf-btn svg {
  width: 14px;
  height: 14px;
}

.msf-btn--next {
  background: var(--accent);
  color: var(--bg-primary);
}

.msf-btn--next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 214, 143, 0.3);
  background: #00e89b;
}

.msf-btn--back {
  background: rgba(232, 236, 244, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.msf-btn--back:hover {
  background: rgba(232, 236, 244, 0.1);
  color: var(--text-primary);
  border-color: rgba(232, 236, 244, 0.15);
}

/* Step 2 — Credit Score Slider */
.msf-score-display {
  text-align: center;
  padding: var(--sp-8) 0 var(--sp-6);
}

.msf-score-value {
  font-family: var(--font-mono);
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--text-primary);
  transition: color 300ms var(--ease-out);
}

.msf-score-quality {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: var(--sp-2);
  transition: color 300ms var(--ease-out);
}

.msf-slider-wrap {
  padding: 0 var(--sp-2);
}

/* Custom Range Slider */
.msf-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #ff4d6a 0%,
    #ff8c42 20%,
    #ffc835 40%,
    #8cd46a 60%,
    #00d68f 80%,
    #00b87a 100%
  );
  outline: none;
  cursor: pointer;
  margin: var(--sp-4) 0;
}

.msf-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(232, 236, 244, 0.2);
  cursor: grab;
  transition: box-shadow var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.msf-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(0, 214, 143, 0.3);
}

.msf-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
}

.msf-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3), 0 0 0 2px rgba(232, 236, 244, 0.2);
  cursor: grab;
}

.msf-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.msf-slider::-moz-range-track {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    #ff4d6a 0%,
    #ff8c42 20%,
    #ffc835 40%,
    #8cd46a 60%,
    #00d68f 80%,
    #00b87a 100%
  );
}

.msf-slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

/* Step 3 — Two Column Layout */
.msf-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.msf-util-display {
  text-align: center;
  padding: var(--sp-4) var(--sp-5);
  background: rgba(232, 236, 244, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: var(--sp-2);
}

.msf-util-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
  transition: color 200ms var(--ease-out);
}

.msf-util-value.util-good {
  color: var(--accent);
}

.msf-util-value.util-warning {
  color: #ffc835;
}

.msf-util-value.util-danger {
  color: var(--red-accent);
}

/* Step 4 — Review */
.msf-review {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.msf-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.msf-review-row:last-child {
  border-bottom: none;
}

.msf-review-group {
  flex: 1;
  min-width: 0;
}

.msf-review-label {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.msf-review-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.msf-review-edit {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease-out);
  border: none;
  background: none;
  flex-shrink: 0;
}

.msf-review-edit:hover {
  background: var(--accent-dim);
}

/* Submit button within multi-step */
.msf-nav .btn-submit {
  flex: 1;
  max-width: 280px;
}

/* Success state in multi-step card */
.msf-card .form-success {
  padding: var(--sp-16) var(--sp-10);
}

/* Form Responsive for MSF */
@media (max-width: 768px) {
  .msf-step {
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
  }

  .msf-score-value {
    font-size: 56px;
  }

  .msf-two-col {
    grid-template-columns: 1fr;
  }

  .msf-nav .btn-submit {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .msf-step {
    padding: var(--sp-6) var(--sp-5) var(--sp-5);
  }

  .msf-score-value {
    font-size: 48px;
  }

  .msf-step-title {
    font-size: 18px;
  }
}
