/* ==========================================================================
   ANYU LIVING (安隅智居) — Progressive Marketing-to-Horror Stylesheet
   Driven continuously by --dread (0.0 -> 1.0) & data-act (1 -> 6)
   ========================================================================== */

:root {
  /* Scroll-driven dynamic tokens updated by app.js */
  --dread: 0;
  --mx: 50%;
  --my: 50%;
  --tilt: 0deg;
  --aberration: 0px;
  --corridor-p: 0;

  /* Dynamic interpolated palette (defaults to Act 1 warm luxury marketing) */
  --bg: rgb(250, 249, 246);
  --surface: rgb(255, 255, 255);
  --surface-soft: rgb(243, 241, 235);
  --ink: rgb(26, 29, 26);
  --ink-muted: rgb(104, 110, 104);
  --border: rgba(26, 29, 26, 0.09);
  --accent: rgb(44, 94, 79);
  --accent-ink: rgb(255, 255, 255);
  --danger: #9e1b1b;
  --danger-bright: #d92626;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
}

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

html {
  scroll-behavior: auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  transition: background-color 140ms linear, color 140ms linear;
  overflow-x: clip;
  position: relative;
}

/* Custom subtle cursor shift in deep horror */
html[data-act="5"],
html[data-act="6"] {
  cursor: crosshair;
}

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

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

/* ==========================================================================
   Global Atmospheric Overlays
   ========================================================================== */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 90;
}

#vignette-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 85;
  opacity: calc(max(0, (var(--dread) - 0.16) * 1.25));
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(0, 0, 0, 0) 36%,
    rgba(6, 9, 7, 0.58) 76%,
    rgba(0, 0, 0, 0.94) 100%
  );
  transition: opacity 150ms linear;
}

#scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 86;
  opacity: calc(max(0, (var(--dread) - 0.42) * 0.55));
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.22) 3px,
    rgba(0, 0, 0, 0.22) 4px
  );
}

#blackout-flash {
  position: fixed;
  inset: 0;
  background: #000;
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: opacity 80ms ease;
}

#blackout-flash.active {
  opacity: 1;
}

/* Toast Notifications (Fourth-Wall System Intrusions) */
#toast-stack {
  position: fixed;
  top: 84px;
  right: 22px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  pointer-events: none;
}

.sys-toast {
  background: rgba(14, 16, 14, 0.92);
  color: #e4e7e2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #7d9685;
  padding: 12px 15px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  animation: toastIn 320ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.sys-toast.toast-danger {
  border-left-color: #c82828;
  background: rgba(18, 6, 6, 0.95);
  color: #f3d7d7;
}

.sys-toast-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.72;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.sys-toast.leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 360ms ease, transform 360ms ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 95;
  height: 70px;
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 220ms ease, border-color 220ms ease, opacity 450ms ease, transform 450ms ease;
}

html[data-act="6"] .site-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1.5px solid var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: border-color 250ms ease;
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transition: background-color 250ms ease, box-shadow 250ms ease;
}

html[data-act="3"] .brand-dot {
  background: #b6943c;
}

html[data-act="4"] .brand-dot,
html[data-act="5"] .brand-dot,
body.is-infected .brand-dot {
  background: #d92626;
  box-shadow: 0 0 10px rgba(217, 38, 38, 0.85);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.nav-link {
  white-space: nowrap;
  transition: color 180ms ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  display: none;
}

html[data-act="3"] .nav-status,
html[data-act="4"] .nav-status,
html[data-act="5"] .nav-status,
body.is-infected .nav-status {
  display: inline-block;
}

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  white-space: nowrap;
  transition: all 180ms ease;
}

.audio-pill:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.audio-pill.active {
  border-color: var(--accent);
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.audio-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.audio-wave i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
  border-radius: 2px;
}

.audio-pill.active .audio-wave i:nth-child(1) { animation: waveBar 0.9s infinite ease-in-out; }
.audio-pill.active .audio-wave i:nth-child(2) { animation: waveBar 0.7s infinite ease-in-out 0.15s; }
.audio-pill.active .audio-wave i:nth-child(3) { animation: waveBar 1.1s infinite ease-in-out 0.3s; }

