/* ============================================
   XPENG Paraguay — G9 Landing
   Design tokens, layout, components
   ============================================ */

:root {
  /* Color — OKLCH tinted neutrals + brand (DARK default) */
  --ink:         oklch(0.14 0.012 250);
  --ink-soft:    oklch(0.19 0.014 250);
  --ink-elev:    oklch(0.23 0.014 250);
  --ink-line:    oklch(0.30 0.012 250);
  --ink-line-soft: oklch(0.24 0.010 250);
  --paper:       oklch(0.98 0.005 250);
  --paper-mute:  oklch(0.88 0.008 250);
  --paper-dim:   oklch(0.72 0.006 250);
  --xpeng:       oklch(0.83 0.18 130);
  --xpeng-deep:  oklch(0.68 0.18 132);
  --xpeng-soft:  oklch(0.90 0.12 130);
  --amber:       oklch(0.78 0.14 65);
  --logo-invert: 0;
  color-scheme: dark;

  /* Type — theme-agnostic, MUST stay in :root */
  --f-sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 72px;
}

/* LIGHT theme — swap COLOR tokens only. Never put type/layout/motion here. */
[data-theme="light"] {
  --ink:         oklch(0.98 0.004 250);
  --ink-soft:    oklch(0.94 0.005 250);
  --ink-elev:    oklch(0.91 0.006 250);
  --ink-line:    oklch(0.86 0.006 250);
  --ink-line-soft: oklch(0.91 0.005 250);
  --paper:       oklch(0.18 0.012 250);
  --paper-mute:  oklch(0.36 0.010 250);
  --paper-dim:   oklch(0.52 0.008 250);
  --xpeng:       oklch(0.68 0.18 132);
  --xpeng-deep:  oklch(0.58 0.18 132);
  --xpeng-soft:  oklch(0.75 0.15 130);
  --logo-invert: 1;
  color-scheme: light;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--paper);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Selection */
::selection { background: var(--xpeng); color: var(--ink); }

/* ============ LAYOUT ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============ TYPOGRAPHY ============ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin: 0;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--xpeng);
  box-shadow: 0 0 12px var(--xpeng);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.section-title {
  font-family: var(--f-sans);
  font-size: clamp(38px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-top: 20px;
}
.section-title em {
  font-style: normal;
  color: var(--paper);
  opacity: 0.78;
  font-weight: 400;
}

.section-lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--paper-mute);
  margin-top: 22px;
}

.section-head {
  padding-bottom: 40px;
}
@media (min-width: 700px) {
  .section-head { padding-bottom: 56px; }
}
.section-head--split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: end;
}
@media (min-width: 900px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
  }
  .section-head--split .section-lede {
    padding-bottom: 8px;
  }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--xpeng);
  color: oklch(0.16 0.012 250); /* always-dark text on green pill, theme-agnostic */
}
.btn--primary:hover {
  background: var(--xpeng-soft);
  box-shadow: 0 12px 30px -10px color-mix(in oklch, var(--xpeng) 60%, transparent);
}

.btn--outline {
  border: 1px solid color-mix(in oklch, var(--paper) 35%, transparent);
  color: var(--paper);
  background: transparent;
}
.btn--outline:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn--dark:hover {
  background: color-mix(in oklch, var(--ink) 80%, black);
  border-color: color-mix(in oklch, var(--ink) 80%, black);
}

