/* ==========================================================================
   SOLACE 静界 — Progressive Descent Stylesheet
   Driven continuously by CSS custom variable `--dread` (0.0 -> 1.0)
   ========================================================================== */

:root {
  --dread: 0;
  --bg-color: #faf9f6;
  --surface-color: #ffffff;
  --surface-border: rgba(15, 23, 42, 0.08);
  --text-primary: #111827;
  --text-secondary: #525967;
  --accent: #4f6d7a;
  --accent-soft: #eef3f5;
  --blood: #9b0b0b;
  --blood-bright: #e11d1d;
  --grain-opacity: 0;
  --vignette-opacity: 0;
  --scanline-opacity: 0;
  --bleed-opacity: 0;
  --skew-deg: 0deg;
  --chromatic: 0px;
  --font-sans: 'PingFang SC', 'Microsoft YaHei UI', 'Hiragino Sans GB', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Songti SC', 'STSong', 'Noto Serif SC', 'SimSun', Georgia, serif;
  --font-mono: 'Cascadia Mono', 'Consolas', 'SFMono-Regular', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 0.35s linear, color 0.35s linear;
  -webkit-font-smoothing: antialiased;
}

/* Body Shake Animation */
body.screen-shake {
  animation: violentShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

body.climax-shake {
  animation: violentShake 0.16s infinite;
}

@keyframes violentShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-8px, 4px) rotate(-0.8deg); }
  30% { transform: translate(9px, -6px) rotate(0.9deg); }
  45% { transform: translate(-7px, -4px) rotate(-0.6deg); }
  60% { transform: translate(6px, 7px) rotate(0.7deg); }
  75% { transform: translate(-5px, 2px) rotate(-0.4deg); }
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   GLOBAL ATMOSPHERIC OVERLAYS
   ========================================================================== */
#grain-canvas,
#eyes-canvas,
#vignette-overlay,
#scanlines-overlay,
#crimson-bleed,
#flash-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#grain-canvas {
  z-index: 60;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
}

#eyes-canvas {
  z-index: 45;
  opacity: 0;
  transition: opacity 1.2s ease;
}

body[data-act="4"] #eyes-canvas,
body[data-act="5"] #eyes-canvas {
  opacity: 1;
}

#vignette-overlay {
  z-index: 55;
  opacity: var(--vignette-opacity);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 32%,
    rgba(3, 3, 5, 0.65) 75%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

#scanlines-overlay {
  z-index: 58;
  opacity: var(--scanline-opacity);
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.34) 3px,
    rgba(0, 0, 0, 0.34) 4px
  );
}

#crimson-bleed {
  z-index: 54;
  opacity: var(--bleed-opacity);
  background:
    radial-gradient(circle at 12% 18%, rgba(138, 11, 11, 0.22), transparent 42%),
    radial-gradient(circle at 88% 82%, rgba(120, 8, 8, 0.28), transparent 48%),
    linear-gradient(to bottom, rgba(80, 0, 0, 0.14), transparent 22%, transparent 78%, rgba(105, 0, 0, 0.28));
  mix-blend-mode: multiply;
}

#flash-overlay {
  z-index: 120;
  background: #000;
  opacity: 0;
  transition: opacity 0.08s linear;
}

#flash-overlay.flash-red {
  background: radial-gradient(circle, rgba(210, 20, 20, 0.55), rgba(10, 0, 0, 0.92));
  opacity: 1;
}

#flash-overlay.flash-cold {
  background: rgba(220, 232, 235, 0.65);
  opacity: 1;
}

#flash-overlay.flash-black {
  background: #000000;
  opacity: 1;
}

/* Lock Warning Banner */
#lock-warning {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  background: rgba(12, 2, 2, 0.94);
  border: 1px solid rgba(200, 24, 24, 0.6);
  color: #f3d4d4;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 40px rgba(155, 11, 11, 0.35);
}

.lock-warning-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 70;
  height: 70px;
  background: rgba(250, 249, 246, 0.84);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.5s ease, opacity 0.6s ease;
}

body[data-act="2"] .site-header {
  background: rgba(226, 227, 221, 0.88);
}

