/* =============================================================
 * CHENGTUZHI TRADING — main.css
 *  - Base reset + tokens
 *  - Header / footer / nav / buttons / forms / grid
 *  - Component styles (hero, sections, cards, marquee, ...)
 *  - Motion: fade-up, split-text-kinetic, marquee, parallax-y,
 *           scroll-progress-bar, magnetic-cta, mascot-bob,
 *           holo-sweep, car-floating-panel, supply-chain-particles
 *
 *  SPEC L59 — "网站参考比亚迪汽车官网风格，要有丰富的动画效果，
 *              不允许使用简要风格和简要的效果". Rich motion required.
 * ============================================================= */

@import url("./tokens.css");

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--lh-body);
  color: var(--ink-900);
  background: var(--paper-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-display: swap;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: var(--brand-cobalt); text-decoration: none; transition: color var(--dur-fast) var(--ease-out-soft); }
a:hover, a:focus-visible { color: var(--brand-cobalt-deep); }
:focus-visible { outline: 3px solid var(--brand-cobalt-glow); outline-offset: 3px; border-radius: 4px; }

/* ----- Typography utilities ----- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); color: var(--ink-900); }
h1 { font-size: var(--type-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); font-weight: var(--weight-display); }
h2 { font-size: var(--type-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); font-weight: var(--weight-display); }
h3 { font-size: var(--type-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); font-weight: var(--weight-h3); }
h4 { font-size: var(--type-h4); line-height: var(--lh-h4); letter-spacing: var(--ls-h4); font-weight: var(--weight-h4); }
h5 { font-size: var(--type-h5); line-height: var(--lh-h5); letter-spacing: var(--ls-h5); font-weight: var(--weight-h5); }
h6 { font-size: var(--type-h6); line-height: var(--lh-h6); font-weight: var(--weight-h6); }
p { margin: 0 0 var(--space-4) 0; max-width: 70ch; }
p:last-child { margin-bottom: 0; }
small { font-size: var(--type-body-sm); line-height: var(--lh-body-sm); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--type-overline);
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  color: var(--brand-cobalt);
  font-weight: var(--weight-overline);
  margin-bottom: var(--space-3);
}
.lead {
  font-size: var(--type-body-lg);
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 65ch;
}

.kicker { font-family: var(--font-mono); font-size: var(--type-overline); letter-spacing: var(--ls-overline); text-transform: uppercase; color: var(--silver-300); }

/* ----- Layout containers ----- */
.container { width: min(100% - var(--container-pad-x) * 2, var(--container-text)); margin-inline: auto; }
.container--full { width: min(100% - var(--container-pad-x) * 2, var(--container-full)); margin-inline: auto; }
.section { padding-block: var(--section-pad-y); position: relative; }
.section--dark { background: var(--grad-dark-canvas); color: var(--paper-50); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4, .section--dark h5, .section--dark h6 { color: var(--pure-white); }
.section--paper { background: var(--paper-50); }
.section--ink { background: var(--ink-900); color: var(--paper-50); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4, .section--ink h5, .section--ink h6 { color: var(--pure-white); }
.section--copper { background: var(--grad-copper-light); }
.eyebrow--light { color: var(--gold-500); }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
.grid--5 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .grid--4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .grid--5 { grid-template-columns: repeat(5, 1fr); }
}

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--type-body);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft),
              background var(--dur-fast) var(--ease-out-soft),
              color var(--dur-fast) var(--ease-out-soft);
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--brand-cobalt-glow); outline-offset: 3px; }
.btn .btn__icon { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-out-soft); }
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--primary { background: var(--brand-cobalt); color: var(--pure-white); box-shadow: var(--shadow-2); }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-cobalt-deep); color: var(--pure-white); box-shadow: var(--shadow-3); }

.btn--ghost { background: transparent; color: var(--ink-900); border: 1px solid var(--ink-900); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink-900); color: var(--paper-50); }

.btn--vermillion { background: var(--brand-vermillion); color: var(--pure-white); box-shadow: var(--shadow-glow-vermil); }
.btn--vermillion:hover, .btn--vermillion:focus-visible { background: var(--brand-vermillion-deep); color: var(--pure-white); }