.btn--ghost-light {
  background: color-mix(in oklch, white 12%, transparent);
  color: var(--paper);
  border: 1px solid color-mix(in oklch, white 35%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.btn--ghost-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn--ghost {
  background: color-mix(in oklch, var(--paper) 8%, transparent);
  color: var(--paper);
  border: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
}
.btn--ghost:hover {
  background: color-mix(in oklch, var(--paper) 14%, transparent);
}

.btn--sm { padding: 10px 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: oklch(0.14 0.012 250 / 0.72);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom-color: var(--ink-line-soft);
}
[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  border-bottom-color: oklch(0.86 0.006 250);
}
.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.site-header__logo img {
  height: 22px;
  width: auto;
  display: block;
}
.site-nav {
  display: none;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.78;
  position: relative;
  transition: opacity .2s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--xpeng);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

.site-header__cta {
  display: none;
  gap: 10px;
  flex: 0 0 auto;
}
.site-header__menu {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--paper) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
  flex: 0 0 auto;
}
.site-header__menu span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.site-header__menu.is-open span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.site-header__menu.is-open span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

@media (min-width: 960px) {
  .site-nav { display: inline-flex; }
  .site-header__cta { display: inline-flex; }
  .site-header__menu { display: none; }
}

/* Mobile drawer */
.site-nav-mobile {
  position: fixed;
  inset: 0;
  background: color-mix(in oklch, var(--ink) 96%, transparent);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  padding: 100px var(--gutter) 40px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .35s var(--ease), visibility .35s var(--ease);
  visibility: hidden;
  overflow-y: auto;
}
.site-nav-mobile.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.site-nav-mobile a {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--paper);
  padding: 6px 0;
  border-bottom: 1px solid color-mix(in oklch, var(--paper) 8%, transparent);
}
.site-nav-mobile a:hover { color: var(--xpeng); }
.site-nav-mobile .btn {
  margin-top: 20px;
  align-self: flex-start;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 0;
  border-bottom: 0;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 140px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  background: var(--ink);
}
@media (max-width: 720px) {
  .hero__video { object-position: 60% center; }
}
.hero.is-ready .hero__media img { transform: scale(1); }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(80% 90% at 0% 100%,
      color-mix(in oklch, var(--ink) 85%, transparent) 0%,
      color-mix(in oklch, var(--ink) 45%, transparent) 35%,
      transparent 70%
    ),
    linear-gradient(180deg,
      color-mix(in oklch, var(--ink) 25%, transparent) 0%,
      transparent 28%,
      transparent 55%,
      color-mix(in oklch, var(--ink) 75%, transparent) 100%
    );
}
@media (max-width: 720px) {
  .hero__veil {
    background:
      linear-gradient(180deg,
        color-mix(in oklch, var(--ink) 50%, transparent) 0%,
        color-mix(in oklch, var(--ink) 20%, transparent) 30%,
        color-mix(in oklch, var(--ink) 30%, transparent) 60%,
        color-mix(in oklch, var(--ink) 90%, transparent) 100%
      );
  }
}
.hero__content {
  max-width: 760px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero__content .eyebrow { color: var(--paper); opacity: 0.95; }
.hero__content .eyebrow__dot { background: var(--xpeng); box-shadow: 0 0 12px var(--xpeng); }
.hero__title {
  font-family: var(--f-sans);
  font-size: clamp(44px, 7vw, 108px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin-top: 22px;
  color: var(--paper);
  text-shadow:
    0 2px 24px color-mix(in oklch, var(--ink) 80%, transparent),
    0 1px 2px color-mix(in oklch, var(--ink) 60%, transparent);
  overflow-wrap: break-word;
  hyphens: none;
}
.hero__title em {
  font-style: normal;
  color: var(--paper);
  font-weight: 400;
  opacity: 0.82;
}
.hero__lede {
  max-width: 52ch;
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.55;
  color: var(--paper);
  opacity: 0.96;
  margin-top: 24px;
  text-shadow:
    0 1px 16px color-mix(in oklch, var(--ink) 75%, transparent),
    0 1px 2px color-mix(in oklch, var(--ink) 55%, transparent);
}
@media (max-width: 720px) {
  .hero__title { font-size: clamp(40px, 10vw, 56px); line-height: 1.02; font-weight: 700; }
  .hero__title br { display: none; }
  .hero__lede { font-size: 15px; max-width: 100%; line-height: 1.55; }
  .hero { padding-top: 100px; padding-bottom: 88px; align-items: flex-end; }
  .hero__content { padding-bottom: 30px; }
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 480px) {
  .hero__cta .btn { width: 100%; }
}
.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: var(--gutter);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
  color: var(--paper);
  text-decoration: none;
  transition: opacity .25s var(--ease), transform .35s var(--ease);
}
.hero__scroll:hover { transform: translateY(2px); }
.hero__scroll-label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0.9;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-shadow: 0 1px 8px color-mix(in oklch, var(--ink) 70%, transparent);
}
.hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 64px;
  background: color-mix(in oklch, var(--paper) 28%, transparent);
  overflow: hidden;
  border-radius: 1px;
}
.hero__scroll-trail {
  position: absolute;
  left: 0;
  top: -40%;
  width: 100%;
  height: 40%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--xpeng) 60%,
    var(--paper) 100%
  );
  animation: scrollTrail 2.2s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
