/* ============================================
   ROYAL NEO — Variant B (Ferrari-inspired)
   Design tokens derived from the Ferrari design-md spec:
   - Chiaroscuro alternating B/W sections
   - Single accent red, surgical use
   - Razor-sharp 2px corners, zero shadows, zero gradients
   - Dual typography: sans narrative + uppercase tracked labels
   ============================================ */

/* ---- tokens ---- */
:root {
  --red: #DA291C;
  --red-hover: #B01E0A;
  --red-active: #9D2211;
  --black: #000000;
  --ink: #181818;
  --dark-surface: #303030;
  --muted: #666666;
  --tertiary: #8F8F8F;
  --placeholder: #969696;
  --border: #CCCCCC;
  --light: #D2D2D2;
  --white: #FFFFFF;

  --font-sans: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', sans-serif;
  --font-label: 'Helvetica Neue', Arial, sans-serif; /* uppercase, 1px tracked */

  --radius-xs: 1px;
  --radius-sm: 2px;
  --radius-md: 8px;

  --container: 1280px;
}

/* ---- reset ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---- shared layout ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 769px) { .container { padding: 0 40px; } }

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--tertiary);
  margin: 0 0 24px;
}
.eyebrow--dark { color: var(--muted); }

.title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}
.title--light { color: var(--white); }
@media (min-width: 769px) { .title { font-size: 44px; } }

.italic { font-style: italic; font-weight: 400; }

.body { font-size: 16px; line-height: 1.75; color: var(--ink); margin: 0 0 16px; }

.caption {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.27;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}

.pc-only { display: none; }
@media (min-width: 769px) { .pc-only { display: inline; } }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.btn:hover { background: #1EAEDB; border-color: #1EAEDB; color: var(--white); opacity: .95; }

.btn--red {
  background: var(--red); border-color: var(--red); color: var(--white);
}
.btn--red:hover { background: var(--red-hover); border-color: var(--red-hover); color: var(--white); }

.btn--dark {
  background: var(--ink); border-color: var(--ink); color: var(--white);
}
.btn--dark:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.btn--ghost {
  background: transparent; border-color: var(--white); color: var(--white);
}
.btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--lg { padding: 18px 36px; font-size: 16px; letter-spacing: 1.5px; }

/* ---- NAV ---- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent; color: var(--white);
}
.nav__inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: var(--container); margin: 0 auto; padding: 20px 24px;
}
.nav__links { display: none; gap: 28px; }
.nav__links a {
  font-family: var(--font-label);
  font-size: 13px; font-weight: 600; letter-spacing: 0.13px; text-transform: uppercase;
  color: var(--white); transition: color .2s;
}
.nav__links a:hover { color: #3860BE; }
.nav__links--right { justify-self: end; }
.nav__cta { color: var(--red) !important; }
.nav__logo {
  justify-self: center;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 44px;
  border: 1px solid var(--white);
  border-radius: var(--radius-sm);
}
.nav__logo-mark {
  font-family: var(--font-label); font-weight: 700; font-size: 18px; letter-spacing: 2px;
  color: var(--white);
}
.nav__burger {
  justify-self: end;
  width: 40px; height: 40px; display: flex; flex-direction: column; gap: 6px;
  align-items: center; justify-content: center;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); }

@media (min-width: 961px) {
  .nav__links { display: inline-flex; }
  .nav__burger { display: none; }
}

/* Light variant of nav when section underneath is white (no change needed —
   hero is black, so the transparent nav keeps white color over hero only) */

/* drawer */
.drawer {
  position: fixed; inset: 0; background: var(--black);
  display: none; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; z-index: 30;
}
.drawer.is-open { display: flex; }
.drawer a {
  color: var(--white); font-family: var(--font-label); font-size: 20px; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.drawer__cta { color: var(--red) !important; }

/* ---- HERO ---- */
.hero {
  position: relative; background: var(--black); color: var(--white);
  min-height: 100vh; padding: 140px 0 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(218,41,28,0.18), transparent 55%);
  pointer-events: none;
}
.hero__mark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-label); font-weight: 700;
  font-size: 38vw; line-height: 1; letter-spacing: -0.06em;
  color: rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 0.1em;
  pointer-events: none; user-select: none;
}
.hero__mark-dot {
  width: 3vw; height: 3vw; background: var(--red); border-radius: 50%;
}
.hero__body {
  position: relative; z-index: 2;
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero__title {
  font-size: 44px; line-height: 1.02; font-weight: 500;
  margin: 16px 0 28px;
  letter-spacing: -0.02em;
}
.hero__title .italic { font-weight: 400; color: #f2f2f2; }
@media (min-width: 769px) { .hero__title { font-size: 96px; } }
.hero__lede {
  font-size: 15px; line-height: 1.85; color: #CFCFCF; max-width: 620px;
  margin: 0 0 36px;
}
@media (min-width: 769px) { .hero__lede { font-size: 17px; } }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__footer {
  position: absolute; left: 0; right: 0; bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 24px;
  font-family: var(--font-label); font-size: 11px; letter-spacing: 1px;
  text-transform: uppercase; color: #888;
}
.hero__scroll { animation: scrollHint 2s ease-in-out infinite; }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(4px); opacity: 1; }
}