.btn--inverse { background: var(--pure-white); color: var(--ink-900); }
.btn--inverse:hover, .btn--inverse:focus-visible { background: var(--paper-100); color: var(--ink-900); }

.btn--lg { padding: var(--space-4) var(--space-6); font-size: var(--type-body-lg); }
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--type-body-sm); }

/* Magnetic CTA — container adds perspective; inner wraps content */
.cta-magnet { display: inline-block; perspective: 600px; }
.cta-magnet .btn { will-change: transform; transition: transform var(--dur-fast) var(--ease-spring); }

/* ----- Header / Nav ----- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-sticky);
  padding: var(--space-3) 0;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out-soft),
              backdrop-filter var(--dur-base) var(--ease-out-soft),
              padding var(--dur-base) var(--ease-out-soft);
}
.site-header.is-scrolled {
  background: var(--ink-900-85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: var(--space-2) 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h5);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out-soft);
}
.site-header.is-scrolled .site-header__logo { color: var(--pure-white); }
.site-header__logo img { height: 36px; width: auto; }
.site-header__logo-text { display: inline-block; }

.site-nav { display: none; align-items: center; gap: var(--space-5); }
.site-nav__link {
  color: var(--ink-900);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--type-body-sm);
  letter-spacing: -0.005em;
  position: relative;
  padding: var(--space-2) 0;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 4px;
  width: 0; height: 2px;
  background: var(--brand-cobalt);
  transition: width var(--dur-base) var(--ease-out-soft);
}
.site-nav__link:hover, .site-nav__link:focus-visible { color: var(--brand-cobalt); }
.site-nav__link:hover::after, .site-nav__link:focus-visible::after,
.site-nav__link.is-active::after { width: 100%; }
.site-header.is-scrolled .site-nav__link { color: var(--paper-50); }
.site-header.is-scrolled .site-nav__link:hover, .site-header.is-scrolled .site-nav__link:focus-visible { color: var(--brand-cobalt-glow); }

.site-header__actions { display: inline-flex; align-items: center; gap: var(--space-3); }
.site-header__cta { background: var(--brand-cobalt); color: var(--pure-white); padding: var(--space-2) var(--space-4); border-radius: var(--radius-md); font-size: var(--type-body-sm); font-weight: 600; transition: background var(--dur-fast); }
.site-header__cta:hover { background: var(--brand-cobalt-deep); color: var(--pure-white); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--silver-300);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: var(--ink-900);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang-toggle:hover { background: var(--ink-900); color: var(--paper-50); }
.site-header.is-scrolled .lang-toggle { color: var(--paper-50); border-color: var(--silver-300); }
.site-header.is-scrolled .lang-toggle:hover { background: var(--paper-50); color: var(--ink-900); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--pure-white);
  color: var(--ink-900);
  box-shadow: var(--shadow-1);
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 1024px) {
  .site-nav { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.site-nav--mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--ink-900);
  color: var(--paper-50);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-out-snap);
}
.site-nav--mobile.is-open { transform: translateY(0); }
.site-nav--mobile .site-nav__link { color: var(--paper-50); font-size: var(--type-h3); }
.site-nav--mobile__close { position: absolute; top: var(--space-4); right: var(--space-4); color: var(--paper-50); }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink-900);
  color: var(--paper-50);
  padding-block: var(--space-9) var(--space-6);
  position: relative;
  overflow: hidden;
}
.site-footer__inner { display: grid; gap: var(--space-7); }
.site-footer__col h6 { color: var(--silver-300); margin-bottom: var(--space-3); }
.site-footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col a { color: var(--paper-50); font-size: var(--type-body-sm); }
.site-footer__col a:hover { color: var(--brand-cobalt-glow); }
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer__brand img { height: 40px; width: auto; }
.site-footer__brand p { color: var(--silver-300); font-size: var(--type-body-sm); }
.site-footer__bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--type-caption);
  color: var(--silver-300);
}
.site-footer__bottom-links { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.site-footer__socials { display: inline-flex; gap: var(--space-3); }
.site-footer__socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-full); background: rgba(255,255,255,0.06); transition: background var(--dur-fast); }
.site-footer__socials a:hover { background: var(--brand-cobalt); }
.site-footer__socials img { width: 18px; height: 18px; filter: invert(1); }
.site-footer__store-badges { display: inline-flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.site-footer__store-badges img { height: 40px; width: auto; }
.site-footer__paw {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  opacity: 0.5;
  pointer-events: none;
}

@media (min-width: 768px) {
  .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr; }
  .site-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--paper-50);
  padding: var(--space-9) 0 var(--space-7);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,17,22,0.55) 0%, rgba(14,17,22,0.30) 40%, rgba(14,17,22,0.85) 100%);
  z-index: 1;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-6);
  align-items: end;
  width: 100%;
}
.hero__eyebrow { color: var(--brand-cobalt-glow); }
.hero__title {
  font-size: var(--type-display-xl);
  line-height: var(--lh-display-xl);
  letter-spacing: var(--ls-display-xl);
  font-weight: var(--weight-display);
  color: var(--pure-white);
  max-width: 18ch;
}
.hero__sub {
  font-size: var(--type-body-lg);
  line-height: 1.5;
  color: var(--silver-300);
  max-width: 56ch;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__mascot {
  position: absolute;
  bottom: var(--space-7);
  right: var(--space-5);
  width: clamp(120px, 18vw, 220px);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35));
}
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: 2fr 1fr; gap: var(--space-8); }
}

/* ----- Hero sub-pages ----- */
.hero--compact {
  min-height: 60vh;
  padding-top: var(--space-10);
}
.hero--compact .hero__title { font-size: var(--type-display-lg); line-height: var(--lh-display-lg); letter-spacing: var(--ls-display-xl); }

