:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #0f1115;
  --text-muted: #5b6270;
  --line: #e6e8ec;
  --accent: #2f5bea;
  --accent-hover: #2349c7;
  --accent-soft: #eef2fe;
  --danger: #c62828;
  --success: #1b7f4b;
  --car-color: #f4f5f7;

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, .05);
  --shadow: 0 1px 2px rgba(15, 17, 21, .04), 0 12px 32px -12px rgba(15, 17, 21, .12);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 1000;
  background: var(--text); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.muted { color: #a3a9b4; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--dark { background: var(--text); color: #fff; }
.btn--dark:hover { background: #2a2e36; }
.btn--ghost { color: var(--text); border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--text); }
.btn--ghost svg { transition: transform .2s var(--ease); }
.btn--ghost:hover svg { transform: translateX(3px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; font-size: .95rem; }
.logo svg { color: var(--accent); }
.nav nav { margin-left: auto; }
.nav__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--bg-alt); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__cta { margin-left: auto; }
  .nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; border-radius: 50%;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav nav { position: absolute; inset: 68px 0 auto; margin: 0; }
  .nav__links {
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { width: 100%; min-height: 48px; font-size: 1rem; }
}

/* Hero */
.hero { padding: 132px 0 64px; overflow: hidden; }
.hero__inner { text-align: center; max-width: 880px; }
.hero__title { font-size: clamp(3rem, 10vw, 7rem); font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
.hero__lead { margin: 24px auto 0; max-width: 560px; font-size: 1.125rem; color: var(--text-muted); }
.hero__actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero__stage { position: relative; max-width: 1100px; margin: 32px auto 0; padding: 0 16px; }
.hero__glow {
  position: absolute; left: 50%; top: 45%; width: 80%; aspect-ratio: 2.4; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, #e7edff, rgba(231, 237, 255, 0));
  z-index: -1;
}
.car { width: 100%; height: auto; overflow: visible; }
.car-body { fill: var(--car-color); transition: fill .5s var(--ease); stroke: rgba(15, 17, 21, .08); stroke-width: 1.5; }
.car--hero { animation: drive-in 1.2s var(--ease) both .2s; }
.car-light { animation: pulse 3s ease-in-out infinite 1.4s; }

@keyframes drive-in { from { transform: translateX(-12%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.stats {
  margin: 48px 0 0; display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}
.stat { padding: 24px 8px; text-align: center; }
.stat dt { font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.stat dd { margin: 4px 0 0; font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat + .stat { border-left: 1px solid var(--line); }
}

/* Sections */
.section { padding: 96px 0; }
@media (min-width: 1024px) { .section { padding: 128px 0; } }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__lead { margin-top: 16px; font-size: 1.0625rem; color: var(--text-muted); }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .card--wide { grid-column: span 2; }
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover { border-color: #d3d7de; box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--text-muted); }
.card--tint { background: linear-gradient(135deg, var(--accent-soft), #fff 70%); }
.card__icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 8px;
}
.card__icon svg { width: 22px; height: 22px; }
.meter { margin-top: auto; height: 6px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.meter__fill { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease) .3s; }
.card.is-visible .meter__fill { transform: scaleX(.86); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 8px 0 0; }
.pills li { font-size: .8125rem; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }

/* Trims */
.trims {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  margin-bottom: 32px; max-width: 100%; overflow-x: auto;
}
.trim {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-muted); font-weight: 600; font-size: .9rem; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.trim:hover { color: var(--text); }
.trim.is-active { background: var(--text); color: #fff; }

.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 768px) { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
.spec { background: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; }
.spec__label { font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.spec__value { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.spec__value b { font-weight: 600; display: inline-block; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.spec__value b.is-changing { opacity: 0; transform: translateY(6px); }

/* Colors */
.colors { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .colors { grid-template-columns: 5fr 7fr; } }
.swatches { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.swatch {
  width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0;
  background: var(--c); box-shadow: inset 0 0 0 1px rgba(15, 17, 21, .12);
  position: relative; transition: transform .2s var(--ease);
}
.swatch::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid transparent; transition: border-color .2s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-active::after { border-color: var(--text); }
.swatch-name { margin-top: 20px; font-weight: 600; }
.swatch-name span { transition: opacity .2s var(--ease); }
.colors__stage {
  background: radial-gradient(ellipse at 50% 60%, #eef1f6, #fff 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 56px 24px 40px;
}

/* Charging */
.charge {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .charge { padding: 48px; } }
.charge__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.charge__right { text-align: right; }
.charge__label { display: block; font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.charge__time, .charge__km { display: block; font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.charge__km { color: var(--accent); }
.battery { height: 56px; border-radius: 16px; background: var(--bg-alt); border: 1px solid var(--line); padding: 5px; position: relative; }
.battery::after { content: ""; position: absolute; right: -9px; top: 50%; width: 6px; height: 20px; transform: translateY(-50%); background: var(--line); border-radius: 0 4px 4px 0; }
.battery__fill {
  height: 100%; width: 100%; border-radius: 11px; transform-origin: left; transform: scaleX(.5);
  background: linear-gradient(90deg, #5d82ff, var(--accent));
  transition: transform .25s var(--ease);
}
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; margin: 28px 0 8px; height: 44px; background: transparent; cursor: pointer; touch-action: manipulation;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--text); box-shadow: var(--shadow);
}
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--text); }
.charge__scale { display: flex; justify-content: space-between; font-size: .8125rem; color: var(--text-muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 72px; padding: 16px 0; cursor: pointer; font-weight: 600; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(currentColor, currentColor) center/12px 2px no-repeat,
              linear-gradient(currentColor, currentColor) center/2px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 32px 24px 0; color: var(--text-muted); }

/* Reserve */
.section--cta { padding-top: 0; }
.reserve {
  text-align: center; padding: 56px 24px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--accent-soft), #fff);
  border: 1px solid var(--line);
}
@media (min-width: 768px) { .reserve { padding: 72px 56px; } }
.reserve .section__lead { max-width: 480px; margin-left: auto; margin-right: auto; }
.form { margin: 32px auto 0; max-width: 480px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
@media (min-width: 560px) { .form { flex-direction: row; align-items: flex-start; } .form .field { flex: 1; } }
.field label { display: block; font-size: .8125rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font: inherit; color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47, 91, 234, .15); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field__error { min-height: 1.25em; margin-top: 6px; padding-left: 18px; font-size: .8125rem; color: var(--danger); }
@media (min-width: 560px) { .form .btn { margin-top: 27px; } }
.form__success { margin-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--success); }
.form[hidden], .form__success[hidden] { display: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer__note { font-size: .8125rem; color: var(--text-muted); max-width: 560px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* Concept notice */
.concept-note { margin-top: 20px; font-size: .8125rem; color: var(--text-muted); }
.form__legal { margin-top: 16px; font-size: .8125rem; color: var(--text-muted); }
.form__legal a, .footer a:not(.logo), .legal a, .consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Footer links */
.footer__inner { align-items: flex-start; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; font-size: .875rem; }
.footer__links a { display: inline-flex; min-height: 32px; align-items: center; }
.footer__bottom { flex-basis: 100%; }

/* Consent banner */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
  max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 64px -16px rgba(15, 17, 21, .25);
  padding: 24px; display: none; flex-direction: column; gap: 16px;
}
.consent.is-open { display: flex; animation: consent-in .3s var(--ease); }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.consent__title { font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; margin-bottom: 6px; }
.consent__text, .consent__gpc { font-size: .875rem; color: var(--text-muted); }
.consent__gpc { margin-top: 8px; color: var(--success); }
.consent__prefs { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.consent__prefs[hidden] { display: none; }
.consent__opt { display: flex; gap: 12px; align-items: flex-start; font-size: .875rem; color: var(--text-muted); cursor: pointer; }
.consent__opt b { display: block; color: var(--text); }
.consent__opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
@media (max-width: 480px) { .consent__actions .btn { flex: 1 1 auto; } }

/* Legal pages */
.legal-header { border-bottom: 1px solid var(--line); }
.legal-header .nav__inner { justify-content: space-between; }
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 700; }
.legal .updated { margin-top: 12px; color: var(--text-muted); font-size: .9375rem; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 12px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.0625rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #2b303a; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; margin: 12px 0; }
.legal li + li { margin-top: 6px; }
.legal .callout { margin-top: 24px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--bg-alt); border: 1px solid var(--line); font-size: .9375rem; }
.legal .toc { margin-top: 32px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: .9375rem; }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
