:root {
  --asphalt: #15171a;
  --kerb: #23262b;
  --kerb-2: #2f3439;
  --line: #2c3035;
  --fog: #9aa0a6;
  --chalk: #f2f2ef;
  --amber: #f2a93b;
  --amber-2: #d98f22;
  --sans: "Sora", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { font-family: var(--sans); background: var(--asphalt); color: var(--chalk); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--amber); color: var(--asphalt); }
.mono { font-family: var(--mono); }
.amber { color: var(--amber); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: clamp(40px, 5.6vw, 80px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--fog); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,169,59,.6); } 100% { box-shadow: 0 0 0 9px rgba(242,169,59,0); } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); white-space: nowrap; }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-amber { background: var(--amber); color: var(--asphalt); }
.btn-amber:hover { background: #ffbb52; }
.btn-line { border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--chalk); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 70px; padding: 0 var(--pad); background: rgba(21,23,26,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.logo svg { width: 22px; height: 22px; fill: var(--amber); }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--fog); }
.nav-links a:hover { color: var(--chalk); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; padding: 60px var(--pad) 90px; min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); }
.hero h1 { font-size: clamp(52px, 7vw, 112px); letter-spacing: -0.055em; line-height: .95; }
.lede { margin-top: 28px; font-size: clamp(16px, 1.4vw, 19px); color: var(--fog); max-width: 480px; font-weight: 300; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-scene { position: relative; }
.scene { width: 100%; height: auto; display: block; border-radius: 24px; border: 1px solid var(--line); }
.flow { animation: flow 1.1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.charge-card { position: absolute; left: -36px; bottom: -40px; width: min(320px, 70%); background: var(--kerb); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.cc-top { display: flex; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--fog); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--amber); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 1.5s infinite; }
.battery { position: relative; height: 44px; margin: 14px 0; border-radius: 10px; background: var(--asphalt); border: 1px solid var(--line); overflow: hidden; }
.battery::after { content: ""; position: absolute; right: -1px; top: 14px; width: 4px; height: 16px; background: var(--line); }
.battery-fill { position: absolute; inset: 3px auto 3px 3px; width: 12%; border-radius: 7px; background: var(--amber); transition: width .3s linear; }
.battery-pct { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--chalk); }
.cc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cc-stats b { display: block; font-size: 15px; font-weight: 500; }
.cc-stats span { font-size: 9px; color: var(--fog); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 36px var(--pad); border-left: 1px solid var(--line); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font-size: clamp(34px, 3.8vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.stats small { font-size: .45em; color: var(--amber); margin-left: 4px; letter-spacing: 0; }
.stats > div > span { display: block; margin-top: 10px; font-size: 14px; color: var(--fog); }

/* ---------- Sections ---------- */
.section { padding: 130px var(--pad); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 56px; flex-wrap: wrap; }

/* ---------- Map ---------- */
.map-controls { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { width: 46px; height: 26px; border-radius: 999px; background: var(--kerb-2); position: relative; transition: background .3s; }
.toggle .track i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--chalk); transition: transform .35s var(--ease); }
.toggle input:checked + .track { background: var(--amber); }
.toggle input:checked + .track i { transform: translateX(20px); background: var(--asphalt); }
.toggle input:focus-visible + .track { outline: 2px solid var(--amber); outline-offset: 3px; }
.speed { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--kerb); }
.speed button { padding: 8px 14px; border-radius: 9px; font-family: var(--mono); font-size: 12px; color: var(--fog); transition: background .25s, color .25s; }
.speed button.on { background: var(--chalk); color: var(--asphalt); }
.map-wrap { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #1a1c20; }
.map { display: block; width: 100%; height: auto; }
.marker { cursor: pointer; }
.marker .core { transition: r .2s; }
.marker:hover .core, .marker.active .core { r: 9; }
.marker .halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }
.marker.hidden { opacity: 0; pointer-events: none; }
.marker { transition: opacity .35s; }
.station { position: absolute; right: 20px; top: 20px; width: min(300px, 46%); background: var(--kerb); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.station .kicker { margin-bottom: 8px; color: var(--amber); }
.station h3 { font-size: 22px; letter-spacing: -0.03em; margin-bottom: 14px; }
.st-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 12px; }
.st-row span { color: var(--fog); }
.st-row b { font-weight: 500; text-align: right; }
.map-count { margin-top: 16px; font-size: 12px; color: var(--fog); }
.map-count b { color: var(--chalk); font-weight: 500; }