body[data-act="3"] .site-header {
  background: rgba(22, 24, 24, 0.9);
  border-bottom-color: rgba(155, 11, 11, 0.35);
  color: #d6d3ce;
}

body[data-act="4"] .site-header {
  background: rgba(6, 6, 8, 0.85);
  border-bottom-color: rgba(155, 11, 11, 0.25);
  color: #b8a9a9;
}

body[data-act="5"] .site-header {
  background: rgba(2, 2, 3, 0.6);
  border-bottom-color: transparent;
  color: #8f1d1d;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1rem;
}

.brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #a8c5cf, #3a5664);
  box-shadow: 0 2px 10px rgba(79, 109, 122, 0.3);
  transition: all 0.6s ease;
}

body[data-act="3"] .brand-mark,
body[data-act="4"] .brand-mark,
body[data-act="5"] .brand-mark {
  background: radial-gradient(circle at 50% 50%, #1a0000 22%, #9b0b0b 65%, #050505 100%);
  box-shadow: 0 0 14px rgba(185, 16, 16, 0.65);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  text-decoration: none;
  color: inherit;
  opacity: 0.78;
  font-size: 0.92rem;
  font-weight: 450;
  transition: opacity 0.2s, color 0.3s, letter-spacing 0.4s;
}

.nav-item:hover {
  opacity: 1;
}

body[data-act="4"] .nav-item,
body[data-act="5"] .nav-item {
  font-family: var(--font-serif);
  color: #b73b3b;
  letter-spacing: 0.14em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid currentColor;
  border-color: rgba(79, 109, 122, 0.28);
  background: transparent;
  color: inherit;
  font-size: 0.84rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s ease;
}

.audio-btn:hover {
  background: rgba(79, 109, 122, 0.08);
}

.audio-btn.is-active {
  border-color: #4f6d7a;
  background: rgba(79, 109, 122, 0.12);
}

body[data-act="3"] .audio-btn,
body[data-act="4"] .audio-btn,
body[data-act="5"] .audio-btn {
  border-color: rgba(180, 30, 30, 0.45);
}

.audio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  transition: background 0.3s, box-shadow 0.3s;
}

.audio-btn.is-active .audio-dot {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
}

body[data-act="3"] .audio-btn.is-active .audio-dot,
body[data-act="4"] .audio-btn.is-active .audio-dot,
body[data-act="5"] .audio-btn.is-active .audio-dot {
  background: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.85);
}

.btn-primary-sm,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  background: #1d2d35;
  color: #ffffff;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-primary {
  padding: 14px 28px;
  font-size: 0.96rem;
}

.btn-primary:hover,
.btn-primary-sm:hover {
  background: #2c434f;
  transform: translateY(-1px);
}

body[data-act="4"] .btn-primary-sm,
body[data-act="5"] .btn-primary-sm {
  background: #7f0d0d;
  color: #f8d8d8;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #111827;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: rgba(17, 24, 39, 0.3);
}

/* ==========================================================================
   ACT 1: PRISTINE HERO & FEATURES
   ========================================================================== */
.act-section {
  position: relative;
  z-index: 10;
}

.hero-section {
  padding: 132px 0 72px;
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef3f5;
  color: #36505d;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f6d7a;
}

.hero-title {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.accent-gradient {
  background: linear-gradient(120deg, #3c5a67, #6d92a0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.trust-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.trust-stat span {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: rgba(15, 23, 42, 0.1);
}

.hero-image-frame {
  position: relative;
  border-radius: 28px;
  overflow: visible;
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 28px 70px rgba(30, 41, 59, 0.12);
  display: block;
}

.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  color: #111827;
}

.fc-top {
  top: 20px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fc-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15);
}

.fc-title {
  font-size: 0.76rem;
  color: #6b7280;
}

.fc-value {
  font-size: 0.98rem;
  font-weight: 600;
}

.fc-bottom {
  bottom: -18px;
  right: 20px;
}

.fc-sub {
  font-size: 0.85rem;
  font-weight: 500;
  color: #36505d;
}

.logo-strip {
  margin-top: 84px;
  padding-top: 32px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  text-align: center;
}