@keyframes waveBar {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

/* ==========================================================================
   ACT 1: 理想生活 (Clean Editorial Smart-Home Marketing)
   ========================================================================== */
.section {
  position: relative;
  padding: 112px 0;
}

.act-1 {
  padding-top: 136px;
  padding-bottom: 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.1vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  font-weight: 600;
  text-wrap: balance;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 500px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.play-icon {
  font-size: 10px;
  opacity: 0.85;
}

.hero-trust-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.hero-media-card {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10.5;
  box-shadow: 0 28px 65px rgba(26, 29, 26, 0.11);
  border: 1px solid var(--border);
  background: #e8e5dc;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 700ms ease, filter 700ms ease;
}

.hero-img-haunted {
  opacity: 0;
}

/* Infected mode after reaching the finale and returning to top */
body.is-infected .hero-img-haunted {
  opacity: 0.92;
  filter: contrast(1.08) saturate(0.75);
}

body.is-infected .hero-floating-badge {
  background: rgba(15, 16, 15, 0.88);
  color: #e2e4e0;
  border-color: rgba(217, 38, 38, 0.4);
}

body.is-infected .badge-icon {
  color: #d92626;
}

.hero-floating-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 29, 26, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  z-index: 2;
}

.badge-icon {
  color: #2c8a5e;
  font-size: 11px;
}

.badge-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.badge-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Metrics Bar */
.metrics-bar {
  margin-top: 76px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-value {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.metric-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-muted);
}

.awards-strip {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  opacity: 0.78;
}

/* ==========================================================================
   ACT 2: 微妙的错位 (Subtle Uncanny Marketing + Cursor-Tracking Sensor)
   ========================================================================== */
.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}

.section-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.28;
  margin: 0 0 14px;
  font-weight: 600;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15.5px;
  line-height: 1.8;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 72px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 280ms ease, border-color 280ms ease, background-color 280ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  margin: 0 0 12px;
  font-weight: 600;
}

.feature-card p {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.85;
}

.feature-foot {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* Gaslighting text swap effect */
.gaslight-text {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px dotted color-mix(in srgb, var(--ink) 26%, transparent);
  transition: color 240ms ease, text-shadow 240ms ease;
}

.gaslight-text.swapped {
  color: #7c1c1c;
  border-bottom-color: rgba(158, 27, 27, 0.45);
}

html[data-act="4"] .gaslight-text.swapped,
html[data-act="5"] .gaslight-text.swapped {
  color: #df4b4b;
}

/* Sensor Showcase */
.showcase-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 52px;
  align-items: center;
}

.showcase-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #dfe2dc;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(calc(1 - var(--dread) * 0.65)) contrast(calc(1 + var(--dread) * 0.25));
}

/* Subtle organic eye lens mounted precisely inside the smart sensor cavity */
.sensor-tracker {
  position: absolute;
  top: 50%;
  left: 35.3%;
  width: 5.8%;
  height: 12.6%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  opacity: calc(0.45 + var(--dread) * 0.55);
  pointer-events: none;
}

.sensor-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, #181a19 35%, #050606 85%);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.95);
}

.sensor-iris {
  width: 68%;
  height: 62%;
  border-radius: 50%;
  background: radial-gradient(circle, #382722 0%, #101412 72%);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 70ms linear;
}

.sensor-pupil {
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background: #010101;
  box-shadow: 0 0 5px rgba(170, 20, 20, 0.45);
}

.sensor-glint {
  position: absolute;
  top: 18%;
  right: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
}

.sensor-lid {
  position: absolute;
  inset: 0;
  background: #141715;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 90ms ease-in-out;
}

.sensor-tracker.blinking .sensor-lid {
  transform: scaleY(1);
}

.showcase-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(18, 21, 19, 0.68);
  color: rgba(245, 247, 244, 0.9);
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.showcase-content h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.32;
  margin: 0 0 16px;
}

.showcase-content p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 28px;
}

.decibel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}

.decibel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.decibel-label {
  font-size: 13px;
  color: var(--ink-muted);
}

.decibel-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 500;
}

