/* AI会伤害人吗？ — dark tech / dossier look
   Look: Matrix phosphor green on black (learner choice). Avoid: digital-rain animation cliché, purple-blue AI gradients. */

:root {
  --bg: #030805;
  --bg-elev: #0a140c;
  --ink: #b6ffc8;
  --ink-dim: #5d9e72;
  --line: #1e4d2e;
  --accent: #00ff41;
  --accent-warn: #c8ff32;
  --accent-ok: #00cc66;
  --mono: "VT323", "Press Start 2P", "Cascadia Code", "Consolas", monospace;
  --sans: "VT323", "Cascadia Code", "Segoe UI", "Consolas", monospace;
  --max: 52rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #041018;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* —— Hero —— */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.hero__kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.hero__title {
  font-family: "Press Start 2P", var(--mono);
  font-size: clamp(1.35rem, 5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  margin: 0 0 1.25rem;
  text-shadow: 0 0 12px rgba(0, 255, 65, 0.35);
}

.hero__subtitle {
  font-family: var(--mono);
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  color: var(--ink-dim);
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.hero__lead {
  color: var(--ink-dim);
  max-width: 32rem;
  margin: 0 0 2.5rem;
}

.hero__cta {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--accent);
  transition: background 0.15s, color 0.15s;
}

.hero__cta:hover,
.hero__cta:focus-visible {
  background: transparent;
  color: var(--accent);
  outline: none;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: var(--pad);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  opacity: 0.7;
}

/* —— Sections —— */
.section {
  padding: calc(var(--pad) * 1.5) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.section__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.section__head h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.section__intro {
  color: var(--ink-dim);
  margin: 0 0 1.5rem;
}

.section__intro code {
  font-family: var(--mono);
  font-size: 0.85em;
  color: var(--accent);
}

.timeline {
  min-height: 8rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.timeline__item {
  position: relative;
  padding: 0 0 2rem 1.35rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__item[data-role="report"]::before {
  background: var(--accent-warn);
  box-shadow: 0 0 0 3px rgba(232, 93, 76, 0.25);
}

.timeline__item[data-role="outcome"]::before {
  background: var(--accent-ok);
}

.timeline__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline__date {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.timeline__role {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 2px;
}

.timeline__role[data-role="report"] {
  border-color: var(--accent-warn);
  color: var(--accent-warn);
}

.timeline__role[data-role="recorded"] {
  border-color: var(--accent);
  color: var(--accent);
}

.timeline__title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.timeline__summary {
  margin: 0 0 0.75rem;
  color: var(--ink-dim);
  max-width: 40rem;
}

.timeline__toggle {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.timeline__toggle:hover,
.timeline__toggle:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.timeline__plan {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-warn);
}

.timeline__plan-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.timeline__plan-row:last-child {
  border-bottom: 0;
}

.timeline__plan-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-warn);
  padding-top: 0.15rem;
}

.timeline__plan-text {
  color: var(--ink);
}

@media (max-width: 520px) {
  .timeline__plan-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}

.sources {
  min-height: 4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
}

.source {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.source__title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.source__link {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  word-break: break-all;
}

.source__fallback {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin: 0.25rem 0;
}

.source__note {
  margin: 0.35rem 0 0;
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* —— Verdict —— */
.section--verdict .verdict__line {
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 44rem;
  margin: 0 0 1.1rem;
}

.verdict__line:last-child {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.35);
}

/* —— Footer —— */
.site-footer {
  padding: calc(var(--pad) * 1.25) var(--pad) var(--pad);
  max-width: var(--max);
  margin: 0 auto;
}

.site-footer__echo {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.site-footer__meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  margin: 0;
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.1rem;
  }
}

/* dossier frame accents */
.hero::after {
  content: "";
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
}

.section__head {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--line);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* —— suspense / sci-fi motion —— */
.fx-on .hero__kicker::after {
  content: "▌";
  margin-left: 0.35rem;
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.will-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease;
  filter: blur(2px);
}

.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

.timeline__item[data-role="report"].is-revealed {
  animation: phosphor-pulse 3.2s ease-in-out infinite;
}

@keyframes phosphor-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 255, 65, 0); }
  50% { box-shadow: 0 0 22px rgba(0, 255, 65, 0.18); }
}

.fx-on .hero__title {
  animation: flicker-in 0.9s ease-out both;
}

@keyframes flicker-in {
  0% { opacity: 0; text-shadow: 0 0 0 transparent; }
  20% { opacity: 0.4; }
  35% { opacity: 0.85; text-shadow: 0 0 18px rgba(0, 255, 65, 0.55); }
  45% { opacity: 0.35; }
  100% { opacity: 1; text-shadow: 0 0 12px rgba(0, 255, 65, 0.35); }
}

/* subtle CRT scanline veil — static, not rain */
body.fx-on::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 40, 10, 0.12) 2px 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .fx-on .hero__kicker::after,
  .timeline__item[data-role="report"].is-revealed,
  .fx-on .hero__title {
    animation: none;
  }
}
/* plan details expand — suspense drawer */
.timeline__plan {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-top-width: 0;
  transform: translateY(-6px);
  transition:
    max-height 0.32s ease,
    opacity 0.28s ease,
    transform 0.28s ease,
    padding 0.28s ease,
    margin 0.28s ease,
    border-width 0.28s ease;
}

.timeline__plan.is-open {
  max-height: 28rem;
  opacity: 1;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  margin-top: 0.75rem;
  border-top-width: 3px;
  transform: translateY(0);
}

.timeline__toggle:active {
  transform: scale(0.97);
}

.timeline__toggle {
  transition: border-color 0.15s, color 0.15s, transform 0.12s, background 0.15s;
}

.timeline__toggle:hover {
  background: rgba(0, 255, 65, 0.08);
}

.timeline__plan.is-open {
  box-shadow: inset 0 0 24px rgba(0, 255, 65, 0.06);
}
/* terminal case reveal */
.case.is-locked {
  display: none;
}

.is-queued {
  opacity: 0 !important;
  transform: none;
  filter: none;
}

.is-typing {
  border-right: 1px solid var(--accent);
  caret-color: transparent;
}

.timeline__item.is-typing,
.source.is-typing {
  border-right: 0;
  min-height: 1rem;
}

.source .is-typing,
.timeline__plan-text.is-typing {
  border-right: 1px solid var(--accent);
  display: inline;
  padding-right: 2px;
  animation: blink 0.8s steps(1) infinite;
}

.footer-locked {
  display: none;
}
button.hero__cta {
  font-family: var(--mono);
  cursor: pointer;
  appearance: none;
}