.logo-strip-label {
  display: block;
  font-size: 0.82rem;
  color: #7c8594;
  margin-bottom: 18px;
}

.logo-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9aa3b0;
}

/* Section Headers & Features */
.features-section {
  padding: 96px 0 112px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

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

.feature-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eef3f5;
  color: #36505d;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Flicker text subtle glitch */
.flicker-text.is-flickering {
  color: #9b0b0b !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  font-family: var(--font-serif);
  text-shadow: 1px 0 rgba(220, 38, 38, 0.5), -1px 0 rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   ACT 2: UNCANNY REVIEWS & PRICING (20% - 45%)
   ========================================================================== */
.reviews-section {
  padding: 112px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(188, 192, 184, 0.25) 100%);
}

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

.review-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}

.review-uncanny {
  background: rgba(242, 243, 238, 0.9);
  transform: rotate(-0.4deg);
}

.review-disturbed {
  background: rgba(224, 224, 218, 0.92);
  border-color: rgba(120, 20, 20, 0.22);
  transform: rotate(0.9deg) translateY(8px);
  box-shadow: 0 18px 40px rgba(30, 12, 12, 0.09);
}

.stars {
  color: #d97706;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.review-disturbed .stars {
  color: #8f1d1d;
}

.review-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #272c35;
}

