/* LeadZip 365 — Theme System
 * Light mode is the default. Dark mode activates via [data-theme="dark"] on <html>.
 * Minimalist palette: Lighter blue, white, slate grey.
 */

/* ---- LIGHT MODE (DEFAULT) ---- */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-card: #ffffff;
  --fg: #0f172a;
  --fg-muted: #64748b;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --accent-dim: rgba(59, 130, 246, 0.08);
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-text: #ffffff;
  --success: #10b981;
  --error: #ef4444;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-subtle: #1e293b;
  --bg-card: #1e293b;
  --fg: #f1f5f9;
  --fg-muted: #94a3b8;
  --accent: #60A5FA;
  --accent-hover: #93C5FD;
  --accent-dim: rgba(96, 165, 250, 0.12);
  --accent-glow: rgba(96, 165, 250, 0.30);
  --accent-text: #ffffff;
  --success: #34d399;
  --error: #f87171;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --nav-bg: rgba(15, 23, 42, 0.92);
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---- NAVIGATION ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Dark mode header background */
[data-theme="dark"] .site-nav {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Logo text styling */
.nav-logo-text {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

/* Light mode logo colors */
.logo-lead {
  color: #3B82F6;
}

.logo-zip {
  color: #1E40AF;
}

.logo-365 {
  color: #3B82F6;
}

/* Dark mode logo colors */
[data-theme="dark"] .logo-lead {
  color: #ffffff;
}

[data-theme="dark"] .logo-zip {
  color: #60A5FA;
}

[data-theme="dark"] .logo-365 {
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.88rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: #3B82F6; }

/* Dark mode nav links */
[data-theme="dark"] .nav-link {
  color: #94a3b8;
}

[data-theme="dark"] .nav-link:hover {
  color: #60A5FA;
}

.nav-cta {
  padding: 9px 20px;
  background: #3B82F6;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: #2563EB;
  transform: translateY(-1px);
}

/* Theme Toggle Button */
.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.08);
}

/* Dark mode theme toggle button */
[data-theme="dark"] .theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .theme-toggle:hover {
  border-color: #60A5FA;
  background: rgba(96, 165, 250, 0.12);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: #64748b;
  transition: color 0.2s;
}

[data-theme="dark"] .theme-toggle svg {
  color: #94a3b8;
}

.theme-toggle:hover svg { color: #3B82F6; }

/* Hide sun/moon based on theme */
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInDown 0.6s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease-out 0.1s both;
}

.hero h1 .accent-word { color: var(--accent); }

.lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease-out 0.2s both;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.btn-primary {
  position: relative;
  display: inline-block;
  padding: 16px 36px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px var(--accent-glow);
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-secondary {
  position: relative;
  display: inline-block;
  padding: 16px 28px;
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
  overflow: hidden;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Hero Stats with Animated Counters */
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  padding: 24px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  animation: fadeInUp 0.7s ease-out 0.4s both;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Floating Background Elements */
.hero-bg-effects {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 65%);
  animation: pulseGlow 4s ease-in-out infinite;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.floating-dot:nth-child(2) { animation-delay: -1s; animation-duration: 7s; }
.floating-dot:nth-child(3) { animation-delay: -2s; animation-duration: 8s; }
.floating-dot:nth-child(4) { animation-delay: -3s; animation-duration: 5s; }
.floating-dot:nth-child(5) { animation-delay: -4s; animation-duration: 9s; }

/* ---- SECTIONS SHARED ---- */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-bottom: 56px;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 100px 24px;
  background: var(--bg-subtle);
  text-align: center;
}

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

.step {
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--card-shadow-hover);
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.5;
}

/* Step icons */
.step-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s;
}

.step:hover .step-icon {
  transform: scale(1.1);
  background: var(--accent-glow);
}

.step-icon svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

/* ---- PRICING ---- */
.pricing {
  padding: 100px 24px;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  position: relative;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--card-shadow-hover);
}

.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 30px var(--accent-glow);
}

.pricing-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 40px var(--accent-glow);
}

