/* ============================================================
   Drivehelp — Website Stylesheet
   Big-Me Softwares
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Rainbow (same order as the speedometer: slow → fast) */
  --violet: #B388FF;
  --blue: #448AFF;
  --cyan: #18FFFF;
  --green: #69F0AE;
  --yellow: #FFEA00;
  --orange: #FF9100;
  --red: #FF1744;

  --rainbow: linear-gradient(90deg, var(--violet) 0%, var(--blue) 17%, var(--cyan) 34%, var(--green) 50%, var(--yellow) 67%, var(--orange) 84%, var(--red) 100%);
  --rainbow-cool: linear-gradient(90deg, var(--violet), var(--blue) 45%, var(--cyan));
  --rainbow-warm: linear-gradient(90deg, var(--green), var(--yellow) 45%, var(--orange) 75%, var(--red));

  --background: #050507;
  --surface: #0E0E14;
  --surface-2: #15151E;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.76);
  --text-muted: rgba(255, 255, 255, 0.52);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius: 20px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --gutter: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Set by JS on the hero speedometer */
  --speed-color: var(--green);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

/* Let grid/flex children shrink below their longest word (long URLs, code) */
.tutorial-grid > *, .faq-grid > *, .features-grid > *, .essentials-grid > *,
.modes-grid > *, .shots-grid > *, .steps-container > *, .spotlight > *, .hero-inner > * {
  min-width: 0;
}

.tutorial-steps li, .tip-box, .faq-item p { overflow-wrap: anywhere; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: #9CFFFF; }

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

strong { color: var(--text-primary); }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  word-break: break-word;
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cool-text {
  background: var(--rainbow-cool);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.warm-text {
  background: var(--rainbow-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rainbow-bar {
  height: 4px;
  background: var(--rainbow);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--gutter);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-brand img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
}

.nav-brand:hover { color: var(--text-primary); }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
}

/* ---------- Mobile Nav ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-y: auto;
  padding: 72px 16px 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  padding: 10px 24px;
}

.mobile-menu a:hover { color: var(--cyan); }

.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 10px;
  font-family: var(--font);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 8px 40px rgba(68, 138, 255, 0.35);
}

.btn-primary:hover {
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 12px 48px rgba(24, 255, 255, 0.35);
}

.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.app-store-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.app-store-badge .badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  min-height: min(100vh, 940px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 45%, color-mix(in srgb, var(--speed-color) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(179, 136, 255, 0.16), transparent 70%);
  transition: background 0.6s ease;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 22px;
  letter-spacing: -0.035em;
}

.hero h1 .rainbow-text { display: inline-block; padding-bottom: 0.08em; }

.hero-lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 44px;
}

.hero-buttons .app-store-badge { align-items: flex-start; }

.hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
}

.stat-number {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.1;
}

.stat:nth-child(1) .stat-number { color: var(--red); }
.stat:nth-child(2) .stat-number { color: var(--green); }
.stat:nth-child(3) .stat-number { color: var(--cyan); }

.stat-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  max-width: 150px;
}

/* ---------- Phone mock (landscape) ---------- */
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 2.17 / 1;
  background: #000;
  border-radius: 13% / 28%;
  border: 6px solid #2A2A33;
  box-shadow:
    0 0 0 2px #0A0A0E,
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 90px color-mix(in srgb, var(--speed-color) 30%, transparent);
  overflow: hidden;
  container-type: inline-size;
  transition: box-shadow 0.6s ease;
}

.phone::after {
  /* Dynamic Island (landscape: on the left edge) */
  content: '';
  position: absolute;
  left: 2.2%;
  top: 50%;
  width: 3.6%;
  height: 26%;
  transform: translateY(-50%);
  background: #000;
  border-radius: 40px;
  border: 1px solid #1a1a1f;
}

.screen {
  position: absolute;
  inset: 0;
  padding: 4.5cqw 6cqw 4cqw 8cqw;
  display: grid;
  grid-template-columns: 9cqw 1fr 13cqw;
  grid-template-rows: auto 1fr;
  column-gap: 2cqw;
  background: radial-gradient(ellipse 60% 70% at 55% 60%, color-mix(in srgb, var(--speed-color) 16%, transparent), transparent 70%), #000;
  transition: background 0.6s ease;
}

.screen-top {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2.6cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
}

.screen-top .gps { color: var(--green); }
.screen-top .temp { color: var(--yellow); }

.fuel-stick {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
  font-size: 2.1cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.6);
}

