/* APEX Exotics — Sitely demo. Dark luxury: midnight + champagne gold. */

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/BebasNeue.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/Manrope.woff2') format('woff2');
}

:root {
  --bg: #0a0a0c;
  --bg-alt: #101015;
  --panel: #14141a;
  --line: rgba(244, 241, 234, 0.12);
  --ink: #f4f1ea;
  --muted: #a8a399;
  --gold: #c9a86a;
  --gold-hi: #e6cd96;
  --display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --body: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; }
h2 { font-size: clamp(2.6rem, 6vw, 4.5rem); }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.wrap-narrow { max-width: 820px; }

.eyebrow {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* ── buttons ── */
.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.9em 1.9em;
  border: 1px solid var(--line);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { color: var(--ink); border-color: rgba(244, 241, 234, 0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0a0a0c; }
.btn-gold:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn-lg { padding: 1.1em 2.4em; font-size: 0.8rem; }

/* ── nav ── */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 0.55rem; }
.brand svg { width: 22px; height: 22px; color: var(--gold); }
.brand span { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.24em; }
.nav-links { display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem); }
.nav-links > a:not(.btn) {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.nav-links > a:not(.btn):hover { color: var(--gold-hi); }
.nav-burger { display: none; }

/* ── scrub hero ── */
.scrub-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
  /* first frame as bg — an unpainted canvas must never flash black */
  background: #14161c url('../seq/frame-0001.jpg') center / cover no-repeat;
}
#scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.scrub-buffer {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  z-index: 3;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(244, 241, 234, 0.5);
  transition: opacity 0.5s;
}
.scrub-buffer.hidden { opacity: 0; }

.scrub-intro {
  position: absolute;
  left: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(5rem, 16vh, 10rem);
  z-index: 2;
  max-width: 90vw;
}
.scrub-intro h1 { font-size: clamp(4rem, 11vw, 9rem); text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55); }
.scrub-intro .scrub-tag { color: var(--gold-hi); }

.scrub-caption {
  position: absolute;
  left: clamp(1.5rem, 6vw, 6rem);
  bottom: clamp(3.5rem, 12vh, 8rem);
  z-index: 2;
  max-width: 46ch;
  opacity: 0; /* GSAP animates in */
  padding: 1.6rem 1.8rem;
  background: radial-gradient(140% 170% at 0% 100%,
    rgba(8, 8, 11, 0.85) 0%,
    rgba(8, 8, 11, 0.55) 55%,
    rgba(8, 8, 11, 0) 100%);
}
.scrub-caption h3 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0.5rem 0; }
.scrub-caption p { max-width: 38ch; color: rgba(244, 241, 234, 0.88); }
.scrub-caption .btn { margin-top: 1.2rem; }
.scrub-tag {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  color: rgba(244, 241, 234, 0.75);
}
.scroll-hint i {
  width: 1px;
  height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: hint-drop 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes hint-drop {
  0% { transform: scaleY(0); }
  45% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ── sections (kept deliberately simple) ── */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-alt { background: var(--bg-alt); }
.sec-head { max-width: 60ch; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sec-head p { color: var(--muted); margin-top: 1.2rem; max-width: 50ch; }

.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.car-card { background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s; }
.car-card:hover { border-color: rgba(201, 168, 106, 0.55); transform: translateY(-4px); }
.car-media { aspect-ratio: 16 / 10; overflow: hidden; }
.car-media img { width: 100%; height: 100%; object-fit: cover; }
.car-body { padding: 1.5rem 1.5rem 1.7rem; }
.car-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.car-title h3 { font-size: 1.7rem; }
.car-price { font-family: var(--display); font-size: 1.5rem; color: var(--gold); white-space: nowrap; }
.car-price em { font-family: var(--body); font-style: normal; font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; }
.car-specs { display: flex; gap: 1.6rem; list-style: none; margin: 1rem 0; padding: 0.8rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.car-specs li { display: flex; flex-direction: column; }
.car-specs strong { font-family: var(--display); font-size: 1.35rem; }
.car-specs span { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }
.car-body > p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.3rem; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.step-num { font-family: var(--display); font-size: 2.4rem; color: var(--gold); }
.step h3 { font-size: 1.5rem; margin: 0.5rem 0 0.4rem; }
.step p { font-size: 0.9rem; color: var(--muted); }

.perks { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.perks li { border: 1px solid var(--line); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.2rem; }
.perks strong { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.04em; color: var(--gold-hi); }
.perks span { font-size: 0.8rem; color: var(--muted); }

.req-grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.req-grid li { border-left: 2px solid var(--gold); padding: 0.4rem 0 0.4rem 1.2rem; }
.req-grid strong { display: block; font-size: 1rem; font-weight: 800; }
.req-grid span { font-size: 0.88rem; color: var(--muted); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--display); font-size: 1.5rem; color: var(--gold); transition: transform 0.25s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 0 1.4rem; color: var(--muted); max-width: 65ch; }

.cta-band { text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta-band p { color: var(--muted); max-width: 44ch; margin: 1.2rem auto 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── footer ── */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 4.5rem); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; }
.foot-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 1rem; }
.foot-col { display: flex; flex-direction: column; gap: 0.5rem; }
.foot-col h4 { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.foot-col a, .foot-col span { font-size: 0.9rem; color: var(--muted); }
.foot-col a:hover { color: var(--gold-hi); }
.foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}
.foot-legal a { color: var(--gold); }

.demo-chip {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--gold);
  color: #0a0a0c;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.6em 1.1em;
  border-radius: 99px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* ── reveal (activated only when JS+GSAP present via body.js-anim) ── */
body.js-anim .reveal { opacity: 0; transform: translateY(26px); }

/* ── static fallback: reduced motion / no GSAP ── */
body.scrub-static .scrub-caption { display: none; }
body.scrub-static .scroll-hint { display: none; }

/* ── responsive ── */
@media (max-width: 900px) {
  .fleet-grid, .steps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .req-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(10, 10, 12, 0.96);
  }
  .nav-links.open { display: flex; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0.4rem;
    z-index: 61;
    cursor: pointer;
  }
  .nav-burger span { width: 26px; height: 2px; background: var(--ink); transition: transform 0.25s; }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .scrub-caption { left: 1.1rem; right: 1.1rem; bottom: 4.5rem; padding: 1.2rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint i { animation: none; }
}
