:root {
  --void: #050506;
  --metal: #101012;
  --metal-2: #18181c;
  --hair: rgba(255, 248, 236, 0.09);
  --hair-2: rgba(255, 248, 236, 0.16);
  --warm: #e8d2b0;
  --warm-dim: rgba(232, 210, 176, 0.42);
  --amber: #ff7a1a;
  --ice: #9be7ff;
  --ink: #f4efe6;
  --mute: rgba(244, 239, 230, 0.55);
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --cx: 50%;
  --cy: 38%;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: Unbounded, system-ui, sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  min-height: 100dvh;
  min-height: 100svh;
}

button,
input {
  font: inherit;
  color: inherit;
}

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

.void {
  position: relative;
  height: 100dvh;
  height: 100svh;
  isolation: isolate;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  z-index: 8;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: overlay;
}

.bay {
  position: fixed;
  width: 90vmax;
  height: 70vmax;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 122, 26, 0.16), rgba(155, 231, 255, 0.04) 38%, transparent 62%);
  filter: blur(28px);
  pointer-events: none;
  animation: bay 9s ease-in-out infinite alternate;
}

.floor {
  position: fixed;
  left: 50%;
  bottom: -12%;
  width: 70vmin;
  height: 28vmin;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(232, 210, 176, 0.12), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

@keyframes bay {
  from { opacity: 0.7; transform: translateX(-50%) scale(1); }
  to { opacity: 1; transform: translateX(-48%) scale(1.06); }
}

.hud {
  position: fixed;
  inset: calc(12px + var(--safe-t)) 18px calc(12px + var(--safe-b));
  z-index: 6;
  pointer-events: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-dim);
}

@media (max-width: 720px) {
  .hud { display: none; }
}

.hud-l { position: absolute; top: 0; left: 0; }
.hud-r { position: absolute; top: 0; right: 0; }
.hud-bl { position: absolute; bottom: 0; left: 0; }
.hud-br { position: absolute; bottom: 0; right: 0; }

.boot {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: var(--void);
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.boot.is-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm), var(--amber), transparent);
  animation: scan 1.6s var(--ease) both;
  box-shadow: 0 0 24px var(--amber);
}

@keyframes scan {
  from { top: 12%; opacity: 0; }
  20% { opacity: 1; }
  to { top: 78%; opacity: 0; }
}

.boot-log {
  list-style: none;
  margin: 0;
  padding: 0 28px;
  max-width: 36rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: var(--warm);
}

.boot-log li {
  opacity: 0;
  transform: translateY(8px);
  margin: 0 0 16px;
  animation: log 0.7s var(--ease) forwards;
}
.boot-log li:nth-child(1) { animation-delay: 0.3s; }
.boot-log li:nth-child(2) { animation-delay: 1.3s; }
.boot-log li:nth-child(3) { animation-delay: 2.3s; }

@keyframes log {
  to { opacity: 1; transform: none; }
}

.stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: calc(28px + var(--safe-t)) 18px calc(28px + var(--safe-b));
}

.card-wrap {
  width: min(92vw, 420px);
  perspective: 1200px;
}

.card {
  position: relative;
  aspect-ratio: 0.68 / 1;
  max-height: min(74dvh, 680px);
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform 0.15s linear;
  animation: float 5.6s ease-in-out infinite;
}

.stage[data-mode="boot"] .card {
  opacity: 0;
  transform: rotateX(12deg) scale(0.92);
}

.stage[data-mode="card"] .card,
.stage[data-mode="split"] .card,
.stage[data-mode="sheet"] .card {
  animation: enter 1.1s var(--ease) both, float 5.6s ease-in-out 1.1s infinite;
}

@keyframes enter {
  from { opacity: 0; transform: rotateX(14deg) scale(0.9); filter: blur(8px); }
  to { opacity: 1; transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) scale(1); filter: none; }
}

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

.card-face,
.split {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 32%),
    linear-gradient(#161618, #0c0c0e 55%, #09090b);
  border: 1px solid rgba(232, 210, 176, 0.22);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -30px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.card-face {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 20px 18px;
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}

.specular {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    180px 160px at var(--cx) var(--cy),
    rgba(255, 236, 210, 0.2),
    rgba(255, 122, 26, 0.05) 38%,
    transparent 62%
  );
  mix-blend-mode: screen;
  transition: background 0.08s linear;
}