.review-disturbed .review-quote {
  font-family: var(--font-serif);
  color: #1a1212;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.avatar-1 { background: #5b7c8d; }
.avatar-2 { background: #646b66; }
.avatar-3 {
  background: #141111;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 11, 11, 0.45);
}

/* Mini watching eye inside 3rd reviewer avatar */
.mini-eye {
  width: 24px;
  height: 13px;
  background: #e5e0d8;
  border-radius: 50%;
  position: relative;
  display: block;
  box-shadow: inset 0 0 4px rgba(155, 11, 11, 0.65);
}

.mini-eye::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0a0505;
  transform: translate(calc(-50% + var(--eye-x, 0px)), calc(-50% + var(--eye-y, 0px)));
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #18181b;
}

.reviewer-role {
  font-size: 0.8rem;
  color: #6b7280;
}

.corrupt-inline {
  color: #9b0b0b;
  font-family: var(--font-mono);
}

/* Pricing */
.pricing-section {
  padding: 104px 0 130px;
}

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

.price-card {
  background: rgba(247, 247, 243, 0.9);
  border: 1px solid rgba(20, 24, 28, 0.1);
  border-radius: 22px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  color: #18181b;
}

.price-featured {
  background: #ffffff;
  border-color: #4f6d7a;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  background: #2c434f;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-eternal {
  background: linear-gradient(165deg, #1b1717 0%, #0e0909 100%);
  color: #d8cece;
  border: 1px solid rgba(155, 11, 11, 0.5);
  transform: rotate(1.4deg) translateY(14px);
  box-shadow: 0 24px 60px rgba(45, 0, 0, 0.35);
}

.price-tier {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.price-eternal .price-tier {
  font-family: var(--font-serif);
  letter-spacing: 0.18em;
  color: #e6b8b8;
}

.price-amount {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.price-amount span {
  font-size: 0.92rem;
  font-weight: 400;
  opacity: 0.7;
}

.price-desc {
  font-size: 0.88rem;
  opacity: 0.78;
  margin-bottom: 24px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
  flex: 1;
  font-size: 0.9rem;
}

.price-list li::before {
  content: '✓';
  margin-right: 9px;
  opacity: 0.65;
}

.price-eternal .price-list li::before {
  content: '✕';
  color: #b91c1c;
}

.red-item {
  color: #ef4444;
  letter-spacing: 0.05em;
}

.btn-outline {
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.2);
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-eternal {
  padding: 13px 20px;
  border-radius: 6px;
  border: 1px solid rgba(200, 28, 28, 0.65);
  background: rgba(130, 10, 10, 0.25);
  color: #f3c6c6;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-eternal:hover {
  background: #8f0c0c;
  color: #fff;
  box-shadow: 0 0 26px rgba(185, 16, 16, 0.55);
}

/* ==========================================================================
   ACT 3: STRUCTURAL DECAY & TELEMETRY DASHBOARD (45% - 72%)
   ========================================================================== */
.telemetry-section {
  padding: 150px 0 140px;
  color: #d6d3ce;
}

.mono-tag {
  font-family: var(--font-mono);
  color: #c93b3b;
  letter-spacing: 0.16em;
}

.glitch-heading {
  font-family: var(--font-serif);
  position: relative;
  color: #ece6e0;
  text-shadow:
    calc(var(--chromatic) * 1) 0 rgba(220, 20, 20, 0.65),
    calc(var(--chromatic) * -1) 0 rgba(40, 180, 190, 0.45);
}

.telemetry-section .section-desc {
  color: #9e9b95;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}

.dashboard-shell {
  background: rgba(14, 15, 16, 0.92);
  border: 1px solid rgba(165, 26, 26, 0.35);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
  transform: skewY(var(--skew-deg));
  transition: transform 0.25s ease-out;
}

.dash-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(25, 10, 10, 0.72);
  border-bottom: 1px solid rgba(165, 26, 26, 0.28);
  font-size: 0.82rem;
  color: #d9a8a8;
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 10px #dc2626;
  animation: pulseDot 1.1s steps(2, start) infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.dash-card {
  background: #0d0e10;
  padding: 26px;
}

.dash-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #7d7c78;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.dash-metric-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.dash-big-num {
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: #e6d8d8;
}

.dash-unit {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #888;
}

.dash-badge-warn {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: rgba(185, 28, 28, 0.2);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.4);
}

#ecg-canvas {
  width: 100%;
  height: 112px;
  display: block;
  background: #070809;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.occupancy-readout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.occ-expected {
  font-size: 0.94rem;
  color: #9e9b95;
}

.occ-detected {
  font-size: 1.5rem;
  color: #ef4444;
  padding: 12px 14px;
  background: rgba(155, 11, 11, 0.16);
  border-left: 3px solid #dc2626;
  animation: subtleFlicker 3.2s infinite;
}

.occ-note {
  font-size: 0.88rem;
  color: #b7ada8;
  line-height: 1.65;
}

.occ-note span {
  color: #f87171;
  font-family: var(--font-mono);
}

.log-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.82rem;
  color: #a6a29c;
  max-height: 150px;
  overflow: hidden;
}

.log-time {
  color: #6b6b6b;
  margin-right: 6px;
}

.text-blood {
  color: #e03c3c;
}

.stillness-box {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.75;
  color: #e5d4d4;
  min-height: 82px;
  margin-bottom: 14px;
}

.device-meta {
  font-size: 0.74rem;
  color: #6c6a68;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
}

/* Corrupted FAQ */
.corrupt-faq {
  margin-top: 96px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.faq-heading {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: #d7cbc7;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: rgba(18, 15, 15, 0.85);
  border: 1px solid rgba(155, 11, 11, 0.22);
  padding: 24px 28px;
  border-radius: 4px;
}

.tilt-left { transform: rotate(-1.1deg); }
.tilt-right { transform: rotate(1.3deg); }

.faq-q {
  font-weight: 600;
  color: #ebe2de;
  margin-bottom: 10px;
  font-size: 1rem;
}

.faq-a {
  color: #a79a96;
  font-size: 0.94rem;
  line-height: 1.75;
}

.faq-a strong {
  color: #e34242;
}

.strikethrough {
  text-decoration: line-through;
  opacity: 0.45;
  margin-right: 8px;
}

/* ==========================================================================
   ACT 4: THE ABYSS — FLASHLIGHT CORRIDOR & WATCHING EYES (72% - 92%)
   ========================================================================== */
.corridor-section {
  padding: 150px 0 110px;
  color: #c8b8b8;
}

.incident-banner {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  border: 1px solid rgba(165, 20, 20, 0.45);
  background: rgba(40, 4, 4, 0.45);
  color: #d65555;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 56px;
}

.scratched-intro {
  text-align: center;
  margin-bottom: 64px;
}

.whisper-line {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  color: #a89f9f;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
}

.whisper-line.blood-line {
  color: #d64545;
  margin-top: 24px;
}

/* Flashlight Stage */
.flashlight-stage {
  position: relative;
  width: min(1240px, 96vw);
  height: min(74vh, 660px);
  margin: 0 auto 140px;
  border: 1px solid rgba(130, 15, 15, 0.35);
  overflow: hidden;
  background: #020203;
  cursor: crosshair;
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.95);
}

.corridor-backdrop {
  position: absolute;
  inset: 0;
}

.corridor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.18) brightness(0.75) saturate(0.65);
  transition: transform 0.25s ease, filter 0.15s ease;
}