.decibel-bar-track {
  height: 6px;
  background: var(--surface-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.decibel-bar-fill {
  height: 100%;
  width: 24%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 300ms ease, background-color 300ms ease;
}

.decibel-note {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   ACT 3: 客户见证的崩坏 & 实时遥测面板
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 350ms ease, border-color 350ms ease, filter 350ms ease;
}

.testimonial-card[data-card="2"] {
  transform: rotate(calc(var(--dread) * -0.9deg));
}

.testimonial-card[data-card="3"] {
  transform: rotate(calc(var(--dread) * 1.15deg)) translateY(calc(var(--dread) * 8px));
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portrait-wrap {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #1a1c1a;
}

.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(calc(1 - var(--dread) * 0.92)) contrast(calc(1 + var(--dread) * 0.55)) brightness(calc(1 - var(--dread) * 0.22));
  transition: transform 300ms ease, filter 300ms ease;
}

.testimonial-card:hover .portrait-img {
  transform: scale(1.08);
  filter: grayscale(1) contrast(1.65) brightness(0.76);
}

.portrait-shadow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
  opacity: calc(var(--dread) * 1.1);
  pointer-events: none;
}

.resident-name {
  font-weight: 600;
  font-size: 15px;
}

.resident-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.stars {
  font-size: 12px;
  letter-spacing: 2px;
  color: #a68a44;
  margin-top: 2px;
}

.resident-quote {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink);
  opacity: 0.92;
  flex: 1;
}

.resident-foot {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.resident-foot-alert {
  color: #b43939;
}

/* Telemetry Panel */
.telemetry-panel {
  background: rgba(15, 18, 16, 0.94);
  color: #dce1da;
  border: 1px solid rgba(190, 208, 190, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.telemetry-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.telemetry-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48a868;
  box-shadow: 0 0 8px rgba(72, 168, 104, 0.75);
}

.live-dot.danger {
  background: #e03131;
  box-shadow: 0 0 10px rgba(224, 49, 49, 0.9);
  animation: pulseDot 1.1s infinite;
}

.telemetry-node {
  opacity: 0.55;
  font-size: 11px;
}

.telemetry-clock {
  color: #93b09c;
  letter-spacing: 0.08em;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tel-metric {
  padding: 20px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tel-metric:last-child {
  border-right: none;
}

.tel-k {
  font-size: 11.5px;
  color: rgba(220, 225, 218, 0.58);
}

.tel-v {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  color: #eef2ec;
  transition: color 250ms ease;
}

.tel-v.alert {
  color: #ef4b4b;
}

.tel-sub {
  font-size: 11.5px;
  color: rgba(220, 225, 218, 0.45);
}

.telemetry-console {
  background: #0a0c0a;
}

.console-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(200, 212, 200, 0.48);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.console-body {
  padding: 16px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.75;
  max-height: 210px;
  overflow-y: auto;
  color: #b7c2b7;
}

.log-line {
  margin-bottom: 4px;
}

.log-t {
  color: rgba(183, 194, 183, 0.42);
}

.log-ok {
  color: #5ca876;
}

.log-warn {
  color: #d6a442;
}

.log-err {
  color: #e64545;
  font-weight: 500;
}

/* ==========================================================================
   ACT 4: 建筑失真 — Corrupted Pricing & Sticky Horror Corridor
   ========================================================================== */
.act-4 {
  padding-bottom: 0;
}

.corrupted-tag {
  color: #b54242;
}

.glitch-heading {
  position: relative;
  display: inline-block;
  text-shadow:
    calc(var(--aberration) * -1) 0 rgba(220, 30, 30, 0.55),
    var(--aberration) 0 rgba(60, 175, 160, 0.42);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 96px;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: rgba(18, 20, 18, 0.85);
  color: #d7dcd5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card-dead {
  opacity: 0.62;
  transform: rotate(-1.2deg);
}

.price-card-trapped {
  border-color: rgba(185, 52, 52, 0.45);
  box-shadow: 0 0 42px rgba(135, 18, 18, 0.18);
  transform: rotate(0.4deg);
}

.price-card-abyss {
  background: #070707;
  border-color: rgba(190, 28, 28, 0.6);
  transform: rotate(1.6deg) translateY(14px);
  overflow: visible;
}

.price-badge {
  position: absolute;
  top: -11px;
  right: 20px;
  padding: 3px 10px;
  background: #8e1d1d;
  color: #f9e6e6;
  font-size: 11px;
  font-family: var(--font-mono);
  border-radius: 4px;
}

.price-tier {
  font-family: var(--font-serif);
  font-size: 20px;
  margin-bottom: 10px;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 24px;
  margin-bottom: 22px;
  color: #eef0ed;
}

.price-amount small {
  font-size: 12px;
  color: #b05c5c;
  font-weight: 400;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13.5px;
  color: rgba(215, 220, 213, 0.8);
}

.price-list li::before {
  content: "— ";
  opacity: 0.45;
}

.price-list .redacted {
  color: #464a46;
  letter-spacing: 0.1em;
}

.price-list .strike {
  text-decoration: line-through;
  opacity: 0.5;
}

.bleed-text {
  color: #e44848 !important;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.btn-corrupt {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #9ba19b;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

.btn-corrupt-active {
  border-color: rgba(205, 48, 48, 0.6);
  background: rgba(142, 24, 24, 0.28);
  color: #f4d6d6;
}

.abyss-drip {
  font-family: var(--font-serif);
  font-size: 13px;
  color: #b62b2b;
  letter-spacing: 0.22em;
  text-align: center;
  padding-top: 12px;
  border-top: 1px dashed rgba(190, 28, 28, 0.35);
}

/* Sticky Scroll-Scrubbed Horror Corridor */
.corridor-track {
  position: relative;
  height: 270vh;
  background: #040504;
}

.corridor-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #030403;
}

.corridor-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.corridor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(calc(1 + var(--corridor-p) * 0.45));
  filter: contrast(calc(1.12 + var(--corridor-p) * 0.45)) brightness(calc(0.76 - var(--corridor-p) * 0.42)) saturate(0.55);
  transform-origin: 50% 48%;
  will-change: transform, filter;
}

.corridor-flicker-layer {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0);
  pointer-events: none;
  transition: background-color 70ms linear;
}

.corridor-darkness-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 280px at var(--mx) var(--my),
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.97) 100%
  );
  opacity: calc(0.2 + var(--corridor-p) * 0.8);
}

