/* ==========================================================================
   栖境 HAVEN — Progressive Marketing-to-Horror Stylesheet
   ========================================================================== */

:root {
  /* Continuously interpolated by app.js based on scroll progress */
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-alt: #f3efe7;
  --ink: #1b1e1a;
  --ink-soft: #5c635a;
  --border: #e6e0d4;
  --accent: #4c6f5c;
  --accent-ink: #ffffff;
  --danger: #9e1b24;

  --dread: 0;
  --aberration: 0px;
  --nav-bg: rgba(250, 248, 244, 0.84);
  --nav-border: rgba(27, 30, 26, 0.08);
  --nav-tilt: 0deg;

  --font-serif: 'Noto Serif SC', 'Songti SC', 'SimSun', Georgia, serif;
  --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.08s linear;
}

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

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

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

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   FULL-SCREEN FX CANVAS, SUBLIMINAL FLASH & HIDDEN WALL WHISPERS
   ========================================================================== */

#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 60;
}

#subliminal-flash {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  mix-blend-mode: normal;
  transition: opacity 0.04s linear;
}

#subliminal-flash.active {
  opacity: 0.78;
}

#subliminal-flash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.45) saturate(0.25) brightness(0.65);
}

#subliminal-text {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  letter-spacing: 0.35em;
  color: rgba(215, 225, 220, 0.92);
  text-shadow: -3px 0 rgba(175, 20, 30, 0.85), 3px 0 rgba(60, 180, 170, 0.55);
}

#wall-whispers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body[data-stage='4'] #wall-whispers,
body[data-stage='5'] #wall-whispers {
  opacity: 1;
}

.wall-note {
  position: absolute;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.24em;
  color: rgba(168, 42, 48, 0.32);
  text-shadow: 0 0 12px rgba(120, 10, 16, 0.4);
  user-select: none;
  opacity: 0.08;
  transition: opacity 0.25s ease;
}

.wall-note.lit {
  opacity: 0.82;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nav-border);
  transform: rotate(var(--nav-tilt));
  transform-origin: left top;
  transition: opacity 0.55s ease, transform 0.35s ease, background-color 0.2s ease;
}

body[data-stage='5'] .site-nav,
body[data-stage='6'] .site-nav {
  opacity: 0;
  pointer-events: none;
}

.nav-inner {
  width: min(1160px, 92vw);
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(76, 111, 92, 0.14);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-cn {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

.brand-en {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

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

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.82rem;
  transition: all 0.25s ease;
}

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

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

.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: 1px;
  transition: height 0.2s ease;
}

.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.2s;
}
.audio-pill.active .audio-wave i:nth-child(3) {
  animation: waveBar 1.05s infinite ease-in-out 0.4s;
}

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

.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.86rem;
  font-weight: 500;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.25s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* ==========================================================================
   ACT I: LUXURY MARKETING HERO & PILLARS
   ========================================================================== */

.section {
  padding: 116px 0;
  position: relative;
}

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

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

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

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4.6vw, 3.85rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-shadow: var(--aberration) 0 0 rgba(180, 20, 30, 0.45), calc(var(--aberration) * -1) 0 0 rgba(40, 140, 140, 0.35);
}

.hero-desc {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin: 0 0 34px;
  max-width: 500px;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 12px 28px rgba(76, 111, 92, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(76, 111, 92, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.48rem;
  font-weight: 600;
  color: var(--ink);
}

.metric-item span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: 0 28px 64px rgba(27, 30, 26, 0.11);
  border: 1px solid var(--border);
}

.hero-img-clean,
.hero-img-haunted {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-img-haunted {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-float-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  color: #1b1e1a;
}

.float-badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4c8c68;
  box-shadow: 0 0 0 5px rgba(76, 140, 104, 0.18);
}

.float-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.float-sub {
  font-size: 0.76rem;
  color: #5b635a;
}

/* Press Strip */
.press-strip {
  margin-top: 76px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.press-caption {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 48px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  opacity: 0.74;
}

/* Section Headers */
.section-header {
  max-width: 660px;
  margin-bottom: 54px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 14px;
  text-shadow: var(--aberration) 0 0 rgba(175, 22, 32, 0.42), calc(var(--aberration) * -1) 0 0 rgba(50, 150, 140, 0.28);
}

.section-subtitle {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Pillars Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
}

.pillar-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 18px;
}

.pillar-card h3 {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  margin: 0 0 12px;
}

.pillar-card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   ACT II: HARDWARE & UNCANNY TELEMETRY
   ========================================================================== */

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

.device-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border);
  box-shadow: 0 24px 56px rgba(18, 22, 19, 0.1);
}

