/* ==========================================================================
   LBT 咔哦教育 · SCROLL-DRIVEN MECHA HUD HOMEPAGE
   Dark holographic HUD stage + signal-orange / data-cyan accents
   (Login modal below keeps the warm anodized hardware terminal look)
   ========================================================================== */

body.hp-active {
  background: #05070b;
  background-image: none;
  color: #eef2f8;
  overflow-x: hidden;
}

.hp-root {
  --hp-ink: #eef2f8;
  --hp-ink-2: #a9b3c6;
  --hp-ink-3: #66708a;
  --hp-line: rgba(150, 190, 240, 0.14);
  --hp-line-2: rgba(150, 190, 240, 0.28);
  --hp-orange: #ff5a12;
  --hp-orange-2: #ff8a45;
  --hp-cyan: #4fd8ff;
  --hp-green: #4ade80;
  --hp-panel: rgba(7, 10, 16, 0.7);
  --hp-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --hero-out: 0;

  position: relative;
  --hx: 66vw;
  --hy: 52vh;
  background: linear-gradient(180deg, #070a12 0%, #05070b 55%, #040508 100%);
  color: var(--hp-ink);
  font-family: var(--font-sans);
}

/* ---------- Background layers (behind the transparent WebGL canvas) ---------- */

/* Backlight halo projected behind the robot (position fed from the 3D stage) */
.hp-halo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* Fine dot matrix that only appears around the stage light, fading into the void */
.hp-halo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(150, 190, 240, 0.16) 1px, transparent 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle min(48vmax, 760px) at var(--hx) var(--hy), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
  mask-image: radial-gradient(circle min(48vmax, 760px) at var(--hx) var(--hy), #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
}
.hp-halo i {
  position: absolute;
  inset: 0;
  transition: opacity 1.2s ease;
}
.hp-halo .cool {
  background:
    radial-gradient(ellipse min(15vmax, 240px) 70vh at var(--hx) -6%, rgba(130, 175, 255, 0.11) 0%, rgba(110, 160, 255, 0.04) 50%, transparent 100%),
    radial-gradient(circle min(34vmax, 520px) at var(--hx) var(--hy), rgba(64, 140, 255, 0.22) 0%, rgba(40, 96, 210, 0.08) 45%, transparent 100%),
    radial-gradient(circle min(70vmax, 1100px) at var(--hx) var(--hy), rgba(30, 70, 160, 0.14) 0%, transparent 70%);
}
.hp-halo .warm {
  opacity: 0;
  background:
    radial-gradient(ellipse min(15vmax, 240px) 70vh at var(--hx) -6%, rgba(255, 150, 90, 0.12) 0%, rgba(255, 120, 60, 0.04) 50%, transparent 100%),
    radial-gradient(circle min(34vmax, 520px) at var(--hx) var(--hy), rgba(255, 110, 40, 0.17) 0%, rgba(200, 60, 10, 0.06) 45%, transparent 100%),
    radial-gradient(circle min(70vmax, 1100px) at var(--hx) var(--hy), rgba(150, 40, 10, 0.16) 0%, transparent 70%);
}
.hp-root[data-chapter="3"] .hp-halo .cool { opacity: 0; }
.hp-root[data-chapter="3"] .hp-halo .warm { opacity: 1; }

.hp-bg-chapter {
  position: fixed;
  top: 10vh;
  right: 6vw;
  z-index: 0;
  pointer-events: none;
  text-align: right;
  line-height: 0.8;
}
.hp-bg-chapter span {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: min(30vw, 420px);
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(150, 195, 255, 0.16) 0%, rgba(150, 195, 255, 0.05) 45%, rgba(150, 195, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(150, 195, 255, 0.07);
  font-variant-numeric: tabular-nums;
}
.hp-root[data-chapter="3"] .hp-bg-chapter span {
  background-image: linear-gradient(180deg, rgba(255, 150, 90, 0.18) 0%, rgba(255, 150, 90, 0.05) 45%, rgba(255, 150, 90, 0) 85%);
  -webkit-text-stroke-color: rgba(255, 150, 90, 0.08);
}
.hp-bg-chapter small {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.8em;
  color: rgba(150, 195, 255, 0.3);
}
.hp-bg-chapter.swap {
  animation: hpChapterSwap 0.9s var(--hp-ease);
}
@keyframes hpChapterSwap {
  0% { opacity: 0; transform: translateY(28px); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}

.hp-canvas-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: grab;
}
.hp-canvas-wrap:active { cursor: grabbing; }
#hp-webgl {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fine scanlines + cinematic vignette and top/bottom falloff over the 3D stage */
.hp-fx {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.011) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, rgba(3, 4, 7, 0.55) 0%, transparent 16%, transparent 80%, rgba(3, 4, 7, 0.7) 100%),
    radial-gradient(ellipse 95% 85% at 58% 50%, transparent 52%, rgba(2, 3, 6, 0.72) 100%);
}

