/* ==========================================================================
   安隅 HAVEN — Progressive Psychological-to-Cinematic Horror Stylesheet
   Driven by CSS custom properties updated smoothly with scroll depth (--p: 0..1)
   ========================================================================== */

:root {
  --p: 0;
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-subtle: #f3f2ec;
  --text: #1c1e1d;
  --text-muted: #5d6460;
  --border: rgba(28, 30, 29, 0.08);
  --accent: #3f6255;
  --accent-soft: rgba(63, 98, 85, 0.1);
  --danger: #b91c1c;
  --danger-glow: rgba(185, 28, 28, 0.45);
  --nav-bg: rgba(250, 250, 247, 0.82);
  --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif SC', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --radius: 18px;
}

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

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

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

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

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

/* ==================== ATMOSPHERIC OVERLAYS ==================== */
#fx-grain-canvas,
#fx-vignette,
#fx-scanlines,
#fx-flash,
#fx-subliminal {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#fx-grain-canvas {
  z-index: 90;
  opacity: 0;
  mix-blend-mode: overlay;
}

#fx-flashlight-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#fx-vignette {
  z-index: 88;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 34%,
    rgba(0, 0, 0, 0.65) 78%,
    rgba(0, 0, 0, 0.96) 100%
  );
}

#fx-scanlines {
  z-index: 89;
  opacity: 0;
  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
  );
}

#fx-flash {
  z-index: 120;
  opacity: 0;
  background: #e2e8f0;
  transition: opacity 0.05s linear;
}

#fx-subliminal {
  z-index: 118;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(6, 2, 3, 0.92);
}

#fx-subliminal-text {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 9vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #dc2626;
  text-shadow: 4px 0 0 rgba(0, 240, 255, 0.45), -4px 0 0 rgba(255, 0, 40, 0.7), 0 0 40px rgba(220, 38, 38, 0.6);
}

/* Peripheral shadow that watches from edge & flees cursor */
#peripheral-shadow {
  position: fixed;
  right: -12px;
  bottom: 0;
  width: 155px;
  height: 390px;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  filter: blur(4px);
  transform: translateX(65px);
  transition: opacity 0.45s ease, transform 0.35s ease;
}

#peripheral-shadow.visible {
  opacity: 0.72;
  transform: translateX(0);
}

#peripheral-shadow.fled {
  opacity: 0 !important;
  transform: translateX(120px) !important;
  transition: opacity 0.08s linear, transform 0.12s ease-in !important;
}

/* ==================== NAVIGATION ==================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease, opacity 0.6s ease, transform 0.5s ease;
}

.site-nav.nav-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.nav-inner {
  width: min(1140px, 92vw);
  margin: 0 auto;
  height: 68px;
  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;
}

.brand-en {
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0.65;
  letter-spacing: 0.14em;
}

.logo-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  opacity: 0.55;
}

.logo-moon {
  fill: var(--accent);
  transition: opacity 0.6s ease, fill 0.6s ease;
}

.logo-pupil {
  fill: #dc2626;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

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

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

.audio-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

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

.audio-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a3aba6;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.audio-pill.active .audio-dot {
  background: #2f855a;
  box-shadow: 0 0 8px rgba(47, 133, 90, 0.7);
}

.audio-pill.active.corrupted .audio-dot {
  background: #dc2626;
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.9);
  animation: pulseDot 0.9s infinite;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(63, 98, 85, 0.24);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.86rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.98rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.btn-ghost:hover {
  background: var(--surface-subtle);
}

/* ==================== ACT 1: HERO ==================== */
.section-hero {
  padding-top: 132px;
  padding-bottom: 72px;
  position: relative;
}

.hero-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 24px;
}

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

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  color: var(--text-muted);
  max-width: 610px;
  margin: 0 auto 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-audio-hint {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.hero-visual-wrap {
  max-width: 980px;
  margin: 0 auto 74px;
}

.hero-visual-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: 0 32px 80px rgba(24, 34, 30, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04);
  background: #eae8e0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-night {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease;
}

.floating-chip {
  position: absolute;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chip-tl {
  top: 22px;
  left: 22px;
}

.chip-br {
  bottom: 22px;
  right: 22px;
}

.chip-label {
  font-size: 0.74rem;
  color: #636b67;
}

.chip-val {
  font-size: 1.05rem;
  color: #1c1e1d;
}

.chip-val-ok {
  color: #2f6f58;
}

/* Press & Metrics */
.press-strip {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.press-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 18px;
  letter-spacing: 0.06em;
}

.press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 46px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  opacity: 0.65;
  letter-spacing: 0.08em;
}