/* ----- Floating spec panel (hero accent) ----- */
.float-panel {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-3);
  transform: translate3d(0, 0, 0) rotate(0deg);
}
.float-panel__list { display: flex; flex-direction: column; gap: var(--space-3); list-style: none; }
.float-panel__item { display: flex; align-items: center; gap: var(--space-3); font-size: var(--type-body-sm); color: var(--paper-50); }
.float-panel__item img { width: 20px; height: 20px; flex-shrink: 0; }

/* ----- Service / value tiles ----- */
.tile {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft);
  position: relative;
  overflow: hidden;
}
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.tile__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--grad-cobalt);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--pure-white);
  box-shadow: var(--shadow-glow-cobalt);
}
.tile__icon img { width: 28px; height: 28px; filter: invert(1); }
.tile__title { font-size: var(--type-h4); font-family: var(--font-display); }
.tile__desc { color: var(--ink-700); font-size: var(--type-body); }
.tile__link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--brand-cobalt); font-weight: 600; }
.tile__link::after { content: "→"; transition: transform var(--dur-fast); }
.tile__link:hover::after { transform: translateX(4px); }

.tile--featured { background: var(--ink-900); color: var(--paper-50); }
.tile--featured .tile__desc { color: var(--silver-300); }
.tile--featured .tile__link { color: var(--brand-cobalt-glow); }

/* Holo-sweep on premium tiles */
.holo {
  position: relative;
  overflow: hidden;
}
.holo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.18) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform var(--dur-cinema) var(--ease-out-soft);
  pointer-events: none;
}
.holo:hover::after, .holo:focus-within::after { transform: translateX(120%); }

/* ----- News cards ----- */
.news-card {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--pure-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-out-soft),
              box-shadow var(--dur-base) var(--ease-out-soft);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.news-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-100);
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__date {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: var(--silver-300);
  letter-spacing: var(--ls-caption);
  text-transform: uppercase;
}
.news-card__title { font-size: var(--type-h4); font-family: var(--font-display); }
.news-card__excerpt { color: var(--ink-700); font-size: var(--type-body); }

/* ----- Value pillar cards (culture) ----- */
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--paper-100);
  border: 1px solid var(--silver-100);
  transition: transform var(--dur-base) var(--ease-out-soft), border-color var(--dur-base);
}
.pillar:hover { transform: translateY(-4px); border-color: var(--brand-cobalt-glow); }
.pillar__num {
  font-family: var(--font-mono);
  font-size: var(--type-overline);
  letter-spacing: var(--ls-overline);
  color: var(--brand-cobalt);
  font-weight: 700;
}

/* ----- Marquee ----- */
.marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: var(--space-7);
  padding-block: var(--space-4);
  animation: marquee var(--dur-marquee) linear infinite;
  will-change: transform;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--type-h4);
  font-weight: 700;
  color: var(--paper-50);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__item .dot { width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--brand-vermillion); display: inline-block; }