/* Scratched Wall Messages Revealed Only by Cursor Flashlight */
.corridor-flashlight-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  mask-image: radial-gradient(circle 220px at var(--mx) var(--my), #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 78%);
  opacity: calc(max(0, (var(--corridor-p) - 0.25) * 1.45));
}

.wall-scratch {
  position: absolute;
  font-family: var(--font-serif);
  color: rgba(224, 206, 198, 0.72);
  text-shadow: 0 0 12px rgba(165, 22, 22, 0.65);
  letter-spacing: 0.22em;
  user-select: none;
}

.scratch-1 { top: 22%; left: 11%; font-size: 26px; transform: rotate(-6deg); }
.scratch-2 { top: 34%; right: 12%; font-size: 22px; transform: rotate(4deg); }
.scratch-3 { top: 64%; left: 15%; font-size: 20px; transform: rotate(3deg); }
.scratch-4 { top: 58%; right: 16%; font-size: 30px; color: rgba(215, 58, 58, 0.85); transform: rotate(-4deg); }
.scratch-5 { top: 78%; left: 42%; font-size: 18px; letter-spacing: 0.4em; }
.scratch-6 { top: 18%; left: 48%; font-size: 19px; color: rgba(205, 55, 55, 0.78); }

/* Shadow Eyes in Corridor Corners */
.shadow-eyes-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: calc(max(0, (var(--corridor-p) - 0.35) * 1.5));
}

.shadow-eye-pair {
  position: absolute;
  display: flex;
  gap: 11px;
  transition: opacity 220ms ease;
}

.shadow-eye-pair[data-x="18"] { left: 18%; top: 44%; }
.shadow-eye-pair[data-x="82"] { left: 82%; top: 36%; }
.shadow-eye-pair[data-x="76"] { left: 76%; top: 68%; }

.shadow-eye-pair span {
  width: 6px;
  height: 4px;
  border-radius: 50%;
  background: rgba(232, 238, 226, 0.72);
  box-shadow: 0 0 10px rgba(220, 235, 215, 0.55);
  animation: eyeBlink 5.4s infinite;
}