.metrics-strip {
  padding: 58px 0 16px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.metric-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}

.metric-desc {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==================== ACT 2: FEATURES & TESTIMONIALS ==================== */
.section-features,
.section-testimonials {
  padding: 112px 0;
  position: relative;
}

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

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 600;
}

.section-lead {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.02rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.feature-card h3 {
  margin: 6px 0 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  flex: 1;
}

.feature-meta {
  font-size: 0.8rem;
  color: var(--accent);
  font-family: var(--font-mono);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

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

.feature-card-eerie .feature-meta {
  color: #8b3a3a;
}

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

.testimonial-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.4s ease;
}

.t-stars {
  color: #c59b52;
  letter-spacing: 2px;
  font-size: 0.92rem;
}

.t-stars-red {
  color: #b91c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.err-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #dc2626;
  background: rgba(185, 28, 28, 0.12);
  padding: 2px 7px;
  border-radius: 4px;
}

.t-quote {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text);
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.t-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.avatar-normal {
  background: #e4ede8;
  color: #2f5446;
}

.avatar-pale {
  background: #d8dad6;
  color: #363938;
}

.avatar-eye {
  background: #131316;
  border: 1px solid rgba(220, 38, 38, 0.5);
  position: relative;
  overflow: hidden;
}

.mini-eye {
  width: 22px;
  height: 11px;
  border-radius: 50%;
  background: #d9dcd9;
  position: relative;
  display: block;
}

.mini-eye::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #09090b;
  top: 2px;
  left: 7.5px;
  box-shadow: 0 0 0 1.5px #991b1b;
}

.t-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.t-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.status-deleted {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #b91c1c;
}

.testimonial-broken {
  transform: rotate(0.9deg);
  border-color: rgba(185, 28, 28, 0.28);
  position: relative;
}

/* ==================== ACT 3: TELEMETRY / SURVEILLANCE ==================== */
.section-telemetry {
  padding: 130px 0 110px;
  position: relative;
}

.kicker-mono {
  font-family: var(--font-mono);
  color: #9ca3af;
  letter-spacing: 0.18em;
}

.telemetry-shell {
  background: rgba(12, 13, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.55);
  color: #e5e7eb;
}

.telemetry-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  color: #9ca3af;
}

.tb-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  box-shadow: 0 0 10px #dc2626;
  animation: pulseDot 1.1s infinite;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
}

.cam-feed-box {
  position: relative;
  min-height: 380px;
  background: #040506;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.cam-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.18) brightness(0.86) saturate(0.5);
  animation: slowCreepZoom 18s ease-in-out infinite alternate;
}

