:root {
  color-scheme: dark;
  --ink: #f7f3ed;
  --muted: #b9b3aa;
  --dim: #7d766f;
  --night: #11100f;
  --panel: rgba(28, 27, 25, 0.82);
  --panel-solid: #1b1a18;
  --line: rgba(247, 243, 237, 0.16);
  --red: #e63b34;
  --amber: #d7a348;
  --teal: #22b9a8;
  --steel: #aeb5b8;
  --cream: #f7f3ed;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", "Hiragino Sans", "Yu Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#brands,
#configurator,
#advisor {
  scroll-margin-top: 88px;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #11100f 0%, #181613 42%, #11100f 100%);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(13, 12, 11, 0.74), rgba(13, 12, 11, 0));
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header[data-solid="true"] {
  background: rgba(17, 16, 15, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand-mark,
.header-actions,
.nav-links {
  display: flex;
  align-items: center;
}

.brand-mark {
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.mark-shape {
  width: 34px;
  height: 18px;
  border: 2px solid var(--red);
  border-radius: 999px 999px 5px 5px;
  position: relative;
}

.mark-shape::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -2px;
  width: 10px;
  height: 2px;
  background: var(--amber);
}

.nav-links {
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  color: rgba(247, 243, 237, 0.78);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  justify-content: flex-end;
  gap: 12px;
}

.lang-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 68px;
  height: 36px;
  padding: 3px;
  color: var(--ink);
  background: rgba(247, 243, 237, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
}

.lang-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--red);
  border-radius: 999px;
  transition: transform 180ms ease;
}

.lang-toggle[data-lang="ja"]::before {
  transform: translateX(32px);
}

.lang-toggle span {
  z-index: 1;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.ghost-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.ghost-link {
  background: rgba(247, 243, 237, 0.08);
  border: 1px solid var(--line);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 122px clamp(20px, 5vw, 72px) 0;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 9, 8, 0.92), rgba(10, 9, 8, 0.46) 48%, rgba(10, 9, 8, 0.18)),
    linear-gradient(180deg, rgba(10, 9, 8, 0.1), #11100f 98%);
}

.hero-content {
  position: relative;
  width: min(790px, 100%);
  padding-bottom: 140px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(56px, 10vw, 132px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  color: rgba(247, 243, 237, 0.84);
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-link {
  background: var(--red);
  color: white;
}

.secondary-link {
  border: 1px solid rgba(247, 243, 237, 0.34);
  background: rgba(247, 243, 237, 0.07);
  backdrop-filter: blur(10px);
}

.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(920px, 100%);
  margin-left: auto;
  background: var(--line);
  border: 1px solid var(--line);
  border-bottom: 0;
  box-shadow: var(--shadow);
}

.hero-strip div {
  min-height: 102px;
  padding: 22px;
  background: rgba(21, 20, 18, 0.82);
  backdrop-filter: blur(16px);
}

.hero-strip strong {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.hero-strip span,
.heading-note,
.config-copy p,
.site-footer {
  color: var(--muted);
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
}

.intro-grid,
.section-heading,
.advisor-layout,
.config-layout,
.deploy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.type-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.type-tile {
  min-height: 168px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(247, 243, 237, 0.08), rgba(247, 243, 237, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.type-tile b {
  display: block;
  margin-bottom: 9px;
}

.type-tile span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.section-heading {
  align-items: end;
  margin-bottom: 34px;
}

.brand-tools {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.search-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 243, 237, 0.08);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input[type="checkbox"],
input[type="radio"] {
  min-height: 0;
  padding: 0;
}

select option {
  background: #1b1a18;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.brand-card {
  min-height: 318px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 16% 18%, rgba(230, 59, 52, 0.18), transparent 28%),
    linear-gradient(150deg, rgba(247, 243, 237, 0.09), rgba(247, 243, 237, 0.025));
}

.brand-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #080807;
  overflow: hidden;
}

.brand-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.brand-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.brand-card:hover .brand-photo img {
  transform: scale(1.07);
}

.brand-card > div:not(.tag-row) {
  padding: 16px 18px 0;
}

.brand-card .tag-row {
  padding: 0 18px 18px;
}

.brand-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.brand-card p {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(247, 243, 237, 0.08);
  color: var(--steel);
  font-size: 12px;
}

.config-section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(230, 59, 52, 0.1), transparent 22%),
    #141311;
  border-block: 1px solid var(--line);
}

.config-copy {
  max-width: 760px;
  margin-bottom: 36px;
}

.config-copy p {
  max-width: 720px;
  line-height: 1.75;
}

.config-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.56fr);
}

