/* ==========================================================================
   Unfair Advantage — Precision Micro-Stages, Hardware Icons & Choreography
   ========================================================================== */

@font-face {
  font-family: 'Montserrat';
  src: url(assets/montserrat.woff2) format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Sliding Mode Indicator inside Impulse Core */
.view-cursor {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(255, 46, 70, 0.8);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.34s var(--snap), width 0.34s var(--snap);
}

/* Impulse Core SVG Reticle Dial Tracking */
.dial-index {
  stroke: var(--signal);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(255, 46, 70, 0.75));
  transform-origin: 280px 207px;
  transform: rotate(-135deg);
}

.specimen:has([data-view="1"][aria-pressed="true"]) .dial-index {
  transform: rotate(-30deg);
}

.specimen:has([data-view="2"][aria-pressed="true"]) .dial-index {
  transform: rotate(72deg);
}

/* ==========================================================================
   Features Micro-Stages (Interactive Sculpted Hardware Visualizations)
   ========================================================================== */

.mini {
  width: min(86%, 260px);
  height: 112px;
}

/* 1. Combat — 3D Mechanical Keycap Cluster */
.keys-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  transform: rotateX(24deg) rotateZ(-7deg);
  transform-style: preserve-3d;
}

.keys-mini kbd {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 11px;
  background: linear-gradient(155deg, #323846 0%, #171b24 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f4f5f8;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 6px 0 #0c0e14,
    0 7px 0 rgba(255, 255, 255, 0.08),
    4px 16px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.22s var(--snap), box-shadow 0.22s var(--snap), border-color 0.22s;
}

.keys-mini kbd::after {
  content: '';
  position: absolute;
  bottom: 7px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.keys-mini kbd:nth-child(2) {
  background: linear-gradient(155deg, #f31e38 0%, #a50b1f 100%);
  border-color: rgba(255, 130, 145, 0.55);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 6px 0 #5b0612,
    0 7px 0 rgba(255, 65, 88, 0.35),
    4px 16px 26px rgba(232, 17, 45, 0.42);
}

.keys-mini kbd:nth-child(2)::after {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 8px #ffffff;
}

/* 2. Instant Techs — Glowing Vector Oscilloscope */
.path-mini {
  overflow: visible;
  transform: rotate(-5deg);
}

.path-mini .path-bed {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.path-mini .path-glow {
  fill: none;
  stroke: rgba(255, 46, 70, 0.42);
  stroke-width: 9;
  stroke-linecap: round;
  filter: blur(4px);
  stroke-dasharray: 0.72 1;
  transition: stroke-dasharray 0.7s var(--ease);
}

.path-mini .path-line {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 0.72 1;
  transition: stroke-dasharray 0.7s var(--ease);
}

.path-mini circle {
  fill: #0d1017;
  stroke: #ffffff;
  stroke-width: 1.8;
}

.path-mini .path-dot-end {
  fill: var(--signal);
  stroke: #ff9ca8;
}

.path-mini .path-spark {
  fill: #ffffff;
  stroke: var(--signal);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px rgba(255, 46, 70, 0.95));
  offset-path: path('M12 72C42 71 68 80 90 42S134 15 152 47s44 35 76-22');
  offset-distance: 0%;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .path-mini .path-spark {
    animation: spark-glide 3.1s var(--ease) infinite;
  }

  .study:is(:hover, :focus-visible) .path-mini .path-spark {
    animation-duration: 1.5s;
  }

  @keyframes spark-glide {
    0% { offset-distance: 0%; opacity: 0; }
    12% { opacity: 1; }
    85% { opacity: 1; }
    100% { offset-distance: 100%; opacity: 0; }
  }
}

/* 3. Blatant — Precision Anodized Switch Rack */
.switch-mini {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 11px;
  transform: rotate(-6deg);
}

.switch-mini i {
  position: relative;
  display: block;
  width: 116px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #10131b, #1a1f2b);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.switch-mini i::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 14px;
  border-radius: 999px;
  left: 3px;
  top: 3px;
  background: linear-gradient(180deg, #e5e8f0, #9da5b6);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.42s var(--spring), background 0.22s;
}

.switch-mini i:nth-child(2) {
  border-color: rgba(255, 46, 70, 0.55);
  background: linear-gradient(180deg, #6d0b1a, #9c1125);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4), 0 0 18px -4px rgba(232, 17, 45, 0.65);
}

.switch-mini i:nth-child(2)::after {
  transform: translateX(80px);
  background: #ffffff;
}

/* ==========================================================================
   FAQ Animated Hardware Chrome
   ========================================================================== */

.faq-list summary::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--signal), rgba(255, 46, 70, 0.12) 70%, transparent);
  transform-origin: left;
  transform: scaleX(0);
}

.faq-list details[open] > summary::before {
  transform: scaleX(1);
}

.faq-list summary::after {
  content: '+';
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  background: var(--crimson);
  border-color: rgba(255, 118, 134, 0.5);
  color: #ffffff;
  box-shadow: 0 0 18px -2px rgba(232, 17, 45, 0.65);
}

/* ==========================================================================
   Link Underlines & Interactive Motion
   ========================================================================== */

.foot > div a,
.policy-link {
  position: relative;
}

.foot > div a::after,
.policy-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
}

/* ==========================================================================
   Scroll Reveal Choreography (Always Legible — Never Traps Content Invisible)
   ========================================================================== */

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.motion-ready [data-reveal]:not(.instrument):not(.console) {
    transform: translateY(16px);
    transition: transform 0.62s var(--ease);
  }

  html.motion-ready [data-reveal].is-revealed {
    transform: none;
  }
}