.cam-overlay-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(16, 185, 129, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.cam-hud-tl {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.72rem;
  color: rgba(167, 243, 208, 0.75);
  text-shadow: 0 1px 6px #000;
}

.cam-hud-bl {
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 16px;
  font-size: 0.76rem;
  color: #fca5a5;
  background: rgba(0, 0, 0, 0.65);
  padding: 6px 10px;
  border-left: 2px solid #dc2626;
}

.motion-box {
  position: absolute;
  top: 20%;
  left: 59%;
  width: 15%;
  height: 50%;
  border: 1.5px solid rgba(220, 38, 38, 0.88);
  box-shadow: inset 0 0 18px rgba(220, 38, 38, 0.2), 0 0 16px rgba(220, 38, 38, 0.3);
  animation: motionJitter 2.4s steps(2, end) infinite;
}

.motion-label {
  position: absolute;
  top: -20px;
  left: -1px;
  font-size: 0.66rem;
  background: #dc2626;
  color: #fff;
  padding: 1px 6px;
  white-space: nowrap;
}

.telemetry-panels {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tel-stat {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.tel-label {
  display: block;
  font-size: 0.72rem;
  color: #8c949e;
  margin-bottom: 6px;
}

.tel-value {
  font-size: 1.35rem;
  font-weight: 600;
  color: #f3f4f6;
}

.tel-value.alert {
  color: #ef4444;
  text-shadow: 0 0 14px rgba(239, 68, 68, 0.55);
}

.tel-behavior {
  font-size: 1.05rem;
}

.tel-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #7c848e;
}

.tel-wave-card {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.tel-wave-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

#telemetry-wave {
  width: 100%;
  height: 82px;
  display: block;
}

/* ==================== ACT 4: CORRUPTED PRICING ==================== */
.section-pricing {
  padding: 120px 0 80px;
  position: relative;
}

.kicker-red {
  color: #dc2626 !important;
}

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

.price-card {
  background: rgba(18, 17, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 34px 28px;
  color: #d4d4d8;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-dead {
  opacity: 0.52;
  transform: rotate(-1.1deg);
}

.price-cursed {
  border-color: rgba(220, 38, 38, 0.65);
  background: linear-gradient(180deg, rgba(34, 10, 12, 0.94), rgba(10, 8, 10, 0.98));
  box-shadow: 0 0 50px rgba(185, 28, 28, 0.22);
  transform: scale(1.03);
}

.price-redacted {
  transform: rotate(1.3deg);
  border-style: dashed;
  border-color: rgba(185, 28, 28, 0.35);
}

.price-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: #b91c1c;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

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

.price-amount {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #f4f4f5;
}

.price-amount span {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.6;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 0.92rem;
  flex: 1;
}

.struck {
  text-decoration: line-through;
  opacity: 0.45;
}

.red-check {
  color: #dc2626;
  margin-right: 8px;
  font-weight: 700;
}

.redact {
  display: inline-block;
  background: #18181b;
  color: #18181b;
  padding: 2px 6px;
  border-radius: 3px;
  cursor: help;
  position: relative;
  transition: all 0.25s ease;
}

.redact:hover {
  background: rgba(185, 28, 28, 0.2);
  color: transparent;
}

.redact:hover::after {
  content: attr(data-secret);
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  color: #ef4444;
  font-weight: 600;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.7);
}

.price-btn {
  width: 100%;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #e4e4e7;
  transition: all 0.2s ease;
}

.price-btn-dead {
  cursor: not-allowed;
  opacity: 0.45;
}

.price-btn-cursed {
  background: #991b1b;
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.35);
}

.price-btn-cursed:hover {
  background: #b91c1c;
  animation: violentShake 0.22s infinite;
}

.cursed-whisper {
  min-height: 20px;
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #f87171;
  font-family: var(--font-serif);
}

/* Descent Warning */
.descent-warning {
  margin-top: 150px;
  padding: 120px 0 180px;
  text-align: center;
  color: #71717a;
}

.warning-line {
  width: 1px;
  height: 110px;
  margin: 0 auto 48px;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0), rgba(220, 38, 38, 0.7));
}

.warning-text-1 {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  color: #a1a1aa;
  margin: 0 0 36px;
}

.warning-text-2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 4.5vw, 3.3rem);
  color: #dc2626;
  margin: 0 0 22px;
  letter-spacing: 0.14em;
  text-shadow: 0 0 28px rgba(220, 38, 38, 0.45);
}

.warning-text-3 {
  font-size: 0.96rem;
  color: #52525b;
  margin: 0 0 42px;
}

.warning-arrow {
  font-size: 1.6rem;
  color: #991b1b;
  animation: slowDrop 2.2s ease-in-out infinite;
}

/* ==================== ACT 5: THE LIMINAL CORRIDOR ==================== */
.section-corridor {
  height: 310vh;
  position: relative;
  background: #020203;
}

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

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

.corridor-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.corridor-flicker-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(190, 210, 175, 0.08), rgba(0, 0, 0, 0.88) 76%);
  pointer-events: none;
}

.corridor-darkness {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, transparent 18%, rgba(0, 0, 0, 0.92) 84%);
  pointer-events: none;
}

.wall-scratch {
  position: absolute;
  font-family: var(--font-serif);
  color: rgba(185, 28, 28, 0.28);
  font-size: clamp(1rem, 2.2vw, 1.7rem);
  letter-spacing: 0.16em;
  pointer-events: none;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.95);
  transition: opacity 0.4s ease, color 0.4s ease;
  z-index: 4;
}

.scratch-1 { top: 22%; left: 7%; transform: rotate(-7deg); }
.scratch-2 { top: 34%; right: 6%; transform: rotate(5deg); }
.scratch-3 { bottom: 26%; left: 9%; transform: rotate(3deg); }
.scratch-4 { bottom: 20%; right: 10%; transform: rotate(-9deg); font-size: 2rem; }

