/* Landing — Modernization Layer (loaded after landing.css) */

/* Typography: variable font for display + body */
.landing-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
.hero-title, .section-title, .results-copy h3, .footer-cta h2,
.value-card-title, .step-card h3, .pricing-plan-name, .pricing-price {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  letter-spacing: -0.025em;
}
.hero-title { font-size: 3.2rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.section-title { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; }

/* Gradient text accent on "Unpaid Estimate." */
.hero-title .grad-text {
  background: linear-gradient(135deg, #c4b5fd 0%, #8b5cf6 50%, #ec4899 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* Sticky nav with backdrop blur after scroll */
.landing-nav {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s, padding 0.25s;
  border-bottom: 1px solid transparent;
  padding: 16px 32px;
}
.landing-nav.scrolled {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  padding: 10px 32px;
}
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
.nav-links { gap: 4px; }
.nav-links .nav-link-cta { margin-left: 8px; }

/* Product dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; cursor: pointer;
  font: inherit; color: #94a3b8;
}
.nav-dropdown-trigger:hover { color: #e2e8f0; }
.nav-caret { transition: transform 0.2s ease; opacity: 0.7; }
.nav-dropdown.open .nav-caret { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-trigger { color: #e2e8f0; }
.nav-dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 220px; padding: 6px;
  background: rgba(20, 26, 44, 0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(139,92,246,0.12) inset;
  backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(.2,.7,.2,1);
  z-index: 20;
}
.nav-dropdown.open .nav-dropdown-panel {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav-dropdown-item {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: #cbd5e1; font-size: 0.92rem; text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.nav-dropdown-item:hover {
  background: rgba(139,92,246,0.14); color: #f1f5f9;
}

/* Glass card treatment — applied to step, value, results, pricing */
.step-card, .value-card, .results-card, .pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1),
              border-color 0.25s, box-shadow 0.25s;
}
.step-card:hover, .value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 50px -20px rgba(124, 58, 237, 0.35);
}

/* Icon color variety — different tint per card */
.value-props .value-card:nth-child(1) .value-icon { background: rgba(244,114,182,0.12); color: #f472b6; }
.value-props .value-card:nth-child(2) .value-icon { background: rgba(52,211,153,0.12); color: #34d399; }
.value-props .value-card:nth-child(3) .value-icon { background: rgba(96,165,250,0.12); color: #60a5fa; }
.value-props .value-card:nth-child(4) .value-icon { background: rgba(251,191,36,0.12); color: #fbbf24; }
.value-props .value-card:nth-child(5) .value-icon { background: rgba(45,212,191,0.12); color: #2dd4bf; }
.value-props .value-card:nth-child(6) .value-icon { background: rgba(167,139,250,0.12); color: #a78bfa; }
.value-card .value-icon svg { stroke: currentColor; }

.steps-grid .step-card:nth-child(1) .step-icon { background: rgba(167,139,250,0.14); }
.steps-grid .step-card:nth-child(1) .step-icon svg { stroke: #a78bfa; }
.steps-grid .step-card:nth-child(2) .step-icon { background: rgba(96,165,250,0.14); }
.steps-grid .step-card:nth-child(2) .step-icon svg { stroke: #60a5fa; }
.steps-grid .step-card:nth-child(3) .step-icon { background: rgba(52,211,153,0.14); }
.steps-grid .step-card:nth-child(3) .step-icon svg { stroke: #34d399; }

/* Pricing: differentiate Pro (featured) card */
.pricing-card-featured {
  position: relative;
  transform: translateY(-8px);
  background: linear-gradient(180deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.9) 100%);
  border: 1px solid rgba(139,92,246,0.45);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 24px 60px -24px rgba(124,58,237,0.5),
    0 0 0 1px rgba(139,92,246,0.2);
}
.pricing-card-featured::before {
  content: ''; position: absolute; inset: -24px; z-index: -1;
  border-radius: 32px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-card-featured .pricing-price {
  background: linear-gradient(135deg, #c4b5fd 0%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35);
}

/* Results table polish — tabular numerals + zebra rows */
.results-line { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.results-line:nth-child(odd) { background: rgba(255,255,255,0.015); border-radius: 6px; }
.results-price, .results-total-price, .pricing-price {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}
.results-total { border-top: 1px solid rgba(139,92,246,0.35); }
.results-total-price {
  background: linear-gradient(135deg, #c4b5fd, #ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.35rem;
}

/* Section dividers — subtle gradient hairlines */
.value-props-section, .pricing-section {
  border-top-color: transparent; border-bottom-color: transparent;
  position: relative;
}
.value-props-section::before, .pricing-section::before,
.value-props-section::after, .pricing-section::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.35) 50%, transparent 100%);
  pointer-events: none;
}
.value-props-section::before, .pricing-section::before { top: 0; }
.value-props-section::after, .pricing-section::after { bottom: 0; }

/* Buttons — modern press feedback + glow */
.btn-primary, .hero-btn.btn-primary, .pricing-cta.btn-primary {
  transition: transform 0.1s, background 0.15s, box-shadow 0.2s !important;
}
.btn-primary:active, .hero-btn.btn-primary:active, .pricing-cta.btn-primary:active {
  transform: scale(0.97);
}
.hero-btn.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 10px 30px -8px rgba(124,58,237,0.55) !important;
}
.hero-btn.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 14px 36px -6px rgba(168,85,247,0.7) !important;
}

/* Scroll-reveal base state (JS adds .reveal-in) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.reveal-in { opacity: 1; transform: translateY(0); }

/* Count-up placeholder style */
.results-total-price[data-countup] { font-variant-numeric: tabular-nums; }

/* Hero title sizing responsive tweak */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .pricing-card-featured { transform: none; }
  .landing-nav.scrolled { padding: 10px 16px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aurora-blob { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .step-card, .value-card { transition: none; }
}