/* ---------- Top bar ---------- */
.hp-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(16px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.9) 0%, rgba(5, 7, 11, 0.55) 70%, rgba(5, 7, 11, 0) 100%);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s var(--hp-ease) 0.1s;
}
.is-mounted .hp-topbar { opacity: 1; transform: none; }

.hp-brand-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}
.hp-logo-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--hp-orange);
  color: #120a05;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.08em;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.hp-brand-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--hp-ink);
}
.hp-mini-leds {
  display: inline-flex;
  gap: 5px;
}
.hp-mini-leds i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2a2f3a;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.hp-mini-leds[data-state="pairing"] i.r,
.hp-mini-leds[data-state="on"] i.r {
  background: #ff2d3b;
  box-shadow: 0 0 8px #ff2d3b;
}
.hp-mini-leds[data-state="pairing"] i.b {
  animation: hpBlink 0.22s infinite alternate;
}
.hp-mini-leds[data-state="on"] i.b {
  background: #2f9bff;
  box-shadow: 0 0 8px #2f9bff;
}
@keyframes hpBlink {
  from { background: #1d2a3a; box-shadow: none; }
  to { background: #2f9bff; box-shadow: 0 0 8px #2f9bff; }
}

.hp-nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.hp-nav-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  color: var(--hp-ink-2);
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease;
}
.hp-nav-btn i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--hp-ink-3);
  transition: color 0.2s ease;
}
.hp-nav-btn:hover { color: #fff; }
.hp-nav-btn.active { color: #fff; }
.hp-nav-btn.active i { color: var(--hp-orange); }
.hp-nav-indicator {
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--hp-orange);
  box-shadow: 0 0 10px var(--hp-orange);
  transition: transform 0.5s var(--hp-ease), width 0.5s var(--hp-ease);
}

.hp-top-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 18px;
  border: none;
  background: var(--hp-orange);
  color: #120a05;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: filter 0.2s ease;
}
.hp-top-login-btn:hover { filter: brightness(1.12); }
.hp-top-login-btn .arrow { transition: transform 0.2s ease; }
.hp-top-login-btn:hover .arrow { transform: translateX(3px); }

.hp-progress-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(150, 190, 240, 0.08);
}
.hp-progress-line i {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--hp-orange), var(--hp-cyan));
  box-shadow: 0 0 8px rgba(79, 216, 255, 0.6);
}

/* ---------- Fixed HUD frame ---------- */
.hp-hud {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}
.is-mounted .hp-hud { opacity: 1; }
.hp-hud-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: rgba(150, 190, 240, 0.35);
  border-style: solid;
  border-width: 0;
}
.hp-hud-corner.tl { top: 72px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.hp-hud-corner.tr { top: 72px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.hp-hud-corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.hp-hud-corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

.hp-hud-ruler {
  position: absolute;
  left: 18px;
  top: 32%;
  height: 36%;
  width: 6px;
  background: repeating-linear-gradient(180deg, rgba(150, 190, 240, 0.28) 0 1px, transparent 1px 9px);
}
.hp-hud-ruler i {
  position: absolute;
  left: -2px;
  top: 0;
  width: 14px;
  height: 2px;
  background: var(--hp-orange);
  box-shadow: 0 0 8px var(--hp-orange);
  transform: translateY(-50%);
}

.hp-hud-tel {
  position: absolute;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--hp-ink-3);
  font-variant-numeric: tabular-nums;
}
.hp-hud-tel.left { left: 42px; }
.hp-hud-tel.right { right: 42px; }
.hp-hud-tel b { color: var(--hp-ink); font-weight: 700; }
.hp-tel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-tel-link i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #39404d;
}
.hp-tel-link.on { color: var(--hp-green); }
.hp-tel-link.on i {
  background: var(--hp-green);
  box-shadow: 0 0 8px var(--hp-green);
  animation: hpPulse 1.8s ease-in-out infinite;
}
@keyframes hpPulse {
  50% { opacity: 0.35; }
}