.mark {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  position: relative;
  z-index: 1;
}

.brand {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.38em;
  font-weight: 600;
}

.unit {
  margin: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mute);
}

.device {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.obd {
  position: relative;
  width: 120px;
  height: 108px;
  display: grid;
  place-items: center;
}

.obd-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(155, 231, 255, 0.18);
  animation: spin 12s linear infinite;
  background: conic-gradient(from 80deg, transparent 0 72%, rgba(255, 122, 26, 0.55) 78%, transparent 86%);
  mask: radial-gradient(circle, transparent 62%, #000 64%);
}

.obd-body {
  width: 92px;
  height: 64px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, #2a2a30, #121214 55%, #0a0a0c);
  border: 1px solid rgba(232, 210, 176, 0.28);
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  position: relative;
}

.obd-led {
  position: absolute;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 12px var(--ice);
  animation: pulse 2.4s ease-in-out infinite;
}

.obd-slot {
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: #050506;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
}

.pins {
  position: absolute;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(8, 4px);
  gap: 3px;
}

.pins i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3a3a40;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.link-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.link-ico {
  width: 36px;
  height: 26px;
  color: var(--ice);
  flex: 0 0 auto;
}

.link-ico.truck { color: var(--warm); }

.link-txt {
  display: grid;
  gap: 1px;
}

.link-txt b {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.link-txt small {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.engrave {
  position: relative;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
  cursor: pointer;
  isolation: isolate;
}

.engrave.order {
  grid-column: 1 / -1;
  min-height: 56px;
}

.shutter {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 5px),
    linear-gradient(#1a1a1e, #101012);
  transform: translateY(-108%);
  transition: transform 0.8s var(--ease);
  z-index: 2;
  pointer-events: none;
}

.shutter::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(232, 210, 176, 0.16);
}

.engrave .label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink);
  text-align: center;
}

.stage.is-awake .engrave .shutter,
.engrave.hot .shutter,
.engrave:focus-visible .shutter {
  transform: translateY(-108%);
}

.stage.is-tease .engrave:nth-child(1) .shutter { transform: translateY(-108%); transition-delay: 0.05s; }
.stage.is-tease .engrave:nth-child(2) .shutter { transform: translateY(-108%); transition-delay: 0.14s; }
.stage.is-tease .engrave:nth-child(3) .shutter { transform: translateY(-108%); transition-delay: 0.23s; }
.stage.is-tease .engrave:nth-child(4) .shutter { transform: translateY(-108%); transition-delay: 0.32s; }
.stage.is-tease .engrave:nth-child(5) .shutter { transform: translateY(-108%); transition-delay: 0.41s; }

.engrave:active {
  transform: translateY(1px);
}

.hint {
  position: static;
  margin: 0;
  text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-dim);
  animation: hint 2.4s ease-in-out infinite;
}

@keyframes hint {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.split {
  display: flex;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.split-back {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  border: 0;
  background: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
}

.stage[data-mode="split"] .card-face {
  opacity: 0;
  transform: scale(0.96);
  pointer-events: none;
}

.stage[data-mode="split"] .split {
  opacity: 1;
  pointer-events: auto;
  transform: none;
  animation: peel 0.7s var(--ease) both;
}

@keyframes peel {
  from { clip-path: inset(0 50% 0 50%); opacity: 0.2; }
  to { clip-path: inset(0); opacity: 1; }
}

.half {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 16px 24px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.half + .half {
  border-left: 1px solid var(--hair);
}

.half::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.half.truck::before {
  background: linear-gradient(180deg, rgba(255, 122, 26, 0.16), transparent 50%);
}
.half.car::before {
  background: linear-gradient(180deg, rgba(155, 231, 255, 0.14), transparent 50%);
}
.half:hover::before,
.half:focus-visible::before {
  opacity: 1;
}

.half-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--mute);
}

.glyph {
  width: 88px;
  color: var(--warm);
  margin: auto 0 12px;
}

.half.car .glyph { color: var(--ice); }

.half-title {
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.half-sub {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 12;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) 18px calc(24px + var(--safe-b));
  background: rgba(5, 5, 6, 0.28);
  backdrop-filter: blur(10px);
}

.sheet-card {
  position: relative;
  width: min(92vw, 420px);
}

.sheet[hidden],
.split[hidden] {
  display: none !important;
}

.sheet-inner {
  width: 100%;
  min-height: min(74dvh, 680px);
  max-height: 82dvh;
  overflow: auto;
  border-radius: 28px;
  padding: 48px 24px 26px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), transparent 30%),
    linear-gradient(#141416, #0b0b0d);
  border: 1px solid rgba(232, 210, 176, 0.22);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  animation: sheetIn 0.6s var(--ease) both;
}

