/* SB Game Hacker Simulator: terminal look, matches the app (phosphor green on near-black). */

@font-face {
  font-family: "Arcade";
  src: url("/assets/fonts/arcade.woff2") format("woff2"), url("/assets/fonts/arcade.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #040704;
  --bg-raise: #091109;
  --bg-term: rgba(6, 14, 6, 0.86);
  --neon: #4dff3a;
  --neon-soft: #8dff7f;
  --neon-dim: #2c9a22;
  --text: #cdf3c6;
  --text-dim: #7fa678;
  --text-faint: #4f6e4a;
  --amber: #ffb000;
  --red: #ff4646;
  --line: rgba(77, 255, 58, 0.2);
  --line-strong: rgba(77, 255, 58, 0.45);
  --glow: 0 0 6px rgba(77, 255, 58, 0.55), 0 0 22px rgba(77, 255, 58, 0.25);
  --font-pixel: "Arcade", "JetBrains Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: 16px;
  --wrap: 1160px;
  --radius: 6px;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* CRT layers: rain canvas, scrim, scanlines + vignette. None of them take touches. */
.rain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.22;
  pointer-events: none;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(77, 255, 58, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(4, 7, 4, 0.2) 0%, rgba(4, 7, 4, 0.75) 70%, rgba(4, 7, 4, 0.92) 100%);
}
.crt {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.18) 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

.page {
  position: relative;
  z-index: 1;
}

a {
  color: var(--neon);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--neon);
}
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--neon);
  color: #000;
  padding: 8px 12px;
}
.skip:focus {
  left: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(4, 7, 4, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--neon);
  min-width: 0;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-name strong {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-shadow: var(--glow);
  white-space: nowrap;
}
.brand-name span {
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.nav a:not(.btn):hover {
  color: var(--neon);
}
.nav a:not(.btn)::before {
  content: "./";
  color: var(--text-faint);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-pixel);
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 15px 22px 13px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn-play {
  background: var(--neon);
  color: #021402;
  box-shadow: 0 0 0 1px var(--neon), 0 0 26px rgba(77, 255, 58, 0.35);
}
.btn-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px var(--neon), 0 0 40px rgba(77, 255, 58, 0.55);
}
.btn-play svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-ghost {
  color: var(--neon);
  border: 1px solid var(--line-strong);
  background: rgba(77, 255, 58, 0.04);
}
.btn-ghost:hover {
  background: rgba(77, 255, 58, 0.1);
  border-color: var(--neon);
}
.btn-sm {
  font-size: 13px;
  padding: 10px 14px 8px;
}

/* ---------- Terminal window ---------- */
.term {
  background: var(--bg-term);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 18px 60px rgba(0, 0, 0, 0.55), inset 0 0 40px rgba(77, 255, 58, 0.04);
  overflow: hidden;
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(77, 255, 58, 0.04);
  font-size: 12px;
  color: var(--text-dim);
}
.term-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.85;
}
.term-bar i:nth-child(2) {
  background: var(--amber);
}
.term-bar i:nth-child(3) {
  background: var(--neon);
}
.term-bar b {
  font-weight: 400;
  margin-left: 6px;
}
.term-body {
  padding: 18px 18px 20px;
}

.prompt {
  color: var(--text-dim);
  font-size: 14px;
}
.prompt b {
  color: var(--neon);
  font-weight: 400;
}
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  vertical-align: -0.15em;
  background: var(--neon);
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 14px 0 18px;
  font-weight: 400;
}
.h1-kicker {
  display: block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.h1-big {
  display: block;
  font-family: var(--font-pixel);
  font-size: clamp(40px, 5.1vw, 66px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--neon);
  text-transform: uppercase;
  text-shadow: var(--glow);
}
.h1-big em {
  font-style: normal;
  color: var(--text-dim);
  text-shadow: none;
  font-size: 0.42em;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 10px;
}
.lead {
  font-size: 17px;
  max-width: 34em;
  color: var(--text);
  margin: 0 0 28px;
}
.lead strong {
  color: var(--neon);
  font-weight: 700;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.facts li::before {
  content: "[ok] ";
  color: var(--neon);
}

/* Hero visual: phone + live breach window */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 70px;
}
.phone {
  position: relative;
  width: min(300px, 74vw);
  aspect-ratio: 1080 / 2424;
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #1b2a1a, #070b07 55%, #142013);
  box-shadow: 0 0 0 1px rgba(77, 255, 58, 0.25), 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(77, 255, 58, 0.12);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}
.hero .phone {
  transform: rotate(2.5deg);
}
.breach {
  position: absolute;
  left: -6%;
  bottom: 0;
  width: min(330px, 86vw);
  font-size: 12px;
}
.breach .term-body {
  padding: 14px 14px 16px;
}
.breach-target {
  font-family: var(--font-pixel);
  font-size: 15px;
  color: var(--neon);
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}
.meter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-top: 8px;
}
.meter-row span:last-child {
  color: var(--neon);
}
.meter-row.danger span {
  color: var(--red);
}
.bar {
  grid-column: 1 / -1;
  height: 5px;
  margin-top: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
  transition: width 0.25s linear;
}
.danger .bar i {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}
/* Starting state before the demo script takes over (or when it doesn't run). */
[data-prog-bar] {
  width: 48%;
}
[data-det-bar] {
  width: 39%;
}
.breach-log {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  min-height: 3.4em;
  color: var(--text-dim);
}
.breach-log li::before {
  content: "> ";
  color: var(--neon-dim);
}
.breach-log .ok {
  color: var(--neon);
}
.breach-log .note {
  color: var(--amber);
}