.flashlight-stage.door-spooked .corridor-img {
  transform: scale(1.07);
  filter: contrast(1.55) brightness(0.55) saturate(0.25);
}

.wall-graffiti {
  position: absolute;
  font-family: var(--font-serif);
  color: rgba(190, 24, 24, 0.86);
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 22px rgba(150, 0, 0, 0.7);
  user-select: none;
  pointer-events: none;
}

.g-1 { top: 18%; left: 10%; font-size: 1.5rem; transform: rotate(-6deg); }
.g-2 { top: 62%; left: 14%; font-size: 1.25rem; transform: rotate(4deg); }
.g-3 { top: 24%; right: 11%; font-size: 1.4rem; transform: rotate(5deg); }
.g-4 { top: 72%; right: 16%; font-size: 1.65rem; transform: rotate(-3deg); font-family: var(--font-mono); }
.g-5 { bottom: 14%; left: 38%; font-size: 1.15rem; transform: rotate(-2deg); }
.g-6 { top: 44%; left: 41%; font-size: 1.1rem; color: rgba(235, 225, 220, 0.78); }

.door-hotspot {
  position: absolute;
  left: 44%;
  top: 28%;
  width: 12%;
  height: 44%;
}

.flashlight-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle var(--beam-size, 185px) at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.45) 48%,
    rgba(2, 2, 3, 0.96) 76%,
    rgba(1, 1, 2, 0.995) 100%
  );
  pointer-events: none;
  transition: opacity 0.08s linear;
}

.flashlight-mask.flicker-off {
  background: rgba(1, 1, 2, 0.985);
}

.flashlight-hud {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(205, 185, 185, 0.65);
  z-index: 5;
  pointer-events: none;
}

/* Abyss Corridor Text */
.abyss-corridor {
  display: flex;
  flex-direction: column;
  gap: 36vh;
  padding: 18vh 24px 26vh;
  text-align: center;
}

.abyss-text-block {
  max-width: 720px;
  margin: 0 auto;
}

.abyss-big {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  color: #dfd6d6;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.abyss-big.blood-glow {
  color: #dc2626;
  text-shadow: 0 0 28px rgba(185, 16, 16, 0.65);
}

.abyss-big.trembling {
  animation: textTremble 0.22s infinite;
}

@keyframes textTremble {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 1px); }
  50% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1px, -1.5px); }
}

.abyss-sub {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: #827878;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   ACT 5: HORROR FILM CLIMAX (92% - 100%)
   ========================================================================== */
.climax-section {
  min-height: 105vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 80px;
  background: #020203;
}

.climax-viewport {
  position: relative;
  width: min(1200px, 94vw);
  height: min(82vh, 720px);
  border: 1px solid rgba(155, 11, 11, 0.45);
  background: #000;
  overflow: hidden;
  box-shadow: 0 0 110px rgba(120, 0, 0, 0.35);
}

.cctv-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

#climax-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hidden-source {
  display: none;
}

.cctv-overlay {
  position: absolute;
  inset: 0;
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(215, 228, 226, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}

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

.cctv-rec {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #ef4444;
}

.cctv-center-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.cctv-center-reticle::before,
.cctv-center-reticle::after {
  content: '';
  position: absolute;
  background: rgba(220, 38, 38, 0.4);
}

.cctv-center-reticle::before {
  top: 50%;
  left: -14px;
  right: -14px;
  height: 1px;
}

.cctv-center-reticle::after {
  left: 50%;
  top: -14px;
  bottom: -14px;
  width: 1px;
}

.climax-prompt {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 68px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.15) 45%, transparent 100%);
  gap: 18px;
  z-index: 6;
  transition: opacity 0.4s ease;
}