.device-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.35s ease;
}

/* Subtle watching optical iris centered on the glossy black camera lens of device-product.jpg */
.device-eye-socket {
  position: absolute;
  left: 49.8%;
  top: 52.8%;
  width: 26%;
  height: 26%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-eye-pupil {
  width: 28%;
  height: 28%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, rgba(165, 36, 48, 0.72), rgba(20, 6, 10, 0.92) 55%, transparent 78%);
  box-shadow: 0 0 14px rgba(155, 20, 32, 0.38);
  opacity: 0.22;
  transition: opacity 0.4s ease;
  position: relative;
}

.pupil-glint {
  position: absolute;
  top: 22%;
  left: 26%;
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: rgba(255, 220, 225, 0.85);
}

.device-status-pill {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(18, 20, 19, 0.76);
  backdrop-filter: blur(8px);
  color: #e6eae5;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #67c28e;
  box-shadow: 0 0 8px rgba(103, 194, 142, 0.8);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.hardware-lead {
  color: var(--ink-soft);
  margin: 0 0 28px;
  font-size: 0.98rem;
}

.telemetry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.telemetry-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.telemetry-live {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.tele-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.tele-label {
  display: block;
  font-size: 0.76rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.tele-val {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.tele-note {
  display: block;
  font-size: 0.73rem;
  color: var(--ink-soft);
}

.tele-anomaly {
  border-color: rgba(158, 27, 36, 0.25);
}

.tele-anomaly .tele-val {
  color: #8f2229;
}

.hardware-footnote {
  padding: 18px 20px;
  border-left: 2px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hardware-footnote strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 0.94rem;
}

.hardware-footnote p {
  margin: 0;
}

/* ==========================================================================
   ACT III: UNCANNY REVIEWS & SINISTER PRICING
   ========================================================================== */

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

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.avatar-uncanny {
  filter: contrast(1.08) saturate(0.88);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.uncanny-card:hover .avatar-uncanny {
  transform: scale(1.12);
  filter: contrast(1.24) saturate(0.55);
}

.silhouette-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #2b2f2c, #0e0f0f);
  color: rgba(210, 215, 208, 0.65);
  font-family: var(--font-serif);
  font-size: 1.1rem;
}

.static-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    0deg,
    #111 0px,
    #111 2px,
    #252726 2px,
    #252726 4px
  );
  color: #b42630;
  font-family: var(--font-mono);
  font-weight: 600;
}

.review-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.review-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.review-stars {
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: #b89852;
  margin-bottom: 12px;
}

.crimson-stars {
  color: #a82028;
}

.review-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.disturbed-card {
  transform: rotate(-0.45deg);
}

.corrupted-card {
  transform: rotate(0.7deg);
  border-color: rgba(158, 27, 36, 0.42);
}

.corrupted-card.corrupted-active .review-text {
  color: #d6c5c5;
  font-family: var(--font-serif);
  letter-spacing: 0.06em;
  text-shadow: 1px 0 rgba(190, 24, 34, 0.65);
}

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

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.featured-price {
  border-color: var(--accent);
  transform: translateY(-6px);
}

.cursed-price {
  border-color: rgba(168, 24, 34, 0.58);
  box-shadow: 0 22px 60px rgba(110, 8, 16, 0.25);
  transform: rotate(0.85deg);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.cursed-badge {
  background: #8a151e;
  color: #f3d8d9;
}

.price-head h3 {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  margin: 0 0 12px;
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.price-amount span {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}

.cursed-amount {
  color: #cf363f;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.price-list li::before {
  content: '—';
  margin-right: 10px;
  opacity: 0.5;
}

.muted-feature {
  text-decoration: line-through;
  opacity: 0.52;
}

.crimson-feature {
  color: #d9525a;
}

.price-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.22s ease;
}

.price-btn:hover {
  border-color: var(--ink);
}

.primary-price-btn {
  background: var(--ink);
  color: var(--bg);
  border-color: transparent;
}

.cursed-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cursed-stay-btn {
  background: #7c141c;
  color: #f6e4e5;
  border-color: #9e1b24;
}

.cursed-escape-btn {
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--ink-soft);
  transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cursed-escape-btn.trapped {
  border-color: #9e1b24;
  color: #e14b53;
}

/* ==========================================================================
   ACT IV: CCTV SURVEILLANCE, LEAKED LOGS & CEILING REVEAL
   ========================================================================== */

.cctv-section {
  padding-top: 84px;
  padding-bottom: 84px;
  background: linear-gradient(180deg, rgba(6, 7, 7, 0.55) 0%, rgba(4, 5, 5, 0.96) 24%, #030404 100%);
}

.fracture-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 28, 38, 0.55) 35%, rgba(255, 255, 255, 0.14) 55%, transparent);
  margin-bottom: 64px;
  transform: rotate(-0.6deg);
}

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

.mono-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: #b8323a;
  margin-bottom: 10px;
}