@keyframes scrollTrail {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(360%); opacity: 0; }
}
@media (max-width: 720px) {
  .hero__scroll { right: 18px; bottom: 32px; gap: 12px; }
  .hero__scroll-line { height: 48px; }
}
@media (max-width: 480px) {
  .hero__scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll-trail { animation: none; opacity: 1; top: 30%; height: 30%; }
}
.hero__dots {
  position: absolute;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 10px;
  z-index: 2;
  padding: 10px 14px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 45%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in oklch, white 18%, transparent);
}
.hero__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklch, white 35%, transparent);
  cursor: pointer;
  padding: 0;
  transition: background .3s var(--ease), width .3s var(--ease);
}
.hero__dot.is-active {
  background: var(--xpeng);
  width: 44px;
}
.hero__dot:hover { background: color-mix(in oklch, white 65%, transparent); }
.hero__dot.is-active:hover { background: var(--xpeng); }
@media (max-width: 720px) {
  .hero__dots { bottom: 28px; }
}
@media (max-width: 480px) {
  .hero__dots { bottom: 22px; padding: 8px 12px; }
  .hero__dot { width: 22px; }
  .hero__dot.is-active { width: 36px; }
}
.hero__scroll svg { animation: bob 2s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============ SPECBAND ============ */
.specband {
  background: var(--ink);
  padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  border-top: 1px solid var(--ink-line-soft);
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--ink-line);
  border-left: 1px solid var(--ink-line);
}
@media (min-width: 900px) {
  .specs {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}
.spec {
  padding: 32px 20px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}
@media (min-width: 600px) {
  .spec { padding: 40px 28px; }
}
@media (min-width: 900px) {
  .spec { padding: 48px 32px; }
}
.spec--lead { background: color-mix(in oklch, var(--xpeng) 6%, transparent); }
.spec__num {
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.spec__unit {
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--paper-mute);
  margin-top: 8px;
}
.spec__label {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 24px;
}
.spec__note {
  font-size: 15px;
  color: var(--paper-mute);
  margin-top: 8px;
}

/* ============ CHAPTER (Design section) ============ */
.chapter {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--ink);
  padding-bottom: clamp(80px, 12vw, 140px);
}
@media (min-width: 980px) {
  .chapter {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
  }
}
.chapter__media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  aspect-ratio: 16 / 11;
  max-width: 100%;
}
@media (min-width: 980px) {
  .chapter__media {
    aspect-ratio: auto;
    min-height: 560px;
    height: 100%;
  }
}
.chapter__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.chapter__copy {
  padding: 48px var(--gutter) 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
}
@media (min-width: 700px) {
  .chapter__copy { padding: 64px var(--gutter); }
}
@media (min-width: 980px) {
  .chapter__copy {
    padding: 80px clamp(40px, 4.5vw, 72px);
    max-width: 640px;
  }
}
.chapter__title {
  font-family: var(--f-sans);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-top: 20px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.chapter__text {
  margin-top: 26px;
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
  max-width: 52ch;
}
.chapter__list {
  margin-top: 36px;
  display: grid;
  gap: 18px;
}
.chapter__list > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ink-line-soft);
}
.chapter__list dt {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding-top: 2px;
}
.chapter__list dd {
  margin: 0;
  font-size: 16px;
  color: var(--paper);
  opacity: 0.9;
  line-height: 1.55;
}

/* ============ XPILOT ============ */
.xpilot {
  position: relative;
  padding: clamp(80px, 14vw, 160px) 0;
  overflow: hidden;
  isolation: isolate;
  background: color-mix(in oklch, var(--ink) 92%, black);
}
.xpilot__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.xpilot__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  filter: none;
}
.xpilot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 50% 100%, color-mix(in oklch, var(--xpeng) 14%, transparent), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, transparent 30%, var(--ink) 100%);
}
.xpilot__inner { position: relative; z-index: 1; }
.xpilot__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 64px;
}
@media (min-width: 800px) {
  .xpilot__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px;
  }
}
.xpilot__col-title {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xpeng);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink-line);
  margin-bottom: 20px;
}
.xpilot__col ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.xpilot__col li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  color: var(--paper);
  opacity: 0.92;
  padding: 10px 0;
}
@media (min-width: 700px) {
  .xpilot__col li { grid-template-columns: 90px 1fr; gap: 18px; font-size: 17px; }
}
.xpilot__col li span {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--paper);
  background: color-mix(in oklch, var(--paper) 12%, transparent);
  border: 1px solid var(--ink-line);
  padding: 5px 8px;
  border-radius: 4px;
  text-align: center;
}

