/* ==========================================================================
   DealSafe.ai - Landing Page Stylesheet (Flutter App Light Mode Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Flutter DsColors Tokens — Light Mode (Default) */
  --ds-canvas: #F9FAFB;
  --ds-surface: #FFFFFF;
  --ds-surface2: #F3F4F6;
  --ds-surface3: #E5E7EB;

  --ds-text: #1E2939;
  --ds-text-subtle: #6A7282;
  --ds-text-muted: #98A2B3;
  --ds-link: #0B2BB2;

  --ds-border: #D1D5DC;
  --ds-border-subtle: #E5E7EB;
  --ds-brand: #1A44D2;
  --ds-brand-hover: #1233A3;
  --ds-brand-glow: rgba(26, 68, 210, 0.18);

  --ds-badge-primary-bg: #F1F5FD;
  --ds-badge-primary-text: #0B2BB2;
  --ds-badge-neutral-bg: #F3F4F6;
  --ds-badge-neutral-text: #1E2939;
  --ds-chip-bg: #DEE8FD;
  --ds-chip-text: #0B2BB2;

  --ds-warning-bg: #FFF3E4;
  --ds-warning-fg: #B87A00;
  --ds-success-bg: #DBFFED;
  --ds-success-fg: #00885F;
  --ds-info-bg: #EFF6FF;
  --ds-info-fg: #2162C6;
  --ds-error-bg: #FEE2E2;
  --ds-error-fg: #BA2022;

  --ds-check-ok: #16A34A;
  --ds-check-warn: #EA580C;
  --ds-accent-lime: #537400;
  --ds-unread-bg: #EEF3FD;

  --card-shadow: 0 4px 20px -2px rgba(16, 24, 40, 0.06), 0 2px 6px -1px rgba(16, 24, 40, 0.04);
  --card-shadow-hover: 0 12px 30px -4px rgba(16, 24, 40, 0.12), 0 4px 10px -2px rgba(16, 24, 40, 0.06);

  /* Typography */
  --font-header: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Dimensions */
  --max-w: 1200px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--ds-canvas);
  color: var(--ds-text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: 700;
  color: var(--ds-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Gradients & Text utilities */
.gradient-text {
  background: linear-gradient(135deg, #101828 0%, #1A44D2 60%, #0B2BB2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.blue-text {
  color: var(--ds-link);
}

/* Ambient Lighting Orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

.orb-top-left {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--ds-brand) 0%, transparent 70%);
}

.orb-hero-right {
  top: 80px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #60A5FA 0%, var(--ds-brand) 40%, transparent 70%);
}

/* ── NAVBAR ────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--transition-smooth);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ds-border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-vector-logo {
  height: 32px;
  width: auto;
  display: block;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--ds-badge-primary-bg);
  color: var(--ds-badge-primary-text);
  border: 1px solid rgba(26, 68, 210, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  margin-left: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ds-text-subtle);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--ds-brand);
}

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

.btn-secondary {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--ds-surface2);
  border-color: var(--ds-brand);
  color: var(--ds-brand);
}

.btn-primary {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--ds-brand);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--ds-brand-glow);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary:hover {
  background: var(--ds-brand-hover);
  box-shadow: 0 6px 22px rgba(26, 68, 210, 0.35);
  transform: translateY(-1px);
}

.btn-lime {
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: #0B2BB2;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(11, 43, 178, 0.25);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-lime:hover {
  background: #08218C;
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ds-text);
  font-size: 24px;
  cursor: pointer;
}

/* ── HERO SECTION ──────────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--ds-badge-primary-bg);
  border: 1px solid rgba(26, 68, 210, 0.2);
  color: var(--ds-badge-primary-text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-tag .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--ds-success-fg);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--ds-success-fg);
}

.hero-title {
  font-size: 52px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--ds-text-subtle);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.store-badge-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  color: var(--ds-text);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-fast);
}

.store-badge-btn:hover {
  background: var(--ds-surface2);
  border-color: var(--ds-brand);
  transform: translateY(-1px);
}

.store-badge-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.store-text-small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ds-text-muted);
  line-height: 1.1;
}

.store-text-main {
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-header);
}

.trust-badges-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--ds-border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ds-text-subtle);
  font-weight: 500;
}

.trust-item svg {
  color: var(--ds-success-fg);
}

/* Hero Device Mockup */
.hero-device-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 310px;
  height: 620px;
  background: #FFFFFF;
  border-radius: 44px;
  border: 8px solid #1E293B;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15), 0 0 30px rgba(26, 68, 210, 0.12);
  overflow: hidden;
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #1E293B;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--ds-canvas);
  overflow-y: auto;
  position: relative;
  padding: 26px 14px 20px;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Floating Glass Cards */
.floating-glass-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--ds-border-subtle);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  z-index: 3;
  animation: floatCard 6s ease-in-out infinite;
}

.card-top-left {
  top: 70px;
  left: -35px;
  animation-delay: 0s;
}

.card-bottom-right {
  bottom: 70px;
  right: -35px;
  animation-delay: 3s;
}

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

.badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.badge-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.bg-success-subtle {
  background: var(--ds-success-bg);
  color: var(--ds-success-fg);
  border: 1px solid rgba(0, 136, 95, 0.2);
}

.bg-brand-subtle {
  background: var(--ds-badge-primary-bg);
  color: var(--ds-badge-primary-text);
  border: 1px solid rgba(26, 68, 210, 0.2);
}

/* ── STATS BAR ─────────────────────────────────────────────────── */
.stats-bar-section {
  padding: 36px 0;
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border-subtle);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-header);
  color: var(--ds-text);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13.5px;
  color: var(--ds-text-subtle);
  font-weight: 500;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-badge-primary-text);
  background: var(--ds-badge-primary-bg);
  border: 1px solid rgba(26, 68, 210, 0.2);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-title {
  font-size: 38px;
  margin-bottom: 14px;
}