.cctv-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin: 0 0 8px;
  color: #dfe4de;
}

.cctv-sub {
  margin: 0;
  color: #8f968f;
  font-size: 0.94rem;
}

.cctv-meta-box {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #868e87;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 10, 9, 0.75);
  border-radius: 8px;
}

.mono-warn {
  color: #db4b52;
}

.cctv-monitor {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #040605;
  border: 1px solid rgba(135, 175, 145, 0.2);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.85), inset 0 0 60px rgba(0, 0, 0, 0.8);
  transform: rotate(-0.35deg);
}

.cctv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.12) brightness(0.92);
  transform: scale(1.02);
}

.cctv-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.cctv-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(0, 0, 0, 0.72) 100%);
}

/* Incident Logs */
.incident-logs {
  margin-top: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 9, 9, 0.82);
  border-radius: 10px;
  overflow: hidden;
  transform: rotate(0.3deg);
}

.logs-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #a5aea7;
}

.blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d12c36;
  animation: slowBlink 1.3s infinite ease-in-out;
}

@keyframes slowBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.log-entry {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 0.92rem;
  color: #b7beb8;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #6d7670;
  padding-top: 2px;
}

.log-critical {
  background: rgba(135, 16, 24, 0.14);
  color: #ebd0d2;
}

.log-critical time {
  color: #e04650;
}

/* Ceiling Horror Reveal */
.ceiling-section {
  padding-top: 64px;
  padding-bottom: 140px;
}

.ceiling-intro {
  text-align: center;
  margin-bottom: 34px;
}

.whisper-line {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: 0.14em;
  color: #d6dad6;
  margin: 0 0 8px;
}

.whisper-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #727974;
}

.ceiling-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #020203;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.96);
  cursor: crosshair;
  --spot-x: 68%;
  --spot-y: 36%;
  --spot-size: 240px;
  --ceiling-base-dark: 0.94;
}

.ceiling-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.14) brightness(0.95);
}

.ceiling-darkness {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle var(--spot-size) at var(--spot-x) var(--spot-y),
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.62) 48%,
    rgba(2, 2, 3, var(--ceiling-base-dark)) 100%
  );
  transition: --ceiling-base-dark 0.3s ease;
}

.ceiling-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.22em;
  color: rgba(235, 224, 224, 0.88);
  text-shadow: 0 2px 16px #000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  pointer-events: none;
}

.ceiling-stage.revealed .ceiling-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   ACT V: STICKY SCROLL-DRIVEN HORROR CORRIDOR
   ========================================================================== */

.corridor-track {
  position: relative;
  height: 360vh;
  background: #020203;
}

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

.corridor-img-wrap {
  position: absolute;
  inset: -4%;
  transform-origin: 50% 48%;
  will-change: transform;
}

.corridor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.12) brightness(0.84);
}

.corridor-door-void {
  position: absolute;
  left: 41%;
  top: 16%;
  width: 16%;
  height: 66%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.96), transparent 72%);
  pointer-events: none;
}

.corridor-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(16, 22, 24, 0.65), transparent 55%),
    linear-gradient(180deg, rgba(2, 2, 3, 0.72) 0%, transparent 25%, transparent 72%, rgba(2, 2, 3, 0.9) 100%);
}

.corridor-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 48%, transparent 22%, rgba(0, 0, 0, 0.88) 88%);
}

.corridor-captions {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8vw;
  pointer-events: none;
  z-index: 4;
}

.corridor-line {
  position: absolute;
  margin: 0;
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.8vw, 2.15rem);
  letter-spacing: 0.2em;
  color: rgba(228, 232, 228, 0.92);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.98), -2px 0 rgba(165, 22, 32, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.corridor-line-danger {
  color: #ebd3d5;
  text-shadow: 0 0 28px rgba(168, 18, 28, 0.8), 0 4px 24px #000;
}

.corridor-depth-meter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(185, 194, 188, 0.55);
}

/* ==========================================================================
   ACT VI: DEAD SILENCE THRESHOLD & FULL-SCREEN CLIMAX
   ========================================================================== */