/* ============ INTERIOR / MOSAIC ============ */
.interior {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--ink);
}
.mosaic {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mosaic__tile--big { grid-column: span 2; }
.mosaic__tile--wide { grid-column: span 2; }
@media (min-width: 800px) {
  .mosaic {
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-auto-rows: minmax(260px, auto);
    gap: 16px;
  }
  .mosaic__tile--big { grid-column: auto; grid-row: span 2; }
  .mosaic__tile--wide { grid-column: span 2; }
}
.mosaic__tile {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink-soft);
  min-height: 220px;
}
@media (min-width: 600px) {
  .mosaic__tile { min-height: 280px; }
}
.mosaic__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.mosaic__tile:hover img { transform: scale(1.04); }
.mosaic__tile figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  max-width: calc(100% - 28px);
  font-size: 13px;
  color: oklch(0.98 0.005 250);
  background: oklch(0.14 0.012 250 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid oklch(1 0 0 / 0.08);
}
@media (min-width: 600px) {
  .mosaic__tile figcaption { left: 18px; bottom: 18px; font-size: 14px; padding: 12px 16px; }
}
.mosaic__tile figcaption span {
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--xpeng);
  margin-bottom: 5px;
}
@media (min-width: 600px) {
  .mosaic__tile figcaption span { font-size: 12px; margin-bottom: 6px; }
}
/* Mosaic gradient overlay removed per user request — photos display clean */

/* ============ CHARGING ============ */
.charging {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, color-mix(in oklch, var(--ink) 90%, black) 100%);
  border-top: 1px solid var(--ink-line-soft);
}
.charging__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 980px) {
  .charging__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 96px;
  }
}
.charging__title {
  font-family: var(--f-sans);
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-top: 20px;
}
.charging__text {
  margin-top: 26px;
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(17px, 1.25vw, 19px);
  line-height: 1.65;
  max-width: 52ch;
}
.charging__text strong { color: var(--xpeng); font-weight: 500; }
.charging__facts {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line);
}
.charging__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.charging__facts strong {
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 500;
  color: var(--paper);
}
.charging__facts span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