.shadow-eye-pair.vanished {
  opacity: 0 !important;
}

@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.08); }
}

/* CCTV HUD */
.cctv-hud {
  position: absolute;
  inset: 0;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  font-family: var(--font-mono);
  color: rgba(225, 235, 222, 0.84);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.cctv-top,
.cctv-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cctv-cam {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.rec-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e02828;
  box-shadow: 0 0 10px #e02828;
  animation: pulseDot 1.2s infinite;
}

.cctv-meta {
  display: flex;
  gap: 18px;
  font-size: 12.5px;
  opacity: 0.82;
}

.cctv-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(225, 235, 222, 0.16);
}

.cctv-crosshair::before,
.cctv-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(225, 235, 222, 0.25);
}

.cctv-crosshair::before {
  top: 50%;
  left: -10px;
  right: -10px;
  height: 1px;
}

.cctv-crosshair::after {
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 1px;
}

.corridor-caption {
  font-size: 14px;
  background: rgba(0, 0, 0, 0.65);
  border-left: 2px solid #c93333;
  padding: 8px 14px;
  max-width: 640px;
}

.corridor-hint {
  font-size: 11.5px;
  opacity: 0.62;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   ACT 5: 彻底失控 — FAQ & Self-Typing Possessed Form
   ========================================================================== */
.act-5 {
  background: linear-gradient(to bottom, #070807 0%, #050505 60%, #000000 100%);
  color: #d6dad4;
  padding-top: 120px;
  padding-bottom: 140px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 88px;
}

.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 15, 14, 0.85);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 280ms ease;
}

.faq-item[open] {
  border-color: rgba(180, 42, 42, 0.45);
}

.faq-item summary {
  padding: 22px 26px;
  font-family: var(--font-serif);
  font-size: 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e4e6e2;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 18px;
  color: #9e3535;
}

.faq-item[open] summary::after {
  content: "—";
}

.faq-body {
  padding: 0 26px 24px;
  color: #b4bab3;
  font-size: 14.5px;
  line-height: 1.9;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-body p {
  margin: 16px 0 0;
}

/* Possessed Contact Form */
.contact-nightmare-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 48px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: 32px;
  margin: 0 0 16px;
  color: #eceee9;
}

.contact-desc {
  color: #9ba19b;
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0 0 36px;
}

.whisper-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  font-family: var(--font-serif);
  font-size: 13px;
  color: rgba(175, 45, 45, 0.42);
  letter-spacing: 0.24em;
  user-select: none;
}

.haunted-form {
  background: #0b0c0b;
  border: 1px solid rgba(185, 36, 36, 0.35);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.form-status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c83e3e;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
  color: #939a93;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: #050605;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 12px 14px;
  color: #e8dede;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 200ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(205, 48, 48, 0.72);
}

.haunted-submit {
  padding: 14px 20px;
  border-radius: 6px;
  border: 1px solid rgba(205, 48, 48, 0.65);
  background: rgba(138, 19, 19, 0.34);
  color: #f4d8d8;
  font-size: 14px;
  letter-spacing: 0.14em;
  transition: background-color 200ms ease, transform 150ms ease;
}

.haunted-submit:hover {
  background: rgba(168, 22, 22, 0.56);
}

.form-warning {
  min-height: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #df4747;
  letter-spacing: 0.06em;
}

/* ==========================================================================
   ACT 6: 终幕 — Dead Silence & Horror Movie Climax Scene
   ========================================================================== */
.act-6 {
  padding: 0;
  background: #000000;
  color: #e6e6e6;
}

.silence-interlude {
  min-height: 145vh;
  background: #000000;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  padding: 20vh 24px 24vh;
  text-align: center;
}

.cinema-line {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.6vw, 28px);
  letter-spacing: 0.22em;
  color: rgba(236, 236, 234, 0.9);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1100ms ease, transform 1100ms ease;
}

.cinema-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.cinema-line-red {
  color: #cf3434;
  text-shadow: 0 0 24px rgba(190, 20, 20, 0.45);
}

/* Full-Viewport Horror Movie Climax Stage */
.cinema-track {
  position: relative;
  height: 210vh;
  background: #000000;
}

.cinema-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000000;
}