.climax-threshold {
  min-height: 120vh;
  background: radial-gradient(circle at 50% 45%, #070709 0%, #010102 68%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
}

.threshold-inner {
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 4;
}

.threshold-slit {
  width: 2px;
  height: 150px;
  margin: 0 auto 38px;
  background: linear-gradient(180deg, transparent, rgba(215, 225, 222, 0.62), transparent);
  box-shadow: 0 0 26px rgba(175, 200, 205, 0.35);
  animation: slitBreath 3.2s infinite ease-in-out;
}

@keyframes slitBreath {
  0%, 100% { transform: scaleX(1); opacity: 0.45; }
  50% { transform: scaleX(2.4); opacity: 0.88; }
}

.threshold-pre {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.34em;
  color: #6b726f;
  margin: 0 0 14px;
}

.threshold-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #e4e6e4;
  margin: 0 0 38px;
  text-shadow: 0 0 40px rgba(175, 20, 30, 0.35);
}

.threshold-btn {
  padding: 15px 40px;
  border: 1px solid rgba(215, 45, 56, 0.55);
  background: rgba(110, 12, 20, 0.22);
  color: #f0dfe0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 0.28em;
  border-radius: 4px;
  transition: all 0.25s ease;
}

.threshold-btn:hover {
  background: rgba(145, 18, 28, 0.48);
  border-color: rgba(235, 68, 78, 0.85);
  box-shadow: 0 0 36px rgba(170, 18, 28, 0.55);
}

.threshold-hint {
  margin-top: 22px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #4f5553;
}

/* Full-screen Horror Climax Overlay */
.climax-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: #000;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.18s ease;
  overflow: hidden;
}

.climax-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.climax-stage {
  position: absolute;
  inset: -4%;
  background: #000;
}

.climax-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  transform: scale(0.94);
  opacity: 0;
}

/* Impact Sequence: Lunge + Violent Camera Tremor + RGB Chromatic Tear */
.climax-overlay.impact .climax-main {
  opacity: 1;
  animation:
    entityLunge 2.65s cubic-bezier(0.14, 0.86, 0.22, 1) forwards,
    entityTremor 0.16s infinite steps(2),
    cinemaFlicker 1.1s infinite ease-in-out;
}

.climax-overlay.impact .climax-rgb-r {
  opacity: 0.45;
  mix-blend-mode: screen;
  filter: sepia(1) hue-rotate(-55deg) saturate(4.5) contrast(1.3);
  animation: rgbShiftR 0.22s infinite alternate ease-in-out, entityLunge 2.65s cubic-bezier(0.14, 0.86, 0.22, 1) forwards;
}

.climax-overlay.impact .climax-rgb-c {
  opacity: 0.35;
  mix-blend-mode: screen;
  filter: sepia(1) hue-rotate(140deg) saturate(3.2) contrast(1.25);
  animation: rgbShiftC 0.25s infinite alternate ease-in-out, entityLunge 2.65s cubic-bezier(0.14, 0.86, 0.22, 1) forwards;
}

/* Chilling Still Aftermath: Entity lingers dimly behind your screen glass, subtly breathing */
.climax-overlay.aftermath .climax-main {
  opacity: 0.56;
  filter: contrast(1.24) brightness(0.76) saturate(0.7);
  animation: entityBreathe 9s infinite ease-in-out;
}

.climax-overlay.aftermath .climax-rgb-r,
.climax-overlay.aftermath .climax-rgb-c {
  opacity: 0.08;
  transform: scale(1.16) translateX(4px);
}

@keyframes entityLunge {
  0% { transform: scale(0.88); filter: brightness(0.35) contrast(1.5); }
  12% { transform: scale(1.09); filter: brightness(1.08) contrast(1.35); }
  55% { transform: scale(1.15); filter: brightness(0.92) contrast(1.28); }
  100% { transform: scale(1.18); filter: brightness(0.78) contrast(1.26); }
}

@keyframes entityTremor {
  0% { translate: -5px 3px; }
  25% { translate: 6px -4px; }
  50% { translate: -4px -5px; }
  75% { translate: 5px 4px; }
  100% { translate: -3px 2px; }
}

@keyframes cinemaFlicker {
  0%, 100% { opacity: 0.96; }
  38% { opacity: 0.62; }
  52% { opacity: 1; }
  78% { opacity: 0.48; }
}

@keyframes rgbShiftR {
  0% { translate: -11px -2px; }
  100% { translate: 9px 3px; }
}

