:root {
  --bg: #0b0c0e;
  --panel: #131519;
  --line: #24272e;
  --text: #e8e9ec;
  --muted: #8b909a;
  --red: #ff4b3e;
  --red-dim: rgba(255, 75, 62, 0.12);
  --green: #3ddc97;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
em { color: var(--red); font-style: normal; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6vh 6vw;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(255, 75, 62, 0.10), transparent 55%),
    var(--bg);
}
.hero-inner { max-width: 1100px; }
.kicker { color: var(--red); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); margin-bottom: 0.2em; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--muted); margin: 0 0 2.5rem; }
.summary {
  font-size: clamp(1.25rem, 2.6vw, 2rem);
  line-height: 1.45;
  min-height: 6em;
  max-width: 34em;
  margin: 0 0 2.5rem;
}
.summary b { color: var(--red); font-weight: 600; }
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--red);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}
.scroll-cue:hover { color: var(--text); }

/* ---------- Dossier ---------- */
section { padding: 12vh 6vw; max-width: 1300px; margin: 0 auto; }
.dossier-head { margin-bottom: 2.5rem; }
.dossier-head p { font-size: 0.85rem; margin: 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem 1.2rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.card.in { opacity: 1; transform: none; }
.card h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1rem;
}
.row {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}
.row:first-of-type { border-top: 0; }
.row .k { color: var(--muted); }
.row .v { font-family: var(--mono); font-size: 0.86rem; word-break: break-word; }
.row .v.hot { color: var(--red); }
.row .note { grid-column: 2; color: var(--muted); font-size: 0.78rem; margin-top: -0.2rem; font-family: var(--sans); }
.fingerprint {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--red);
  background: var(--red-dim);
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  word-break: break-all;
  margin: 0.4rem 0 0.8rem;
}
.card p.explain { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Live ---------- */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.stat {
  border-left: 2px solid var(--red);
  padding: 0.2rem 0 0.2rem 1rem;
}
.stat-num { display: block; font-size: 1.8rem; color: var(--text); }
.stat-label { color: var(--muted); font-size: 0.85rem; }

/* ---------- Turn ---------- */
.turn { border-top: 1px solid var(--line); }
.turn > p { max-width: 42em; color: #c9ccd2; }
.turn-small { color: var(--red); font-size: 0.9rem; }
.threats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.threat { border-top: 1px solid var(--red); padding-top: 1rem; }
.threat h3 { font-size: 1.1rem; }
.threat p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  max-width: 820px;
}
.cta p { color: #c9ccd2; }
.button {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 75, 62, 0.35); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 3rem 6vw 4rem;
  max-width: 1300px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #b4b8c0;
}
footer p { max-width: 60em; }

/* Ad-blocker bait must look like a real element to blockers. */
#bait { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0.1rem; }
  .row .note { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .cursor { animation: none; }
}


#cta-note { margin-top: 1.2rem; }
#cta-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
#cta-note a:hover { color: var(--red); }

/* ---------- Attack demo ---------- */
.attack { padding-top: 4vh; padding-bottom: 8vh; }
.attack .kicker { margin-bottom: 1rem; }
.term {
  background: #070809;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(255, 75, 62, 0.06);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.9rem;
  background: #0f1114;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d33; }
.live-tag { margin-left: auto; color: var(--red); letter-spacing: 0.1em; display: flex; align-items: center; gap: 6px; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.term-body {
  height: 21em;
  padding: 0.7rem 0.9rem;
  font-size: 0.72rem;
  line-height: 1.55;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ln {
  display: grid;
  grid-template-columns: 7.6em 7.8em 9.8em minmax(10em, 15em) 2.6em 1fr;
  gap: 0.9em;
  white-space: nowrap;
  color: #6f7580;
  flex: none;
}
.ln span { overflow: hidden; text-overflow: ellipsis; }
.ln .c { color: #b9bdc5; }
.ln.blk .c, .ln.blk .r { color: #e3a440; }
.ln.win { background: var(--red-dim); color: var(--text); animation: hit 0.9s ease-out; }
.ln.win .c, .ln.win .r { color: var(--red); font-weight: 600; }
@keyframes hit { 0% { background: rgba(255, 75, 62, 0.55); } 100% { background: var(--red-dim); } }
.ln.note { display: block; color: #d8dbe0; font-style: italic; }
.ln.note b { color: var(--red); font-style: normal; font-weight: 600; }
.term-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}
.term-stats b { color: var(--text); font-weight: 500; }
.term-stats .won, .term-stats .won b { color: var(--red); }
.attack-note { max-width: 46em; margin-top: 1.1rem; }

@media (max-width: 720px) {
  .term-body { font-size: 0.62rem; height: 20em; padding: 0.6rem 0.7rem; }
  .ln { grid-template-columns: 7.8em 8.6em 1fr 2.4em; gap: 0.6em; }
  .term-bar .dots { display: none; }
  .term-bar { font-size: 0.66rem; }
  .ln .m, .ln .r { display: none; }
}
