/* =========================================================
   Landing page — "top secret mission"
   Builds on the tokens and components in style.css.
   ========================================================= */

.landing { min-height: 100svh; display: flex; flex-direction: column; }
.landing main { flex: 1; }

/* faint blueprint grid behind everything */
.landing::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(color-mix(in oklch, var(--text), transparent 94%) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklch, var(--text), transparent 94%) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}

.peek { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 10px; align-self: center; }
.peek:hover { color: var(--text); background: var(--surface-2); }
.peek span { display: inline-block; transition: translate .2s var(--ease); }
.peek:hover span { translate: 4px 0; }
@media (max-width: 480px) { .peek { font-size: .82rem; padding: 6px 8px; } }

/* ---------- hero ---------- */
.mission {
  position: relative; isolation: isolate;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
@media (max-width: 920px) { .mission { grid-template-columns: 1fr; } }

.mission-copy { position: relative; }
.mission h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); letter-spacing: -0.04em; margin: 18px 0 16px; }
.mission .lede { margin-inline: 0; max-width: 560px; }

/* radar sweep */
.radar {
  position: absolute; z-index: -1; top: 50%; left: 38%; translate: -50% -50%;
  width: min(760px, 120vw); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background:
    repeating-radial-gradient(circle, transparent 0 59px, color-mix(in oklch, var(--accent-2), transparent 85%) 60px 61px),
    conic-gradient(from var(--angle), color-mix(in oklch, var(--accent-2), transparent 70%), transparent 22%);
  mask-image: radial-gradient(circle, #000 35%, transparent 70%);
  animation: spin 6s linear infinite;
  opacity: .7;
}
.blip { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); opacity: 0; animation: blip 6s infinite; }
.b1 { top: 30%; left: 62%; animation-delay: .8s; }
.b2 { top: 64%; left: 30%; animation-delay: 3.1s; }
.b3 { top: 42%; left: 22%; animation-delay: 4.6s; }
@keyframes blip { 0%, 100% { opacity: 0; scale: .5; } 4% { opacity: 1; scale: 1.4; } 30% { opacity: 0; scale: 1; } }

/* rubber stamp */
.stamp {
  position: absolute; top: -14px; right: 0; rotate: 12deg;
  padding: 6px 14px; border: 3px solid var(--bad); border-radius: 8px;
  color: var(--bad); background: transparent; cursor: pointer;
  font: 800 1rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  opacity: .85; mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgb(0 0 0 / .65));
  animation: stamp-in .5s .4s cubic-bezier(.3, 1.6, .5, 1) both;
}
.stamp:hover { opacity: 1; }
.stamp.denied { animation: shake .45s; }
@keyframes stamp-in { from { scale: 3; opacity: 0; } }
@keyframes shake { 20%, 60% { translate: -6px 0; } 40%, 80% { translate: 6px 0; } }
@media (max-width: 920px) { .stamp { top: -30px; } }

/* redacted text */
/* The real text is underneath; a black marker bar covers it until hover/focus/tap. */
.redact {
  position: relative; display: inline; padding: 0 .15em; border-radius: 3px;
  color: transparent; cursor: help; font-weight: 600;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(var(--text), var(--text)) no-repeat 0 0 / 100% 100%;
  transition: background-size .45s var(--ease), color .3s;
}
.redact:hover, .redact:focus-visible, .redact.revealed {
  color: var(--accent); background-size: 0% 100%; background-position: 100% 0;
}
.redact::selection { color: transparent; }

/* ---------- hero call to action ---------- */
.hero-cta { justify-content: flex-start; margin: 28px 0 12px; }
.cta-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- interview terminal ---------- */
.terminal {
  margin: 0; border-radius: 18px; overflow: hidden;
  background: #0d0f1a; color: #d7dbef; border: 1px solid #262a3d;
  box-shadow: 0 30px 80px rgb(10 12 30 / .35), 0 0 0 1px rgb(255 255 255 / .03) inset;
  font-family: var(--mono); font-size: .88rem;
  rotate: 1.2deg; transition: rotate .4s var(--ease);
}
.terminal:hover { rotate: 0deg; }
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #151829; border-bottom: 1px solid #262a3d; }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.term-title { color: #8a90ad; font-size: .8rem; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; color: #ff6b6b; }
.live .dot { background: #ff6b6b; }
.term-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; font-size: .75rem; color: #8a90ad; border-bottom: 1px dashed #262a3d; }
.term-meta b { color: #d7dbef; font-weight: 600; }
.transcript {
  list-style: none; margin: 0; padding: 16px; height: 330px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #2a2f45 transparent;
}
.transcript li { display: grid; gap: 2px; animation: line-in .3s var(--ease) both; }
@keyframes line-in { from { opacity: 0; translate: 0 6px; } }
.transcript .who { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.transcript .q .who { color: #7dd3fc; }
.transcript .a .who { color: #c4b5fd; }
.transcript .sys { color: #6b7194; font-style: italic; font-size: .8rem; }
.transcript .say { white-space: pre-wrap; line-height: 1.5; }
.transcript .a .say { color: #f1f2fa; }
.caret::after { content: "▍"; color: #c4b5fd; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.thinking { display: inline-flex; gap: 4px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: #c4b5fd; animation: bounce 1s infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; }
.thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { translate: 0 0; opacity: .4; } 30% { translate: 0 -5px; opacity: 1; } }
.term-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid #262a3d; background: #111426; font-size: .78rem; }
.verdict b { color: #febc2e; letter-spacing: .08em; }
.verdict.flash b { animation: flash .6s 3; }
@keyframes flash { 50% { color: #ff6b6b; } }
.term-foot .muted { color: #6b7194; }

/* ---------- intel cards ---------- */
.intel {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: 0 var(--gutter) clamp(56px, 8vw, 96px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 920px) { .intel { grid-template-columns: 1fr; } }
.intel-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tiny { font-size: .82rem; }

.progress-big { position: relative; height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 18px 0 12px; border: 1px solid var(--border); }
.progress-big .fill {
  position: absolute; inset: 0 auto 0 0; width: 97%; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 12px, color-mix(in oklch, var(--accent), var(--accent-2)) 12px 24px);
  background-size: 34px 100%; animation: stripes 1s linear infinite;
  transition: width .8s var(--ease);
}
@keyframes stripes { to { background-position: 34px 0; } }
.progress-row { display: flex; gap: 10px; align-items: baseline; margin: 0 0 8px; }
.progress-row b { font-size: 1.8rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.mission-log { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.mission-log li { display: flex; gap: 10px; align-items: baseline; font-size: .95rem; }
.mission-log li::before { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; translate: 0 3px; }
.mission-log .done::before { content: "✓"; background: var(--good); color: #fff; }
.mission-log .wip::before { content: ""; border: 2px solid var(--warn); border-top-color: transparent; animation: spin-r 1s linear infinite; width: 16px; height: 16px; }
.mission-log .todo { color: var(--muted); }
.mission-log .todo::before { content: ""; border: 2px dashed var(--border); width: 16px; height: 16px; }
.mission-log .wip .muted { font-size: .8rem; }
@keyframes spin-r { to { rotate: 360deg; } }

.dossier dl { margin: 12px 0 0; display: grid; gap: 10px; }
.dossier dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.dossier dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.dossier dt { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dossier dd { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .radar, .blip { animation: none; }
  .terminal { rotate: 0deg; }
}