.climax-prompt.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.climax-warning-text {
  font-family: var(--font-serif);
  color: #e6d5d5;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-shadow: 0 2px 14px #000;
}

.climax-trigger-btn {
  padding: 14px 30px;
  background: rgba(125, 8, 8, 0.4);
  border: 1px solid rgba(220, 38, 38, 0.8);
  color: #fce4e4;
  font-family: var(--font-mono);
  font-size: 0.94rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 28px rgba(185, 16, 16, 0.4);
}

.climax-trigger-btn:hover {
  background: #9b0b0b;
  color: #fff;
  transform: scale(1.03);
}

.climax-scream-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 11vw, 8.5rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #dc2626;
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.9), 4px 0 #fff, -4px 0 #000;
  opacity: 0;
  pointer-events: none;
  z-index: 12;
}

.climax-scream-text.is-visible {
  opacity: 1;
  animation: textTremble 0.08s infinite;
}

/* Epilogue */
.epilogue-screen {
  position: absolute;
  inset: 0;
  background: #020203;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.epilogue-screen[hidden] {
  display: none;
}

.epilogue-inner {
  max-width: 560px;
}

.epilogue-logo {
  font-size: 0.88rem;
  letter-spacing: 0.45em;
  color: #7c1c1c;
  margin-bottom: 30px;
}

.epilogue-typewriter {
  font-size: 1.05rem;
  line-height: 2.1;
  color: #d6cece;
  min-height: 150px;
  white-space: pre-line;
}

.epilogue-actions {
  margin-top: 34px;
}

.wake-btn {
  padding: 12px 26px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d6cece;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wake-btn:hover {
  border-color: #ef4444;
  color: #fff;
  background: rgba(155, 11, 11, 0.22);
}

/* ==========================================================================
   FLOATING LIVE SUPPORT CHAT WIDGET
   ========================================================================== */
.support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.support-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.4s ease;
}

.support-widget.is-corrupted .support-toggle {
  background: #140808;
  color: #f3c8c8;
  border-color: rgba(200, 28, 28, 0.65);
  box-shadow: 0 10px 34px rgba(155, 11, 11, 0.45);
}

.support-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #3a5664;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.support-widget.is-corrupted .support-avatar {
  background: #8f0c0c;
}

.support-unread {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.74rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.support-panel {
  width: 330px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transition: background 0.5s ease, border-color 0.5s ease;
}

.support-widget.is-corrupted .support-panel {
  background: #0d0707;
  border-color: rgba(185, 28, 28, 0.55);
  box-shadow: 0 24px 70px rgba(110, 0, 0, 0.55);
}

.support-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: #f5f7f8;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #111827;
}

.support-widget.is-corrupted .support-header {
  background: #1a0909;
  border-bottom-color: rgba(185, 28, 28, 0.35);
  color: #f3d2d2;
}

.support-status {
  display: block;
  font-size: 0.74rem;
  opacity: 0.7;
}

.support-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.support-messages {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 270px;
  overflow-y: auto;
}

.chat-msg {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 90%;
}

.chat-msg.bot {
  align-self: flex-start;
  background: #f1f5f9;
  color: #1f2937;
}

.chat-msg.user {
  align-self: flex-end;
  background: #2c434f;
  color: #fff;
}

.chat-msg.horror {
  align-self: flex-start;
  background: rgba(125, 10, 10, 0.25);
  border: 1px solid rgba(200, 30, 30, 0.4);
  color: #f4d6d6;
  font-family: var(--font-serif);
}

.support-footer {
  padding: 10px 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.support-widget.is-corrupted .support-footer {
  border-top-color: rgba(185, 28, 28, 0.25);
}

.quick-reply-btn {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid rgba(79, 109, 122, 0.35);
  background: transparent;
  color: #36505d;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.support-widget.is-corrupted .quick-reply-btn {
  border-color: rgba(200, 30, 30, 0.5);
  color: #e28787;
}

@keyframes subtleFlicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.4; }
  96% { opacity: 0.95; }
  98% { opacity: 0.25; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .reviews-grid,
  .pricing-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .fc-top {
    left: 12px;
  }
}