/* ==========================================================================
   Motion Rules (prefers-reduced-motion: no-preference)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .foot > div a::after,
  .policy-link::after {
    transition: transform 0.3s var(--snap);
  }

  .foot > div a:is(:hover, :focus-visible)::after,
  .policy-link:is(:hover, :focus-visible)::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .brand img,
  .access b,
  .cta b,
  .logo-replay span,
  .hub-chevron {
    display: inline-block;
    transition: transform 0.3s var(--snap);
  }

  .brand:is(:hover, :focus-visible) img {
    transform: skewX(-6deg) translateX(2px);
  }

  .access:is(:hover, :focus-visible) b,
  .cta:is(:hover, :focus-visible) b {
    transform: translate(2px, -2px);
  }

  .logo-replay:hover span {
    transform: rotate(-65deg);
  }

  /* 3D Emblem Assembly Entrance */
  .ink.white {
    animation: white-seat 1.05s var(--ease) both;
  }

  .ink.red {
    animation: red-seat 1.12s 0.08s var(--ease) both;
  }

  .score-lines {
    animation: scribe 1.2s var(--ease) both;
  }

  .ink b::after {
    content: '';
    position: absolute;
    inset: -30%;
    background: linear-gradient(112deg, transparent 34%, rgba(255, 255, 255, 0.55) 49%, transparent 62%);
    animation: enamel 1.4s 0.34s var(--ease) both;
  }

  @keyframes white-seat {
    from {
      opacity: 0.05;
      transform: translate3d(-24%, -18%, 95px) rotateY(-28deg) rotateZ(-8deg);
    }
    65% { opacity: 1; }
    to { transform: none; }
  }

  @keyframes red-seat {
    from {
      opacity: 0.05;
      transform: translate3d(26%, 20%, 125px) rotateX(-25deg) rotateZ(10deg);
    }
    65% { opacity: 1; }
    to { transform: none; }
  }

  @keyframes enamel {
    from { transform: translateX(-115%); }
    to { transform: translateX(125%); }
  }

  @keyframes scribe {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0); }
  }

  /* Feature Cards Tactile Micro-Animations */
  .study:is(:hover, :focus-visible) .keys-mini kbd {
    animation: keystroke 0.44s var(--snap);
  }
  .study:is(:hover, :focus-visible) .keys-mini kbd:nth-child(2) {
    animation-delay: 0.09s;
  }
  .study:is(:hover, :focus-visible) .keys-mini kbd:last-child {
    animation-delay: 0.17s;
  }

  @keyframes keystroke {
    45% {
      transform: translateY(5px);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 0 #0c0e14, 2px 6px 10px rgba(0, 0, 0, 0.7);
    }
  }

  .study:is(:hover, :focus-visible) .path-line,
  .study:is(:hover, :focus-visible) .path-glow {
    stroke-dasharray: 1 1;
  }

  .study:is(:hover, :focus-visible) .switch-mini i:nth-child(1)::after {
    transform: translateX(22px);
  }
  .study:is(:hover, :focus-visible) .switch-mini i:nth-child(2)::after {
    transform: translateX(62px);
  }
  .study:is(:hover, :focus-visible) .switch-mini i:nth-child(3)::after {
    transform: translateX(34px);
  }

  /* Smooth FAQ Height Transition */
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .faq-list {
      interpolate-size: allow-keywords;
    }
    .faq-list details::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 0.36s var(--ease), opacity 0.28s var(--sine), content-visibility 0.36s allow-discrete;
    }
    .faq-list details[open]::details-content {
      block-size: auto;
      opacity: 1;
    }
  }

  .faq-list summary::before {
    transition: transform 0.38s var(--ease);
  }

  .faq-list summary::after {
    transition: transform 0.32s var(--snap), background-color 0.22s, border-color 0.22s, box-shadow 0.25s;
  }

  .faq-list summary:is(:hover, :focus-visible)::after {
    border-color: rgba(255, 46, 70, 0.55);
  }

  .dial-index {
    transition: transform 0.75s var(--ease);
  }

  .core-aside svg path {
    stroke-dasharray: 48;
    animation: note-stroke 0.65s 0.22s var(--ease) backwards;
  }

  @keyframes note-stroke {
    from { stroke-dashoffset: 48; }
    to { stroke-dashoffset: 0; }
  }
}