.config-stage {
  min-height: 620px;
  position: sticky;
  top: 92px;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(120deg, #1f1d1a, #11100f);
  box-shadow: var(--shadow);
}

.stage-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
}

.stage-header p,
.stage-header h3 {
  margin-bottom: 4px;
}

.stage-header span,
.stage-header p {
  color: var(--muted);
}

.car-canvas {
  position: relative;
  height: clamp(320px, 42vw, 450px);
  margin: 18px 26px 8px;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 237, 0.1);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, transparent 0 63%, rgba(247, 243, 237, 0.07) 64%, rgba(247, 243, 237, 0.02) 100%),
    linear-gradient(120deg, rgba(34, 185, 168, 0.13), rgba(230, 59, 52, 0.08), rgba(215, 163, 72, 0.09));
}

.real-car-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  overflow: hidden;
}

.real-car-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.54)),
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.22), transparent 25%);
  pointer-events: none;
}

.real-car-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.08) contrast(1.06);
}

.photo-paint-wash {
  position: absolute;
  inset: 0;
  background: var(--paint);
  opacity: 0.12;
  mix-blend-mode: color;
  pointer-events: none;
}

.photo-stripe,
.photo-wing,
.photo-roof,
.photo-wheel-accent {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.photo-stripe {
  display: none;
  left: 22%;
  right: 17%;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.32);
  transform: skewX(-18deg);
}

.photo-stripe-main {
  top: 44%;
}

.photo-stripe-side {
  top: 64%;
  left: 27%;
  right: 24%;
  height: 5px;
  opacity: 0.78;
}

.car-canvas[data-stripe="true"] .photo-stripe {
  display: block;
}

.photo-wing {
  display: none;
  left: 10%;
  top: 24%;
  width: 25%;
  height: 15px;
  border-radius: 999px 999px 3px 3px;
  background: var(--accent);
  box-shadow:
    0 18px 0 -11px rgba(0, 0, 0, 0.74),
    0 18px 0 -9px var(--accent);
  transform: rotate(-7deg);
}

.car-canvas[data-aero="touring"] .photo-wing {
  display: block;
  width: 16%;
  height: 8px;
  opacity: 0.76;
}

.car-canvas[data-aero="track"] .photo-wing {
  display: block;
}

.photo-roof {
  display: none;
  left: 39%;
  top: 26%;
  width: 22%;
  height: 42px;
  border: 1px solid rgba(247, 243, 237, 0.28);
  border-radius: 70% 35% 18% 18%;
  background:
    repeating-linear-gradient(45deg, #060606 0 7px, #282828 8px 13px);
  opacity: 0.78;
  transform: skewX(-15deg);
}

.car-canvas[data-roof="true"] .photo-roof {
  display: block;
}

.photo-wheel-accent {
  bottom: 18%;
  width: 62px;
  aspect-ratio: 1;
  border: 7px solid var(--wheel);
  border-radius: 50%;
  opacity: 0.86;
  mix-blend-mode: screen;
  box-shadow: inset 0 0 0 5px rgba(0, 0, 0, 0.64);
}

.photo-wheel-rear {
  left: 24%;
}

.photo-wheel-front {
  right: 22%;
}

.photo-credit {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 5;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(247, 243, 237, 0.76);
  font-size: 11px;
}

.photo-credit a {
  border-bottom: 1px solid rgba(247, 243, 237, 0.3);
}

.speed-lines {
  position: absolute;
  inset: 20% -20% auto 18%;
  height: 170px;
  background: repeating-linear-gradient(
    165deg,
    transparent 0 18px,
    rgba(247, 243, 237, 0.12) 19px 20px
  );
  transform: skewX(-16deg);
  opacity: 0.75;
}

.car-shadow {
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 15%;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.68);
  filter: blur(18px);
}