/* ---------- Right chapter rail ---------- */
.hp-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  transition: opacity 0.8s ease 0.4s;
}
.is-mounted .hp-rail { opacity: 1; }
.hp-rail-track {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(150, 190, 240, 0.14);
}
.hp-rail-progress-fill {
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(0);
  background: linear-gradient(180deg, var(--hp-orange), var(--hp-cyan));
  box-shadow: 0 0 8px rgba(255, 90, 18, 0.5);
}
.hp-rail-btn {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(150, 190, 240, 0.22);
  background: rgba(5, 7, 11, 0.9);
  color: var(--hp-ink-3);
  font-size: 12px;
  font-weight: 800;
  transform: rotate(45deg);
  transition: all 0.3s var(--hp-ease);
}
.hp-rail-btn .z { transform: rotate(-45deg); }
.hp-rail-btn:hover { color: #fff; border-color: var(--hp-line-2); }
.hp-rail-btn.done { color: var(--hp-orange-2); border-color: rgba(255, 90, 18, 0.45); }
.hp-rail-btn.active {
  color: #120a05;
  background: var(--hp-orange);
  border-color: var(--hp-orange);
  box-shadow: 0 0 18px rgba(255, 90, 18, 0.55);
}

/* ---------- 3D-projected callouts (CH.02) ---------- */
.hp-callouts {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hp-callout-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-5px, -50%);
  transition: opacity 0.35s ease;
}
.hp-callout-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--hp-cyan);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.hp-callout-dot::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: var(--hp-cyan);
}
.hp-callout-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  background: rgba(5, 8, 13, 0.78);
  border: 1px solid rgba(79, 216, 255, 0.3);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: var(--hp-ink);
  white-space: nowrap;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--hp-ease);
}
.hp-callout-tag::before {
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(79, 216, 255, 0.6);
}
.hp-callout-tag em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--hp-cyan);
}
.hp-callout-pin.is-dim { opacity: 0.28; }
.hp-callout-pin.is-active .hp-callout-dot { border-color: var(--hp-orange); }
.hp-callout-pin.is-active .hp-callout-dot::after { background: var(--hp-orange); }
.hp-callout-pin.is-active .hp-callout-tag {
  border-color: var(--hp-orange);
  box-shadow: 0 0 18px rgba(255, 90, 18, 0.35);
  transform: scale(1.06);
}
.hp-callout-pin.is-active .hp-callout-tag em { color: var(--hp-orange-2); }
.hp-callout-pin.is-active .hp-callout-tag::before { background: var(--hp-orange); }

/* ---------- Story & reveal system ---------- */
.hp-story {
  position: relative;
  z-index: 10;
  pointer-events: none;
}
.hp-act {
  position: relative;
  min-height: 100vh;
  padding: 96px clamp(24px, 6vw, 96px) 64px;
}
.hp-hero,
.hp-map,
.hp-act2-panel,
.hp-act3-panel,
.hp-arena-top,
.hp-arena-bottom,
.hp-scroll-cue {
  pointer-events: auto;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease var(--d, 0ms), transform 0.9s var(--hp-ease) var(--d, 0ms);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--hp-orange-2);
}
.hp-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--hp-orange);
  box-shadow: 0 0 8px var(--hp-orange);
}
.hp-eyebrow.center { justify-content: center; }

/* Shared HUD panel with corner brackets */
.hp-hud-panel {
  position: relative;
  background: var(--hp-panel);
  border: 1px solid var(--hp-line);
  backdrop-filter: blur(16px) saturate(1.2);
}
.hp-hud-panel::before,
.hp-hud-panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.hp-hud-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--hp-orange);
  border-left: 2px solid var(--hp-orange);
}
.hp-hud-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--hp-cyan);
  border-bottom: 2px solid var(--hp-cyan);
}

/* Buttons */
.hp-btn-primary,
.hp-btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow: hidden;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hp-btn-primary {
  border: none;
  background: linear-gradient(90deg, #ff4d00, #ff7a2e);
  color: #120a05;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.hp-btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}
.hp-btn-primary:hover { filter: brightness(1.08); }
.hp-btn-primary:hover::after { left: 120%; }
.hp-btn-ghost {
  border: 1px solid rgba(79, 216, 255, 0.35);
  background: rgba(79, 216, 255, 0.05);
  color: var(--hp-ink);
  backdrop-filter: blur(8px);
}
.hp-btn-ghost:hover {
  border-color: var(--hp-cyan);
  background: rgba(79, 216, 255, 0.12);
  color: #fff;
}
.hp-btn-lg {
  height: 54px;
  padding: 0 34px;
  font-size: 15px;
}

/* ===================== CH.01 · HERO ===================== */
.hp-act1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 14vh;
}
.hp-hero {
  max-width: 620px;
}
.hp-hero > * {
  opacity: calc(1 - var(--hero-out));
  transform: translateY(calc(var(--hero-out) * -36px));
}
.hp-hero-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(40px, 4.1vw, 64px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
.hp-hero-title .ln > span { white-space: nowrap; }
.hp-hero-title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hp-hero-title .ln > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform 1s var(--hp-ease);
}
.hp-hero-title .ln:nth-child(2) > span { transition-delay: 0.12s; }
.hp-hero.is-in .hp-hero-title .ln > span { transform: none; }
.hp-hero-title em,
.hp-section-title em,
.hp-act3-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--hp-orange) 0%, #ffb067 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hp-hero-sub {
  margin: 0 0 32px;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--hp-ink-2);
}
.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--hp-ink-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.4em;
  transform: translateX(-50%);
  opacity: calc(1 - var(--hero-out) * 2);
}
.hp-scroll-cue i {
  position: relative;
  width: 1px;
  height: 44px;
  background: rgba(150, 190, 240, 0.2);
  overflow: hidden;
}
.hp-scroll-cue i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--hp-orange);
  box-shadow: 0 0 6px var(--hp-orange);
  animation: hpCue 1.8s ease-in-out infinite;
}
@keyframes hpCue {
  0% { top: -40%; }
  100% { top: 100%; }
}
.hp-scroll-cue:hover { color: var(--hp-ink); }

