/* ============================================================
   AXIOM MOTORS — Premium EV
   Rivian/Tesla/Zoox inspired · Spacious · Green initiative
   ============================================================ */

:root {
  --white: #ffffff;
  --mist: #f2f4f3;
  --mist-deep: #e8eceb;
  --ink: #0a0a0a;
  --ink-soft: #3a3f44;
  --ink-muted: #6b7280;
  --green: #00d26a;
  --green-dark: #2d5a47;
  --green-soft: #c8e6d0;
  --green-bg: #e8f5ec;
  --accent: #f59e0b;
  --font: "Instrument Sans", "Inter", system-ui, sans-serif;
  --nav-h: 64px;
  --announce-h: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1200px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(0, 210, 106, 0.25); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ── Nav — Tesla/Rivian minimal ── */
.nav {
  position: fixed;
  top: var(--announce-h);
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 32px);
  background: transparent;
  transition: background 0.35s, border-color 0.35s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  justify-self: start;
}

.nav-menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--ink); }

.nav-models {
  display: flex;
  gap: 20px;
  justify-self: start;
}

.nav-models a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.nav-models a.is-active,
.nav-models a:hover { color: var(--ink); }

.logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  justify-self: center;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.nav-actions a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.nav-actions a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:hover { transform: scale(1.02); }
.btn-sm { padding: 10px 20px; font-size: 0.75rem; }
.btn-full { width: 100%; }