.letterbox-top,
.letterbox-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 6vh;
  background: #000;
  z-index: 25;
  pointer-events: none;
}

.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.cinema-camera {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: transform;
  animation: handheldBreath 7.5s ease-in-out infinite;
}

@keyframes handheldBreath {
  0%, 100% { transform: scale(1.03) translate(0px, 0px) rotate(0deg); }
  25% { transform: scale(1.045) translate(-4px, 3px) rotate(-0.22deg); }
  55% { transform: scale(1.035) translate(5px, -2px) rotate(0.2deg); }
  80% { transform: scale(1.05) translate(-2px, -4px) rotate(-0.15deg); }
}

.cinema-camera.stage-closer {
  animation: handheldTense 2.4s ease-in-out infinite;
}

@keyframes handheldTense {
  0%, 100% { transform: scale(1.18) translate(0, 0) rotate(0deg); }
  25% { transform: scale(1.2) translate(-6px, 4px) rotate(-0.45deg); }
  50% { transform: scale(1.22) translate(6px, -3px) rotate(0.45deg); }
  75% { transform: scale(1.21) translate(-4px, -5px) rotate(-0.3deg); }
}

.cinema-camera.stage-lunge {
  animation: cameraLunge 0.72s cubic-bezier(0.15, 0.9, 0.2, 1) forwards;
}

@keyframes cameraLunge {
  0% { transform: scale(1.22) translate(0, 0); }
  22% { transform: scale(1.42) translate(-12px, 8px) rotate(-1.6deg); }
  48% { transform: scale(1.52) translate(10px, -9px) rotate(1.4deg); }
  74% { transform: scale(1.48) translate(-8px, 6px) rotate(-1.1deg); }
  100% { transform: scale(1.58) translate(0, 0) rotate(0deg); }
}

.finale-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.finale-entity {
  opacity: 1;
  filter: contrast(1.24) brightness(0.76) saturate(0.42);
  transition: filter 600ms ease, opacity 200ms ease;
}

.cinema-stage.stage-closer .finale-entity {
  filter: contrast(1.45) brightness(0.84) saturate(0.25);
}

.finale-closeup {
  opacity: 0;
  object-position: 62% 38%;
  filter: contrast(1.6) brightness(0.92) saturate(0.18);
  transition: opacity 90ms linear;
}

.cinema-stage.stage-lunge .finale-closeup {
  opacity: 1;
}

.cinema-stage.stage-aftermath .finale-entity,
.cinema-stage.stage-aftermath .finale-closeup {
  opacity: 0;
}

/* Faint uncanny specular eye-glint aligned with entity eye sockets */
.entity-eye-glint {
  position: absolute;
  top: 32.5%;
  left: 51.8%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 10px;
  pointer-events: none;
  z-index: 8;
  opacity: 0.28;
  transition: opacity 400ms ease;
}

.glint-dot {
  position: absolute;
  top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(235, 245, 255, 0.9);
  box-shadow: 0 0 8px rgba(210, 230, 255, 0.85);
  transition: transform 80ms linear;
}

.glint-left { left: 4px; }
.glint-right { right: 4px; }

.cinema-stage.stage-lunge .entity-eye-glint,
.cinema-stage.stage-aftermath .entity-eye-glint {
  opacity: 0;
}

/* Dying Flashlight Mask over the Finale Doorway */
.finale-flashlight-mask {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  background: radial-gradient(
    circle 250px at var(--mx) var(--my),
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.78) 52%,
    rgba(0, 0, 0, 0.992) 96%
  );
  transition: opacity 450ms ease;
}

.cinema-stage.stage-closer .finale-flashlight-mask {
  background: radial-gradient(
    circle 330px at 50% 44%,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    rgba(0, 0, 0, 0.98) 95%
  );
}

.cinema-stage.stage-lunge .finale-flashlight-mask {
  opacity: 0.25;
}

.cinema-stage.stage-aftermath .finale-flashlight-mask {
  opacity: 1;
  background: #000000;
}

/* Single cinematic negative impact frame */
.cinema-impact-flash {
  position: absolute;
  inset: 0;
  z-index: 28;
  pointer-events: none;
  background: #ffffff;
  mix-blend-mode: difference;
  opacity: 0;
}