.section-description {
  font-size: 16px;
  color: var(--ds-text-subtle);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--ds-brand);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-span-2 {
  grid-column: span 2;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ds-badge-primary-bg);
  border: 1px solid rgba(26, 68, 210, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--ds-brand);
}

.icon-success {
  background: var(--ds-success-bg);
  border-color: rgba(0, 136, 95, 0.2);
  color: var(--ds-success-fg);
}

.icon-warning {
  background: var(--ds-warning-bg);
  border-color: rgba(184, 122, 0, 0.2);
  color: var(--ds-warning-fg);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--ds-text-subtle);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* Bento Visual Mockups */
.bento-widget {
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
  margin-bottom: 16px;
}

.escrow-flow-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
}

.flow-step-box {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ds-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.flow-step-box.active {
  border-color: var(--ds-brand);
  background: var(--ds-badge-primary-bg);
  color: var(--ds-brand);
}

.flow-step-box.completed {
  border-color: rgba(0, 136, 95, 0.4);
  background: var(--ds-success-bg);
  color: var(--ds-success-fg);
}

.cartrust-badges-widget {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cartrust-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ds-surface);
  border: 1px solid var(--ds-border-subtle);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.cartrust-status-ok {
  background: var(--ds-success-bg);
  color: var(--ds-success-fg);
  font-weight: 700;
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 4px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ds-text);
}

.feature-points li svg {
  color: var(--ds-success-fg);
  flex-shrink: 0;
}

/* ── HOW IT WORKS SECTION ──────────────────────────────────────── */
.how-it-works-section {
  padding: 90px 0;
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border-subtle);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.role-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.role-switcher {
  display: inline-flex;
  padding: 4px;
  border-radius: var(--radius-full);
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border-subtle);
}

.role-tab-btn {
  padding: 8px 28px;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  color: var(--ds-text-subtle);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-tab-btn.active {
  background: var(--ds-brand);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--ds-brand-glow);
}

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

.step-card {
  background: var(--ds-canvas);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  position: relative;
  transition: all var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--ds-brand);
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-header);
  font-size: 38px;
  font-weight: 800;
  color: var(--ds-surface3);
}

.step-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--ds-badge-primary-bg);
  border: 1px solid rgba(26, 68, 210, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ds-brand);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

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

/* ── CALCULATOR SECTION ────────────────────────────────────────── */
.calculator-section {
  padding: 90px 0;
}

.calculator-card {
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.calc-input-group {
  margin-bottom: 24px;
}

.calc-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ds-text-subtle);
  margin-bottom: 8px;
}

.calc-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-currency {
  position: absolute;
  left: 16px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ds-text);
}

.calc-input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-md);
  color: var(--ds-text);
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-header);
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-input:focus {
  border-color: var(--ds-brand);
  box-shadow: 0 0 0 3px var(--ds-brand-glow);
}

.calc-slider {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--ds-brand);
  cursor: pointer;
}

.calc-results-box {
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--ds-border-subtle);
}

.calc-result-row:last-child {
  border-bottom: none;
  padding-top: 16px;
}

.calc-result-label {
  font-size: 14px;
  color: var(--ds-text-subtle);
}

.calc-result-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--ds-text);
  font-family: var(--font-header);
}

.calc-result-highlight {
  font-size: 22px;
  color: var(--ds-success-fg);
}

/* ── FAQ SECTION ───────────────────────────────────────────────── */
.faq-section {
  padding: 90px 0;
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border-subtle);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--ds-canvas);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--ds-border);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--ds-text);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-header);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 12px;
  transition: transform var(--transition-fast);
  color: var(--ds-brand);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  color: var(--ds-text-subtle);
  font-size: 14.5px;
  line-height: 1.6;
  transition: all var(--transition-smooth);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

/* ── CTA BANNER ────────────────────────────────────────────────── */
.cta-banner-section {
  padding: 80px 0 100px;
}

.cta-banner-card {
  background: linear-gradient(135deg, var(--ds-surface) 0%, var(--ds-badge-primary-bg) 100%);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-xl);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.cta-banner-card h2 {
  font-size: 40px;
  margin-bottom: 14px;
}

.cta-banner-card p {
  font-size: 16px;
  color: var(--ds-text-subtle);
  max-width: 540px;
  margin: 0 auto 30px;
}

.cta-buttons-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── FOOTER ────────────────────────────────────────────────────── */
.footer {
  background: var(--ds-surface);
  border-top: 1px solid var(--ds-border-subtle);
  padding: 60px 0 26px;
  font-size: 13.5px;
  color: var(--ds-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 50px;
}

.footer-brand p {
  margin-top: 14px;
  max-width: 300px;
  line-height: 1.55;
}

.footer-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ds-text);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--ds-brand);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--ds-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas, .trust-badges-row {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-highlight {
    grid-column: span 2;
  }

  .calculator-card {
    grid-template-columns: 1fr;
  }

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

/* Mobile Toggle & Responsive Menu */
.mobile-toggle {
  display: none;
  background: var(--ds-surface2);
  border: 1px solid var(--ds-border);
  border-radius: var(--radius-sm);
  color: var(--ds-text);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-toggle:hover {
  background: var(--ds-surface3);
  color: var(--ds-brand);
}

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas, .trust-badges-row {
    justify-content: center;
  }

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

  .card-span-2 {
    grid-column: span 1;
  }

  .calculator-card {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--ds-border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 12px;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .nav-link {
    font-size: 15.5px;
    font-weight: 600;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--ds-border-subtle);
    display: block;
  }

  .hero-title {
    font-size: 36px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .escrow-flow-widget {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