.config-car {
  --paint: #df2f2a;
  --accent: #f7f3ed;
  --wheel: #c5ccd0;
  --caliper: #e63b34;
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: 10%;
  z-index: 2;
  width: 94%;
  height: 76%;
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.48));
  opacity: 0;
  pointer-events: none;
}

.body-main,
.front-bumper,
.rear-bumper,
.side-skirt {
  fill: var(--paint);
  transition: fill 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.body-main {
  filter: url("#softGlow");
}

.body-highlight {
  fill: rgba(255, 255, 255, 0.22);
  mix-blend-mode: screen;
}

.front-bumper,
.rear-bumper,
.side-skirt {
  filter: brightness(0.72);
}

.windshield,
.side-window {
  fill: url("#glassGradient");
  stroke: rgba(247, 243, 237, 0.38);
  stroke-width: 4;
}

.window-divider,
.hood-cut,
.door-cut,
.wing-mount {
  fill: none;
  stroke: rgba(9, 9, 8, 0.72);
  stroke-width: 5;
  stroke-linecap: round;
}

.intake-svg,
.front-intake {
  fill: rgba(6, 7, 7, 0.84);
  stroke: rgba(247, 243, 237, 0.2);
  stroke-width: 2;
}

.headlight-svg {
  fill: #fff2b4;
  filter: drop-shadow(0 0 13px rgba(255, 242, 180, 0.86));
}

.taillight-svg {
  fill: #ff2e34;
  filter: drop-shadow(0 0 12px rgba(255, 46, 52, 0.9));
}

.stripe-svg {
  display: none;
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  opacity: 0.96;
}

.stripe-center {
  stroke-width: 18;
}

.stripe-lower {
  stroke-width: 8;
}

.roof-panel {
  display: none;
  fill: url("#carbonPattern");
  stroke: rgba(247, 243, 237, 0.32);
  stroke-width: 3;
}

.wing-group {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.rear-wing-svg {
  fill: var(--accent);
  stroke: rgba(247, 243, 237, 0.2);
  stroke-width: 3;
}

.wheel-svg {
  transition: transform 180ms ease;
}

.tire {
  fill: #060606;
  stroke: rgba(247, 243, 237, 0.1);
  stroke-width: 6;
}

.rim {
  fill: var(--wheel);
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 5;
}

.spokes {
  fill: #171717;
  stroke: var(--wheel);
  stroke-width: 9;
  stroke-linejoin: round;
}

.hub {
  fill: #22211f;
  stroke: rgba(247, 243, 237, 0.42);
  stroke-width: 4;
}

.caliper-svg {
  fill: none;
  stroke: var(--caliper);
  stroke-width: 13;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(230, 59, 52, 0.58));
}

.config-car[data-body="roadster"] .side-window,
.config-car[data-body="roadster"] .window-divider {
  display: none;
}

.config-car[data-body="roadster"] .windshield {
  transform: translateX(22px) translateY(15px) scaleX(0.72);
  transform-origin: center;
}

.config-car[data-body="wedge"] {
  transform: skewX(-3deg);
}

.config-car[data-body="wedge"] .body-main {
  d: path("M58 286 C112 226 216 190 334 184 C404 132 502 102 618 103 C739 103 821 161 897 211 C958 222 1019 246 1047 275 C1063 293 1050 320 1015 333 L112 333 C70 328 43 310 58 286 Z");
}

.config-car[data-body="gt"] .body-main {
  d: path("M72 279 C108 217 185 181 292 174 C366 101 492 64 626 91 C727 111 799 159 867 210 C946 218 1010 240 1043 271 C1063 291 1052 324 1012 335 L116 335 C73 331 52 309 72 279 Z");
}

.config-car[data-aero="touring"] .wing-group {
  opacity: 1;
  transform: translateY(16px) scale(0.72);
}

.config-car[data-aero="track"] .wing-group {
  opacity: 1;
  transform: translateY(-8px) scale(1.22);
}

.config-car[data-roof="true"] .roof-panel,
.config-car[data-stripe="true"] .stripe-svg {
  display: block;
}

.config-car[data-interior="true"] .windshield,
.config-car[data-interior="true"] .side-window {
  filter: drop-shadow(0 0 14px rgba(215, 163, 72, 0.36));
}

.config-car[data-wheel="graphite"] .rim {
  filter: brightness(0.68);
}

.config-car[data-wheel="bronze"] .rim,
.config-car[data-wheel="bronze"] .spokes {
  filter: saturate(1.3) brightness(1.08);
}

.part-callout {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 3px;
  min-width: 132px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 243, 237, 0.22);
  border-radius: var(--radius);
  background: rgba(13, 12, 11, 0.72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.part-callout::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 1px;
  background: rgba(247, 243, 237, 0.38);
}

.part-callout b {
  color: var(--ink);
  font-size: 13px;
}

.part-callout span {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.callout-paint {
  left: 7%;
  top: 10%;
}

.callout-paint::after {
  left: 100%;
  top: 50%;
}

.callout-aero {
  left: 10%;
  top: 34%;
}

.callout-aero::after {
  left: 100%;
  top: 28%;
  width: 95px;
  transform: rotate(-23deg);
  transform-origin: left center;
}

.callout-wheel {
  right: 6%;
  bottom: 12%;
}

.callout-wheel::after {
  right: 100%;
  top: 50%;
}

.build-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -12px 26px 28px;
}

.build-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(247, 243, 237, 0.08);
  border: 1px solid rgba(247, 243, 237, 0.14);
  color: var(--steel);
  font-size: 12px;
}

