/* ===== MileGuard Website ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark/lime design system (matches the homepage) */
  --canvas: #131410;
  --canvas-2: #0d0e0b;
  --lime: #c2f24a;
  --lime-2: #9fe06b;
  --emerald: #34e5a0;
  --amber: #f5b13f;
  --red: #ff5b4d;
  --lime-glow: rgba(194, 242, 74, 0.5);

  /* Semantic tokens (names kept so every page restyles automatically) */
  --bg-deep: #131410;
  --bg-primary: #0f100c;      /* alt section band */
  --bg-elevated: #191a13;     /* cards / forms */
  --bg-surface: #20211a;      /* table headers / insets */
  --accent: #c2f24a;
  --accent-dark: #9fe06b;
  --accent-glow: rgba(194, 242, 74, 0.10);
  --accent-strong: rgba(194, 242, 74, 0.18);
  --text-primary: #f4f5ec;
  --text-secondary: rgba(244, 245, 236, 0.62);
  --text-muted: rgba(244, 245, 236, 0.40);
  --border: rgba(255, 255, 255, 0.09);
  --border-light: rgba(255, 255, 255, 0.16);
  --ink-on-lime: #11140a;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}
::selection { background: var(--lime); color: var(--ink-on-lime); }

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 14, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

/* Nav over dark hero — transparent with white text until scrolled past hero */
.nav.nav-hero-mode {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav.nav-hero-mode .nav-logo,
.nav.nav-hero-mode .nav-links a,
.nav.nav-hero-mode .nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.85);
}
.nav.nav-hero-mode .nav-logo:hover,
.nav.nav-hero-mode .nav-links a:hover,
.nav.nav-hero-mode .nav-dropdown-trigger:hover {
  color: #fff;
}
.nav.nav-hero-mode .nav-toggle span {
  background: #fff;
}
.nav.nav-hero-mode .nav-logo .logo-icon img {
  filter: none;
}
/* When scrolled past hero, revert to normal */
.nav.nav-hero-mode.scrolled {
  background: rgba(13, 14, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav.nav-hero-mode.scrolled .nav-logo,
.nav.nav-hero-mode.scrolled .nav-links a,
.nav.nav-hero-mode.scrolled .nav-dropdown-trigger {
  color: var(--text-secondary);
}
.nav.nav-hero-mode.scrolled .nav-links a:hover,
.nav.nav-hero-mode.scrolled .nav-dropdown-trigger:hover {
  color: var(--text-primary);
}
.nav.nav-hero-mode.scrolled .nav-logo {
  color: var(--text-primary);
}
.nav.nav-hero-mode.scrolled .nav-toggle span {
  background: var(--text-primary);
}
.nav.nav-hero-mode.scrolled .nav-logo .logo-icon img {
  filter: none;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #0c0e0c;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-logo .logo-icon img {
  width: 100%;
  height: 100%;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.25s;
  padding: 0;
  cursor: pointer;
}
.nav-dropdown-trigger:hover { color: var(--text-primary); }
.nav-dropdown-trigger svg { transition: transform 0.25s; }
.nav-dropdown:hover .nav-dropdown-trigger svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: var(--accent-glow);
  color: var(--accent);
}
.nav-dropdown-divider {
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
  color: var(--ink-on-lime);
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 12px 26px -12px var(--lime-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 16px 32px -12px var(--lime-glow); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(13, 14, 11, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.nav-mobile.active {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.nav-mobile a:hover { color: var(--text-primary); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(194, 242, 74, 0.06) 0%, transparent 65%);
  top: -250px;
  right: -200px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}
.hero-text { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
  color: var(--ink-on-lime);
  border-radius: 14px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.app-store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.app-store-btn .btn-text { text-align: left; }
.app-store-btn .btn-text span:first-child {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.2;
}
.app-store-btn .btn-text span:last-child {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
}

/* Secondary CTA */
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s, gap 0.25s;
}
.hero-link:hover { color: var(--accent); gap: 12px; }
.hero-link svg { width: 18px; height: 18px; }

/* Hero Phone */
.hero-phone-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-phone-wrapper::before {
  content: '';
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(194, 242, 74, 0.09), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}

/* ── Phone Mockup ── */
.phone {
  position: relative;
  width: 260px;
  flex-shrink: 0;
}
.phone-notch {
  display: none;
}
.phone-screen {
  overflow: hidden;
  border-radius: 28px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ── Phone Screen: Real Screenshots ── */
.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Features Grid ── */
.features {
  padding: 120px 0;
  position: relative;
  background: var(--bg-primary);
}
.features-header {
  text-align: center;
  margin-bottom: 64px;
}
.features-header .section-subtitle {
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.feature-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Showcase Sections ── */
.showcase {
  padding: 100px 0;
}
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}
.showcase--reverse .showcase-inner {
  direction: rtl;
}
.showcase--reverse .showcase-inner > * {
  direction: ltr;
}
.showcase-text .section-subtitle {
  margin-bottom: 28px;
}
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.showcase-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-secondary);
}
.showcase-list .check {
  width: 20px;
  height: 20px;
  background: var(--accent-glow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.showcase-list .check svg { width: 12px; height: 12px; }
.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap 0.25s var(--ease);
}
.showcase-link:hover { gap: 12px; }
.showcase-link svg { width: 18px; height: 18px; }
.showcase-phone {
  display: flex;
  justify-content: center;
}

/* ── Stats ── */
.stats {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── FAQ ── */
.faq {
  padding: 120px 0;
}
.faq-header {
  text-align: center;
  margin-bottom: 56px;
}
.faq-header .section-subtitle {
  margin: 0 auto;
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
  border-top: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.25s;
}
.faq-question:hover { color: var(--accent); }
.faq-toggle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.faq-toggle svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── CTA Section ── */
.cta-section {
  padding: 120px 0;
}
.cta-box {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 80px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(194, 242, 74, 0.06), transparent 70%);
  bottom: -200px;
  right: -100px;
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; max-width: 480px; }
.cta-content .section-title { margin-bottom: 16px; }
.cta-content .section-subtitle { margin-bottom: 36px; }
.cta-phone { position: relative; z-index: 1; }
.cta-phone .phone {
  width: 200px;
}
.cta-phone .phone-screen {
  border-radius: 24px;
}

/* ── Footer ── */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--text-muted);
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.footer-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}
.footer-social a svg { width: 16px; height: 16px; }

/* ── Legal Pages ── */
.legal-page {
  padding: 140px 0 80px;
  min-height: 100vh;
}
.legal-content {
  max-width: 740px;
  margin: 0 auto;
}
.legal-content h1 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.legal-content .legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.legal-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-content ul {
  margin: 0 0 16px 20px;
  list-style: disc;
}
.legal-content li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 4px;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover {
  color: var(--accent-dark);
}

/* ── Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-float { animation: float 5s ease-in-out infinite; }

/* Hero entrance animations */
.hero-text {
  animation: heroSlideUp 0.9s var(--ease) both;
}
.hero-phone-wrapper {
  animation: heroSlideUp 0.9s var(--ease) 0.2s both;
}
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero badge pulse glow */
.hero-badge {
  animation: badgeGlow 3s ease-in-out infinite;
}
@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08); }
}

