/* China Luxury Car Parts — site design tokens & motion */

:root {
  --ink: #0c1218;
  --steel: #16202a;
  --slate: #2a3644;
  --surface: #eef1f4;
  --paper: #f7f8fa;
  --line: rgba(12, 18, 24, 0.1);
  --muted: #5c6b7a;
  --accent: #c4a035;
  --accent-hot: #dfb84a;
  --accent-ink: #1a1508;
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: var(--font-display);
}

.text-accent {
  color: var(--accent);
}

.bg-accent {
  background-color: var(--accent);
}

.border-accent {
  border-color: var(--accent);
}

/* Atmosphere mesh behind light sections */
.mesh-light {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(196, 160, 53, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(22, 32, 42, 0.06), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--surface) 100%);
}

.mesh-dark {
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(196, 160, 53, 0.14), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 255, 255, 0.04), transparent 45%),
    linear-gradient(145deg, #0a1016 0%, #16202a 55%, #0f1720 100%);
}

/* Hero motion */
.hero-media {
  animation: hero-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(22px);
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.5s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Category tile hover sheen */
.cat-tile {
  position: relative;
  overflow: hidden;
}

.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(196, 160, 53, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.cat-tile:hover::after {
  transform: translateX(120%);
}

/* Trust ticker */
.trust-strip {
  border-block: 1px solid rgba(196, 160, 53, 0.25);
}

/* RFQ field focus */
.rfq-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 160, 53, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-copy > *,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