/* ===================== CH.01 · COURSE MAP ===================== */
.hp-act1b {
  min-height: 115vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hp-map {
  max-width: 500px;
}
.hp-section-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}
.hp-stat {
  position: relative;
  padding-top: 14px;
  border-top: 1px solid var(--hp-line-2);
}
.hp-stat::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--hp-cyan);
  box-shadow: 0 0 6px var(--hp-cyan);
}
.hp-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.6vw, 52px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hp-stat span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--hp-ink-2);
}

/* Weight class path */
.hp-ladder-head {
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--hp-ink-3);
}
.hp-ladder-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.hp-ladder-line {
  position: absolute;
  top: 5px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(150, 190, 240, 0.18);
}
.hp-ladder-line i {
  display: block;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--hp-orange), var(--hp-cyan));
  box-shadow: 0 0 8px rgba(255, 90, 18, 0.6);
}
.hp-weight-chip {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.hp-weight-chip .node {
  width: 11px;
  height: 11px;
  margin-bottom: 10px;
  border: 1px solid rgba(150, 190, 240, 0.35);
  background: #05070b;
  transform: rotate(45deg);
  transition: all 0.4s var(--hp-ease);
}
.hp-weight-chip strong {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--hp-ink-3);
  transition: color 0.4s ease;
}
.hp-weight-chip span {
  font-size: 11px;
  color: var(--hp-ink-3);
}
.hp-weight-chip.reached .node {
  background: var(--hp-orange);
  border-color: var(--hp-orange);
  box-shadow: 0 0 10px var(--hp-orange);
}
.hp-weight-chip.reached strong { color: var(--hp-ink); }
.hp-weight-chip.current .node {
  animation: hpNodePing 1.8s ease-out infinite;
}
@keyframes hpNodePing {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 18, 0.7); }
  100% { box-shadow: 0 0 0 10px rgba(255, 90, 18, 0); }
}

/* ===================== Sticky scaffolding ===================== */
.hp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
}

/* ===================== CH.02 · LEARN (pinned steps) ===================== */
.hp-act2 {
  height: 420vh;
  padding: 0;
}
.hp-act2-sticky {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 80px clamp(76px, 7vw, 120px) 56px 24px;
}
.hp-act2-panel {
  width: min(420px, 100%);
  padding: 26px 26px 24px;
}
.hp-panel-title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
}

.hp-steps-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 22px;
}
.hp-step-seg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  color: var(--hp-ink-3);
  font-size: 12px;
  font-weight: 700;
  transition: color 0.3s ease;
}
.hp-step-seg i {
  display: block;
  height: 2px;
  background: rgba(150, 190, 240, 0.16);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.hp-step-seg:hover { color: var(--hp-ink); }
.hp-step-seg.done i { background: rgba(255, 90, 18, 0.5); }
.hp-step-seg.active { color: #fff; }
.hp-step-seg.active i {
  background: var(--hp-orange);
  box-shadow: 0 0 10px var(--hp-orange);
}

.hp-step-stage {
  display: grid;
}
.hp-step-card {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.6s var(--hp-ease);
}
.hp-step-card.past { transform: translateY(-16px); }
.hp-step-card.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hp-step-card header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--hp-ink-3);
}
.hp-step-card header b { color: var(--hp-orange-2); }
.hp-step-card h3 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.hp-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.hp-flow span {
  padding: 6px 10px;
  border: 1px solid var(--hp-line-2);
  background: rgba(79, 216, 255, 0.05);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hp-ink);
}
.hp-flow i {
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hp-cyan), transparent);
  background-size: 200% 100%;
  animation: hpFlow 1.1s linear infinite;
}
@keyframes hpFlow {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* AI kinetic mini-lab */
.hp-kinetic-box {
  padding: 14px;
  border: 1px solid var(--hp-line);
  background: rgba(3, 5, 9, 0.7);
}
.hp-kinetic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
}
.hp-kinetic-formula { color: var(--hp-orange-2); font-weight: 700; }
.hp-kinetic-readout { color: var(--hp-ink-2); font-variant-numeric: tabular-nums; }
.hp-kinetic-readout b { color: #fff; }
.hp-kinetic-svg {
  display: block;
  width: 100%;
  height: 84px;
  margin-bottom: 12px;
}
#hp-rpm-slider {
  --fill: 43%;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#hp-rpm-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(90deg, var(--hp-orange) 0 var(--fill), rgba(150, 190, 240, 0.2) var(--fill) 100%);
}
#hp-rpm-slider::-moz-range-track {
  height: 2px;
  background: linear-gradient(90deg, var(--hp-orange) 0 var(--fill), rgba(150, 190, 240, 0.2) var(--fill) 100%);
}
#hp-rpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 2px solid var(--hp-cyan);
  background: #05070b;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.6);
}
#hp-rpm-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid var(--hp-cyan);
  border-radius: 0;
  background: #05070b;
  transform: rotate(45deg);
}