/* Feature card hover shine */
.feature-card {
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
}
.feature-card:hover::after {
  transform: translateX(100%);
  transition: transform 0.6s ease;
}

/* Feature icon bounce on card hover */
.feature-card:hover .feature-icon {
  animation: iconBounce 0.5s var(--ease);
}
@keyframes iconBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* App Store button shimmer */
.app-store-btn {
  position: relative;
  overflow: hidden;
}
.app-store-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  animation: btnShimmer 4s ease-in-out infinite;
}
@keyframes btnShimmer {
  0%, 80%, 100% { left: -100%; }
  40% { left: 150%; }
}

/* Showcase phone tilt on scroll reveal */
.showcase-phone .phone {
  transition: transform 0.8s var(--ease);
}
.showcase-phone.revealed .phone {
  animation: phoneTilt 0.8s var(--ease) both;
}
@keyframes phoneTilt {
  from { opacity: 0; transform: translateY(30px) rotate(3deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

/* CTA section gradient animation */
.cta-box::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(194, 242, 74, 0.07), transparent 70%);
  top: -100px;
  left: -100px;
  animation: ctaGlow 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ctaGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 60px); }
}

/* Nav CTA static lime glow (see .nav-cta above) */

/* ── Supported Vehicles Page ── */
.supported-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
}
.supported-hero .section-title {
  margin-bottom: 16px;
}
.supported-brands {
  padding: 64px 0 80px;
}
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.brand-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(194, 242, 74, 0.09);
}
.supported-manual {
  padding: 0 0 100px;
}
.supported-manual-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
}
.supported-manual-inner .section-subtitle {
  margin: 0 auto 32px;
}
.supported-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
  color: var(--ink-on-lime);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.supported-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(194, 242, 74, 0.22);
}
.supported-cta svg { width: 18px; height: 18px; }

