/* ============ benignlink.com — the dangerously harmless website ============ */
:root {
  --bg: #05060a;
  --neon: #39ff14;
  --neon-dim: #1c7a0c;
  --danger: #ff2d55;
  --danger-deep: #7a0019;
  --amber: #ffb300;
  --paper: #f3f7f0;
  --ink: #0b140a;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: #e8ffe2;
  font-family: var(--mono);
  overflow-x: hidden;
}

/* falling-code canvas sits behind everything */
#rain {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

/* ---- scene scaffolding ---- */
.scene {
  position: relative;
  z-index: 1;
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.scene.active { display: flex; }

/* ===================== SCENE 1: THE BENIGN LIE ===================== */
.benign-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
  background: rgba(8, 14, 9, 0.78);
  border: 1px solid var(--neon-dim);
  border-radius: 18px;
  padding: 40px 32px;
  box-shadow: 0 0 60px rgba(57, 255, 20, 0.12);
  backdrop-filter: blur(4px);
}
.benign-badge {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--neon);
  border: 1px solid var(--neon-dim);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.benign-card h1 { font-size: clamp(26px, 6vw, 38px); margin: 0 0 14px; line-height: 1.15; }
.brand { color: var(--neon); text-shadow: 0 0 18px rgba(57,255,20,0.6); }
.sub { color: #9fbf96; line-height: 1.6; margin: 0 0 28px; }
.fineprint { font-size: 12px; color: #5d7256; margin: 18px 0 0; }

.big-btn {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  background: var(--neon);
  border: none;
  border-radius: 12px;
  padding: 16px 26px;
  cursor: pointer;
  width: 100%;
  transition: transform 0.08s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.45);
}
.big-btn:hover { transform: translateY(-2px); box-shadow: 0 0 38px rgba(57,255,20,0.7); }
.big-btn:active { transform: translateY(1px); }

/* ===================== SCENE 2: TOTAL CHAOS ===================== */
#scene-chaos.active { background: radial-gradient(circle at center, rgba(122,0,25,0.35), transparent 70%); }

.alert-window {
  max-width: 560px;
  width: 100%;
  background: #0c0306;
  border: 2px solid var(--danger);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 4px rgba(255,45,85,0.12), 0 0 70px rgba(255,45,85,0.5);
}
.title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, var(--danger-deep), var(--danger));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  letter-spacing: 0.03em;
}
.fake-close { cursor: pointer; padding: 0 6px; user-select: none; }
.fake-close:hover { background: rgba(255,255,255,0.2); border-radius: 3px; }

.alert-body { padding: 26px 24px 30px; text-align: center; }
.skull { font-size: 60px; line-height: 1; margin-bottom: 6px; animation: throb 0.6s infinite alternate; }
@keyframes throb { from { transform: scale(1); } to { transform: scale(1.18) rotate(-4deg); } }

.alert-body h2 {
  color: var(--danger);
  font-size: clamp(18px, 4.5vw, 24px);
  margin: 4px 0 10px;
  text-shadow: 0 0 14px rgba(255,45,85,0.7);
}
.alert-line { color: #ffb3c1; margin: 0 0 18px; font-size: 14px; }
.alert-line b { color: var(--amber); }

/* meter */
.meter { text-align: left; margin: 0 0 16px; }
.meter-label { font-size: 13px; color: #ff8fa3; margin-bottom: 6px; min-height: 1.2em; }
.meter-track { height: 14px; background: #2a0309; border: 1px solid var(--danger-deep); border-radius: 7px; overflow: hidden; }
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber), var(--danger)); transition: width 0.25s linear; }

/* scrolling log */
.log {
  list-style: none;
  text-align: left;
  margin: 0 0 18px;
  padding: 10px 12px;
  height: 108px;
  overflow: hidden;
  background: #000;
  border: 1px solid #2a0309;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--neon);
}
.log li { opacity: 0; animation: logIn 0.3s forwards; }
.log li::before { content: "› "; color: var(--danger); }
@keyframes logIn { to { opacity: 1; } }

/* counters */
.counters { display: flex; gap: 10px; margin: 0 0 20px; }
.counter {
  flex: 1;
  background: #14040a;
  border: 1px solid #2a0309;
  border-radius: 8px;
  padding: 10px 4px;
}
.counter .num { display: block; font-size: 20px; font-weight: 800; color: var(--amber); }
.counter .lbl { display: block; font-size: 10.5px; color: #b06; letter-spacing: 0.02em; margin-top: 2px; color: #d56b81; }

.panic-btn {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: var(--danger);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  width: 100%;
  cursor: pointer;
  animation: blink 0.9s infinite;
  box-shadow: 0 0 26px rgba(255,45,85,0.6);
}
@keyframes blink { 50% { background: var(--danger-deep); } }
.panic-btn:active { transform: scale(0.98); }
.tiny { font-size: 11px; color: #7a4a52; margin: 8px 0 0; }

/* glitch wobble */
.glitch { animation: wobble 0.18s infinite; }
@keyframes wobble {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1.5px, 1px); }
  50% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1px, -1.5px); }
  100% { transform: translate(1px, 1.5px); }
}

/* ===================== SCENE 3: THE REVEAL ===================== */
.reveal-card {
  max-width: 560px;
  width: 100%;
  text-align: center;
  background: var(--paper);
  color: var(--ink);
  border-radius: 20px;
  padding: 40px 34px;
  box-shadow: 0 0 80px rgba(57,255,20,0.18);
}
.reveal-emoji { font-size: 64px; margin-bottom: 8px; animation: sway 2.4s ease-in-out infinite; }
@keyframes sway { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.reveal-card h2 { font-size: clamp(26px, 6vw, 36px); margin: 0 0 12px; }
.reveal-sub { color: #3c4a38; line-height: 1.6; margin: 0 0 26px; }

.report {
  text-align: left;
  background: #e6efe1;
  border-radius: 12px;
  padding: 6px 18px;
  margin: 0 0 22px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #c2d2bb;
  font-size: 14px;
}
.report-row:last-child { border-bottom: none; }
.report-row .ok { color: #167a1c; }
.report-row .warn { color: #c47a00; }

.lesson {
  background: #1b2a18;
  color: #d8f5cf;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  margin: 0 0 24px;
}

.reveal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ghost-btn {
  flex: 1;
  min-width: 180px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 13px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.ghost-btn:hover { background: var(--ink); color: var(--paper); }
.signoff { font-size: 12px; color: #5d7256; margin: 22px 0 0; letter-spacing: 0.03em; }

@media (max-width: 480px) {
  .counters { flex-direction: column; }
  .reveal-actions { flex-direction: column; }
}