/* ---------- Calculator ---------- */
.calc-sec { background: var(--chalk); color: var(--asphalt); }
.calc-sec .kicker { color: #5c6167; }
.calc-sec .amber { color: var(--amber-2); }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.calc-in { display: flex; flex-direction: column; gap: 34px; }
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cars button { text-align: left; padding: 18px; border-radius: 16px; border: 1px solid #d4d4cf; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; gap: 4px; transition: border-color .25s, background .25s, color .25s; }
.cars button small { font-family: var(--mono); font-weight: 400; font-size: 11px; color: #5c6167; }
.cars button[aria-checked="true"] { background: var(--asphalt); color: var(--chalk); border-color: var(--asphalt); }
.cars button[aria-checked="true"] small { color: var(--amber); }
.slider { display: grid; gap: 14px; }
.slider span { font-size: 13px; color: #5c6167; }
.slider b { color: var(--asphalt); font-weight: 500; font-size: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(var(--amber), var(--amber)) 0 / var(--fill, 20%) 100% no-repeat, #dcdcd7; outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--asphalt); border: 4px solid var(--chalk); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--asphalt); border: 4px solid var(--chalk); }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--amber-2); outline-offset: 2px; }
.calc-out { background: var(--asphalt); color: var(--chalk); border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 6px; }
.big-time { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.big-time b { font-size: clamp(72px, 8vw, 120px); font-weight: 500; letter-spacing: -0.06em; line-height: .9; color: var(--amber); }
.big-time span { font-size: 20px; color: var(--fog); }
.out-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.out-row span { color: var(--fog); }
.out-row b { font-weight: 500; }
.calc-out .fine { font-size: 10px; color: var(--fog); margin-top: 14px; line-height: 1.6; }

/* ---------- Plans ---------- */
.period { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--fog); }
.period input { width: 220px; background: linear-gradient(var(--amber), var(--amber)) 0 / var(--fill, 34%) 100% no-repeat, var(--kerb-2); }
.period input::-webkit-slider-thumb { background: var(--chalk); border-color: var(--asphalt); }
.period b { color: var(--chalk); font-weight: 500; min-width: 120px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 24px; padding: 34px; background: var(--kerb); display: flex; flex-direction: column; gap: 14px; transition: border-color .3s; }
.plan.featured { border-color: var(--amber); }
.plan h3 { font-size: 26px; }
.price { font-size: clamp(40px, 4vw, 56px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.price small { font-size: 16px; color: var(--fog); letter-spacing: 0; margin-left: 4px; }
.est { font-size: 13px; color: var(--fog); }
.est b { color: var(--chalk); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 10px; padding: 18px 0 24px; border-top: 1px solid var(--line); margin-top: 6px; font-size: 15px; }
.plan li::before { content: "+"; display: inline-block; width: 22px; color: var(--amber); font-family: var(--mono); font-weight: 500; }
.plan .btn { margin-top: auto; }
.badge { position: absolute; top: -12px; right: 28px; background: var(--amber); color: var(--asphalt); font-size: 11px; padding: 5px 10px; border-radius: 999px; transition: opacity .3s; }
.plan:not(.featured) .badge { display: none; }

/* ---------- App ---------- */
.app-sec { border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.app-copy > p:not(.kicker) { color: var(--fog); margin-top: 24px; max-width: 460px; font-weight: 300; font-size: 17px; }
.app-feats { list-style: none; margin-top: 36px; border-top: 1px solid var(--line); }
.app-feats li { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.app-feats span { color: var(--fog); font-size: 15px; font-weight: 300; }
.phone { justify-self: center; width: 290px; border-radius: 46px; background: #0c0d0f; padding: 12px; border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.screen { border-radius: 36px; background: var(--asphalt); padding: 54px 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.small { font-size: 11px; color: var(--fog); text-align: center; }
.ring { width: 100%; height: auto; }
.ring #ring { transition: stroke-dashoffset 1.6s var(--ease); }
.screen-row { display: flex; justify-content: space-between; font-size: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.screen-row span { color: var(--fog); }
.screen-btn { margin-top: 8px; height: 46px; border-radius: 14px; border: 1px solid var(--line); font-size: 12px; color: var(--fog); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px var(--pad) 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.logo.big { font-size: clamp(56px, 10vw, 150px); letter-spacing: -0.06em; gap: 14px; }
.logo.big svg { width: .7em; height: .7em; }
.footer-top p { color: var(--fog); max-width: 320px; font-weight: 300; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 11px; color: var(--fog); }
.footer-row a { color: var(--amber); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  :root { --pad: 18px; }
  .nav { height: 62px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 40px var(--pad) 100px; min-height: 0; gap: 48px; }
  .charge-card { left: 12px; bottom: -56px; width: calc(100% - 24px); max-width: 340px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 90px var(--pad); }
  .station { position: static; width: auto; border-radius: 0; border: 0; border-top: 1px solid var(--line); }
  .calc { grid-template-columns: 1fr; }
  .cars { grid-template-columns: 1fr; }
  .cars button { flex-direction: row; justify-content: space-between; align-items: center; }
  .calc-out { padding: 24px; }
  .period input { width: 100%; }
  .plans { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; gap: 56px; }
  .app-feats li { grid-template-columns: 1fr; gap: 4px; }
}

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