.no-menu-motion *,
.no-menu-motion *::before,
.no-menu-motion *::after {
  animation: none !important;
  transition: none !important;
}

/* Vector Mask Icons (Guaranteed Crisp Rendering Across All OSes) */
.ico {
  display: inline-block;
  flex: none;
  width: 0.92em;
  height: 0.92em;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.ico-ne {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.6 17.4 17.4 6.6'/%3E%3Cpath d='M8.8 6.6h8.6v8.6'/%3E%3C/g%3E%3C/svg%3E");
}

.ico-replay {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.6v5.6h5.6'/%3E%3Cpath d='M3.9 14.9a8.5 8.5 0 1 0 1.9-8.5L3 10.2'/%3E%3C/g%3E%3C/svg%3E");
  width: 1.05em;
  height: 1.05em;
}

.ico-dl {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7.5 11.2 4.5 4.6 4.5-4.6'/%3E%3Cpath d='M4.5 19.5h15'/%3E%3C/g%3E%3C/svg%3E");
  width: 1.05em;
  height: 1.05em;
}

/* ==========================================================================
   Unfair Client — Full-Width Cinematic Studio Showcase & Hardware Bento (R29)
   ========================================================================== */

.uc-section {
  display: grid;
  gap: 24px;
}

.uc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.uc-header-copy {
  display: grid;
  gap: 10px;
  max-width: 600px;
}

.uc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(232, 17, 45, 0.12);
  border: 1px solid var(--line-crimson);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--crimson-hot);
}

.uc-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

.uc-eyebrow b {
  color: var(--text);
  font-weight: 600;
}

.uc-header-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.uc-header-copy p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.uc-metrics-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.uc-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038) 0%, rgba(255, 255, 255, 0.008) 100%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1;
}

.uc-metric-chip strong {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uc-metric-chip span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
}

.uc-metric-chip.is-ram {
  border-color: var(--line-crimson);
  background: linear-gradient(180deg, rgba(232, 17, 45, 0.16) 0%, rgba(232, 17, 45, 0.05) 100%), var(--surface);
}

.uc-metric-chip.is-ram i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

.uc-metric-chip.is-ram strong {
  color: #ffffff;
}

.uc-dl-cluster {
  display: grid;
  gap: 9px;
  justify-items: end;
}

.uc-dl-primary {
  min-height: 50px;
  padding: 0 22px;
  font-size: 14.5px;
  gap: 11px;
}

.uc-dl-primary em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.uc-dl-sub {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--dim);
}

.uc-sha-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.uc-sha-pill:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.uc-sha-pill span {
  color: var(--dim);
  font-weight: 600;
}

.uc-sha-pill code {
  color: var(--text-soft);
}

/* Interactive 3D Spatial Unfair Client Stage (Matches #interface Stage DNA) */
.uc-instrument {
  border-radius: var(--radius-xl);
  scroll-margin-top: 84px;
}

.uc-stage-top {
  gap: 12px;
  flex-wrap: wrap;
}