.btn-dark { background: var(--ink); color: var(--white); }
.btn-ghost-dark { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
.btn-accent { background: var(--green); color: var(--ink); }
.btn-accent:hover { box-shadow: 0 8px 28px rgba(0, 210, 106, 0.35); }

.kicker {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.kicker--light { color: rgba(255, 255, 255, 0.5); }
.kicker--green { color: var(--green-dark); }

.h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.h2--light { color: var(--white); }

.body {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  max-width: 52ch;
  line-height: 1.75;
  font-weight: 400;
}

.body--light { color: rgba(255, 255, 255, 0.65); }
.body.center { margin-inline: auto; text-align: center; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible { opacity: 1; transform: none; }

/* ── Hero — Rivian R1S style ── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--announce-h) + var(--nav-h) + 40px) 24px 80px;
  background: var(--mist);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-type {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(8rem, 22vw, 18rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(0, 0, 0, 0.04);
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 70%;
  top: 15%;
  z-index: 1;
  pointer-events: none;
}

.hero-cutout {
  position: relative;
  z-index: 2;
  width: min(900px, 95vw);
  margin-bottom: -40px;
}

.hero-cutout img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero-spec {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 40px;
  z-index: 3;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
}

.hero-dots span.is-active { background: var(--ink); }

/* ── Models ── */
.models {
  padding: clamp(100px, 14vw, 160px) clamp(20px, 4vw, 40px);
  background: var(--white);
}

.models-head { max-width: 560px; margin-bottom: 40px; }

.model-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.model-tab {
  padding: 12px 24px;
  border: 1px solid var(--mist-deep);
  border-radius: 999px;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s;
}

.model-tab.is-active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.model-stage { max-width: var(--container); margin: 0 auto; }

.model-panel { display: none; }
.model-panel.is-active {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.model-visual {
  background: var(--mist);
  border-radius: 16px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.model-visual img { width: 100%; object-fit: contain; }

.model-copy h3 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.model-tag {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin-bottom: 28px;
  line-height: 1.6;
}

.model-stats {
  list-style: none;
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.model-stats li { display: flex; flex-direction: column; }
.model-stats strong { font-size: 1.5rem; font-weight: 600; }
.model-stats span { font-size: 0.75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Showcase pinned ── */
.showcase { position: relative; }

.showcase-spacer { height: 260vh; }

.showcase-pin {
  position: sticky;
  top: calc(var(--announce-h) + var(--nav-h));
  height: calc(100vh - var(--announce-h) - var(--nav-h));
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.showcase-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.showcase-copy {
  padding: clamp(24px, 4vw, 48px);
  z-index: 2;
}

.showcase-bar {
  position: absolute;
  bottom: 32px;
  left: clamp(24px, 4vw, 48px);
  right: clamp(24px, 4vw, 48px);
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.showcase-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
}

/* ── Specs band ── */
.specs-band {
  padding: clamp(64px, 10vw, 100px) clamp(20px, 4vw, 40px);
  background: var(--white);
  border-bottom: 1px solid var(--mist-deep);
}

.specs-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.spec-num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.spec-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

/* ── Impact — green initiative ── */
.impact {
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 40px);
  background: linear-gradient(180deg, var(--green-bg) 0%, var(--green-soft) 100%);
}

.impact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.impact-calc { margin-top: 32px; }

.impact-calc label {
  display: block;
  margin-bottom: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--green-dark);
}

.impact-calc input[type="range"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  accent-color: var(--green-dark);
}

.impact-calc output {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  font-size: 1.125rem;
}

.impact-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.impact-card {
  background: var(--white);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(45, 90, 71, 0.08);
}

.impact-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }

.impact-val {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-dark);
}

.impact-unit {
  font-size: 0.6875rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.impact-chart {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.impact-community {
  max-width: var(--container);
  margin: 48px auto 0;
  text-align: center;
}

.impact-live {
  font-size: 0.9375rem;
  color: var(--green-dark);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ── Sustainability ── */
.sustain {
  padding: clamp(80px, 12vw, 120px) clamp(20px, 4vw, 40px);
  background: var(--white);
}

.sustain-split {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.sustain-list {
  list-style: none;
  margin-top: 24px;
}

.sustain-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--mist-deep);
  font-size: 0.9375rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.sustain-list strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* ── Charging — Rivian dark cards ── */
.charging {
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 40px);
  background: var(--ink);
}

.charging-hero {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.charging-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.charge-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.charge-img {
  aspect-ratio: 3/4;
  min-height: 200px;
}

.charge-card h3 {
  padding: 20px 20px 8px;
  font-size: 1.125rem;
  color: var(--white);
}

.charge-card p {
  padding: 0 20px 24px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── Interior ── */
.interior {
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 40px);
  text-align: center;
  background: var(--mist);
}

.interior-visual {
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
}

.interior-features {
  max-width: var(--container);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.interior-features h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.interior-features p { font-size: 0.875rem; color: var(--ink-muted); }

/* ── Configure ── */
.configure {
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 40px);
  background: var(--white);
}

.configure-head { text-align: center; margin-bottom: 48px; }

.configure-layout {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.configure-preview {
  background: var(--mist);
  border-radius: 16px;
  padding: 24px;
  min-height: 400px;
  position: relative;
}

.config-canvas {
  width: 100%;
  height: 320px;
  display: block;
  border-radius: 12px;
}

.config-summary {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.config-price {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 4px;
}

.configure-options {
  background: var(--white);
  border: 1px solid var(--mist-deep);
  border-radius: 16px;
  padding: 28px;
}

.opt-group { margin-bottom: 24px; }

.opt-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.opt-row { display: flex; gap: 8px; flex-wrap: wrap; }

.opt-btn {
  flex: 1;
  min-width: 80px;
  padding: 12px 16px;
  border: 1px solid var(--mist-deep);
  border-radius: 10px;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.opt-btn.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.opt-colors { display: flex; gap: 10px; flex-wrap: wrap; }

.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.color-btn.is-active {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink);
}

/* ── Order ── */
.order {
  padding: clamp(100px, 14vw, 140px) clamp(20px, 4vw, 40px);
  background: var(--ink);
  text-align: center;
}

.order-inner { max-width: 480px; margin: 0 auto; }

.order-form {
  margin-top: 32px;
  text-align: left;
}

.order-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.order-form input,
.order-form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--white);
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

/* ── FAQ ── */
.faq {
  padding: clamp(80px, 12vw, 120px) clamp(20px, 4vw, 40px);
  max-width: 720px;
  margin: 0 auto;
}

.faq-list { margin-top: 32px; }

.faq-item {
  border-bottom: 1px solid var(--mist-deep);
  padding: 20px 0;
}

.faq-item summary {
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.7; }

/* ── Image placeholders ── */
.img-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.02);
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-muted);
  min-height: 160px;
}

.charging .img-ph {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.4);
  height: 100%;
}

.img-ph--hero { min-height: 280px; background: transparent; border: none; }
.img-ph--wide { aspect-ratio: 16/9; }
.img-ph--interior { min-height: 400px; }
.img-ph--card { min-height: 200px; }

.img-badge {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.img-copy {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--mist-deep);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.charging .img-copy {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

/* ── Footer ── */
.footer {
  padding: 48px 24px;
  text-align: center;
  border-top: 1px solid var(--mist-deep);
}

.footer-logo {
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.75rem;
  color: var(--ink-muted);
}

.footer-note { font-size: 0.6875rem; color: var(--ink-muted); }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 16px 28px;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.875rem;
  z-index: 500;
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .model-panel.is-active,
  .impact-inner,
  .sustain-split,
  .configure-layout,
  .showcase-pin,
  .specs-grid,
  .charging-grid,
  .interior-features { grid-template-columns: 1fr; }

  .impact-results { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-spacer { height: 180vh; }
}

@media (max-width: 768px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-models, .nav-actions a:not(.btn) { display: none; }
  .nav-menu-btn { display: flex; }
  .model-stats { flex-direction: column; gap: 16px; }
}