.car-body {
  --paint: #df2f2a;
  --accent: #f7f3ed;
  --wheel: #c5ccd0;
  --caliper: #e63b34;
  position: absolute;
  left: 11%;
  right: 8%;
  bottom: 22%;
  height: min(210px, 45%);
}

.car-body::before {
  content: "";
  position: absolute;
  inset: 38% 0 18% 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--paint);
  border-radius: 44% 56% 18px 20px / 66% 74% 20px 20px;
  clip-path: polygon(3% 76%, 9% 48%, 23% 38%, 38% 20%, 62% 17%, 82% 36%, 96% 48%, 100% 75%, 94% 88%, 8% 88%);
  box-shadow:
    inset 0 -32px 44px rgba(0, 0, 0, 0.22),
    inset 0 12px 24px rgba(255, 255, 255, 0.16);
}

.car-body::after {
  content: "";
  position: absolute;
  left: 28%;
  right: 34%;
  top: 21%;
  height: 39%;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.24), rgba(14, 20, 22, 0.78) 34%, rgba(5, 7, 8, 0.94));
  border: 4px solid rgba(247, 243, 237, 0.18);
  border-radius: 90% 32% 18% 14% / 92% 78% 18% 18%;
  transform: skewX(-13deg);
}

.car-body[data-body="roadster"]::after {
  right: 43%;
  top: 30%;
  height: 28%;
  border-radius: 70% 28% 15% 12%;
}

.car-body[data-body="wedge"]::before {
  clip-path: polygon(1% 78%, 14% 52%, 34% 32%, 54% 25%, 82% 38%, 99% 63%, 98% 80%, 90% 88%, 8% 88%);
  border-radius: 24% 62% 14px 20px / 50% 72% 20px 20px;
}

.car-body[data-body="gt"]::before {
  clip-path: polygon(2% 75%, 8% 51%, 25% 39%, 40% 17%, 65% 15%, 86% 39%, 99% 58%, 98% 78%, 91% 89%, 8% 88%);
}

.car-cabin,
.headlight,
.taillight,
.intake,
.wheel,
.brake,
.rear-wing,
.roof-pack,
.stripe {
  position: absolute;
}

.headlight {
  right: 4%;
  top: 57%;
  width: 10%;
  height: 8%;
  background: linear-gradient(90deg, transparent, #fff7b2);
  border-radius: 999px;
  filter: drop-shadow(0 0 12px rgba(255, 247, 178, 0.7));
}

.taillight {
  left: 5%;
  top: 59%;
  width: 7%;
  height: 6%;
  background: #ff2e34;
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(255, 46, 52, 0.8));
}