.charging__viz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.charging__ring {
  position: relative;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 1;
}
.charging__ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: var(--ink-line);
  stroke-width: 2;
}
.ring-fg {
  fill: none;
  stroke: var(--xpeng);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 540;
  stroke-dashoffset: 540;
  transition: stroke-dashoffset 1.8s var(--ease);
  filter: drop-shadow(0 0 12px color-mix(in oklch, var(--xpeng) 60%, transparent));
}
.charging__ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.charging__ring-num span {
  font-family: var(--f-sans);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.charging__ring-num i {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 16px;
  color: var(--paper-mute);
  margin-left: 4px;
  vertical-align: top;
}
.charging__ring-num small {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.charging__bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bar {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: center;
}
.bar span {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--paper-mute);
}
.bar__track {
  height: 4px;
  background: var(--ink-line);
  border-radius: 2px;
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  width: 0;
  background: var(--xpeng);
  border-radius: 2px;
  transition: width 1.4s var(--ease);
}
.charging.is-visible .bar__fill { width: var(--w); }

/* ============ GALLERY ============ */
.gallery {
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
  background: var(--ink);
  overflow: hidden;
}
.gallery .section-head { padding-bottom: 40px; }
.gallery__strip {
  display: flex;
  gap: 16px;
  padding: 0 var(--gutter) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-line) transparent;
}
.gallery__strip::-webkit-scrollbar { height: 6px; }
.gallery__strip::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 3px; }
.gallery__strip figure {
  flex: 0 0 min(620px, 78vw);
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-soft);
  scroll-snap-align: start;
}
.gallery__strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__strip figure:hover img { transform: scale(1.04); }
.gallery__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* ============ SHOWROOM ============ */
.showroom {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    linear-gradient(180deg, var(--ink) 0%, color-mix(in oklch, var(--ink) 88%, black) 100%);
  border-top: 1px solid var(--ink-line-soft);
}
.showroom__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: end;
}
@media (min-width: 900px) {
  .showroom__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 96px;
  }
}
.showroom__title {
  font-family: var(--f-sans);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 20px;
}
.showroom__text {
  margin-top: 26px;
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.65;
  max-width: 48ch;
}
.showroom__card {
  font-style: normal;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 32px clamp(22px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 700px) {
  .showroom__card { padding: 40px clamp(28px, 4vw, 44px); gap: 28px; }
}
.showroom__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 64px; height: 1px;
  background: var(--xpeng);
}
.showroom__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--ink-line-soft);
}
.showroom__row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.showroom__row--cta {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
  border: 0;
}
.showroom__label {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.showroom__value {
  font-size: 19px;
  line-height: 1.5;
  color: var(--paper);
  font-weight: 400;
}
.showroom__value a { color: var(--paper); transition: color .2s var(--ease); }
.showroom__value a:hover { color: var(--xpeng); }

/* ============ POST VENTA ============ */
.aftersales {
  padding: clamp(80px, 12vw, 140px) 0;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in oklch, var(--xpeng) 8%, transparent), transparent 60%),
    var(--ink);
  border-top: 1px solid var(--ink-line-soft);
}
.aftersales__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .aftersales__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (min-width: 1100px) {
  .aftersales__grid { grid-template-columns: repeat(4, 1fr); }
}
.aftersales__card {
  position: relative;
  padding: 26px 22px 24px;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
@media (min-width: 700px) {
  .aftersales__card { padding: 32px 28px 30px; }
}
.aftersales__card:hover {
  border-color: color-mix(in oklch, var(--xpeng) 40%, var(--ink-line));
  transform: translateY(-4px);
}
.aftersales__card--featured {
  background:
    linear-gradient(180deg, color-mix(in oklch, var(--xpeng) 18%, var(--ink-soft)) 0%, var(--ink-soft) 70%);
  border-color: color-mix(in oklch, var(--xpeng) 35%, var(--ink-line));
}
.aftersales__icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklch, var(--xpeng) 18%, transparent);
  color: var(--xpeng);
  border: 1px solid color-mix(in oklch, var(--xpeng) 30%, transparent);
}
.aftersales__card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 6px 0 0;
}
.aftersales__card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  opacity: 0.85;
}
.aftersales__list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ink-line-soft);
}
.aftersales__list li {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-mute);
  padding-left: 14px;
  position: relative;
}
.aftersales__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 1px;
  background: var(--xpeng);
}
.aftersales__big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 0 !important;
}
.aftersales__big strong {
  font-family: var(--f-sans);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
  opacity: 1;
}
.aftersales__big span {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.aftersales__cta {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--ink-line-soft);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .aftersales__cta {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
  }
}
.aftersales__cta p {
  font-size: 17px;
  color: var(--paper);
  opacity: 0.85;
  max-width: 36ch;
}
.aftersales__cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ RESERVA ============ */
.reserve {
  padding: clamp(80px, 12vw, 140px) 0;
  background: color-mix(in oklch, var(--ink) 92%, black);
  border-top: 1px solid var(--ink-line-soft);
}
.reserve__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 900px) {
  .reserve__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 80px;
    align-items: start;
  }
}
.reserve__title {
  font-family: var(--f-sans);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-top: 20px;
}
.reserve__text {
  margin-top: 26px;
  color: var(--paper);
  opacity: 0.92;
  font-size: clamp(17px, 1.3vw, 20px);
  max-width: 44ch;
  line-height: 1.65;
}
.reserve__bullets {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.reserve__bullets li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 16px;
  color: var(--paper);
  opacity: 0.9;
}
.reserve__bullets li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--xpeng);
  margin-left: 6px;
}
.reserve__form {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 28px clamp(20px, 3.5vw, 40px) 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 700px) {
  .reserve__form { padding: 36px clamp(24px, 3.5vw, 40px); gap: 22px; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.field input,
.field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-line);
  padding: 12px 0 14px;
  color: var(--paper);
  font-size: 17px;
  transition: border-color .25s var(--ease);
  resize: vertical;
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--paper-dim);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--xpeng);
}
.reserve__fineprint {
  font-size: 13px;
  color: var(--paper-mute);
  line-height: 1.55;
}