@keyframes sheetIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.sheet-x {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 2;
  border: 0;
  background: none;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  cursor: pointer;
}

.kicker {
  margin: 0 0 10px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

h2.serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(52px, 14vw, 76px);
  letter-spacing: -0.04em;
}

.lead {
  margin: 0 0 20px;
  max-width: 36ch;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--mute);
  letter-spacing: 0.01em;
}

.promo-code {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: 0.28em;
  font-weight: 600;
  user-select: text;
}

.cta + .cta,
.cta.ghost + .cta {
  margin-top: 8px;
}

.cta.is-off {
  opacity: 0.28;
  pointer-events: none;
  filter: grayscale(0.35);
}

.price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.price-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: transparent;
  cursor: pointer;
}

.price-card em {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.price-card b {
  font-size: 18px;
  letter-spacing: -0.03em;
}

.price-card.is-on {
  background: var(--warm);
  color: #120e0a;
  border-color: var(--warm);
}

.price-card.is-on em { color: rgba(18, 14, 10, 0.6); }

.choice {
  display: grid;
  gap: 8px;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--hair-2);
  background: rgba(0, 0, 0, 0.2);
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.choice-card em {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-style: normal;
  font-size: 10px;
  color: var(--amber);
}

.spec {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.spec li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: 0.04em;
  border-top: 1px solid var(--hair);
  padding-top: 10px;
}

.spec em {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-style: normal;
  font-size: 10px;
  color: var(--amber);
}

.cta {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: var(--warm);
  color: #120e0a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s;
}

.cta:hover { filter: brightness(1.05); }
.cta:active { transform: translateY(1px); }

.cta.ghost {
  background: transparent;
  color: var(--warm);
  border: 1px solid var(--hair-2);
}

.line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.order-form input {
  user-select: text;
  height: 48px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 0 14px;
  letter-spacing: 0.04em;
  outline: none;
}

.order-form input:focus,
.order-form textarea:focus {
  border-color: var(--warm-dim);
}

.order-form textarea {
  user-select: text;
  min-height: 88px;
  border: 1px solid var(--hair);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  padding: 12px 14px;
  letter-spacing: 0.04em;
  outline: none;
  resize: vertical;
}

.seg-label {
  margin: 8px 0 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.seg[data-seg="want"] {
  grid-template-columns: repeat(3, 1fr);
}

.seg button {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: transparent;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.seg button.is-on {
  background: var(--warm);
  color: #120e0a;
  border-color: var(--warm);
}

.cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1px solid var(--warm);
  border-radius: 50%;
  pointer-events: none;
  z-index: 30;
  mix-blend-mode: difference;
  transition: transform 0.2s var(--ease);
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  .cursor { display: block; }
  button:hover ~ .cursor,
  .engrave.hot { }
}

@media (max-height: 700px) {
  .obd { width: 120px; height: 120px; }
  .obd-body { width: 80px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .shutter { transform: translateY(-108%) !important; }
  .boot { display: none; }
}

.stage[data-mode="sheet"] .hint { opacity: 0; }

.studio { display: none; }

@media (min-width: 860px) {
  .studio {
    display: block;
    position: fixed;
    left: 5vw;
    top: 18vh;
    font-size: 17vw;
    font-weight: 700;
    letter-spacing: -0.07em;
    color: rgba(232, 210, 176, 0.035);
    pointer-events: none;
    z-index: 0;
    line-height: 0.8;
  }
}