/* ===================== CH.03 · CREATE (pinned X-ray) ===================== */
.hp-act3 {
  height: 300vh;
  padding: 0;
}
.hp-act3-sticky {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 32px;
  align-items: center;
  padding: 84px clamp(76px, 7vw, 120px) 48px clamp(24px, 6vw, 96px);
}
.hp-act3-title {
  margin: 0 0 26px;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  color: #fff;
}

.hp-mode-switch {
  display: inline-flex;
  margin-bottom: 26px;
  border: 1px solid var(--hp-line-2);
}
.hp-mode-btn {
  padding: 9px 16px;
  border: none;
  background: transparent;
  color: var(--hp-ink-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
.hp-mode-btn + .hp-mode-btn { border-left: 1px solid var(--hp-line); }
.hp-mode-btn:hover { color: #fff; }
.hp-mode-btn.active {
  background: rgba(79, 216, 255, 0.14);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--hp-cyan);
}

.hp-xray-progress-wrap { margin-bottom: 22px; }
.hp-xray-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--hp-ink-2);
}
.hp-xray-progress-head b {
  color: var(--hp-cyan);
  font-variant-numeric: tabular-nums;
}
.hp-xray-progress-track {
  position: relative;
  height: 2px;
  background: rgba(150, 190, 240, 0.16);
}
.hp-xray-progress-bar {
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--hp-orange), var(--hp-cyan));
  box-shadow: 0 0 10px rgba(79, 216, 255, 0.6);
}
.hp-xray-progress-track i {
  position: absolute;
  top: -3px;
  width: 1px;
  height: 8px;
  background: rgba(150, 190, 240, 0.5);
}

.hp-act3-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hp-line);
  background: rgba(5, 8, 13, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.4s ease, background 0.4s ease;
}
.hp-mini-card em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--hp-ink-3);
}
.hp-mini-card strong {
  flex: 1;
  font-size: 13.5px;
  color: var(--hp-ink-2);
  transition: color 0.3s ease;
}
.hp-mini-card::after {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.hp-mini-card.is-scanning {
  border-color: rgba(79, 216, 255, 0.55);
  background: rgba(79, 216, 255, 0.08);
}
.hp-mini-card.is-scanning strong { color: #fff; }
.hp-mini-card.is-scanning::after {
  content: "SCANNING";
  color: var(--hp-cyan);
  animation: hpPulse 0.8s ease-in-out infinite;
}
.hp-mini-card.is-done { border-color: rgba(255, 90, 18, 0.4); }
.hp-mini-card.is-done em { color: var(--hp-orange-2); }
.hp-mini-card.is-done strong { color: var(--hp-ink); }
.hp-mini-card.is-done::after {
  content: "✓";
  font-size: 12px;
  color: var(--hp-orange-2);
}

/* CAD blueprints drawn by scan progress */
.hp-cad-blueprints {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-self: start;
  pointer-events: none;
}
.hp-cad-box {
  width: 150px;
  padding: 8px 10px;
  border: 1px solid rgba(150, 190, 240, 0.12);
  background: rgba(5, 8, 13, 0.4);
  opacity: 0.35;
  transition: opacity 0.4s ease, border-color 0.4s ease;
}
.hp-cad-box.drawing { opacity: 1; border-color: rgba(79, 216, 255, 0.45); }
.hp-cad-box.drawn { opacity: 0.9; }
.hp-cad-box-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--hp-ink-3);
}
.hp-cad-box.drawing .hp-cad-box-title span:first-child { color: var(--hp-cyan); }
.hp-cad-box svg {
  display: block;
  width: 100%;
  height: 62px;
}