.intake {
  z-index: 2;
  background: rgba(7, 8, 8, 0.72);
  border: 1px solid rgba(247, 243, 237, 0.2);
}

.intake-front {
  right: 15%;
  top: 68%;
  width: 13%;
  height: 8%;
  border-radius: 999px 999px 6px 6px;
}

.intake-side {
  left: 43%;
  top: 65%;
  width: 10%;
  height: 15%;
  border-radius: 4px 999px 999px 4px;
}

.wheel {
  z-index: 3;
  bottom: 0;
  width: clamp(72px, 11vw, 126px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111 0 22%, transparent 23%),
    conic-gradient(from 18deg, var(--wheel) 0 9%, #111 10% 17%, var(--wheel) 18% 26%, #111 27% 34%, var(--wheel) 35% 44%, #111 45% 53%, var(--wheel) 54% 63%, #111 64% 72%, var(--wheel) 73% 82%, #111 83% 90%, var(--wheel) 91% 100%);
  border: 12px solid #080807;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.08);
}

.wheel span {
  position: absolute;
  inset: 33%;
  border-radius: 50%;
  background: #2b2a28;
  border: 2px solid rgba(247, 243, 237, 0.25);
}

.wheel-front {
  right: 13%;
}

.wheel-rear {
  left: 13%;
}

.brake {
  z-index: 4;
  bottom: 27px;
  width: 12px;
  height: 28px;
  background: var(--caliper);
  border-radius: 999px;
}

.brake-front {
  right: calc(13% + 19px);
}

.brake-rear {
  left: calc(13% + 92px);
}

.rear-wing {
  display: none;
  z-index: 4;
  left: 2%;
  top: 24%;
  width: 20%;
  height: 10%;
  border-top: 10px solid var(--accent);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  transform: rotate(-7deg);
}

.car-body[data-aero="touring"] .rear-wing {
  display: block;
  width: 15%;
  top: 32%;
  border-top-width: 6px;
  opacity: 0.8;
}

.car-body[data-aero="track"] .rear-wing {
  display: block;
}

.roof-pack {
  display: none;
  z-index: 5;
  left: 34%;
  top: 12%;
  width: 26%;
  height: 8px;
  border-radius: 999px;
  background: #0a0a09;
  box-shadow: 0 -7px 0 rgba(247, 243, 237, 0.28);
}

.car-body[data-roof="true"] .roof-pack {
  display: block;
}

.stripe {
  display: none;
  z-index: 5;
  background: var(--accent);
}

.car-body[data-stripe="true"] .stripe {
  display: block;
}

.stripe-main {
  left: 34%;
  top: 44%;
  width: 35%;
  height: 8px;
  transform: skewX(-20deg);
  border-radius: 999px;
}

.stripe-side {
  left: 24%;
  top: 75%;
  width: 48%;
  height: 5px;
  opacity: 0.85;
  border-radius: 999px;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 26px 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.spec-strip div {
  min-height: 82px;
  padding: 16px;
  background: rgba(247, 243, 237, 0.06);
}

.spec-strip strong {
  display: block;
  font-size: 20px;
}

.spec-strip span {
  color: var(--muted);
  font-size: 12px;
}

.control-panel {
  display: grid;
  gap: 14px;
}

.control-block,
.summary-panel,
.questionnaire,
.recommendation-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.control-block {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.control-block label,
.control-block legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

fieldset {
  margin: 0;
  min-width: 0;
}

.swatch-row,
.segmented,
.option-list {
  display: grid;
  gap: 9px;
}

.swatch-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.swatch-button,
.segment-button,
.check-option {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(247, 243, 237, 0.06);
  border-radius: var(--radius);
  cursor: pointer;
}

.swatch-button {
  min-height: 54px;
  padding: 5px;
}

.swatch-color {
  display: block;
  height: 100%;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.swatch-button[aria-pressed="true"],
.segment-button[aria-pressed="true"],
.check-option input:checked + span {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(230, 59, 52, 0.26);
}

.segmented {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.segment-button {
  min-height: 44px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.check-option span {
  flex: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px;
}

.summary-panel {
  padding: 18px;
}

.summary-panel div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.summary-panel strong {
  color: var(--amber);
  font-size: 28px;
}

.summary-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.advisor-section {
  background:
    linear-gradient(180deg, transparent, rgba(34, 185, 168, 0.09) 100%),
    #11100f;
}

.heading-note {
  line-height: 1.7;
  max-width: 620px;
}

.questionnaire {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.question {
  display: grid;
  gap: 9px;
}

.question label {
  color: var(--ink);
  font-weight: 800;
}

.question small {
  color: var(--muted);
}

.radio-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.radio-pill {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: rgba(247, 243, 237, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.radio-pill input {
  accent-color: var(--red);
}

.recommendation-panel {
  overflow: hidden;
}

.result-hero {
  min-height: 220px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(230, 59, 52, 0.38), rgba(34, 185, 168, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.result-hero span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-hero strong {
  display: block;
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.result-hero p {
  margin: 0;
  color: rgba(247, 243, 237, 0.82);
  line-height: 1.6;
}

.result-list {
  display: grid;
  gap: 1px;
  background: var(--line);
}

.result-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  width: 100%;
  border: 0;
  color: var(--ink);
  text-align: left;
  background: rgba(21, 20, 18, 0.96);
  cursor: pointer;
}

.score {
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  color: #11100f;
  background: var(--amber);
  border-radius: 50%;
  font-weight: 900;
}

.result-item strong {
  display: block;
  margin-bottom: 4px;
}

.result-item span,
.result-item p {
  color: var(--muted);
}

.result-item p {
  margin: 0;
  font-size: 13px;
}

.deploy-section {
  align-items: center;
  border-top: 1px solid var(--line);
}

.deploy-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .type-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .config-layout,
  .advisor-layout {
    grid-template-columns: 1fr;
  }

  .config-stage {
    position: relative;
    top: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .ghost-link {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-inline: 18px;
  }

  .hero-content {
    padding-bottom: 118px;
  }

  .hero-strip,
  .intro-grid,
  .section-heading,
  .deploy-section {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    margin: 0;
  }

  .brand-tools {
    justify-content: stretch;
    flex-direction: column;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .type-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-header,
  .site-footer {
    flex-direction: column;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radio-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand-grid,
  .type-rail {
    grid-template-columns: 1fr;
  }

  .hero-strip {
    display: none;
  }

  .hero-content {
    padding-bottom: 72px;
  }

  .config-stage {
    position: sticky;
    top: 72px;
    z-index: 6;
    min-height: 0;
  }

  .config-section {
    padding-top: 38px;
  }

  .config-copy {
    margin-bottom: 18px;
  }

  .config-copy p {
    display: none;
  }

  #config-title {
    font-size: 30px;
    line-height: 1.08;
  }

  .stage-header {
    padding: 14px 16px 8px;
  }

  .stage-header h3 {
    font-size: 20px;
  }

  .stage-header span {
    font-size: 12px;
  }

  .car-canvas {
    height: 260px;
    margin-inline: 12px;
  }

  .config-car {
    left: -7%;
    right: auto;
    bottom: 13%;
    width: 114%;
    height: 66%;
  }

  .part-callout {
    min-width: 104px;
    padding: 8px 9px;
  }

  .part-callout::after {
    display: none;
  }

  .callout-paint {
    left: 10px;
    top: 10px;
  }

  .callout-aero {
    left: 10px;
    top: 74px;
  }

  .callout-wheel {
    right: 10px;
    bottom: 10px;
  }

  .build-badges {
    max-height: 70px;
    margin: 8px 12px 12px;
    overflow: hidden;
  }

  .spec-strip {
    display: none;
  }

  .car-body {
    left: 5%;
    right: 4%;
  }

  .wheel {
    width: 76px;
    border-width: 9px;
  }

  .brake {
    display: none;
  }

  .swatch-row,
  .segmented,
  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: no-preference) {
  .speed-lines {
    animation: drift 8s linear infinite;
  }

  .wheel {
    animation: wheelPulse 2.4s ease-in-out infinite;
  }
}

@keyframes drift {
  from {
    transform: translateX(0) skewX(-16deg);
  }
  to {
    transform: translateX(-160px) skewX(-16deg);
  }
}

@keyframes wheelPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.24);
  }
}
