:root {
  --void: #04060A;
  --panel: rgba(4, 6, 10, 0.84);
  --panel-strong: rgba(4, 6, 10, 0.92);
  --accent: #00E5FF;
  --secondary: #FF2A85;
  --text: #F4F7FF;
  --muted: rgba(236, 243, 255, 0.68);
  --hairline: rgba(255, 255, 255, 0.14);
  --font-display: 'Syne', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --chamfer: polygon(
    12px 0,
    100% 0,
    100% calc(100% - 12px),
    calc(100% - 12px) 100%,
    0 100%,
    0 12px
  );
  --chamfer-sm: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
}

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

html,
body {
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  overscroll-behavior: none;
  background-color: var(--void);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body[data-step="6"] {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   BASE LAYERS
   ========================================================================== */

#field-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#flash-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 45%,
    rgba(255, 255, 255, 0.42),
    color-mix(in srgb, var(--accent) 26%, transparent) 55%,
    transparent 80%
  );
}

#flash-layer.is-flashing {
  animation: stageFlash 180ms var(--ease-expo) forwards;
}

@keyframes stageFlash {
  0% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
  }
}

/* ==========================================================================
   TACTICAL HUD
   ========================================================================== */

#hud-layer {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100svh;
  z-index: 20;
  pointer-events: none;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(8px, 1.4svh, 14px))
    calc(env(safe-area-inset-right, 0px) + 14px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(8px, 1.4svh, 14px))
    calc(env(safe-area-inset-left, 0px) + 14px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-top {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 8px;
  contain: layout style;
}

.hud-btn {
  pointer-events: auto;
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  clip-path: var(--chamfer-sm);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  transition: transform 160ms var(--ease-expo), border-color 180ms ease, opacity 180ms ease;
}

.hud-btn:active {
  transform: scale(0.96);
}

.hud-btn[hidden] {
  display: inline-flex;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.hud-btn svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.hud-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hud-progress {
  width: 100%;
  max-width: 196px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.hud-seg {
  height: 3px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.hud-seg.is-active {
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 75%, transparent);
}

.hud-seg.is-done {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  box-shadow: 0 0 8px color-mix(in srgb, var(--secondary) 55%, transparent);
}

.hud-telemetry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hud-telemetry span strong {
  color: var(--accent);
  font-weight: 600;
}

.hud-crosshair {
  position: fixed;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent) 56%, #ffffff);
  opacity: 0.52;
  pointer-events: none;
}

.hud-crosshair--tl {
  top: calc(env(safe-area-inset-top, 0px) + 48px);
  left: 12px;
}

.hud-crosshair--tr {
  top: calc(env(safe-area-inset-top, 0px) + 48px);
  right: 12px;
}

.hud-crosshair--bl {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  left: 12px;
}

.hud-crosshair--br {
  bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
  right: 12px;
}

.hud-glitch-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}

.hud-glitch-block {
  position: absolute;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, #ffffff, var(--accent), transparent);
}

.hud-glitch-layer.is-active .hud-glitch-block--1 {
  top: 24%;
  left: 8%;
  width: 44%;
  animation: hudGlitchFlicker 210ms steps(2, end) forwards;
}

.hud-glitch-layer.is-active .hud-glitch-block--2 {
  top: 52%;
  right: 6%;
  width: 38%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent), #ffffff, transparent);
  animation: hudGlitchFlicker 210ms 30ms steps(2, end) forwards;
}

.hud-glitch-layer.is-active .hud-glitch-block--3 {
  bottom: 22%;
  left: 18%;
  width: 56%;
  animation: hudGlitchFlicker 210ms 55ms steps(2, end) forwards;
}

@keyframes hudGlitchFlicker {
  0% {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }
  35% {
    opacity: 0.92;
    transform: translate3d(8px, 0, 0);
  }
  70% {
    opacity: 0.55;
    transform: translate3d(-4px, 0, 0);
  }
  100% {
    opacity: 0;
    transform: translate3d(14px, 0, 0);
  }
}

/* ==========================================================================
   CHROMATIC TITLE TYPOGRAPHY
   ========================================================================== */

.chromatic-title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 0.98;
  color: #ffffff;
  text-shadow:
    -2px 0 0 rgba(0, 229, 255, 0.85),
    2px 0 0 rgba(255, 42, 133, 0.85);
  animation: chromaticJitter 220ms var(--ease-expo);
}