/* ===================== CH.04 · ARENA ===================== */
.hp-act4 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: 104px;
  padding-bottom: 44px;
  text-align: center;
}
.hp-arena-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 7px 16px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(5, 12, 9, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #a7f3d0;
}
.hp-arena-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hp-green);
  box-shadow: 0 0 10px var(--hp-green);
  animation: hpPulse 1.2s ease-in-out infinite;
}
.hp-arena-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 104px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #8fa3bf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
}
.hp-arena-sub {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--hp-orange-2);
}
.hp-arena-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}
.hp-arena-footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--hp-ink-3);
}
.hp-arena-footer a { color: var(--hp-ink-2); }
.hp-arena-footer a:hover { color: var(--hp-orange-2); }

/* 3 · 2 · 1 · FIGHT countdown */
.hp-countdown {
  position: fixed;
  inset: 0;
  z-index: 14;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hp-countdown span {
  font-family: var(--font-display);
  font-size: clamp(120px, 20vw, 280px);
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  -webkit-text-stroke: 2px #fff;
  text-shadow: 0 0 28px rgba(255, 90, 18, 0.85), 0 0 2px rgba(0, 0, 0, 0.8);
  opacity: 0;
}
.hp-countdown.pop span { animation: hpCount 0.43s var(--hp-ease) forwards; }
.hp-countdown.final span {
  font-size: clamp(80px, 13vw, 190px);
  letter-spacing: 0.04em;
  color: #fff;
  -webkit-text-stroke: 0;
  text-shadow: 0 0 18px rgba(255, 90, 18, 0.95), 0 0 60px rgba(255, 90, 18, 0.7), 0 4px 0 rgba(0, 0, 0, 0.5);
  animation: hpFight 1.05s var(--hp-ease) forwards;
}
@keyframes hpCount {
  0% { opacity: 0; transform: scale(1.5); }
  35% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}
@keyframes hpFight {
  0% { opacity: 0; transform: scale(1.6) skewX(-8deg); }
  20% { opacity: 1; transform: scale(1) skewX(-8deg); }
  70% { opacity: 1; transform: scale(1.02) skewX(-8deg); }
  100% { opacity: 0; transform: scale(1.1) skewX(-8deg); }
}

/* ==========================================================================
   TACTILE HARDWARE LOGIN TERMINAL MODAL
   Faithfully modeled after the Warm Anodized Machined Aluminum Reference
   ========================================================================== */

.hp-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.hp-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Outer Architectural Anodized Plate (echoing the modular dot-grid seam chassis) */
.hw-auth-frame {
  position: relative;
  width: min(560px, 95vw);
  padding: 26px 26px 28px;
  border-radius: 26px;
  background-color: #dfd8ca;
  background-image:
    radial-gradient(rgba(82, 74, 62, 0.14) 1px, transparent 1px),
    linear-gradient(145deg, #eae3d6 0%, #dcd4c5 55%, #cfc6b5 100%);
  background-size: 14px 14px, 100% 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -3px 6px rgba(96, 86, 70, 0.35),
    0 34px 80px rgba(0, 0, 0, 0.68),
    0 8px 24px rgba(0, 0, 0, 0.45);
  transform: scale(0.94) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.18, 0.89, 0.32, 1.12);
}
.hp-modal-overlay.open .hw-auth-frame {
  transform: scale(1) translateY(0);
}
.hw-auth-frame.shake {
  animation: hwShake 0.34s ease;
}
@keyframes hwShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  45% { transform: translateX(7px); }
  70% { transform: translateX(-4px); }
}