/* ============ FOOTER ============ */
.footer {
  background: color-mix(in oklch, var(--ink) 85%, black);
  border-top: 1px solid var(--ink-line-soft);
  color: var(--paper-mute);
}
.footer__inner {
  padding: clamp(50px, 9vw, 96px) var(--gutter) 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 900px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 96px;
    align-items: start;
  }
}
.footer__logos {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__logo {
  display: block;
  width: auto;
  object-fit: contain;
}
.footer__logo--xpeng { height: 28px; }
.footer__logo--partner { height: 30px; opacity: 0.92; transition: opacity .2s var(--ease); }
.footer__logo-link:hover .footer__logo--partner { opacity: 1; }
.footer__logo-divider {
  width: 1px;
  height: 22px;
  background: color-mix(in oklch, var(--paper) 22%, transparent);
}
.footer__claim {
  margin-top: 22px;
  font-size: 15px;
  color: var(--paper);
  opacity: 0.85;
  max-width: 32ch;
  line-height: 1.5;
}
.footer__partner-line {
  margin-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--paper-mute);
  line-height: 1.5;
}
.footer__partner-line strong {
  color: var(--paper);
  font-weight: 500;
}
@media (max-width: 480px) {
  .footer__logos { gap: 14px; }
  .footer__logo--xpeng { height: 24px; }
  .footer__logo--partner { height: 26px; }
  .footer__logo-divider { height: 20px; }
}
.footer__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-line-soft);
}
@media (min-width: 480px) {
  .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (min-width: 700px) {
  .footer__cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 32px;
    padding-top: 0;
    border-top: 0;
  }
}
@media (min-width: 1024px) {
  .footer__cols { grid-template-columns: repeat(5, 1fr); }
}
.footer__cols .footer__head {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 14px;
  line-height: 1.3;
  opacity: 1;
}
.footer__cols p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
  opacity: 0.88;
}
.footer__cols a {
  text-decoration: none;
}
.footer__cols a {
  color: var(--paper);
  opacity: 0.88;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}
.footer__cols a:hover { opacity: 1; }
.footer__cols a:hover { color: var(--xpeng); }
.footer__bottom {
  border-top: 1px solid var(--ink-line-soft);
  padding: 22px 0;
}
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
@media (max-width: 480px) {
  .footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 10px;
  }
}

/* ============ THEME TOGGLE ============ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--paper) 8%, transparent);
  border: 1px solid color-mix(in oklch, var(--paper) 14%, transparent);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
  flex: 0 0 auto;
}
.theme-toggle:hover {
  background: color-mix(in oklch, var(--paper) 16%, transparent);
  transform: rotate(15deg);
}
.theme-toggle svg {
  position: absolute;
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.theme-toggle__sun { opacity: 0; transform: scale(0.7) rotate(-90deg); }
.theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="light"] .theme-toggle__sun { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="light"] .theme-toggle__moon { opacity: 0; transform: scale(0.7) rotate(90deg); }

/* ============ LIGHT THEME OVERRIDES ============ */
/* Hero copy stays WHITE over the video regardless of theme */
[data-theme="light"] .hero__title,
[data-theme="light"] .hero__lede {
  text-shadow:
    0 2px 24px color-mix(in oklch, black 70%, transparent),
    0 1px 3px color-mix(in oklch, black 60%, transparent);
  color: oklch(0.98 0.005 250);
}
[data-theme="light"] .hero__title em { color: oklch(0.98 0.005 250); opacity: 0.78; }
[data-theme="light"] .hero__content .eyebrow { color: oklch(0.98 0.005 250); opacity: 0.95; }
[data-theme="light"] .hero__scroll,
[data-theme="light"] .hero__scroll-label { color: oklch(0.98 0.005 250); }
[data-theme="light"] .hero__scroll-line { background: color-mix(in oklch, oklch(0.98 0 0) 35%, transparent); }

/* Hero veil darker in light to maintain copy contrast over bright video frames */
[data-theme="light"] .hero__veil {
  background:
    radial-gradient(80% 90% at 0% 100%,
      color-mix(in oklch, oklch(0.14 0.012 250) 88%, transparent) 0%,
      color-mix(in oklch, oklch(0.14 0.012 250) 50%, transparent) 35%,
      transparent 70%
    ),
    linear-gradient(180deg,
      color-mix(in oklch, oklch(0.14 0.012 250) 30%, transparent) 0%,
      transparent 28%,
      transparent 55%,
      color-mix(in oklch, oklch(0.14 0.012 250) 50%, transparent) 100%
    );
}

/* Ghost button light mode (header WhatsApp) */
[data-theme="light"] .btn--ghost {
  background: color-mix(in oklch, oklch(0.14 0.012 250) 6%, transparent);
  color: oklch(0.18 0.012 250);
  border-color: color-mix(in oklch, oklch(0.14 0.012 250) 14%, transparent);
}
[data-theme="light"] .btn--ghost:hover {
  background: color-mix(in oklch, oklch(0.14 0.012 250) 12%, transparent);
}

