/* ───────────────────────────────────────────────────────────────────────
   D-Recall — "2am, Solved"
   Dark charcoal, dark amber, the actual product shown, not abstracted.
   ─────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300..600&family=Manrope:wght@400..700&family=IBM+Plex+Mono:wght@400..500&display=swap');

:root {
  --night: #1b1917;
  --night-deep: #121110;
  --panel: #252220;
  --amber: #b5702c;
  --amber-soft: #c98545;
  --amber-glow: #dc9a58;
  --moon: #948e84;
  --white: #f0ece4;
  --dim: #8a8580;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--white);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#content { position: relative; z-index: 10; width: 100%; }

/* lighter, different reveal language than a blur-heavy choreography: a quick, simple rise */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 2.4rem;
}

/* ── nav ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 8vw;
  background: var(--night);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-logo { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--white); }
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 14px; color: var(--dim); text-decoration: none; transition: color 0.25s; }
.nav-links a:hover { color: var(--amber-soft); }

/* ── the whole page is one continuous console box, not stacked sections ── */
.console {
  width: calc(100% - 12vw); max-width: 1320px; margin: 9.5rem auto 6vh;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: var(--night-deep);
  overflow: hidden;
}
.console-section { border-top: 1px solid rgba(255,255,255,0.1); scroll-margin-top: 6.5rem; }
.console-section.hero-section { border-top: none; }
.section-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--dim);
  background: rgba(255,255,255,0.02);
}
.section-body { padding: 2.4rem; }
.console-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.4rem;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.02);
}
.console-bar-left { display: flex; align-items: center; gap: 0.5rem; color: var(--white); font-weight: 700; }
.console-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-glow); }
.console-bar-right { color: var(--dim); }

.console-body {
  display: grid; grid-template-columns: 1.1fr 1fr;
  align-items: start; gap: 2.4rem;
  padding: 3rem 2.4rem;
}

.headline {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.14;
  color: var(--white);
}
.headline .accent { color: var(--amber-soft); font-style: italic; }
.sub { margin-top: 1.2rem; font-size: 0.98rem; line-height: 1.7; color: #c2bcae; }

.cta-row { display: flex; gap: 1rem; margin-top: 1.8rem; flex-wrap: wrap; }
.btn {
  font-family: var(--sans); font-weight: 600; font-size: 14.5px;
  text-decoration: none; padding: 0.9rem 1.8rem; border-radius: 6px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-primary { color: var(--white); background: var(--amber); border: 1px solid var(--amber); }
.btn-primary:hover { background: var(--amber-soft); border-color: var(--amber-soft); }
.btn-secondary { color: var(--dim); background: transparent; border: 1px solid rgba(255,255,255,0.18); }
.btn-secondary:hover { color: var(--white); border-color: rgba(255,255,255,0.35); }

/* ── the annotation callout pinned to the live incident card ──────────── */
.console-callout { padding-top: 0.3rem; }
.callout-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--amber-soft); font-style: italic; margin-bottom: 1rem;
}

/* ── incident card — assembles itself on load ──────────────────────────── */
.incident-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 6px;
  overflow: hidden;
  padding-bottom: 0.4rem;
}
.incident-card-bar {
  padding: 0.9rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 11.5px; color: var(--dim);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.incident-id { color: var(--moon); }
.incident-status { text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-soft); }

/* staged reveal: each .step is hidden until the card's parent gets .in,
   then steps fade/rise in sequence to mimic the alert assembling live */
.step { opacity: 0; transform: translateY(6px); }
.console.in .step { animation: stepIn 0.5s ease forwards; }
.console.in .step-alert { animation-delay: 0.15s; }
.console.in .step-msg { animation-delay: 0.7s; }
.console.in .step-ctx { animation-delay: 1.4s; }
.console.in .step-callout { animation-delay: 1.9s; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

.step-alert {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 1.2rem;
  font-size: 13px; color: #d8d3c9; line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.alert-dot {
  flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
  background: #d9653f;
  animation: alertPulse 1.1s ease-in-out 3;
}
@keyframes alertPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.alert-text strong { color: var(--white); }
.alert-text code {
  font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,0.06);
  padding: 0.1rem 0.35rem; border-radius: 4px; color: var(--amber-soft);
}

