:root {
  --red: #d7191f;
  --red-dark: #a50f14;
  --ink: #141414;
  --ink-soft: #2a2a2a;
  --text: #1d1d1f;
  --muted: #5f6368;
  --bg: #ffffff;
  --bg-alt: #f6f4f2;
  --line: #e6e1dc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: "Archivo Black", Inter, sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 .75rem;
}

.accent { color: var(--red); }

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--red);
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }
.btn-small { padding: .5rem 1rem; font-size: .9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 20, .96);
  backdrop-filter: blur(8px);
  color: #fff;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: "Archivo Black", sans-serif; font-size: 1.25rem; }
.brand em { font-style: normal; color: var(--red); }
.brand-badge { background: #fff; border-radius: 50%; padding: 3px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* Hero */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(215, 25, 31, .45), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #fff;
  padding: clamp(3.5rem, 9vw, 7rem) 0;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center; }
.hero .eyebrow { color: #ff6b6f; }
.lead { font-size: 1.15rem; color: #d6d6d6; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #cfcfcf; font-size: .95rem; }
.hero-points li::before { content: "✓"; color: #ff6b6f; font-weight: 700; margin-right: .45rem; }

.hero-mascot {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #e4e1de 0%, #bdb9b5 75%);
  box-shadow: 0 0 0 10px rgba(215, 25, 31, .35), 0 30px 60px rgba(0, 0, 0, .45);
  display: grid;
  place-items: center;
}
.hero-mascot model-viewer {
  /* extends well above the circle so his horns (and jumps) can break out of it */
  position: absolute;
  inset: -45% -14% -4%;
  width: auto; height: auto;
  background: transparent;
  --poster-color: transparent;
  cursor: grab;
  touch-action: pan-y;
}
.hero-mascot model-viewer:active { cursor: grabbing; }
.plate {
  position: absolute; z-index: 1; pointer-events: none; right: -6%; bottom: 8%;
  width: 84px; height: 84px;
  background: #fff; color: var(--red);
  border: 4px solid var(--red);
  font-family: "Archivo Black", sans-serif; font-size: 3.2rem;
  display: grid; place-items: center;
  border-radius: 10px;
  transform: rotate(-8deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); margin-top: -.25rem; }

.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; align-items: start; }
.prose p { margin: 0 0 1rem; }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.8rem; position: relative; font-weight: 500; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0 0 1.2rem; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .price { font-family: "Archivo Black", sans-serif; font-size: 2rem; color: var(--text); margin: .2rem 0 .8rem; }
.card .price span { font-family: Inter, sans-serif; font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: .3rem; }
.card-featured { border: 2px solid var(--red); box-shadow: var(--shadow); }
.tag {
  position: absolute; top: -12px; right: 1.2rem;
  background: var(--red); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .7rem; border-radius: 999px;
}

.areas { margin-top: 2.5rem; padding: 1.5rem 1.75rem; background: #fff; border-radius: var(--radius); border-left: 4px solid var(--red); }
.areas h3 { margin-bottom: .4rem; }
.areas p { margin: 0; color: var(--muted); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.review {
  margin: 0;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
}
.review::before { content: "★★★★★"; color: var(--red); letter-spacing: .15em; display: block; margin-bottom: .75rem; }
.review p { margin: 0 0 1rem; font-size: 1.05rem; }
.review footer { font-weight: 600; color: var(--muted); font-size: .9rem; }

/* Dark band (reviews) */
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow, .car-teaser .eyebrow { color: #ff6b6f; }
.section-dark .review { background: #1f1f1f; border: 1px solid #2c2c2c; }
.section-dark .review p { color: #e6e6e6; }
.section-dark .review footer { color: #9a9a9a; }

/* FAQ */
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: .75rem;
  padding: 0 1.25rem;
}
summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 0;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--red); line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 1.1rem; color: var(--muted); }

/* Contact */
.cta { background: var(--ink); color: #fff; }
.cta .eyebrow { color: #ff6b6f; }
.cta p { color: #cfcfcf; }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list span { width: 4.5rem; color: #8a8a8a; font-size: .9rem; padding-top: .1rem; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: #ff6b6f; }

.messenger-card {
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  padding: 1.75rem;
}
.messenger-card h3 { font-size: 1.4rem; margin: .75rem 0 .5rem; }
.messenger-card p { color: var(--muted); margin: 0 0 .5rem; }
.messenger-card .ticks { margin: 0 0 1.5rem; }
.messenger-logo { width: 52px; height: 52px; display: block; }
.btn-messenger { background: linear-gradient(90deg, #0099ff, #a033ff 70%, #ff5280); }
.btn-messenger:hover { background: linear-gradient(90deg, #0084e0, #8c22e6 70%, #e8456f); }

/* Footer */
.site-footer { background: #0b0b0b; color: #9a9a9a; padding: 2rem 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.site-footer .brand { color: #fff; font-size: 1.05rem; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .cards, .reviews { grid-template-columns: 1fr 1fr; }
  .hero-mascot { width: min(300px, 80%); }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 16px 1.25rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-links .btn { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cards, .reviews { grid-template-columns: 1fr; }
}

/* The Car page */
.car-teaser { background: var(--ink); color: #fff; }
.car-teaser p { color: #cfcfcf; }
.car-teaser .ticks li { color: #e6e6e6; }
.car-teaser-inner { grid-template-columns: 1.1fr 1fr; align-items: center; }
.car-teaser-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, #3a3a3a, #1a1a1a 70%); overflow: hidden; }
.car-teaser-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; cursor: grab; }

.car-stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); background: radial-gradient(circle at 50% 60%, #3a3a3a, #1a1a1a 70%); overflow: hidden; }
.car-stage model-viewer { width: 100%; height: 100%; --poster-color: transparent; cursor: grab; }
.car-stage model-viewer:active { cursor: grabbing; }
.stage-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #9a9a9a; font-weight: 600; }
.stage-link { position: absolute; right: 14px; bottom: 12px; color: #fff; font-weight: 600; font-size: .9rem; text-decoration: none; background: rgba(0, 0, 0, .45); padding: .4rem .8rem; border-radius: 999px; }
.stage-link:hover { background: var(--red); }
.nav-links a[aria-current="page"] { color: #ff6b6f; }

.drill { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.drill li { background: #fff; border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.drill b { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--red); color: #fff; font-family: "Archivo Black", sans-serif; margin-bottom: .75rem; }
.drill h3 { margin-bottom: .3rem; }
.drill p { margin: 0; color: var(--muted); font-size: .93rem; }

.controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2rem; }
.controls article { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; border-top: 4px solid var(--red); }
.controls p { margin: .2rem 0 0; color: var(--muted); }
.areas a { color: var(--red); font-weight: 600; }
.model-credit { margin-top: .75rem; font-size: .75rem; color: #6a6a6a; }
.model-credit a { color: inherit; }

@media (max-width: 900px) {
  .car-teaser-inner { grid-template-columns: 1fr; }
  .drill { grid-template-columns: 1fr 1fr; }
  .controls { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .drill, .controls { grid-template-columns: 1fr; }
}

/* The devil companion who treats the page as his playground (buddy.js) */
.buddy {
  position: absolute; left: 0; top: 0; z-index: 40;
  width: 96px; height: 160px; /* extra room below his feet for hanging off ledges */
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  will-change: transform;
  transform-origin: 50% 62%; /* tilts around the jetpack */
}
.buddy.on { opacity: 1; pointer-events: auto; cursor: pointer; }
.buddy canvas { width: 100%; height: 100%; display: block; }
.buddy.leaving canvas { transform: translateY(-120vh); transition: transform .7s ease-in; }
@media (max-width: 600px) { .buddy { width: 76px; height: 127px; } }
.buddy-shadow {
  position: absolute; left: 0; top: 0; z-index: 39;
  height: 10px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .9), rgba(0, 0, 0, .35) 60%, transparent);
  filter: blur(1.5px);
  opacity: 0; pointer-events: none;
  will-change: transform, width, opacity;
}
.buddy-shadow:not(.on) { display: none; }