@keyframes chromaticJitter {
  0% {
    opacity: 0;
    transform: translate3d(0, 6px, 0) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translate3d(-1px, 0, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* ==========================================================================
   MAIN STAGE & PREDICTABLY CENTERED 100SVH GEOMETRY (STEPS 0-5)
   ========================================================================== */

#stage {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

body:not([data-step="6"]) #stage {
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  justify-content: center;
}

.stage-view {
  width: 100%;
  max-width: 460px;
  height: 100%;
  max-height: 100svh;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(54px, 8svh, 72px))
    calc(env(safe-area-inset-right, 0px) + 20px)
    calc(env(safe-area-inset-bottom, 0px) + clamp(18px, 2.8svh, 28px))
    calc(env(safe-area-inset-left, 0px) + 20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(10px, 1.8svh, 18px);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition:
    transform 200ms var(--ease-expo),
    opacity 200ms var(--ease-expo);
}

.stage-view--boot {
  justify-content: center;
  gap: clamp(22px, 4.5svh, 44px);
}

.stage-view--boot .stage-header {
  flex: 0 1 auto;
}

.stage-view--boot .thumb-zone--boot {
  flex: 0 0 auto;
  height: auto;
  max-height: none;
}

.stage-view.is-entering {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.stage-view.is-leaving {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
}

.stage-header {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2px, 0.8svh, 8px) 4px;
  gap: clamp(6px, 1.2svh, 12px);
}

.stage-kicker {
  font-size: clamp(9.5px, 1.4svh, 11px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.stage-title {
  font-size: clamp(1.35rem, min(6.6vw, 3.8svh), 2.35rem);
}

.stage-subtitle {
  max-width: 34ch;
  font-size: clamp(10.5px, 1.55svh, 12.5px);
  line-height: 1.42;
  color: var(--muted);
}

/* Intelligently bounded thumb zone: fits 100svh with zero bottom clipping */
.thumb-zone {
  flex: 0 1 60%;
  min-height: 0;
  max-height: 60svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(10px, 1.6svh, 14px);
}

.thumb-zone--boot {
  justify-content: center;
  gap: clamp(12px, 1.8svh, 16px);
}

.boot-btn {
  width: 100%;
  height: clamp(64px, 10.2svh, 82px);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--btn-accent, var(--accent)) 60%, transparent);
  clip-path: var(--chamfer);
  box-shadow:
    inset 0 0 20px color-mix(in srgb, var(--btn-accent, var(--accent)) 14%, transparent),
    0 0 18px color-mix(in srgb, var(--btn-accent, var(--accent)) 14%, transparent);
  transition: transform 160ms var(--ease-expo), border-color 180ms ease;
}

.boot-btn:active {
  transform: scale(0.975);
}

.boot-btn__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, min(5.4vw, 3svh), 1.45rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
}

.boot-btn__meta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--btn-accent, var(--accent));
}

/* Rigid option deck for 2 or 3 cards inside thumb zone */
.option-deck {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  gap: clamp(8px, 1.35svh, 12px);
}

.option-deck--3 {
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.option-deck--2 {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: center;
  max-height: min(340px, 44svh);
  margin-top: auto;
  margin-bottom: auto;
}

.option-card {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(9px, 1.4svh, 15px) 15px;
  display: grid;
  grid-template-columns: clamp(42px, 6.2svh, 52px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(10px, 2.8vw, 14px);
  text-align: left;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--card-a, var(--accent)) 52%, transparent);
  clip-path: var(--chamfer);
  contain: layout style paint;
  transition:
    transform 150ms var(--ease-expo),
    border-color 180ms ease;
}

.option-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--card-a, var(--accent)), var(--card-b, var(--secondary)));
}

.option-card:active {
  transform: scale(0.975);
  border-color: var(--card-a, var(--accent));
}

.option-card__sigil {
  width: clamp(42px, 6.2svh, 52px);
  height: clamp(42px, 6.2svh, 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card-a, var(--accent));
  border: 1px solid color-mix(in srgb, var(--card-a, var(--accent)) 35%, transparent);
  background: rgba(255, 255, 255, 0.02);
  clip-path: var(--chamfer-sm);
}

.option-card__sigil svg {
  width: 62%;
  height: 62%;
}

.option-card__body {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 0.45svh, 4px);
  min-width: 0;
}

.option-card__code {
  font-size: clamp(9px, 1.25svh, 10px);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--card-a, var(--accent));
}

.option-card__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.95rem, min(4.3vw, 2.35svh), 1.24rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.08;
}

.option-card__prompt {
  font-size: clamp(10px, 1.45svh, 11.5px);
  line-height: 1.32;
  color: var(--muted);
}

/* ==========================================================================
   STEP 5 CONVERGENCE VIEW
   ========================================================================== */

.convergence-view {
  width: 100%;
  max-width: 460px;
  height: 100%;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.convergence-ring {
  width: clamp(78px, 12svh, 96px);
  height: clamp(78px, 12svh, 96px);
  border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent);
  border-top-color: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spinRing 950ms linear infinite;
}

.convergence-ring__core {
  width: 14px;
  height: 14px;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent), 0 0 36px var(--secondary);
  transform: rotate(45deg);
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.convergence-stamp {
  font-size: clamp(1.45rem, min(6.6vw, 3.6svh), 2.15rem);
}