.cinema-impact-flash.hit {
  animation: singleImpact 280ms ease-out forwards;
}

@keyframes singleImpact {
  0% { opacity: 0.95; }
  45% { opacity: 0.65; }
  100% { opacity: 0; }
}

/* Interactive Trigger Overlay */
.finale-overlay-ui {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  transition: opacity 450ms ease;
}

.finale-overlay-ui.hidden {
  opacity: 0;
  pointer-events: none;
}

.finale-prompt-text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.26em;
  color: rgba(235, 235, 232, 0.72);
}

.finale-lock-btn {
  padding: 13px 28px;
  background: rgba(10, 10, 10, 0.76);
  color: #eaeae6;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 0.22em;
  backdrop-filter: blur(6px);
  transition: all 240ms ease;
}

.finale-lock-btn:hover {
  border-color: rgba(210, 42, 42, 0.85);
  background: rgba(95, 12, 12, 0.55);
  box-shadow: 0 0 24px rgba(185, 22, 22, 0.35);
}

/* Cinema Subtitles */
.cinema-subtitle {
  position: absolute;
  left: 50%;
  bottom: 10.5vh;
  transform: translateX(-50%);
  z-index: 32;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.3vw, 24px);
  letter-spacing: 0.24em;
  color: #f2f2ee;
  text-shadow: 0 2px 16px #000, 0 0 4px #000;
  text-align: center;
  width: min(90vw, 740px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease;
}

.cinema-subtitle.visible {
  opacity: 1;
}

.cinema-subtitle.subtitle-red {
  color: #e43b3b;
  letter-spacing: 0.32em;
}

/* Found-Footage Aftermath Screen */
.finale-aftermath {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: #000000;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  transition: opacity 1200ms ease;
}

.finale-aftermath.visible {
  opacity: 1;
  pointer-events: auto;
}

.rec-hud-top {
  position: absolute;
  top: 9vh;
  left: 36px;
  right: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(235, 235, 235, 0.8);
  letter-spacing: 0.1em;
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e23232;
  font-weight: 500;
}

.rec-cam-label {
  opacity: 0.55;
  font-size: 12px;
}

.aftermath-center {
  text-align: center;
  max-width: 540px;
}

.aftermath-logo {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.32em;
  color: rgba(220, 220, 220, 0.48);
  margin-bottom: 22px;
}

.aftermath-line {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.24em;
  margin: 0 0 14px;
  color: #e9e9e5;
}

.aftermath-sub {
  margin: 0 0 42px;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: rgba(210, 210, 206, 0.52);
}

.aftermath-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.aftermath-btn {
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  transition: all 220ms ease;
}

.aftermath-btn-primary {
  background: rgba(156, 26, 26, 0.28);
  border: 1px solid rgba(205, 48, 48, 0.65);
  color: #f2dede;
}

.aftermath-btn-primary:hover {
  background: rgba(176, 30, 30, 0.52);
}

.aftermath-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(235, 235, 235, 0.72);
}

.aftermath-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* ==========================================================================
   Discreet Corner Abyss Controls (Acts 4-6)
   ========================================================================== */
.abyss-hud {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 105;
  display: flex;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

html[data-act="4"] .abyss-hud,
html[data-act="5"] .abyss-hud,
html[data-act="6"] .abyss-hud {
  opacity: 0.72;
  pointer-events: auto;
}

.abyss-hud:hover {
  opacity: 1;
}

.abyss-hud-btn {
  padding: 6px 11px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 8, 0.76);
  color: rgba(226, 230, 224, 0.8);
  font-family: var(--font-mono);
  font-size: 11px;
  backdrop-filter: blur(6px);
}

.abyss-hud-btn:hover {
  border-color: rgba(220, 60, 60, 0.65);
  color: #fff;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1260px) {
  .nav-status {
    display: none !important;
  }
}

@media (max-width: 1120px) {
  .brand-sub {
    display: none;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 1020px) {
  .nav-links {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .showcase-split,
  .contact-nightmare-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-grid,
  .testimonials-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .metrics-bar,
  .telemetry-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tel-metric {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }

  .rec-hud-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    left: 18px;
    right: 18px;
  }

  .cctv-hud {
    padding: 18px;
  }
}