/* Theme toggle button colors in light mode */
[data-theme="light"] .theme-toggle {
  background: color-mix(in oklch, oklch(0.14 0.012 250) 6%, transparent);
  color: oklch(0.18 0.012 250);
  border-color: color-mix(in oklch, oklch(0.14 0.012 250) 14%, transparent);
}
[data-theme="light"] .theme-toggle:hover {
  background: color-mix(in oklch, oklch(0.14 0.012 250) 14%, transparent);
}

/* Header transparent state — make nav text dark on light page */
[data-theme="light"] .site-nav a { color: oklch(0.18 0.012 250); opacity: 0.78; }
[data-theme="light"] .site-nav a:hover { opacity: 1; }
[data-theme="light"] .site-header__menu {
  background: color-mix(in oklch, oklch(0.14 0.012 250) 8%, transparent);
  border-color: color-mix(in oklch, oklch(0.14 0.012 250) 14%, transparent);
}
[data-theme="light"] .site-header__menu span { background: oklch(0.18 0.012 250); }

/* Mobile drawer light */
[data-theme="light"] .site-nav-mobile {
  background: color-mix(in oklch, oklch(1 0 0) 95%, transparent);
}
[data-theme="light"] .site-nav-mobile a {
  color: oklch(0.18 0.012 250);
  border-bottom-color: color-mix(in oklch, oklch(0.14 0.012 250) 10%, transparent);
}

/* XPILOT section: lift background image so the dark section retains presence */
[data-theme="light"] .xpilot { background: color-mix(in oklch, oklch(0.14 0.012 250) 95%, white); }
[data-theme="light"] .xpilot__bg img { opacity: 0.18; }
/* Inside xpilot keep light-on-dark for legibility */
[data-theme="light"] .xpilot .section-title,
[data-theme="light"] .xpilot .section-lede,
[data-theme="light"] .xpilot .xpilot__col li,
[data-theme="light"] .xpilot .xpilot__sensors strong,
[data-theme="light"] .xpilot .xpilot__sensors span,
[data-theme="light"] .xpilot__col li span {
  color: oklch(0.98 0.005 250);
}
[data-theme="light"] .xpilot .eyebrow { color: oklch(0.78 0.008 250); }
[data-theme="light"] .xpilot__col-title { color: var(--xpeng-soft); }

/* Spec featured cell subtler */
[data-theme="light"] .spec--lead { background: color-mix(in oklch, var(--xpeng) 10%, transparent); }

/* Aftersales card surfaces deepen so they read on light page */
[data-theme="light"] .aftersales {
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in oklch, var(--xpeng) 10%, transparent), transparent 60%),
    var(--ink);
}
[data-theme="light"] .aftersales__card { background: oklch(1 0 0); border-color: var(--ink-line); }
[data-theme="light"] .aftersales__card--featured {
  background: linear-gradient(180deg, color-mix(in oklch, var(--xpeng) 22%, oklch(1 0 0)) 0%, oklch(1 0 0) 70%);
  border-color: color-mix(in oklch, var(--xpeng) 35%, var(--ink-line));
}
[data-theme="light"] .aftersales__icon {
  background: color-mix(in oklch, var(--xpeng) 16%, transparent);
  border-color: color-mix(in oklch, var(--xpeng) 30%, transparent);
  color: var(--xpeng-deep);
}

/* Showroom + reserve cards */
[data-theme="light"] .showroom__card,
[data-theme="light"] .reserve__form {
  background: oklch(1 0 0);
  border-color: var(--ink-line);
}
[data-theme="light"] .field input,
[data-theme="light"] .field textarea {
  border-bottom-color: var(--ink-line);
  color: var(--paper);
}
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus { border-bottom-color: var(--xpeng-deep); }

/* Footer in light mode: keep dark-on-dark band for contrast pillar */
[data-theme="light"] .footer {
  background: oklch(0.14 0.012 250);
  border-top-color: oklch(0.30 0.012 250);
}
[data-theme="light"] .footer,
[data-theme="light"] .footer .footer__head,
[data-theme="light"] .footer .footer__cols p,
[data-theme="light"] .footer .footer__cols a,
[data-theme="light"] .footer__claim,
[data-theme="light"] .footer__partner-line strong,
[data-theme="light"] .footer__bottom-inner {
  color: oklch(0.96 0.005 250);
}
[data-theme="light"] .footer .footer__head { color: oklch(0.72 0.008 250); }
[data-theme="light"] .footer__partner-line { color: oklch(0.72 0.008 250); }
[data-theme="light"] .footer__bottom { border-top-color: oklch(0.30 0.012 250); }
[data-theme="light"] .footer__cols { border-top-color: oklch(0.30 0.012 250); }
[data-theme="light"] .footer__logo-divider { background: color-mix(in oklch, oklch(0.96 0.005 250) 25%, transparent); }
/* Don't invert footer logos — footer stays dark */
[data-theme="light"] .footer__logo { filter: none; }