.uc-stage-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uc-stage-btn {
  height: 29px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.uc-stage-btn:hover {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.uc-stage-btn[aria-pressed='true'] {
  border-color: var(--line-crimson);
  background: rgba(232, 17, 45, 0.14);
  color: var(--crimson-hot);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.uc-3d-canvas {
  position: relative;
  isolation: isolate;
  perspective: 1320px;
  perspective-origin: 50% 44%;
  display: grid;
  place-items: center;
  min-height: 726px;
  padding: clamp(24px, 3vw, 42px) clamp(14px, 2.4vw, 36px);
  overflow: clip;
  cursor: grab;
  background:
    radial-gradient(ellipse 68% 58% at 50% 42%, rgba(232, 17, 45, calc(0.08 + var(--uc-heat, 0.18) * 0.16)), transparent 68%),
    radial-gradient(ellipse 82% 72% at 50% 24%, rgba(44, 52, 72, 0.36) 0%, #0d1017 68%, #090b10 100%);
  transition: background 0.5s var(--sine), min-height 0.48s var(--ease);
}

.uc-3d-canvas.is-orbiting {
  cursor: grabbing;
  user-select: none;
}

.uc-3d-canvas[data-uc-angle='flat'] {
  cursor: default;
}

.uc-3d-canvas[data-uc-view='pill'] {
  min-height: 290px;
}

/* Perspective 3D Dot Floor Plane (Matching TSB Hub Stage) */
.uc-3d-canvas::before {
  content: '';
  position: absolute;
  inset: -16% -14% -28%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle, rgba(164, 174, 196, 0.38) 1px, transparent 1.35px) 50% 50% / 22px 22px;
  opacity: 0.42;
  transform: rotateX(55deg) translateY(18%);
  mask-image: linear-gradient(transparent, #000 32%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 32%, #000 88%, transparent);
}

/* CRITICAL: pointer-events: none prevents the flat z=0 wrapper plane from intercepting hits on negative-Z tilted halves */
.uc-3d-scaler {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--uc-w, 1040px) * var(--uc-scale, 1));
  height: calc(var(--uc-h, 660px) * var(--uc-scale, 1));
  pointer-events: none;
  transform-style: preserve-3d;
  transition: width 0.52s var(--snap), height 0.52s var(--snap);
}

.uc-3d-canvas[data-uc-view='pill'] .uc-3d-scaler {
  --uc-w: 312px;
  --uc-h: 48px;
}

/* Interactive Moveable 3D Chassis Rig — Driven smoothly via --uc-rx / --uc-ry */
.uc-3d-rig {
  position: relative;
  flex: none;
  width: var(--uc-w, 1040px);
  height: var(--uc-h, 660px);
  border-radius: 18px;
  pointer-events: auto;
  transform-origin: center;
  transform-style: preserve-3d;
  transform: scale(var(--uc-scale, 1)) rotateX(var(--uc-rx, 4.5deg)) rotateY(var(--uc-ry, -3.5deg));
  transition:
    width 0.52s var(--snap),
    height 0.52s var(--snap),
    border-radius 0.52s var(--snap);
}

.uc-3d-canvas[data-uc-view='pill'] .uc-3d-rig {
  --uc-w: 312px;
  --uc-h: 48px;
  border-radius: 999px;
}

.uc-3d-canvas[data-uc-angle='flat'] .uc-3d-rig {
  transform: scale(var(--uc-scale, 1));
}

@media (max-width: 740px) {
  .uc-3d-rig {
    transform: scale(var(--uc-scale, 1));
  }
}

/* Extruded Brushed Titanium Physical 3D Housing (Matches .dock-case) */
.uc-3d-case {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  transform-style: preserve-3d;
  z-index: 0;
}

.uc-3d-case i,
.uc-3d-case b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.uc-3d-case i {
  transform: translateZ(-8px);
  background: #0c0e14;
  box-shadow:
    calc(var(--uc-sx, 2px) * 0.4) 2px 0 #303749,
    calc(var(--uc-sx, 2px) * 0.85) 5px 0 #1b202d,
    calc(var(--uc-sx, 2px) * 1.4) 10px 0 #07080c,
    calc(var(--uc-sx, 2px) * 3) 30px 48px -12px rgba(0, 0, 0, 0.92),
    calc(var(--uc-sx, 2px) * 4.5) 46px 84px -18px rgba(0, 0, 0, 0.84);
}

.uc-3d-case b {
  background: linear-gradient(142deg, #1f2534 0%, #10131c 56%, #171c27 100%);
  border: 1px solid;
  border-color: rgba(255, 255, 255, 0.24) rgba(255, 255, 255, 0.11) rgba(255, 255, 255, 0.05) rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Native Shadow DOM Live Interactive Client Host */
.uc-client-host {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #0c0e13;
  outline: none;
  backface-visibility: visible;
  transform: translateZ(1px);
}

/* Dynamic Specular Reflection Sweep across 3D Glass Face */
.uc-3d-glint {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.72;
  background: radial-gradient(
    640px circle at var(--uc-gx, 28%) var(--uc-gy, 16%),
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.02) 32%,
    transparent 64%
  );
  transition: opacity 0.25s var(--ease);
}

.uc-3d-canvas[data-uc-angle='flat'] .uc-3d-glint {
  opacity: 0;
}

/* 4 Sculpted Hardware Feature Cards (Bento Grid) */
.uc-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.uc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032) 0%, rgba(255, 255, 255, 0.004) 100%),
    var(--chassis);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.42);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.uc-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-crimson);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 22px 46px rgba(0, 0, 0, 0.62);
}