/* ── Responsive ── */
/* Mobile App Banner */
.mobile-app-banner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.mobile-app-banner.hidden { display: none !important; }
.mobile-app-banner-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.mobile-app-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.mobile-app-banner-text {
  flex: 1;
  min-width: 0;
}
.mobile-app-banner-text strong {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.2;
}
.mobile-app-banner-text span {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
}
.mobile-app-banner-btn {
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
  color: var(--ink-on-lime);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  text-decoration: none;
  flex-shrink: 0;
}
.mobile-app-banner-btn:hover { filter: brightness(1.05); }

@media (max-width: 768px) {
  .mobile-app-banner { display: flex; }
  body:has(.mobile-app-banner:not(.hidden)) .nav { top: 52px; }
  body:has(.mobile-app-banner:not(.hidden)) .hero { padding-top: 172px; }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 24px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb span { color: var(--text-muted); }

/* ── Blog Article ── */
.blog-article { padding-top: 120px; }
.article-content { max-width: 780px; margin: 0 auto; }
.article-header { margin-bottom: 56px; }
.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}
.article-meta { font-size: 0.9rem; color: var(--text-muted); margin-top: 12px; }

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 48px 0 20px;
  color: var(--text-primary);
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 32px 0 12px;
}
.article-body p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-left: 24px;
}
.article-body li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.article-body a {
  color: var(--accent);
  text-decoration: underline;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.article-body th {
  background: var(--bg-surface);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
.article-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.article-body strong { color: var(--text-primary); }

/* ── Mid-Article CTA ── */
.mid-article-cta {
  background: var(--accent-glow);
  border-left: 4px solid var(--accent);
  padding: 28px 32px;
  border-radius: var(--radius-md);
  margin: 40px 0;
}
.mid-article-cta h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.mid-article-cta p {
  margin-bottom: 12px;
  color: var(--text-secondary);
}

/* ── Blog CTA Section ── */
.blog-cta-section { padding: 72px 0; }
.blog-cta-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-elevated);
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.blog-cta-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}
.blog-cta-box h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.blog-cta-box p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta-box .app-store-btn { margin: 0 auto; }

/* ── Related Articles ── */
.related-articles {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.related-articles h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.2s;
}
.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.related-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Page Hero Banners ── */
.page-hero {
  padding: 160px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-hero-content {
  max-width: 600px;
  flex-shrink: 0;
}
.page-hero-illustration {
  flex-shrink: 0;
  opacity: 0.25;
  width: 280px;
  height: 280px;
}
.page-hero-illustration svg {
  width: 100%;
  height: 100%;
}
.page-hero .section-label {
  color: var(--lime);
}
.page-hero .page-hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.page-hero .page-hero-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}
.page-hero .page-hero-meta a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}
.page-hero .article-icon {
  color: rgba(255, 255, 255, 0.8) !important;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0.3;
}