/* ---------- Ticker strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(77, 255, 58, 0.035);
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  color: var(--text-dim);
}
.strip-track {
  display: inline-flex;
  gap: 48px;
  padding: 12px 0;
  animation: ticker 38s linear infinite;
}
.strip-track span::before {
  content: "// ";
  color: var(--neon);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 96px 0 24px;
}
.section-head {
  max-width: 46em;
  margin-bottom: 40px;
}
.section-head .prompt {
  display: block;
  margin-bottom: 8px;
}
.section h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: var(--glow);
  margin: 0 0 14px;
}
.section-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step .phone {
  width: 100%;
  border-radius: 26px;
  padding: 7px;
}
.step .phone img {
  border-radius: 20px;
}
.step-num {
  font-family: var(--font-pixel);
  color: var(--text-faint);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.step code {
  display: block;
  font-family: var(--font-mono);
  color: var(--neon);
  font-size: 13px;
  margin: 2px 0 6px;
}
.step h3 {
  margin: 0 0 6px;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
.step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* Is / isn't */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15px;
}
.checklist li {
  display: grid;
  grid-template-columns: 2.6em 1fr;
}
.checklist li::before {
  content: "[+]";
  color: var(--neon);
}
.checklist.no li::before {
  content: "[-]";
  color: var(--red);
}
.checklist.no li {
  color: var(--text-dim);
}
.term-foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

/* Ranks */
.rank-term .term-body {
  padding: 24px;
}
.meter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 4px 0 26px;
}
.meter i {
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}
.meter i:nth-child(1) {
  background: var(--text-dim);
}
.meter i:nth-child(2) {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.5);
}
.meter i:nth-child(3) {
  background: var(--neon);
  box-shadow: 0 0 10px rgba(77, 255, 58, 0.6);
}
.ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ranks h3 {
  margin: 0 0 6px;
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.05em;
}
.ranks .lvl {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.ranks p {
  margin: 6px 0 0;
  color: var(--text-dim);
  font-size: 14px;
}
.rank-noob h3 {
  color: var(--text-dim);
}
.rank-pro h3 {
  color: var(--amber);
  text-shadow: 0 0 12px rgba(255, 176, 0, 0.45);
}
.rank-elite h3 {
  color: var(--neon);
  text-shadow: var(--glow);
}

/* FAQ */
.faq {
  max-width: 820px;
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-term);
}
.faq details[open] {
  border-color: var(--line-strong);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--text);
  display: grid;
  grid-template-columns: 1.6em 1fr;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::before {
  content: ">";
  color: var(--neon);
  transition: transform 0.15s ease;
}
.faq details[open] summary::before {
  transform: rotate(90deg);
}
.faq details p {
  margin: 0;
  padding: 0 18px 18px calc(18px + 1.6em);
  color: var(--text-dim);
}

/* Guide cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-term);
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.card a:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
}
.card-file {
  font-size: 12px;
  color: var(--text-faint);
}
.card-file::before {
  content: "> ";
  color: var(--neon-dim);
}
.card strong {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--neon);
}

/* Breadcrumbs */
.crumbs {
  font-size: 13px;
  color: var(--text-faint);
  margin: 0 0 6px;
}
.crumbs a {
  color: var(--text-dim);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--neon);
}
.crumbs span[aria-hidden] {
  margin: 0 6px;
  color: var(--neon-dim);
}

/* Article blocks (guides) */
.doc .answer {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--neon);
  border-radius: var(--radius);
  background: rgba(77, 255, 58, 0.05);
  padding: 14px 18px;
  margin: 18px 0 8px;
}
.doc .answer p {
  margin: 0;
}
.doc .answer strong {
  color: var(--neon);
}
.doc .figure {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  margin: 22px 0;
}
.doc .figure .phone {
  width: 100%;
  border-radius: 22px;
  padding: 6px;
}
.doc .figure .phone img {
  border-radius: 17px;
}
.doc .figure figcaption {
  color: var(--text-dim);
  font-size: 14px;
}
.doc .cta-box {
  margin: 34px 0 6px;
  padding: 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.doc .cta-box p {
  color: var(--text-dim);
  margin: 0 0 16px;
}
.doc ol.howto {
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.doc ol.howto > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-bottom: 16px;
}
.doc ol.howto > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-pixel);
  color: var(--neon);
  font-size: 17px;
}
.doc .related {
  margin-top: 30px;
  font-size: 14px;
  color: var(--text-dim);
}

