:root {
  --bg: #0a0c0f;
  --bg-panel: #14171d;
  --bg-panel-2: #1a1e25;
  --line: #262b33;
  --text: #eef0f3;
  --text-dim: #7d8590;
  --eco: #35a7ff;
  --normal: #4cd9a0;
  --sport: #ff3b30;
  --accent: var(--normal);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans JP', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.display {
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--accent);
  color: #05070a;
}

/* ---------- NAV ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  background: linear-gradient(to bottom, rgba(10, 12, 15, 0.9), transparent);
  transition: background 0.3s ease;
}

.logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.25s ease;
}

nav a:hover {
  color: var(--text);
}

@media (max-width:720px) {
  nav {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 82% 45%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    var(--bg);
  transition: background 0.6s ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  transition: background 0.4s ease;
}

h1.title {
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
}

h1.title span {
  display: block;
  color: var(--accent);
  transition: color 0.4s ease;
}

.hero-sub {
  margin-top: 26px;
  max-width: 440px;
  color: var(--text-dim);
  font-size: 15.5px;
}

.hero-cta {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn {
  padding: 14px 30px;
  border-radius: 2px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 15px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #05070a;
  border-color: var(--accent);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-ghost {
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* ---------- GAUGE (signature element) ---------- */
.gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge-svg {
  width: 100%;
  max-width: 440px;
}

.gauge-ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 10;
}

.gauge-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke 0.5s ease, stroke-dashoffset 0.6s cubic-bezier(.4, 0, .2, 1);
  filter: drop-shadow(0 0 10px var(--accent));
}

.gauge-needle {
  transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
  transform-origin: 220px 220px;
}

.gauge-center-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 64px;
  fill: var(--text);
}

.gauge-center-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  fill: var(--text-dim);
}

.gauge-mode-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
  fill: var(--accent);
  transition: fill 0.4s ease;
}

.gauge-caption {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ---------- SECTION SHARED ---------- */
section {
  padding: 120px 5vw;
  max-width: 1320px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
}

.section-head p {
  color: var(--text-dim);
  max-width: 360px;
  font-size: 14.5px;
}

/* ---------- DRIVE MODES ---------- */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width:820px) {
  .modes {
    grid-template-columns: 1fr;
  }
}

.mode-card {
  background: var(--bg-panel);
  padding: 40px 32px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  border-top: 3px solid transparent;
}

.mode-card:hover {
  background: var(--bg-panel-2);
}

.mode-card.active {
  background: var(--bg-panel-2);
}

.mode-card[data-mode="eco"].active {
  border-top-color: var(--eco);
}

.mode-card[data-mode="normal"].active {
  border-top-color: var(--normal);
}

.mode-card[data-mode="sport"].active {
  border-top-color: var(--sport);
}

.mode-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

.mode-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 16px 0 14px;
}

.mode-card[data-mode="eco"] .mode-name {
  color: var(--eco);
}

.mode-card[data-mode="normal"] .mode-name {
  color: var(--normal);
}

.mode-card[data-mode="sport"] .mode-name {
  color: var(--sport);
}

.mode-desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 22px;
}

.mode-bar {
  height: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.mode-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 40%);
  background: currentColor;
}

.mode-card[data-mode="eco"] .mode-bar span {
  background: var(--eco);
}

.mode-card[data-mode="normal"] .mode-bar span {
  background: var(--normal);
}

.mode-card[data-mode="sport"] .mode-bar span {
  background: var(--sport);
}

.mode-metric {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
}

.prompt-tap {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-top: 20px;
  opacity: 0.7;
}

/* ---------- SPECS ---------- */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

@media (max-width:900px) {
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.spec-item {
  background: var(--bg-panel);
  padding: 32px 26px;
}

.spec-value {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--accent);
  transition: color 0.4s ease;
}

.spec-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: 4px;
}

.spec-label {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ---------- SILHOUETTE STRIP ---------- */
.strip {
  padding: 0;
  max-width: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-panel);
}

.strip-track {
  display: flex;
  white-space: nowrap;
  animation: scroll-strip 26s linear infinite;
  width: max-content;
}

.strip-track span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  padding: 22px 40px;
  border-right: 1px solid var(--line);
  text-transform: uppercase;
}

@keyframes scroll-strip {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 5vw 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .logo {
  font-size: 16px;
}

.footer-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}