/* Pillar hero colors */
.page-hero--management {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #1c1d2b 100%);
}
.page-hero--management::after { background: #818CF8; top: -200px; right: -100px; opacity: 0.22; }

.page-hero--costs {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #2b1512 100%);
}
.page-hero--costs::after { background: #ff8f85; top: -200px; right: -100px; opacity: 0.20; }

.page-hero--tips {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #16241c 100%);
}
.page-hero--tips::after { background: var(--emerald); top: -200px; right: -100px; opacity: 0.20; }

.page-hero--tech {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #2a2113 100%);
}
.page-hero--tech::after { background: var(--amber); top: -200px; right: -100px; opacity: 0.20; }

/* Calculator hero colors */
.page-hero--calc-overage {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #2b1512 100%);
}
.page-hero--calc-overage::after { background: #ff8f85; top: -200px; right: -100px; opacity: 0.20; }

.page-hero--calc-budget {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #16241c 100%);
}
.page-hero--calc-budget::after { background: var(--emerald); top: -200px; right: -100px; opacity: 0.20; }

.page-hero--calc-compare {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #1c1d2b 100%);
}
.page-hero--calc-compare::after { background: #818CF8; top: -200px; right: -100px; opacity: 0.22; }

.page-hero--calc-estimator {
  background: linear-gradient(135deg, #14140f 0%, #191a13 60%, #2a2113 100%);
}
.page-hero--calc-estimator::after { background: var(--amber); top: -200px; right: -100px; opacity: 0.20; }

/* ── Blog Card Icons ── */
.blog-card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}
.blog-card[data-pillar="management"] .blog-card-icon { color: #a6b0ff; }
.blog-card[data-pillar="costs"] .blog-card-icon { color: #ff8f85; }
.blog-card[data-pillar="tips"] .blog-card-icon { color: var(--emerald); }
.blog-card[data-pillar="tech"] .blog-card-icon { color: var(--amber); }

/* ── Blog Listing ── */
.blog-listing { padding-top: 120px; }
.blog-listing-header {
  text-align: center;
  margin-bottom: 48px;
}
.blog-listing-header .section-subtitle {
  margin: 0 auto;
}
.pillar-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pillar-filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: all 0.2s;
}
.pillar-filter-btn.active {
  background: var(--accent);
  color: var(--ink-on-lime);
  border-color: var(--accent);
}
.pillar-section { margin-bottom: 48px; }
.pillar-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.pillar-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pillar-tag--management { background: rgba(129,140,248,0.16); color: #a6b0ff; }
.pillar-tag--costs     { background: rgba(255,91,77,0.16); color: #ff8f85; }
.pillar-tag--tips      { background: rgba(52,229,160,0.16); color: var(--emerald); }
.pillar-tag--tech      { background: rgba(245,177,63,0.16); color: var(--amber); }

/* ── Calculator Layout ── */
.calculator-section { padding-top: 120px; }
.calculator-header {
  text-align: center;
  margin-bottom: 40px;
}
.calc-container {
  max-width: 720px;
  margin: 0 auto;
}
.calc-form {
  background: var(--bg-elevated);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.calc-input-group { margin-bottom: 20px; }
.calc-input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.calc-input-group input,
.calc-input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-deep);
  transition: border-color 0.2s;
}
.calc-input-group input:focus,
.calc-input-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.calc-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc-results {
  background: var(--bg-elevated);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent);
  margin-bottom: 32px;
}
.calc-results h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.calc-result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.calc-result-item:last-child { border-bottom: none; }
.calc-result-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.calc-result-value {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.calc-result-value.positive { color: var(--accent); }
.calc-result-value.negative { color: var(--red); }
.calc-hidden { display: none; }

/* ── Cost Breakdown Bar ── */
.cost-bar {
  display: flex;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 20px 0;
}
.cost-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  min-width: 40px;
  transition: width 0.3s;
}
.cost-bar--overage     { background: #DC2626; }
.cost-bar--disposition { background: #F97316; }
.cost-bar--wear        { background: #EAB308; }
.cost-bar--payments    { background: #3B82F6; }
.cost-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.85rem;
}
.cost-bar-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cost-bar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

/* ── Tools Listing ── */
.tools-listing { padding-top: 120px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.tool-card {
  background: var(--bg-elevated);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-decoration: none;
  display: block;
  transition: transform 0.2s;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.tool-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.tool-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}
.tool-card-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── Why It Matters Section ── */
.why-section {
  margin: 40px 0;
  padding: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.why-section h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.why-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-text { max-width: 100%; margin: 0 auto; }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-actions { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .showcase--reverse .showcase-inner { direction: ltr; }
  .showcase-text .section-subtitle { margin: 0 auto 28px; }
  .showcase-list { align-items: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-box { flex-direction: column; text-align: center; padding: 48px 32px; }
  .cta-content .section-subtitle { margin: 0 auto 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .hero { padding: 120px 0 80px; min-height: auto; }
  .hero-title { font-size: clamp(2.2rem, 7vw, 3rem); }
  .features { padding: 80px 0; }
  .showcase { padding: 60px 0; }
  .faq { padding: 80px 0; }
  .cta-section { padding: 80px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .calc-input-row { grid-template-columns: 1fr; }
  .article-title { font-size: 1.8rem; }
  .article-icon { text-align: center; }
  .blog-cta-box { padding: 40px 24px; }
  .pillar-filters { overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; padding-bottom: 8px; flex-wrap: nowrap; }
  .page-hero { padding: 140px 0 40px; }
  .page-hero .page-hero-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .page-hero .container { flex-direction: column; }
  .page-hero-illustration { display: none; }
  body:has(.mobile-app-banner:not(.hidden)) .page-hero { padding-top: 192px; }
  body:has(.mobile-app-banner:not(.hidden)) .blog-article,
  body:has(.mobile-app-banner:not(.hidden)) .blog-listing,
  body:has(.mobile-app-banner:not(.hidden)) .calculator-section,
  body:has(.mobile-app-banner:not(.hidden)) .tools-listing,
  body:has(.mobile-app-banner:not(.hidden)) .legal-page {
    padding-top: 172px;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .supported-manual-inner { padding: 40px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .phone { width: 220px; }
  .cta-box { border-radius: 20px; padding: 40px 24px; }
  .cta-phone .phone { width: 180px; }
  .blog-cta-box { padding: 32px 20px; }
  .calc-form { padding: 24px 20px; }
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .calc-results { padding: 24px 20px; }
  .cost-bar { height: 32px; }
  .related-grid { gap: 16px; }
  .blog-card { padding: 20px; }
  .tool-card { padding: 24px; }
  .pillar-filters { gap: 6px; }
  .pillar-filter-btn { padding: 6px 12px; font-size: 0.8rem; }
}