/* Charging dark-style section in light mode keep elevated panel */
[data-theme="light"] .charging {
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in oklch, var(--ink) 96%, black) 100%);
}

/* Spec band keep light surface, but bumps */
[data-theme="light"] .specband { border-top-color: var(--ink-line); }

/* Scroll progress bar slightly stronger in light */
[data-theme="light"] .scroll-progress { background: color-mix(in oklch, oklch(0.14 0.012 250) 10%, transparent); }

/* Selection in light */
[data-theme="light"] ::selection { background: var(--xpeng); color: oklch(0.16 0.012 250); }

/* Logos: only invert the header XPENG wordmark (white PNG) so it shows dark on light */
[data-theme="light"] .site-header__logo img {
  filter: invert(1) hue-rotate(180deg);
}

/* Eyebrow dot stays brand */
[data-theme="light"] .eyebrow__dot { background: var(--xpeng-deep); box-shadow: 0 0 12px var(--xpeng); }

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
  background: color-mix(in oklch, var(--paper) 6%, transparent);
}
.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--xpeng-deep) 0%, var(--xpeng) 100%);
  transform-origin: left center;
  box-shadow: 0 0 12px color-mix(in oklch, var(--xpeng) 60%, transparent);
  transition: width 80ms linear;
}

/* ============ XPILOT SENSORS STRIP ============ */
.xpilot__sensors {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
@media (min-width: 720px) {
  .xpilot__sensors { grid-template-columns: repeat(4, 1fr); }
}
.xpilot__sensors li {
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  position: relative;
  transition: background .25s var(--ease);
}
.xpilot__sensors li:nth-child(2n) { border-right: 0; }
.xpilot__sensors li:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 720px) {
  .xpilot__sensors li {
    padding: 28px 22px;
    border-bottom: 0;
    border-right: 1px solid var(--ink-line);
  }
  .xpilot__sensors li:nth-child(2n) { border-right: 1px solid var(--ink-line); }
  .xpilot__sensors li:last-child { border-right: 0; }
}
.xpilot__sensors li:hover {
  background: color-mix(in oklch, var(--xpeng) 4%, transparent);
}
.xpilot__sensors li::before {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 0;
  height: 1px;
  background: var(--xpeng);
  transition: width .4s var(--ease);
}
.xpilot__sensors li:hover::before { width: 100%; }
.xpilot__sensors strong {
  font-family: var(--f-sans);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--paper);
}
.xpilot__sensors span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* Push the columns grid down a bit since we added a strip */
.xpilot__grid { margin-top: 64px; }

/* ============ MOSAIC HOVER REVEAL ============ */
.mosaic__tile figcaption {
  transform: translateY(8px);
  opacity: 0.92;
  transition: transform .45s var(--ease), opacity .35s var(--ease);
}
.mosaic__tile:hover figcaption {
  transform: translateY(0);
  opacity: 1;
}
.mosaic__tile figcaption span {
  display: inline-block;
  transform: translateY(0);
  transition: transform .45s var(--ease);
}

/* ============ AFTERSALES CARD ACCENT LINE ============ */
.aftersales__card {
  overflow: hidden;
}
.aftersales__card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--xpeng) 0%, transparent 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s var(--ease);
}
.aftersales__card:hover::before { transform: scaleX(1); }
.aftersales__card .aftersales__icon {
  transition: transform .35s var(--ease), background .25s var(--ease);
}
.aftersales__card:hover .aftersales__icon {
  transform: translateY(-2px) scale(1.04);
  background: color-mix(in oklch, var(--xpeng) 28%, transparent);
}

/* ============ HERO SLIDE REFINEMENT ============ */
.hero__slide {
  transition: opacity 1.6s cubic-bezier(0.6, 0.05, 0.2, 1), transform 9s linear;
}

/* ============ REVEAL ANIMATIONS ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

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