.cinema-hud {
  position: absolute;
  inset: 0;
  z-index: 87;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  color: rgba(236, 240, 245, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.cinema-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.hud-rec {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  color: #ef4444;
}

.rec-dot-lg {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
  animation: pulseDot 0.9s infinite;
}

.cinema-caption-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cinema-caption {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  letter-spacing: 0.14em;
  color: rgba(244, 244, 245, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.98);
  margin: 0;
  transition: opacity 0.35s ease;
}

.cinema-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: rgba(161, 161, 170, 0.78);
  gap: 16px;
  flex-wrap: wrap;
}

/* ==================== ACT 6: THE HORROR MOVIE CLIMAX ==================== */
.section-climax {
  height: 260vh;
  position: relative;
  background: #000000;
}

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

.climax-stage {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

.climax-blackout-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: 0.35em;
  color: rgba(220, 38, 38, 0.9);
  text-shadow: 0 0 32px rgba(220, 38, 38, 0.6);
  opacity: 0;
  z-index: 6;
  pointer-events: none;
}

.entity-frame {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  opacity: 0;
  transform: scale(0.96);
  will-change: transform, opacity, filter;
  z-index: 8;
}

.entity-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  display: block;
}

.entity-img-base {
  filter: contrast(1.25) brightness(0.76) saturate(0.55);
}

.entity-img-red,
.entity-img-cyan {
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.entity-img-red {
  filter: sepia(1) hue-rotate(-50deg) saturate(5) contrast(1.4);
}

.entity-img-cyan {
  filter: sepia(1) hue-rotate(155deg) saturate(4) contrast(1.4);
}

#climax-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.climax-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  padding: 28px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.climax-hud-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(220, 38, 38, 0.82);
  letter-spacing: 0.14em;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.climax-words {
  text-align: center;
  margin-top: auto;
  margin-bottom: 54px;
}

.climax-line-1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  color: #f4f4f5;
  letter-spacing: 0.32em;
  margin: 0 0 16px;
  text-shadow: 0 0 24px rgba(0, 0, 0, 1), 0 0 40px rgba(220, 38, 38, 0.55);
}

.climax-line-2 {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  color: #fca5a5;
  letter-spacing: 0.2em;
  margin: 0;
  text-shadow: 0 2px 14px #000;
}

.climax-ending-controls {
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
  padding-bottom: 10px;
}

.climax-ending-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.climax-meta {
  font-size: 0.74rem;
  color: rgba(161, 161, 170, 0.7);
  margin: 0 0 14px;
  letter-spacing: 0.14em;
}

.btn-wake {
  background: rgba(10, 10, 12, 0.75);
  color: #e4e4e7;
  border: 1px solid rgba(220, 38, 38, 0.55);
  padding: 12px 26px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-wake:hover {
  background: rgba(185, 28, 28, 0.28);
  border-color: #ef4444;
  color: #fff;
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.45);
}

/* ==================== RETROACTIVE CORRUPTION STATE ==================== */
body.point-of-no-return .hero-img-night {
  opacity: 1;
}

body.point-of-no-return .hero-badge {
  background: rgba(185, 28, 28, 0.18);
  color: #ef4444;
}

body.point-of-no-return .floating-chip {
  background: rgba(14, 10, 12, 0.88);
  border: 1px solid rgba(220, 38, 38, 0.55);
}

body.point-of-no-return .chip-label {
  color: #a1a1aa;
}

body.point-of-no-return .chip-val {
  color: #ef4444;
}

body.point-of-no-return .feature-card,
body.point-of-no-return .testimonial-card {
  border-color: rgba(185, 28, 28, 0.35);
}

body.point-of-no-return .btn-ghost {
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(220, 38, 38, 0.45);
  color: #fca5a5;
}

body.point-of-no-return .btn-primary {
  background: #991b1b;
}

/* Glitch text utility */
.glitch-active {
  animation: textGlitch 0.22s steps(2, end) infinite;
}

/* ==================== KEYFRAMES ==================== */
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

@keyframes slowCreepZoom {
  0% { transform: scale(1.08); }
  100% { transform: scale(1.16); }
}

@keyframes motionJitter {
  0% { transform: translate(0, 0); opacity: 0.85; }
  33% { transform: translate(2px, -1px); opacity: 0.6; }
  66% { transform: translate(-1px, 2px); opacity: 0.95; }
  100% { transform: translate(1px, 0); opacity: 0.75; }
}

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

@keyframes slowDrop {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(10px); opacity: 1; }
}

@keyframes textGlitch {
  0% { text-shadow: 2px 0 #dc2626, -2px 0 #06b6d4; }
  50% { text-shadow: -3px 1px #dc2626, 2px -1px #06b6d4; }
  100% { text-shadow: 1px -1px #dc2626, -1px 1px #06b6d4; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid,
  .testimonials-grid,
  .pricing-grid,
  .telemetry-grid {
    grid-template-columns: 1fr;
  }
  .cam-feed-box {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 280px;
  }
  .price-cursed {
    transform: none;
  }
}