/* Final call */
.final {
  padding: 110px 0 100px;
  text-align: center;
}
.final h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(32px, 5.6vw, 66px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: var(--glow);
  margin: 12px auto 18px;
  max-width: 14em;
}
.final p {
  color: var(--text-dim);
  margin: 0 auto 30px;
  max-width: 36em;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 6, 3, 0.92);
  padding: 44px 0 36px;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h4 {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.site-footer a {
  color: var(--text);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--neon);
}
.footer-note {
  margin: 12px 0 0;
  max-width: 34em;
}
.legal-line {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- Document pages (privacy, terms) ---------- */
.doc {
  padding: 48px 0 80px;
}
.doc .term {
  max-width: 860px;
  margin: 0 auto;
}
.doc .term-body {
  padding: 28px 30px 36px;
}
.doc h1 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: var(--glow);
  margin: 10px 0 8px;
}
.doc .updated {
  color: var(--text-faint);
  font-size: 13px;
  margin: 0 0 26px;
}
.doc h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--neon);
  margin: 36px 0 10px;
}
.doc h2::before {
  content: "## ";
  color: var(--text-faint);
}
.doc h3 {
  font-size: 15px;
  color: var(--text);
  margin: 22px 0 6px;
}
.doc p,
.doc li {
  color: var(--text);
  font-size: 15px;
}
.doc ul {
  padding-left: 1.3em;
}
.doc li {
  margin-bottom: 6px;
}
.doc li::marker {
  color: var(--neon-dim);
}
.doc .toc {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
}
.doc .toc ol {
  margin: 6px 0 0;
  padding-left: 1.4em;
  columns: 2;
  column-gap: 30px;
}
.doc .toc li {
  margin-bottom: 2px;
  font-size: 14px;
}
.table-scroll {
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 560px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--text-dim);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(77, 255, 58, 0.04);
}
.doc tr:last-child td {
  border-bottom: 0;
}

/* 404 */
.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}
.notfound h1 {
  font-family: var(--font-pixel);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 84px);
  color: var(--red);
  text-shadow: 0 0 14px rgba(255, 70, 70, 0.45);
  margin: 10px 0;
  line-height: 1;
}
.notfound p {
  color: var(--text-dim);
  margin: 0 0 26px;
}

/* ---------- Entrance ---------- */
.reveal {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.reveal.d1 {
  animation-delay: 0.08s;
}
.reveal.d2 {
  animation-delay: 0.18s;
}
.reveal.d3 {
  animation-delay: 0.3s;
}
.reveal.d4 {
  animation-delay: 0.45s;
}
/* Content stays readable even if the animation never runs (background tabs, crawlers). */
@keyframes rise {
  from {
    transform: translateY(14px);
    filter: blur(2px) brightness(1.6);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .h1-big {
    font-size: clamp(40px, 8.4vw, 66px);
  }
  .hero-visual {
    padding-bottom: 90px;
  }
  .breach {
    left: 50%;
    transform: translateX(-62%);
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 22px;
  }
  .ranks {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav a:not(.btn) {
    display: none;
  }
  .hero {
    padding-top: 34px;
  }
  .lead {
    font-size: 16px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .btn {
    white-space: normal;
    text-align: center;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding-left: 14px;
    padding-right: 14px;
  }
  .btn-play svg {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .section {
    padding-top: 72px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .step {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: start;
  }
  .step .phone {
    border-radius: 18px;
    padding: 5px;
  }
  .step .phone img {
    border-radius: 14px;
  }
  .breach {
    transform: translateX(-56%);
  }
  .doc .term-body {
    padding: 22px 18px 28px;
  }
  .doc .toc ol {
    columns: 1;
  }
  .doc .figure {
    grid-template-columns: 110px 1fr;
    gap: 16px;
  }
}

@media (max-width: 520px) {
  /* The hero's own Play button sits right below; keep the header to the brand. */
  .nav .btn {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand-name strong {
    font-size: 14px;
  }
  .brand-name span {
    letter-spacing: 0.2em;
  }
  .btn-sm {
    font-size: 12px;
    padding: 9px 10px 7px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cursor,
  .strip-track,
  .reveal {
    animation: none;
  }
  .bar i {
    transition: none;
  }
}