.marquee--inverse .marquee__item { color: var(--ink-900); }

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ----- Scroll progress bar ----- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--brand-cobalt);
  z-index: var(--z-cursor);
  transition: width 80ms linear;
}

/* ----- Section dividers (paw divider) ----- */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding-block: var(--space-5);
  color: var(--silver-300);
}
.divider__line { height: 1px; flex: 1; background: var(--silver-100); }
.divider__paw { font-size: var(--type-h5); }

/* ----- Forms ----- */
.form { display: grid; gap: var(--space-4); }
.form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.form__label { font-family: var(--font-display); font-weight: 600; font-size: var(--type-body-sm); }
.form__input, .form__textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--silver-300);
  background: var(--pure-white);
  font-size: var(--type-body);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form__textarea { min-height: 140px; resize: vertical; }
.form__input:focus, .form__textarea:focus { outline: none; border-color: var(--brand-cobalt); box-shadow: 0 0 0 3px rgba(10,77,140,0.18); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { font-size: var(--type-caption); color: var(--silver-300); }

/* ----- Mobile-app download block ----- */
.app-download {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  background: var(--grad-cobalt);
  color: var(--pure-white);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
}
.app-download__title { font-size: var(--type-h2); color: var(--pure-white); }
.app-download__badges { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }
.app-download__badges img { height: 56px; width: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.18)); transition: transform var(--dur-base) var(--ease-out-soft); }
.app-download__badges a:hover img { transform: translateY(-3px); }
.app-download__media { position: relative; }
.app-download__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-3); }

@media (min-width: 1024px) {
  .app-download { grid-template-columns: 1fr 1fr; padding: var(--space-9); gap: var(--space-8); }
}

/* ----- Stat strip ----- */
.stat-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  background: var(--paper-100);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.stat { display: flex; flex-direction: column; gap: var(--space-1); }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--type-h2);
  font-weight: 700;
  color: var(--brand-cobalt);
}
.stat__label { font-size: var(--type-body-sm); color: var(--ink-700); }

@media (min-width: 768px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }

/* ----- Two-up showcase block (image + copy) ----- */
.showcase { display: grid; gap: var(--space-6); align-items: center; }
.showcase__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-2); }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1024px) {
  .showcase { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .showcase--reverse .showcase__media { order: -1; }
}

/* ----- 404 page ----- */
.notfound {
  min-height: 80vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--space-9) var(--space-5);
  position: relative;
}
.notfound__title { font-size: var(--type-display-xl); color: var(--brand-cobalt); }
.notfound__mascot { width: clamp(160px, 28vw, 280px); margin-inline: auto; }

/* ----- Empty state ----- */
.empty {
  display: grid;
  place-items: center;
  text-align: center;
  gap: var(--space-4);
  padding: var(--space-9) var(--space-5);
}
.empty__mascot { width: clamp(160px, 28vw, 260px); }

/* =============================================================
 *  Motion vocabulary — keyframes & triggers
 *  SPEC L59 — rich BYD-automotive-grade motion required.
 * ============================================================= */

/* ----- fade-up (scroll reveal) ----- */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--dur-slow) var(--ease-out-soft),
              transform var(--dur-slow) var(--ease-out-soft);
  will-change: transform, opacity;
}
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }

/* ----- split-text kinetic (hero H1 per-char stagger) ----- */
.kinetic {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.kinetic__line { display: block; }
.kinetic__char {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  opacity: 0;
  animation: kinetic-up var(--dur-cinema) var(--ease-out-snap) forwards;
}
@keyframes kinetic-up {
  0%   { transform: translate3d(0, 110%, 0); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

/* ----- parallax-y (scroll-driven, capped) ----- */
.parallax-y { will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .parallax-y { transform: translate3d(0, var(--parallax-y, 0px), 0); }
}

/* ----- mascot-bob ----- */
.mascot-bob { animation: mascot-bob 2400ms linear infinite; transform-origin: center; }
@keyframes mascot-bob {
  0%   { transform: translate3d(0, 0, 0); }
  50%  { transform: translate3d(0, -12px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* ----- car-floating-panel (hero spec card tilt) ----- */
.float-panel { animation: float-panel var(--dur-cinema) var(--ease-in-out-car) forwards; }
@keyframes float-panel {
  0%   { transform: translate3d(40px, 0, 0) rotate(6deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 1; }
}

/* ----- supply-chain particles ----- */
.particles { position: relative; }
.particles__dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--brand-cobalt-glow);
  animation: particles-move 6000ms linear infinite;
  opacity: 0;
  box-shadow: 0 0 8px var(--brand-cobalt-glow);
}
@keyframes particles-move {
  0%   { offset-distance: 0%; opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ----- number counter ----- */
.counter { font-variant-numeric: tabular-nums; }

/* ----- nav-morph-bg — handled by .is-scrolled class ----- */

/* ----- Section heading reveal ----- */
.section-heading__title {
  font-size: var(--type-h1);
  font-weight: 700;
  letter-spacing: var(--ls-h1);
  line-height: var(--lh-h1);
}

/* =============================================================
 *  Motion utilities — instant fallbacks for reduced-motion users
 * ============================================================= */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .parallax-y { transform: none !important; }
  .marquee__track { animation: none !important; }
  .float-panel { animation: none !important; transform: none !important; opacity: 1 !important; }
  .kinetic__char { transform: none !important; opacity: 1 !important; animation: none !important; }
  .mascot-bob { animation: none !important; }
}

/* =============================================================
 *  Breakpoints (mobile-first)
 * ============================================================= */
@media (min-width: 480px) {
  .hero__title { max-width: 14ch; }
}
@media (min-width: 768px) {
  .container { width: min(100% - var(--container-pad-x) * 2, var(--container-text)); }
  .grid--inline { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .container { width: min(100% - var(--container-pad-x) * 2, var(--container-text)); }
}
@media (min-width: 1280px) {
  .container { width: min(100% - var(--container-pad-x) * 2, var(--container-text)); }
}
@media (min-width: 1600px) {
  .container { width: min(100% - var(--container-pad-x) * 2, var(--container-text)); }
}

/* =============================================================
 *  Legal documents (privacy.html, terms.html) — typography & tables
 * ============================================================= */
.legal {
  max-width: 920px;
  margin-inline: auto;
  padding-block: var(--space-8);
}
.legal h1 { margin-bottom: var(--space-3); }
.legal h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--type-h3);
  color: var(--brand-cobalt);
}
.legal h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-size: var(--type-h4);
}
.legal p { margin-bottom: var(--space-4); }
.legal ul, .legal ol { margin-bottom: var(--space-4); padding-left: var(--space-6); }
.legal li { margin-bottom: var(--space-2); line-height: var(--lh-body); }
.legal__meta {
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: var(--ink-700);
  letter-spacing: var(--ls-caption);
  margin-bottom: var(--space-7);
}
.legal__table-wrap { overflow-x: auto; margin-block: var(--space-4); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  background: var(--pure-white);
  font-size: var(--type-body-sm);
}
.legal__table th, .legal__table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--silver-100);
  vertical-align: top;
}
.legal__table thead th {
  background: var(--paper-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-body-sm);
  color: var(--ink-900);
  position: sticky;
  top: 0;
}
.legal__table tbody tr:hover { background: var(--paper-100); }
.legal__table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  color: var(--ink-700);
  padding: var(--space-2) var(--space-4);
  background: var(--paper-50);
  caption-side: top;
}
.legal__pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: var(--type-caption);
  font-weight: 600;
  background: var(--brand-cobalt);
  color: var(--pure-white);
}
.legal__pill--vermil { background: var(--brand-vermillion); }
.legal__pill--copper { background: var(--copper-500); }
.legal__pill--teal { background: var(--teal-500); }
.legal__pill--gold { background: var(--gold-500); color: var(--ink-900); }

.legal__callout {
  background: var(--paper-100);
  border-left: 4px solid var(--brand-cobalt);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-block: var(--space-4);
}
.legal__callout strong { font-family: var(--font-display); }

/* ----- Visually-hidden helper (a11y) ----- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ----- Skip link ----- */
.skip-link {
  position: fixed;
  top: -40px;
  left: var(--space-3);
  background: var(--brand-cobalt);
  color: var(--pure-white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: var(--z-toast);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-3); }