.step-msg { display: flex; gap: 0.8rem; padding: 1.1rem 1.2rem 0.3rem; }
.msg-avatar {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 6px;
  background: var(--amber);
  color: var(--white); font-family: var(--serif); font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.msg-top { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.3rem; }
.msg-name { font-weight: 700; font-size: 14px; color: var(--white); }
.msg-tag {
  font-size: 10px; font-family: var(--mono); color: var(--dim);
  background: rgba(255,255,255,0.08); padding: 0.1rem 0.4rem; border-radius: 4px;
}
.msg-time { font-size: 11.5px; color: var(--dim); }
.msg-text { font-size: 12.5px; color: var(--dim); }

.step-ctx {
  margin: 0.9rem 1.2rem 1rem; padding: 0.8rem 1rem;
  background: rgba(181,112,44,0.1);
  border-left: 2px solid var(--amber);
  border-radius: 0 10px 10px 0;
}
.ctx-label { font-family: var(--mono); font-size: 11px; color: var(--amber-soft); margin-bottom: 0.3rem; }
.ctx-fix { font-size: 13px; line-height: 1.55; color: #ccc6b9; }
.ctx-fix code { font-family: var(--mono); font-size: 12px; color: var(--amber-soft); }

.panel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-glow); }

/* ── flow section — vertical list, not a card grid ─────────────────────── */
.flow-list { display: flex; flex-direction: column; }
.flow-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.6rem;
  padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,0.08);
}
.flow-row:first-child { border-top: none; }
.flow-index { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--moon); }
.flow-row.is-alert .flow-index { color: var(--amber-glow); }
.flow-copy h3 { font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.flow-copy p { font-size: 0.96rem; line-height: 1.7; color: #aca79b; max-width: 640px; }

/* ── trust — plain list, no boxes ───────────────────────────────────────── */
.trust-list { display: flex; flex-direction: column; }
.trust-row { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.08); }
.trust-row:first-child { border-top: none; }
.trust-row h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 0.4rem; }
.trust-row p { font-size: 0.94rem; line-height: 1.65; color: #a8a296; max-width: 640px; }

/* ── ask — plain centered close, no big bordered box ────────────────────── */
.ask { text-align: center; }
.ask .section-bar { justify-content: center; }
.ask h2 { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; color: var(--white); margin-bottom: 1.2rem; }
.ask p { color: #a8a296; max-width: 480px; margin: 0 auto 2rem; line-height: 1.75; }
.ask-list {
  font-family: var(--mono); font-size: 12px; color: var(--dim);
  margin-bottom: 2.2rem;
}
.ask-list span:nth-child(odd) { color: var(--amber-soft); }
.ask-list span:nth-child(even) { margin: 0 0.5rem; opacity: 0.4; }

/* ── legal / privacy page — plain paragraphs inside the same console frame ── */
.legal-body p { font-size: 0.96rem; line-height: 1.75; color: #c2bcae; max-width: 680px; }
.legal-body p + p { margin-top: 1rem; }
.legal-body a { color: var(--amber-soft); }
.legal-note { font-style: italic; color: var(--dim); font-size: 0.88rem; }

/* ── footer ──────────────────────────────────────────────────────────── */
footer { padding: 3rem 8vw 4rem; text-align: center; font-size: 13px; color: var(--dim); }
footer a { color: var(--amber-soft); text-decoration: none; }
footer a:hover { color: var(--amber-glow); }

@media (max-width: 900px) {
  .console { margin-top: 7rem; }
  .console-body { grid-template-columns: 1fr; padding: 2rem 1.4rem; gap: 2rem; }
  .section-body { padding: 1.6rem; }
}
@media (max-width: 640px) {
  nav { padding: 1.2rem 6vw; }
  .nav-links { display: none; }
  .flow-row { grid-template-columns: 40px 1fr; }
  .console-bar { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .step { opacity: 1; transform: none; }
  .console.in .step { animation: none; }
  .alert-dot { animation: none; }
  html { scroll-behavior: auto; }
}