.convergence-sub {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   STEP 6 RESULT CARD (FITS 100SVH ABOVE THE FOLD) + OS FAKE-DOOR BELOW
   ========================================================================== */

.result-view {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding:
    calc(env(safe-area-inset-top, 0px) + clamp(54px, 7.4svh, 68px))
    calc(env(safe-area-inset-right, 0px) + 16px)
    calc(env(safe-area-inset-bottom, 0px) + 32px)
    calc(env(safe-area-inset-left, 0px) + 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5svh, 24px);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
  transition: transform 240ms var(--ease-expo), opacity 240ms var(--ease-expo);
}

.result-view.is-entering {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
}

.result-card {
  position: relative;
  width: 100%;
  min-height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - clamp(74px, 10svh, 92px));
  background: var(--panel-strong);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 14%, transparent);
  padding: clamp(11px, 1.7svh, 15px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 1.4svh, 13px);
  contain: layout style;
}

.bracket {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  border-color: var(--accent);
  border-style: solid;
}

.bracket--tl {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
}

.bracket--tr {
  top: -2px;
  right: -2px;
  border-width: 2px 2px 0 0;
}

.bracket--bl {
  bottom: -2px;
  left: -2px;
  border-width: 0 0 2px 2px;
  border-color: var(--secondary);
}

.bracket--br {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
  border-color: var(--secondary);
}

.result-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.protocol-badge {
  padding: 4px 9px;
  background: color-mix(in srgb, var(--accent) 14%, var(--void));
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  color: var(--accent);
  clip-path: var(--chamfer-sm);
}

.result-card__axis {
  color: var(--muted);
  font-size: 9.5px;
}

.portrait-frame {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  height: clamp(175px, 31svh, 310px);
  min-height: 165px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%),
    var(--void);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  opacity: 0;
  transition: opacity 220ms ease;
}

.portrait-frame img.is-loaded {
  opacity: 1;
}

.portrait-frame__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 48%,
    rgba(4, 6, 10, 0.72) 84%,
    var(--void) 100%
  );
  pointer-events: none;
}

.result-identity {
  display: flex;
  flex-direction: column;
  gap: clamp(5px, 0.9svh, 8px);
}

.result-name {
  font-size: clamp(1.35rem, min(6.2vw, 3.2svh), 2rem);
}

.result-tagline {
  font-size: clamp(11.5px, 1.6svh, 13px);
  line-height: 1.4;
  color: #ffffff;
}

.result-diagnosis {
  font-size: clamp(10.5px, 1.45svh, 12px);
  line-height: 1.42;
  color: var(--muted);
  padding-top: clamp(5px, 0.85svh, 8px);
  border-top: 1px solid var(--hairline);
}

.stat-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1.15svh, 11px);
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-row__head {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat-row__label {
  color: var(--muted);
}

.stat-row__value {
  color: #ffffff;
}

.stat-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transition: transform 650ms var(--ease-expo);
}

.stat-fill.is-animated {
  transform: scaleX(var(--stat-ratio, 0.85));
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 2px;
}

.btn-primary {
  height: clamp(44px, 6.2svh, 52px);
  padding: 0 16px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  color: #04060A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  clip-path: var(--chamfer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 150ms var(--ease-expo), opacity 150ms ease;
}

.btn-primary:active {
  transform: scale(0.975);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
}

.btn-secondary {
  height: clamp(44px, 6.2svh, 52px);
  padding: 0 15px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  clip-path: var(--chamfer);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: transform 150ms var(--ease-expo), border-color 160ms ease;
}

.btn-secondary:active {
  transform: scale(0.975);
}

/* ==========================================================================
   OS FAKE-DOOR MODULE
   ========================================================================== */

.os-module {
  background: var(--panel-strong);
  border: 1px solid color-mix(in srgb, var(--secondary) 44%, transparent);
  clip-path: var(--chamfer);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  contain: layout style;
}

.os-module__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.os-module__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--secondary);
}

.os-module__status {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.locked-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.locked-card {
  position: relative;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.12);
  clip-path: var(--chamfer-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.locked-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.locked-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.locked-pill {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent);
}

.locked-card__blur {
  filter: blur(4px);
  opacity: 0.62;
  pointer-events: none;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}

.matrix-preview {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
}

.matrix-preview span {
  height: 8px;
  background: color-mix(in srgb, var(--accent) 32%, rgba(255, 255, 255, 0.08));
}

.matrix-preview span:nth-child(4n) {
  background: color-mix(in srgb, var(--secondary) 55%, transparent);
}

.boot-os-cta {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: #ffffff;
  color: #04060A;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  clip-path: var(--chamfer);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 24%, transparent);
  transition: transform 150ms var(--ease-expo);
}

.boot-os-cta:active {
  transform: scale(0.975);
}

.waitlist-drawer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 220ms var(--ease-expo), opacity 200ms ease;
}

.waitlist-drawer.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.waitlist-drawer__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.waitlist-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 13px;
  clip-path: var(--chamfer-sm);
}

.waitlist-input::placeholder {
  color: rgba(236, 243, 255, 0.45);
}

.waitlist-submit {
  height: 44px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--accent) 20%, var(--void));
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: var(--chamfer-sm);
}

.waitlist-feedback {
  font-size: 11px;
  line-height: 1.45;
  color: var(--accent);
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