.uc-card strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
}

.uc-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Miniature Crafted Hardware Visuals inside each Bento Card */
.uc-card-art {
  height: 74px;
  border-radius: 12px;
  background: var(--void);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  position: relative;
}

/* 1. Dual-Write Pipeline Art */
.art-pipe { gap: 8px; }
.ap-node {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
}
.ap-node.is-hot {
  background: rgba(232, 17, 45, 0.16);
  border-color: var(--line-crimson);
  color: var(--crimson-hot);
}
.ap-wire {
  width: 22px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  border-radius: 99px;
}

/* 2. DLSS 5 Split-Wipe Art */
.art-dlss {
  padding: 0;
  background: linear-gradient(90deg, #171c26 0%, #171c26 50%, #3a101b 50%, #190910 100%);
  justify-content: space-between;
}
.ad-left, .ad-right {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  margin: 0 10px;
  border-radius: 6px;
  background: rgba(7, 8, 11, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-soft);
  z-index: 1;
}
.ad-right {
  border-color: var(--line-crimson);
  color: var(--crimson-hot);
}
.ad-wipe {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 46, 70, 0.75);
  transition: left 0.36s var(--snap);
}
.uc-card:hover .ad-wipe { left: 36%; }

/* 3. Guided Mod Swatch Cluster Art */
.art-mods { gap: 8px; }
.am-tile {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.25s var(--snap);
}
.uc-card:hover .am-tile:nth-child(2) { transform: translateY(-3px); }
.uc-card:hover .am-tile:nth-child(3) { transform: translateY(-5px); }
.am-sky {
  background: linear-gradient(180deg, #09070d 0%, #4b1020 62%, #e8112d 100%);
  border-color: var(--line-crimson);
}
.am-cross { color: var(--crimson-hot); font-size: 18px; font-weight: 600; }
.am-snd { display: flex; align-items: center; justify-content: center; gap: 3px; }
.am-snd i { width: 2.5px; border-radius: 99px; background: var(--text-soft); display: block; }
.am-snd i:nth-child(1) { height: 10px; }
.am-snd i:nth-child(2) { height: 18px; background: var(--crimson-hot); }
.am-snd i:nth-child(3) { height: 12px; }

/* 4. Real Miniature Floating Pill Art */
.apill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px 6px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #1b202c 0%, #0d0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.7);
  transition: transform 0.26s var(--snap);
}
.uc-card:hover .apill { transform: translateY(-3px) scale(1.03); }
.apill img { display: block; object-fit: contain; }
.apill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.apill b { font-size: 10.5px; font-weight: 700; color: var(--text); white-space: nowrap; }
.apill em {
  font-style: normal;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(232, 17, 45, 0.18);
  border: 1px solid var(--line-crimson);
  color: var(--crimson-hot);
}

.faq-answer code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 5px;
}

/* Signed-in Discord Nav Pill (Shared across index.html & account.html) */
.mast-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 13px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.mast-user-pill:hover {
  border-color: var(--line-crimson);
  transform: translateY(-1px);
}

.mast-user-pill img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--panel);
}

.mast-user-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.85);
}

@media (max-width: 1040px) {
  .uc-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .uc-3d-canvas {
    min-height: 0;
    padding: 24px 12px 28px;
  }
  .uc-3d-canvas[data-uc-view='pill'] {
    min-height: 180px;
  }
}

@media (max-width: 780px) {
  .uc-header {
    align-items: flex-start;
  }
  .uc-dl-cluster {
    justify-items: start;
    width: 100%;
  }
  .uc-dl-sub {
    justify-content: flex-start;
  }
  .uc-stage-controls {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .uc-bento {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-replay {
    display: none;
  }
  .study:is(:focus-visible, :hover) {
    transform: none;
  }
}