@keyframes rgbShiftC {
  0% { translate: 10px 2px; }
  100% { translate: -8px -3px; }
}

@keyframes entityBreathe {
  0%, 100% { transform: scale(1.15) translateY(0px); }
  50% { transform: scale(1.20) translateY(-5px); }
}

.climax-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 0, 0, 0.24) 3px
  );
}

.climax-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 42%, transparent 28%, rgba(0, 0, 0, 0.92) 92%);
}

.climax-hud {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 228, 0.78);
  z-index: 4;
}

.climax-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.climax-rec i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e12b36;
  box-shadow: 0 0 12px rgba(225, 43, 54, 0.9);
  animation: slowBlink 1.1s infinite;
}

.climax-aftermath {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 24px 52px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.82) 38%, rgba(0, 0, 0, 0.96) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.climax-overlay.aftermath .climax-aftermath {
  opacity: 1;
}

.aftermath-lines {
  max-width: 640px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aftermath-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: rgba(210, 218, 214, 0.85);
}

.aftermath-line.final-quote {
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  letter-spacing: 0.18em;
  color: #f0e2e3;
  text-shadow: 0 0 24px rgba(178, 22, 32, 0.65);
}

.aftermath-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.aftermath-actions.visible {
  opacity: 1;
  transform: translateY(0);
}

.aftermath-btn {
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  transition: all 0.25s ease;
}

.escape-btn {
  background: rgba(145, 18, 28, 0.28);
  border: 1px solid rgba(215, 50, 58, 0.62);
  color: #f4dfdf;
}

.escape-btn:hover {
  background: rgba(165, 22, 34, 0.52);
}

.reset-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(218, 224, 220, 0.8);
}

.reset-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ==========================================================================
   FLOATING LIVE CONCIERGE CHAT WIDGET
   ========================================================================== */

.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 318px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16);
  z-index: 55;
  overflow: hidden;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.chat-widget.hidden {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

.chat-widget.sinister {
  background: #101111;
  border-color: rgba(168, 26, 36, 0.48);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}

.chat-widget.sinister .chat-header {
  background: #161516;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-family: var(--font-serif);
}

.chat-widget.sinister .chat-avatar {
  background: #23090c;
  color: #d63c46;
  border: 1px solid rgba(190, 32, 42, 0.55);
}

.chat-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.chat-widget.sinister .chat-name {
  color: #dcdede;
}

.chat-status {
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.chat-widget.sinister .chat-status {
  color: #c84048;
}

.chat-close {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  padding: 2px 6px;
}

.chat-body {
  max-height: 210px;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-msg {
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 92%;
}

.chat-msg.bot {
  background: var(--surface-alt);
  color: var(--ink);
  align-self: flex-start;
}

.chat-widget.sinister .chat-msg.bot {
  background: rgba(255, 255, 255, 0.05);
  color: #cfd5d1;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-msg.bot.creepy-msg {
  border-color: rgba(175, 28, 36, 0.45);
  color: #ecd2d4;
}

.chat-msg.user {
  background: var(--accent);
  color: #fff;
  align-self: flex-end;
}

.chat-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 14px 14px;
}

.chat-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.chat-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.chat-widget.sinister .chat-chip {
  border-color: rgba(255, 255, 255, 0.14);
  color: #a9b2ac;
}

/* ==========================================================================
   HAUNTED MEMORY MODE (When user flees back up after experiencing Climax)
   ========================================================================== */

body.haunted-memory .hero-img-haunted {
  opacity: 1;
}

body.haunted-memory .hero-float-card {
  background: rgba(12, 12, 14, 0.86);
  border-color: rgba(175, 26, 36, 0.5);
  color: #e4d8d9;
}

body.haunted-memory .float-sub {
  color: #c95860;
}

body.haunted-memory .float-badge-dot {
  background: #d82934;
  box-shadow: 0 0 12px rgba(216, 41, 52, 0.85);
}

body.haunted-memory .brand-dot {
  background: #c6242f;
  box-shadow: 0 0 10px rgba(198, 36, 47, 0.75);
}

.haunted-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(14, 10, 12, 0.92);
  border: 1px solid rgba(185, 32, 42, 0.55);
  color: #e4d4d5;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

.haunted-banner[hidden] {
  display: none;
}

.haunted-banner button {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.75rem;
}

.haunted-banner button:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .hardware-grid,
  .pillars-grid,
  .reviews-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .featured-price,
  .cursed-price {
    transform: none;
  }

  .chat-widget {
    width: calc(100vw - 28px);
    right: 14px;
    bottom: 14px;
  }
}