/* Top engraved bezel bar: AUTH // TERMINAL + Close Knob */
.hw-auth-bezel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.hw-auth-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #4f4940;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.hw-auth-stamp-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.75), inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.hw-auth-close {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #b5ad9e;
  background: linear-gradient(180deg, #ede7dc 0%, #dcd5c7 100%);
  color: #433e36;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 0 #a39b8c;
  transition: all 0.1s ease;
}
.hw-auth-close:hover {
  color: #191613;
  border-color: #8c8475;
}
.hw-auth-close:active {
  transform: translateY(1.5px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 0.5px 0 #a39b8c;
}

/* Main Raised Chamfered Faceplate (Exact Match to Reference Image!) */
.hw-auth-module {
  position: relative;
  border-radius: 22px;
  padding: 40px 42px 44px;
  background: linear-gradient(162deg, #f3eee4 0%, #ebe4d7 52%, #e1d9ca 100%);
  border: 1.5px solid #c9c0af;
  box-shadow:
    inset 0 2.5px 1px rgba(255, 255, 255, 0.94),
    inset 0 -3px 6px rgba(124, 112, 92, 0.28),
    0 18px 36px rgba(42, 35, 24, 0.3),
    0 4px 0 #b5ac9b;
}

/* Machined Double-Chamfer Inner Perimeter Groove */
.hw-auth-module::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(140, 128, 110, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 1px 0 rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

/* Flush-Integrated Metallic Edge Latches seated inside the faceplate rim */
.hw-tab {
  position: absolute;
  background: linear-gradient(180deg, #838079 0%, #5c5953 100%);
  border-radius: 1.5px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.38), 0 1px 0 rgba(255, 255, 255, 0.65);
  pointer-events: none;
}
.hw-tab.top-l { top: 0; left: 68px; width: 46px; height: 4px; border-radius: 0 0 3px 3px; }
.hw-tab.top-r { top: 0; right: 68px; width: 46px; height: 4px; border-radius: 0 0 3px 3px; }
.hw-tab.bot-l { bottom: 0; left: 68px; width: 46px; height: 4px; border-radius: 3px 3px 0 0; }
.hw-tab.bot-r { bottom: 0; right: 68px; width: 46px; height: 4px; border-radius: 3px 3px 0 0; }
.hw-tab.side-l { left: 0; top: 86px; width: 4px; height: 36px; border-radius: 0 3px 3px 0; }
.hw-tab.side-r { right: 0; top: 86px; width: 4px; height: 36px; border-radius: 3px 0 0 3px; }

/* 4 Countersunk Stainless Phillips-Head Corner Screws (with generous pocket breathing room) */
.hw-screw {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 32%, #dedad2 0%, #98938a 58%, #605c55 100%);
  box-shadow:
    inset 0 1px 1.5px rgba(255, 255, 255, 0.7),
    inset 0 -1px 1.5px rgba(0, 0, 0, 0.48),
    0 0 0 2.5px #d2cab8,
    0 1px 0 2.5px rgba(255, 255, 255, 0.78);
  pointer-events: none;
}
.hw-screw::before,
.hw-screw::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: #3b3833;
  border-radius: 1px;
}
.hw-screw::before {
  width: 8px;
  height: 1.8px;
  transform: translate(-50%, -50%);
}
.hw-screw::after {
  width: 1.8px;
  height: 8px;
  transform: translate(-50%, -50%);
}
.hw-screw.tl { top: 18px; left: 18px; transform: rotate(18deg); }
.hw-screw.tr { top: 18px; right: 18px; transform: rotate(-24deg); }
.hw-screw.bl { bottom: 18px; left: 18px; transform: rotate(35deg); }
.hw-screw.br { bottom: 18px; right: 18px; transform: rotate(-12deg); }

/* Centered Header inside Faceplate */
.hw-auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.hw-auth-org {
  font-size: 13px;
  font-weight: 800;
  color: #302c26;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.hw-auth-title {
  margin: 0 0 8px;
  font-size: 31px;
  font-weight: 900;
  color: #1f1d1a;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
}
.hw-auth-sub {
  margin: 0;
  font-size: 13px;
  color: #6a645b;
}

.hw-auth-error {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 8px;
  background: rgba(196, 38, 38, 0.1);
  border: 1px solid rgba(196, 38, 38, 0.4);
  color: #9f1b1b;
  font-size: 12.5px;
  font-weight: 650;
  display: none;
}
.hw-auth-error.show {
  display: block;
}

/* Deeply Sculpted Recessed Input Troughs */
.hw-slot-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 15px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #cfc8ba 0%, #dad3c5 36%, #e4ded0 100%);
  border: 1px solid #b8b09f;
  box-shadow:
    inset 0 3px 6px rgba(45, 38, 28, 0.24),
    inset 0 1px 2px rgba(0, 0, 0, 0.16),
    inset 0 -1px 0 rgba(255, 255, 255, 0.72),
    0 1.5px 0 rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.hw-slot-field:focus-within {
  border-color: #ff5a0e;
  box-shadow:
    inset 0 2.5px 5px rgba(45, 38, 28, 0.18),
    0 0 0 2.5px rgba(255, 90, 14, 0.3),
    0 1.5px 0 rgba(255, 255, 255, 0.92);
}
.hw-slot-prefix {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #36322c;
  letter-spacing: 0.03em;
  white-space: nowrap;
  user-select: none;
}
.hw-slot-sep {
  color: #8c8476;
  font-family: var(--font-mono);
  font-size: 12px;
  user-select: none;
}
.hw-slot-field input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #1f1d1a;
  height: 100%;
}
.hw-slot-field input::placeholder {
  color: #837c70;
  font-weight: 500;
}
.hw-slot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #5b554c;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
button.hw-slot-icon:hover {
  color: #1f1d1a;
  background: rgba(0, 0, 0, 0.06);
}
.hw-slot-icon svg {
  width: 18px;
  height: 18px;
}

/* Iconic 3D Molded Chamfered Signal Orange Keycap Submit Button */
.hw-run-keycap {
  position: relative;
  width: 100%;
  height: 56px;
  margin-top: 10px;
  border-radius: 9px;
  border: none;
  border-top: 4px solid #ff8c47;
  border-left: 4px solid #eb4a00;
  border-right: 4px solid #cc3900;
  border-bottom: 5px solid #9c2800;
  background: linear-gradient(180deg, #ff5d10 0%, #f54900 56%, #e33e00 100%);
  color: #18110c;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 224, 195, 0.55),
    0 5px 0 #8a2200,
    0 14px 26px rgba(176, 46, 0, 0.34),
    0 6px 14px rgba(30, 20, 10, 0.3);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.hw-run-keycap:hover {
  filter: brightness(1.06);
}
.hw-run-keycap:active {
  transform: translateY(3.5px);
  box-shadow:
    inset 0 1px 1px rgba(255, 200, 160, 0.35),
    0 1.5px 0 #8a2200,
    0 4px 10px rgba(176, 46, 0, 0.28);
}
.hw-run-keycap:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Dashed Machined Groove Divider */
.hw-auth-divider {
  margin: 22px 6px 18px;
  border: none;
  border-top: 1.5px dashed rgba(122, 112, 95, 0.44);
}

/* 4 Dark Anodized Graphite Keycap Demo Buttons (inset cleanly clear of bottom corner screws) */
.hw-demo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 4px;
}
.hw-demo-cap {
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  border: 1px solid #2b2c30;
  border-top: 1px solid #6b6e75;
  background: linear-gradient(180deg, #57595f 0%, #3f4147 58%, #313338 100%);
  color: #f4efe6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 3.5px 0 #1b1c1f,
    0 6px 12px rgba(32, 26, 18, 0.28);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.14s ease, border-color 0.14s ease;
}
.hw-demo-cap:hover {
  filter: brightness(1.12);
  border-color: #ff7a33;
}
.hw-demo-cap:active,
.hw-demo-cap.picked {
  transform: translateY(2.5px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 0 #1b1c1f,
    0 2px 5px rgba(32, 26, 18, 0.2);
}
.hw-demo-cap.picked {
  border-color: #ff621a;
  color: #ffb074;
}

/* ==========================================================================
   RESPONSIVE & MOTION PREFERENCES
   ========================================================================== */
@media (max-width: 1180px) {
  .hp-cad-box { width: 128px; }
}

@media (max-width: 1024px) {
  .hp-nav-links,
  .hp-cad-blueprints,
  .hp-callouts,
  .hp-hud-ruler,
  .hp-hud-tel {
    display: none !important;
  }
  .hp-bg-chapter { top: 9vh; right: 5vw; }
  .hp-bg-chapter span { font-size: 42vw; }

  .hp-act2-sticky {
    align-items: flex-end;
    justify-content: center;
    padding: 72px 16px 20px;
  }
  .hp-act2-panel { width: min(520px, 100%); padding: 20px; }
  .hp-panel-title { font-size: 24px; margin-bottom: 16px; }

  .hp-act3-sticky {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 72px 16px 20px;
  }
  .hp-act3-panel {
    padding: 18px;
    background: var(--hp-panel);
    border: 1px solid var(--hp-line);
    backdrop-filter: blur(16px);
  }
  .hp-act3-title { font-size: 30px; margin-bottom: 16px; }
  .hp-act3-title br { display: none; }
  .hp-mode-switch { margin-bottom: 16px; }
  .hp-act3-cards { flex-direction: row; }
  .hp-mini-card { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
  .hp-mini-card::after { display: none; }
}

@media (max-width: 600px) {
  .hp-rail,
  .hp-hud-corner,
  .hp-brand-name {
    display: none;
  }
  .hp-act { padding-left: 16px; padding-right: 16px; }
  .hp-act1 { justify-content: flex-start; padding-top: 108px; }
  .hp-hero-sub { font-size: 14px; }
  .hp-hero-title { font-size: 34px; }
  .hp-hero-title .ln > span { white-space: normal; }
  .hp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-weight-chip span { display: none; }
  .hp-weight-chip strong { font-size: 11px; }
  .hp-step-seg { font-size: 11px; }
  .hp-steps-bar { margin-bottom: 14px; }
  .hp-step-card h3 { font-size: 18px; margin-bottom: 12px; }
  .hp-kinetic-svg { display: none; }
  .hp-mini-card strong { font-size: 12px; }

  .hw-auth-frame { padding: 16px; }
  .hw-auth-module { padding: 28px 18px 22px; }
  .hw-demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .hp-root *,
  .hp-root *::before,
  .hp-root *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  [data-reveal],
  .hp-hero-title .ln > span {
    opacity: 1;
    transform: none;
  }
}