.pricing-popular {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 6px;
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-leads {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-features { list-style: none; }

.pricing-features li {
  padding: 8px 0;
  font-size: 0.88rem;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

.pricing-features li::before {
  content: '\2713';
  color: var(--success);
  margin-right: 10px;
  font-weight: 600;
}

.pricing-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 4px;
}

.pricing-cta {
  display: block;
  margin-top: 24px;
  padding: 13px 20px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.pricing-cta:hover {
  background: var(--accent);
  color: var(--accent-text);
  transform: translateY(-1px);
}

.pricing-card.featured .pricing-cta {
  background: var(--accent);
  color: var(--accent-text);
}

.pricing-card.featured .pricing-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ---- INDUSTRIES ---- */
.industries {
  padding: 100px 24px;
  background: var(--bg-subtle);
  text-align: center;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto;
}

.tag {
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--fg);
  box-shadow: var(--card-shadow);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: default;
}

.tag:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 24px;
  text-align: center;
}

.closing h2 { margin-bottom: 24px; }

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.closing .btn-primary { margin-top: 40px; }

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

/* Footer brand uses the same styled text as the nav logo */
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-brand .logo-lead { color: #3B82F6; }
.footer-brand .logo-zip { color: #1E40AF; }
.footer-brand .logo-365 { color: #3B82F6; }

[data-theme="dark"] .footer-brand .logo-lead { color: #ffffff; }
[data-theme="dark"] .footer-brand .logo-zip { color: #60A5FA; }
[data-theme="dark"] .footer-brand .logo-365 { color: #ffffff; }

.footer-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 20px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 4px;
}

.footer-nav-link {
  font-size: 0.82rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-link:hover { color: var(--accent); }

/* ---- LIGHTNING BOLT ICONS ---- */
.lightning-bolt {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin: 0 0.25em;
  vertical-align: -0.2em;
  color: var(--accent);
  animation: boltPulse 2s ease-in-out infinite;
}

[data-theme="dark"] .lightning-bolt {
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

/* Light mode: subtle drop shadow */
.lightning-bolt {
  filter: drop-shadow(1px 1px 2px rgba(59, 130, 246, 0.3));
}

/* ---- BUTTON RIPPLE EFFECT ---- */
.btn-primary::before,
.btn-secondary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.btn-primary:active::before,
.btn-secondary:active::before {
  animation: ripple 0.6s ease-out;
}

/* ---- CARD HOVER TILT (Desktop Only) ---- */
@media (hover: hover) and (pointer: fine) {
  .pricing-card,
  .step {
    perspective: 1000px;
  }

  .pricing-card:hover,
  .step:hover {
    transform: translateY(-8px) rotateX(2deg) rotateY(-2deg);
  }
}

/* Mobile: disable tilt, just lift */
@media (hover: none) and (pointer: coarse) {
  .pricing-card:active,
  .step:active {
    transform: translateY(-4px);
  }
}

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  z-index: 999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* ---- ICON ANIMATION ON SCROLL ---- */
.icon-animate-in {
  opacity: 0;
  animation: iconSlideIn 0.6s ease-out forwards;
}

.animate-on-scroll.is-visible .icon-animate-in {
  animation: iconSlideIn 0.6s ease-out;
}

.animate-on-scroll.is-visible .icon-animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-on-scroll.is-visible .icon-animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-on-scroll.is-visible .icon-animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-on-scroll.is-visible .icon-animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-on-scroll.is-visible .icon-animate-in:nth-child(5) { animation-delay: 0.5s; }

/* ---- HERO GRADIENT OVERLAY (Light Mode Enhancement) ---- */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(59, 130, 246, 0.02) 100%);
  pointer-events: none;
}

/* ---- GLOW EFFECT ON DARK MODE CTAs ---- */
[data-theme="dark"] .btn-primary {
  box-shadow: 0 4px 14px rgba(96, 165, 250, 0.3), 0 0 20px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4), 0 0 30px rgba(96, 165, 250, 0.25);
}

/* ---- REFINED SHADOWS ON CARDS (Light Mode) ---- */
.card,
.pricing-card,
.step {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

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

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

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(2deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes boltPulse {
  0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 2px rgba(59, 130, 246, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.8)); }
}

[data-theme="dark"] @keyframes boltPulse {
  0%, 100% { opacity: 0.9; filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 12px rgba(96, 165, 250, 1)); }
}

@keyframes ripple {
  from {
    width: 0;
    height: 0;
    opacity: 0.5;
  }
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

@keyframes iconSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid .step:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-right { gap: 12px; }
}

@media (max-width: 600px) {
  .hero { min-height: 80vh; padding: 80px 20px 60px; }
  .hero-stats { flex-direction: column; gap: 16px; padding: 24px; }
  .stat-divider { width: 40px; height: 1px; }
  .hero-cta-row { flex-direction: column; gap: 12px; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid .step:last-child { max-width: none; }
  .how-it-works, .pricing, .industries { padding: 64px 20px; }
  .closing { padding: 80px 20px; }
}

/* ---- UTILITY CLASSES FOR APP PAGES ---- */
.page-container { min-height: 100vh; padding: 80px 24px 120px; }
.page-inner { max-width: 900px; margin: 0 auto; }
.page-inner--narrow { max-width: 640px; margin: 0 auto; }

.page-header { text-align: center; margin-bottom: 56px; }
.page-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.page-header p { color: var(--fg-muted); font-size: 1rem; line-height: 1.7; }

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 40px;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.card:hover { box-shadow: var(--card-shadow-hover); }

/* Form Elements */
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.form-label {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--fg);
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.form-select option { background: var(--bg-card); }

/* Buttons */
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.02em;
}
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Alerts */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin-bottom: 28px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}
.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
}

/* Page Footer */
.page-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.page-footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-links { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-link {
  font-size: 0.83rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--accent); }