/* ---- LINEUP ---- */
.lineup { background: var(--white); padding: 96px 0; }
.lineup__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 769px) {
  .lineup__grid { grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
}
.lineup__media img {
  width: 100%; border-radius: var(--radius-xs); background: var(--light);
}
.lineup__copy .title { margin-top: 8px; }
.spec {
  margin: 28px 0;
  border-top: 1px solid var(--border);
}
.spec > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  border-bottom: 1px solid var(--border); padding: 14px 0;
}
.spec dt {
  font-family: var(--font-label); font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.spec dd { margin: 0; font-size: 15px; color: var(--ink); }
.spec dd small { color: var(--tertiary); font-size: 12px; margin-left: 6px; }

/* ---- CRAFT ---- */
.craft { background: var(--black); color: var(--white); padding: 96px 0; }
.pillars {
  display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 48px;
}
@media (min-width: 769px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.pillar { border-top: 1px solid rgba(255,255,255,0.3); padding-top: 28px; }
.pillar__num {
  display: inline-block; font-family: var(--font-label); font-size: 11px;
  letter-spacing: 1px; color: var(--red); margin-bottom: 16px;
}
.pillar__title {
  font-family: var(--font-label); font-size: 20px; font-weight: 700;
  letter-spacing: 0.5px; margin: 0 0 12px; color: var(--white);
}
.pillar__body { font-size: 15px; line-height: 1.85; color: #CFCFCF; margin: 0; }

/* ---- RITUAL ---- */
.ritual { background: var(--white); padding: 96px 0; }
.ritual__grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 961px) {
  .ritual__grid { grid-template-columns: 1.3fr 1fr; gap: 80px; }
}
.steps { display: flex; flex-direction: column; gap: 20px; }
.steps li {
  display: grid; grid-template-columns: 60px 1fr; align-items: center;
  border-top: 1px solid var(--border); padding: 22px 0;
}
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps span {
  font-family: var(--font-label); font-size: 28px; font-weight: 700;
  color: var(--red);
}
.steps p { margin: 0; font-size: 17px; font-weight: 500; }

/* ---- NUMBERS ---- */
.numbers { background: var(--black); color: var(--white); padding: 96px 0; }
.numbers__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px;
  margin-top: 40px;
}
@media (min-width: 769px) { .numbers__grid { grid-template-columns: repeat(4, 1fr); } }
.numeric {
  border-top: 1px solid rgba(255,255,255,0.3); padding-top: 20px;
}
.numeric__value {
  display: block; font-family: var(--font-label); font-size: 72px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.numeric__value small { font-size: 24px; margin-left: 4px; color: var(--tertiary); }
.numeric__label {
  display: block; font-family: var(--font-label); font-size: 11px;
  letter-spacing: 1px; text-transform: uppercase; color: #8F8F8F; margin-top: 16px;
}

/* ---- FAQ ---- */
.faq { background: var(--white); padding: 96px 0; }
.faq__list { margin-top: 40px; border-top: 1px solid var(--border); }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__item summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; cursor: pointer;
  font-size: 17px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__sign {
  font-family: var(--font-label); font-size: 22px; color: var(--red);
  transition: transform .2s;
}
.faq__item[open] .faq__sign { transform: rotate(45deg); }
.faq__ans {
  padding: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.85;
  max-width: 780px;
}

/* ---- CTA FINAL ---- */
.cta-final { background: var(--black); color: var(--white); padding: 120px 0; text-align: center; }
.cta-final__inner { max-width: 720px; }
.cta-final__title {
  font-size: 36px; font-weight: 500; line-height: 1.2; margin: 16px 0 20px;
}
@media (min-width: 769px) { .cta-final__title { font-size: 56px; } }
.cta-final__lede { font-size: 15px; color: #CFCFCF; margin: 0 0 36px; }
.cta-final__email { margin-top: 40px; font-family: var(--font-label); font-size: 12px; letter-spacing: 1px; color: var(--tertiary); }
.cta-final__email a { color: var(--white); border-bottom: 1px solid var(--tertiary); padding-bottom: 2px; }

/* ---- FOOTER ---- */
.footer { background: var(--black); color: var(--white); padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer__inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
@media (min-width: 769px) { .footer__inner { grid-template-columns: 1fr auto 1fr; } }
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__logo { font-family: var(--font-label); font-weight: 700; letter-spacing: 2px; font-size: 18px; }
.footer__tag { font-family: var(--font-label); font-size: 11px; letter-spacing: 1px; color: var(--tertiary); margin: 0; }
.footer__links {
  display: flex; flex-wrap: wrap; gap: 22px;
}
.footer__links a {
  font-family: var(--font-label); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--tertiary);
}
.footer__links a:hover { color: var(--white); }
.footer__copy {
  font-family: var(--font-label); font-size: 10px; letter-spacing: 1px; color: var(--tertiary);
  text-align: right; margin: 0;
}

/* ---- reveal-on-scroll ---- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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