.fuel-stick .tube {
  width: 3.2cqw;
  height: 22cqw;
  border-radius: 3cqw;
  border: 0.35cqw solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.fuel-stick .fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: linear-gradient(0deg, var(--orange), var(--yellow) 40%, var(--green));
}

.fuel-stick .range { color: var(--text-primary); font-size: 2.5cqw; white-space: nowrap; }

.speed-readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 0.85;
}

.speed-number {
  font-size: 30cqw;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--speed-color);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 6cqw color-mix(in srgb, var(--speed-color) 45%, transparent);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.speed-unit {
  font-size: 3cqw;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 1.4cqw;
}

.side-info {
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 2.4cqw;
  align-items: flex-end;
  text-align: right;
  font-size: 2.1cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.06em;
}

.side-info b {
  display: block;
  font-size: 4.6cqw;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1;
}

.side-info .limit b { color: var(--red); }

.over-banner {
  position: absolute;
  left: 50%;
  bottom: 3.5cqw;
  transform: translateX(-50%);
  font-size: 2.2cqw;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #000;
  background: var(--red);
  border-radius: 100px;
  padding: 0.6cqw 2.4cqw;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.phone.is-over .over-banner { opacity: 1; }
.phone.is-over { animation: overPulse 1.2s ease-in-out infinite; }

@keyframes overPulse {
  0%, 100% { box-shadow: 0 0 0 2px #0A0A0E, 0 30px 80px rgba(0,0,0,.7), inset 0 0 0 0 rgba(255,23,68,0), 0 0 60px rgba(255, 23, 68, 0.35); }
  50% { box-shadow: 0 0 0 2px #0A0A0E, 0 30px 80px rgba(0,0,0,.7), inset 0 0 3cqw 0 rgba(255,23,68,.55), 0 0 110px rgba(255, 23, 68, 0.6); }
}

.mock-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Section Base ---------- */
section { padding: 96px var(--gutter); }

.container {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Cards (shared) ---------- */
.info-card,
.feature-card,
.step,
.tutorial-block,
.faq-item,
.mode-card,
.shot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

/* Reveal-on-scroll only when JS is running */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.animate-in { opacity: 1; transform: none; }

/* ---------- Quick Facts ---------- */
.essentials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.info-card { padding: 24px; }

.info-card:hover { border-color: var(--border-strong); background: var(--surface-2); }

.info-card h3 {
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.info-card:nth-child(6n+1) h3 { color: var(--violet); }
.info-card:nth-child(6n+2) h3 { color: var(--blue); }
.info-card:nth-child(6n+3) h3 { color: var(--cyan); }
.info-card:nth-child(6n+4) h3 { color: var(--green); }
.info-card:nth-child(6n+5) h3 { color: var(--yellow); }
.info-card:nth-child(6n+6) h3 { color: var(--orange); }

.info-card p {
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent, var(--cyan));
  opacity: 0.9;
}

.feature-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.feature-card:nth-child(7n+1) { --accent: var(--violet); }
.feature-card:nth-child(7n+2) { --accent: var(--blue); }
.feature-card:nth-child(7n+3) { --accent: var(--cyan); }
.feature-card:nth-child(7n+4) { --accent: var(--green); }
.feature-card:nth-child(7n+5) { --accent: var(--yellow); }
.feature-card:nth-child(7n+6) { --accent: var(--orange); }
.feature-card:nth-child(7n+7) { --accent: var(--red); }

.feature-icon {
  font-size: 2.1rem;
  margin-bottom: 14px;
  display: block;
}

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--accent, var(--text-primary));
  letter-spacing: -0.01em;
}

.feature-card p,
.feature-card li {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

.feature-card ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

.feature-card li {
  padding-left: 18px;
  position: relative;
}

.feature-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent, var(--cyan));
}

.feature-card .tag-optional {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 1px 8px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Spotlight (HUD / Emma) ---------- */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.spotlight.reverse > :first-child { order: 2; }

.spotlight h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}

.spotlight p { color: var(--text-secondary); margin-bottom: 14px; font-size: 1.04rem; }

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.check-list li {
  display: flex;
  gap: 12px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #000;
  background: var(--green);
  margin-top: 1px;
}

/* HUD illustration */
.hud-scene {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #0b1020 0%, #05070d 58%, #121218 58%, #0a0a0e 100%);
  aspect-ratio: 4 / 3;
  container-type: inline-size;
}

.hud-glass {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  height: 46%;
  border-radius: 40% 40% 6% 6% / 30% 30% 6% 6%;
  background: linear-gradient(180deg, rgba(120, 160, 255, 0.10), rgba(120, 160, 255, 0.03));
  border: 1px solid rgba(160, 190, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6cqw;
}

.hud-glass .reflection {
  font-size: 15cqw;
  font-weight: 900;
  line-height: 1;
  color: var(--green);
  opacity: 0.85;
  text-shadow: 0 0 4cqw rgba(105, 240, 174, 0.6);
  letter-spacing: -0.03em;
}

.hud-glass .side {
  font-size: 2.6cqw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.3;
}

.hud-glass .side b { display: block; font-size: 4cqw; color: var(--yellow); }
.hud-glass .side.time b { color: var(--violet); }

.hud-dash-phone {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 12%;
  height: 22%;
  background: #000;
  border: 0.8cqw solid #2A2A33;
  border-radius: 3cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(60cqw) rotateX(50deg);
  transform-origin: bottom center;
  box-shadow: 0 0 6cqw rgba(105, 240, 174, 0.25);
}

.hud-dash-phone span {
  display: inline-block;
  transform: scaleY(-1);
  font-size: 8cqw;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.hud-label {
  position: absolute;
  font-size: 2.4cqw;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-label.glass { top: 3%; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.hud-label.dash { bottom: 3%; left: 50%; transform: translateX(-50%); white-space: nowrap; }

/* Chat illustration */
.chat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bubble {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.bubble.me {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.bubble.emma {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-bottom-left-radius: 6px;
}

.bubble .who {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}

.route {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.route span {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  color: #000;
}

.route span:nth-child(1) { background: var(--violet); }
.route span:nth-child(2) { background: var(--cyan); }
.route span:nth-child(3) { background: var(--green); }
.route span:nth-child(4) { background: var(--yellow); }
.route span:nth-child(5) { background: var(--orange); }

.chat-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ---------- Works without keys ---------- */
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mode-card {
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.mode-card.basic { border-color: rgba(105, 240, 174, 0.35); }
.mode-card.ai { border-color: rgba(179, 136, 255, 0.35); }

.mode-card .mode-kicker {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mode-card.basic .mode-kicker { color: var(--green); }
.mode-card.ai .mode-kicker { color: var(--violet); }

.mode-card h3 {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.mode-card > p { color: var(--text-secondary); margin-bottom: 16px; }

.mode-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.mode-card li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  padding-left: 26px;
  position: relative;
}

.mode-card li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 900;
}

.mode-card.basic li::before { content: '✓'; color: var(--green); }
.mode-card.ai li::before { content: '+'; color: var(--violet); font-size: 1.1rem; line-height: 1.4; }

.keys-note {
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- How It Works ---------- */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step {
  text-align: center;
  padding: 32px 24px;
}

.step:hover { border-color: var(--border-strong); transform: translateY(-4px); }

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  color: #000;
  margin: 0 auto 18px;
}

.step:nth-child(1) .step-number { background: var(--cyan); }
.step:nth-child(2) .step-number { background: var(--green); }
.step:nth-child(3) .step-number { background: var(--yellow); }

.step h3 { font-size: 1.2rem; font-weight: 900; margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 0.93rem; }

/* ---------- Screenshots ---------- */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 20px;
}

.shot {
  overflow: hidden;
  padding: 0;
}

.shot .shot-frame {
  aspect-ratio: 2.17 / 1;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    #08080C;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.shot .shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  padding: 14px 18px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.shot figcaption strong { display: block; color: var(--text-primary); }

/* ---------- Tutorial / Support ---------- */
.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.tutorial-block { padding: 30px; }

.tutorial-block h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tutorial-block > p { color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 14px; }

.tutorial-steps {
  list-style: none;
  counter-reset: tutorial-counter;
}

.tutorial-steps li {
  counter-increment: tutorial-counter;
  position: relative;
  padding-left: 38px;
  min-height: 26px;
  margin-bottom: 14px;
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tutorial-steps li::before {
  content: counter(tutorial-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 900;
  color: #000;
  background: var(--step-color, var(--cyan));
  position: absolute;
  left: 0;
  top: 0;
}

.tutorial-block.k-anthropic { --step-color: var(--orange); }
.tutorial-block.k-openai { --step-color: var(--green); }
.tutorial-block.k-google { --step-color: var(--blue); }

/* Sub-steps inside a numbered step (API keys guide) */
.tutorial-steps ul { list-style: disc; margin: 8px 0 0 18px; }
.tutorial-steps li li {
  counter-increment: none;
  padding-left: 0;
  min-height: 0;
  margin-bottom: 4px;
}
.tutorial-steps li li::before { content: none; }

/* Pack sizes (Drivehelp Packs page) */
.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.pack-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: var(--transition);
}

.pack-card:hover { border-color: var(--border-strong); background: var(--surface-2); }

.pack-card h3 { font-size: 1rem; font-weight: 900; margin-bottom: 6px; color: var(--text-secondary); }

.pack-card .pack-credits {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--accent, var(--cyan));
}

.pack-card .pack-unit { font-size: 0.85rem; color: var(--text-muted); }

.pack-card:nth-child(7n+1) { --accent: var(--violet); }
.pack-card:nth-child(7n+2) { --accent: var(--blue); }
.pack-card:nth-child(7n+3) { --accent: var(--cyan); }
.pack-card:nth-child(7n+4) { --accent: var(--green); }
.pack-card:nth-child(7n+5) { --accent: var(--yellow); }
.pack-card:nth-child(7n+6) { --accent: var(--orange); }
.pack-card:nth-child(7n+7) { --accent: #FF5C7A; }

.packs-note { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin-top: 18px; }

/* Jump-link cards (API keys guide) */
.info-card .card-link { display: inline-block; margin-top: 10px; font-weight: 800; font-size: 0.93rem; }

.tip-box {
  background: rgba(24, 255, 255, 0.06);
  border: 1px solid rgba(24, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 14px;
}

.tip-box.warn {
  background: rgba(255, 145, 0, 0.07);
  border-color: rgba(255, 145, 0, 0.3);
}

.safety-banner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: rgba(255, 23, 68, 0.07);
  border: 1px solid rgba(255, 23, 68, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-secondary);
}

.safety-banner .icon { font-size: 1.6rem; line-height: 1.2; }
.safety-banner strong { color: #FF6E87; }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.faq-item { padding: 22px; }

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

.faq-item h3 {
  font-size: 1.04rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item p + p { margin-top: 8px; }

.center-link { text-align: center; margin-top: 36px; }

/* ---------- Download ---------- */
#download { text-align: center; }

.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--rainbow);
}

.pricing-card .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 18px;
  box-shadow: 0 10px 40px rgba(255, 145, 0, 0.3);
}

.pricing-card h3 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 6px 0 26px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features .check {
  color: var(--green);
  font-weight: 900;
  flex-shrink: 0;
}

.pricing-cta { width: 100%; font-size: 1.08rem; padding: 17px; }

.small-print {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
footer {
  background: #000;
  border-top: 1px solid var(--border);
  padding: 0 var(--gutter) 32px;
}

footer .rainbow-bar { margin: 0 calc(-1 * var(--gutter)) 56px; }

.footer-content {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  word-break: break-word;
}

.footer-col ul li a:hover { color: var(--text-primary); }

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

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Page Header (inner pages) ---------- */
.page-header {
  padding: 140px var(--gutter) 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 30% 0%, rgba(179, 136, 255, 0.2), transparent 70%),
    radial-gradient(ellipse 50% 80% at 75% 0%, rgba(24, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  position: relative;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px var(--gutter) 88px;
}

.legal-content h2 {
  font-size: 1.45rem;
  font-weight: 900;
  margin: 44px 0 12px;
  letter-spacing: -0.01em;
  color: var(--cyan);
}

.legal-content h2:nth-of-type(7n+1) { color: var(--violet); }
.legal-content h2:nth-of-type(7n+2) { color: var(--blue); }
.legal-content h2:nth-of-type(7n+3) { color: var(--cyan); }
.legal-content h2:nth-of-type(7n+4) { color: var(--green); }
.legal-content h2:nth-of-type(7n+5) { color: var(--yellow); }
.legal-content h2:nth-of-type(7n+6) { color: var(--orange); }
.legal-content h2:nth-of-type(7n+7) { color: #FF5C7A; }

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul,
.legal-content ol {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.75;
  margin-bottom: 12px;
  padding-left: 24px;
}

.legal-content li { margin-bottom: 6px; }

.legal-content .last-updated {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
}

.callout {
  background: rgba(105, 240, 174, 0.07);
  border: 1px solid rgba(105, 240, 174, 0.3);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 8px 0 16px;
}

.callout p:last-child { margin-bottom: 0; }

.callout.danger {
  background: rgba(255, 23, 68, 0.07);
  border-color: rgba(255, 23, 68, 0.4);
}

.callout.danger strong { color: #FF6E87; }

.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 560px;
}

.legal-content th,
.legal-content td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.55;
}

.legal-content th {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.legal-content tr:last-child td { border-bottom: none; }

/* Code blocks and dividers (developer guide) */
.legal-content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 8px 0 16px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.legal-content pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  white-space: pre;
  word-break: normal;
}

.legal-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 44px 0;
}

.legal-footnote {
  margin-top: 40px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ---------- Contact Page ---------- */
.contact-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px var(--gutter) 88px;
  text-align: center;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  margin-bottom: 24px;
}

.contact-card .contact-icon { font-size: 3rem; margin-bottom: 14px; }

.contact-card h2 {
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.7;
}

.contact-card ul {
  text-align: left;
  color: var(--text-secondary);
  margin: 0 auto 8px;
  padding-left: 22px;
  max-width: 420px;
  font-size: 0.94rem;
}

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  color: #000;
  padding: 14px 26px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 1rem;
  max-width: 100%;
  word-break: break-all;
}

.contact-email-link:hover {
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(24, 255, 255, 0.3);
}

.response-note {
  background: rgba(24, 255, 255, 0.06);
  border: 1px solid rgba(24, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.response-note strong { color: var(--cyan); }

/* ---------- Animations ---------- */
.animate-in { animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-buttons, .hero-stats { justify-content: center; }
  .hero-buttons .app-store-badge { align-items: center; }
  .stat-label { margin: 0 auto; }
  .spotlight, .spotlight.reverse { grid-template-columns: 1fr; gap: 36px; }
  .spotlight.reverse > :first-child { order: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .tutorial-grid, .modes-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --gutter: 16px; }
  section { padding: 64px var(--gutter); }
  .hero { padding: 100px var(--gutter) 56px; min-height: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 520px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; }
  .hero-stats { gap: 22px; }
  .stat-number { font-size: 1.9rem; }
  .features-grid, .shots-grid, .faq-grid, .essentials-grid { grid-template-columns: 1fr; }
  .feature-card, .tutorial-block, .mode-card { padding: 22px; }
  .footer-top { grid-template-columns: 1fr; }
  .pricing-card { padding: 34px 20px; }
  .contact-card { padding: 32px 20px; }
  .phone { border-width: 4px; }
  .safety-banner { padding: 16px; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: rgba(68, 138, 255, 0.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
