/* MintGuardian — marketing site
   Terminal aesthetic, matched to the mobile app. */

:root {
  --bg-0: #07090b;
  --bg-1: #0a0c0e;
  --bg-2: #0e1217;
  --card: #11161d;
  --card-2: #161b22;

  --line-soft: rgba(255,255,255,0.05);
  --line:      rgba(255,255,255,0.09);
  --line-hi:   rgba(255,255,255,0.16);

  --t-1: #e6edf3;
  --t-2: #a8b2bd;
  --t-3: #6e7681;
  --t-4: #4a525c;
  --t-5: #2f353d;

  --accent: #00ff88;
  --accent-dim: #00cc6a;

  --safe: #00ff88;
  --risky: #ffb86c;
  --danger: #ff5d5d;

  --evm: #6a8bff;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --maxw: 1140px;
  --pad: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--t-1);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

/* Ambient page background */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 500px at 50% -8%, rgba(0,255,136,0.05), transparent 60%),
    radial-gradient(800px 600px at 90% 20%, rgba(106,139,255,0.03), transparent 60%);
}
/* faint scanlines */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.5;
  background: repeating-linear-gradient(
    0deg, transparent 0, transparent 2px,
    rgba(255,255,255,0.01) 2px, rgba(255,255,255,0.01) 3px);
  mix-blend-mode: screen;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ─── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,9,11,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--t-1); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 26px; height: 26px; display: block; }
.brand .name { font-size: 16px; letter-spacing: -0.01em; }
.brand .name .pr { color: var(--accent); margin-right: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--t-2); font-size: 13px; }
.nav-links a:hover { color: var(--t-1); text-decoration: none; }
.nav-cta {
  padding: 8px 14px; border: 1px solid var(--accent);
  border-radius: 8px; color: #001b0e !important; background: var(--accent);
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em;
}
.nav-cta:hover { background: var(--accent-dim); text-decoration: none !important; }
.nav-burger { display: none; background: none; border: none; color: var(--t-1); font-size: 20px; cursor: pointer; }

/* ─── Shared atoms ────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--t-3);
}
.eyebrow .br { color: var(--accent); }

.section { padding: 90px 0; position: relative; }
.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-dim); margin-bottom: 14px;
}
.section-label::before { content: '[ '; color: var(--t-4); }
.section-label::after  { content: ' ]'; color: var(--t-4); }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
h2.section-title { font-size: clamp(26px, 4vw, 38px); }
.section-title .pr { color: var(--accent); font-weight: 400; }

.lead { color: var(--t-2); font-size: 16px; line-height: 1.7; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 13px 20px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--t-1);
  transition: transform 80ms, border-color 140ms, background 140ms;
}
.btn:hover { border-color: var(--line-hi); text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #001b0e;
  font-weight: 700; letter-spacing: 0.03em;
  box-shadow: 0 6px 24px -8px rgba(0,255,136,0.6);
}
.btn-primary:hover { background: var(--accent-dim); border-color: var(--accent-dim); }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.08em; padding: 5px 10px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--t-2); background: rgba(255,255,255,0.02);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.chip.live { color: var(--accent); border-color: rgba(0,255,136,0.35); background: rgba(0,255,136,0.05); }
.chip.soon { color: var(--t-3); }

/* ─── Hero ────────────────────────────────────────────── */
.hero { padding: 70px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.status-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; letter-spacing: 0.1em; color: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.22); border-radius: 999px;
  padding: 6px 12px; background: rgba(0,255,136,0.04);
}
.status-line .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

.hero h1 {
  font-size: clamp(40px, 6.4vw, 66px); margin-top: 22px; line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero h1 .accent { color: var(--accent); text-shadow: 0 0 30px rgba(0,255,136,0.4); }
.hero .sub { margin-top: 20px; max-width: 30em; color: var(--t-2); font-size: 16px; line-height: 1.7; }
.hero-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: var(--t-3); }
.hero-meta b { color: var(--t-1); font-weight: 600; }

/* ─── Terminal demo ───────────────────────────────────── */
.terminal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8), 0 0 60px -30px rgba(0,255,136,0.3);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.015);
}
.terminal-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.terminal-bar .label { margin-left: 10px; font-size: 11.5px; color: var(--t-3); }
.terminal-bar .blk { margin-left: auto; font-size: 10.5px; color: var(--t-4); }
.terminal-body {
  padding: 18px; font-size: 13px; line-height: 1.85; min-height: 340px;
}
.tline { display: flex; gap: 9px; white-space: pre-wrap; word-break: break-all; }
.tline .pr { color: var(--accent); flex-shrink: 0; }
.tline.dim { color: var(--t-3); }
.tline .ok { color: var(--accent); }
.tline .cur {
  display: inline-block; width: 8px; height: 15px; background: var(--accent);
  vertical-align: middle; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.verdict-box {
  margin-top: 14px; border: 1px solid rgba(255,93,93,0.35); border-radius: 10px;
  background: rgba(255,93,93,0.05); padding: 16px;
  box-shadow: 0 0 30px -12px rgba(255,93,93,0.5);
}
.verdict-box .vhead { display: flex; align-items: center; justify-content: space-between; }
.verdict-box .vname { font-size: 30px; font-weight: 700; color: var(--danger); letter-spacing: -0.03em; }
.verdict-box .vname .br { color: var(--danger); opacity: 0.55; font-weight: 400; }
.verdict-box .vscore { text-align: right; }
.verdict-box .vscore .n { font-size: 26px; font-weight: 700; color: var(--danger); }
.verdict-box .vscore .d { font-size: 11px; color: var(--t-4); }
.verdict-box ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.verdict-box li { display: flex; gap: 9px; font-size: 12px; color: var(--t-2); }
.verdict-box li .x { color: var(--danger); flex-shrink: 0; }

/* ─── Problem ─────────────────────────────────────────── */
.section-title .dn { color: var(--danger); font-weight: 400; }

.problem-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; margin-top: 32px;
}

/* big loss counter panel */
.loss-panel {
  border: 1px solid rgba(255,93,93,0.28); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,93,93,0.07), transparent 65%), var(--card);
  padding: 30px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: 0 0 50px -24px rgba(255,93,93,0.5) inset;
}
.loss-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--danger); opacity: 0.85; }
.loss-figure {
  margin-top: 12px; font-size: clamp(48px, 9vw, 86px); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; color: var(--danger);
  text-shadow: 0 0 40px rgba(255,93,93,0.4); display: flex; align-items: baseline;
}
.loss-figure .cur-sym { font-size: 0.55em; margin-right: 2px; opacity: 0.8; }
.loss-bar { margin-top: 20px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.loss-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--danger), #ff8a5d);
  box-shadow: 0 0 12px rgba(255,93,93,0.6);
  transition: width 1800ms cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.in .loss-bar span, .loss-panel.run .loss-bar span { width: 86%; }
.loss-note { margin-top: 16px; font-size: 13px; color: var(--t-3); line-height: 1.6; max-width: 32ch; }

/* live rug log */
.rug-log {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg-2); display: flex; flex-direction: column;
}
.rug-log-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 15px;
  border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,0.015);
}
.rug-log-bar .d { width: 10px; height: 10px; border-radius: 50%; }
.rug-log-bar .label { margin-left: 10px; font-size: 11.5px; color: var(--t-3); }
.rug-log-bar .rec {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.14em; color: var(--danger);
}
.rug-log-bar .rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); animation: pulse 1.6s ease-in-out infinite; }
.rug-log-body {
  padding: 14px 16px; font-size: 12.5px; line-height: 1.5;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 230px; justify-content: flex-end;
}
.rug-line {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline;
  animation: rug-in 400ms ease backwards;
}
.rug-line .t { color: var(--t-5); font-size: 11px; }
.rug-line .tok { color: var(--t-1); }
.rug-line .tok .x { color: var(--danger); margin-right: 7px; }
.rug-line .amt { color: var(--danger); font-weight: 600; white-space: nowrap; }
@keyframes rug-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* readout strip */
.readout {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px;
}
.ro {
  border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px 22px; background: var(--card);
  display: flex; align-items: baseline; gap: 14px;
}
.ro-n { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.03em; color: var(--t-1); }
.ro-n.accent { color: var(--accent); }
.ro-l { font-size: 12.5px; color: var(--t-3); line-height: 1.5; }

/* ─── How it works · pipeline ─────────────────────────── */
.pipeline { margin-top: 32px; }
.pipe-cmd {
  font-size: 13.5px; color: var(--t-2); background: var(--bg-2);
  border: 1px solid var(--line-soft); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 40px;
  overflow-x: auto; white-space: nowrap;
}
.pipe-cmd::-webkit-scrollbar { height: 0; }
.pipe-cmd .pr { color: var(--accent); margin-right: 8px; }
.pipe-cmd .fl { color: var(--accent); }
.pipe-cmd .op { color: var(--risky); margin: 0 7px; }
.pipe-cmd .cur {
  display: inline-block; width: 8px; height: 14px; background: var(--accent);
  vertical-align: middle; margin-left: 4px; animation: blink 1s steps(2) infinite;
}

.pipe-track {
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative; gap: 0;
}
/* connector rail through the node centers */
.pipe-track::before {
  content: ''; position: absolute; top: 27px; left: 16.66%; right: 16.66%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-hi) 0 6px, transparent 6px 12px);
  opacity: 0.6;
}
/* flowing data packet */
.pipe-track::after {
  content: ''; position: absolute; top: 23px; left: 16.66%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 14px var(--accent);
  animation: flow 3.6s cubic-bezier(0.6,0,0.4,1) infinite;
}
@keyframes flow {
  0%   { left: 16.66%; opacity: 0; transform: scale(0.6); }
  8%   { opacity: 1; transform: scale(1); }
  92%  { opacity: 1; transform: scale(1); }
  100% { left: 83.33%; opacity: 0; transform: scale(0.6); }
}
@media (prefers-reduced-motion: reduce) { .pipe-track::after { animation: none; opacity: 0; } }

.pipe-stage {
  display: flex; flex-direction: column; align-items: center;
  padding: 0 18px; text-align: center; position: relative;
}
.pipe-node {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--bg-1); border: 1.5px solid var(--accent);
  color: var(--accent); font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: 0 0 0 7px var(--bg-0), 0 0 22px -4px rgba(0,255,136,0.55);
}
.pipe-stage h3 { font-size: 16px; color: var(--t-1); margin-top: 22px; }
.pipe-stage .cmd {
  margin-top: 8px; font-size: 12px; color: var(--accent-dim);
  letter-spacing: 0.06em;
}
.pipe-stage .cmd::before { content: '$ '; color: var(--t-4); }
.pipe-stage p { margin-top: 12px; font-size: 13px; color: var(--t-3); line-height: 1.65; max-width: 26ch; }

/* ─── Features · bento mosaic ─────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr; gap: 16px; margin-top: 30px;
  grid-template-areas:
    "watch watch privacy"
    "lang  plain privacy"
    "hist  share share";
}
.feature {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: 14px;
  padding: 24px 22px; background: var(--card);
  transition: border-color 160ms, transform 160ms;
}
.feature::after { /* hover scanline sweep */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,255,136,0.05) 50%, transparent);
  transform: translateY(-100%); transition: transform 600ms ease;
}
.feature:hover { border-color: var(--line-hi); transform: translateY(-2px); }
.feature:hover::after { transform: translateY(100%); }
.feature .ic {
  width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--accent); margin-bottom: 14px;
}
.feature h3 { font-size: 15px; color: var(--t-1); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.feature p { margin-top: 9px; font-size: 13px; color: var(--t-3); line-height: 1.6; }

.feature.f-watch   { grid-area: watch; }
.feature.f-privacy { grid-area: privacy; display: flex; flex-direction: column; }
.feature.f-lang    { grid-area: lang; }
.feature.f-plain   { grid-area: plain; }
.feature.f-hist    { grid-area: hist; }
.feature.f-share   { grid-area: share; }

/* big tiles get a touch more presence */
.feature.f-watch h3, .feature.f-privacy h3 { font-size: 17px; }
.feature.f-watch .ic, .feature.f-privacy .ic { width: 42px; height: 42px; }

/* mini push-alert sample inside the watchlist tile */
.mini-alert {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 9px;
  font-size: 11.5px; color: var(--t-2);
  border: 1px solid rgba(255,184,108,0.3); background: rgba(255,184,108,0.05);
  border-radius: 8px; padding: 8px 12px;
}
.mini-alert .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--risky); box-shadow: 0 0 8px var(--risky); }
.mini-alert b { color: var(--t-1); font-weight: 600; }

/* privacy tile no-keys list */
.f-privacy .keys { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.f-privacy .keys span { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--t-3); }
.f-privacy .keys .x {
  width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  border: 1px solid rgba(255,93,93,0.4); color: var(--danger);
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.f-privacy .shieldwrap {
  position: absolute; top: -20px; right: -20px; opacity: 0.06;
  color: var(--accent); pointer-events: none;
}

.tag-soon {
  font-size: 9px; letter-spacing: 0.12em; color: var(--risky);
  border: 1px solid rgba(255,184,108,0.4); border-radius: 3px; padding: 1px 5px;
}
.tag-live {
  font-size: 9px; letter-spacing: 0.12em; color: var(--accent);
  border: 1px solid rgba(0,255,136,0.4); border-radius: 3px; padding: 1px 5px;
}

/* ─── Chains ──────────────────────────────────────────── */
.chains { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chain {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border: 1px solid var(--line-soft); border-radius: 10px; background: var(--card);
  font-size: 13px; color: var(--t-1);
}
.chain .cdot { width: 9px; height: 9px; border-radius: 50%; }
.chain .st { margin-left: 6px; font-size: 10px; letter-spacing: 0.1em; }
.chain.is-live .st { color: var(--accent); }
.chain.is-soon { color: var(--t-3); }
.chain.is-soon .st { color: var(--t-4); }

/* ─── Privacy-first callout ───────────────────────────── */
.privacy-call {
  margin-top: 34px; border: 1px solid rgba(0,255,136,0.22); border-radius: 16px;
  background: linear-gradient(155deg, rgba(0,255,136,0.05), transparent 70%), var(--card);
  padding: 30px; display: flex; gap: 20px; align-items: flex-start;
}
.privacy-call .ic { color: var(--accent); flex-shrink: 0; }
.privacy-call h3 { font-size: 19px; }
.privacy-call p { margin-top: 10px; color: var(--t-2); font-size: 14px; max-width: 60ch; }
.privacy-call .row { margin-top: 14px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--t-3); }
.privacy-call .row span { display: inline-flex; gap: 6px; align-items: center; }
.privacy-call .row .x { color: var(--danger); }

/* ─── Early access ────────────────────────────────────── */
.signup {
  border: 1px solid var(--line); border-radius: 18px; padding: 44px 36px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(0,255,136,0.06), transparent 60%), var(--card);
  text-align: center;
}
.signup h2 { font-size: clamp(26px, 4vw, 36px); }
.signup .pr { color: var(--accent); }
.signup p { color: var(--t-2); margin-top: 12px; }
.signup form { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input {
  flex: 1; min-width: 240px; max-width: 360px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 10px;
  color: var(--t-1); font-family: var(--mono); font-size: 14px; padding: 14px 16px; outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.signup input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,255,136,0.1); }
.signup .price-note { margin-top: 18px; font-size: 12px; color: var(--t-3); }
.signup .price-note b { color: var(--t-1); }

/* ─── Footer ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer .brand { margin-bottom: 14px; }
.footer .tag { color: var(--t-3); font-size: 13px; max-width: 26ch; }
.footer h4 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-4); margin: 0 0 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: var(--t-2); font-size: 13px; }
.footer ul a:hover { color: var(--t-1); text-decoration: none; }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--t-4);
}

/* ─── Legal pages ─────────────────────────────────────── */
.legal { padding: 60px 0 90px; }
.legal-head { max-width: 760px; }
.legal-head h1 { font-size: clamp(30px, 5vw, 44px); }
.legal-head h1 .pr { color: var(--accent); }
.legal-meta { margin-top: 14px; font-size: 12.5px; color: var(--t-3); display: flex; gap: 16px; flex-wrap: wrap; }
.legal-body { max-width: 760px; margin-top: 18px; }
.legal-toc {
  margin-top: 26px; border: 1px solid var(--line-soft); border-radius: 12px;
  background: var(--card); padding: 20px 22px;
}
.legal-toc .lbl { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-4); margin-bottom: 12px; }
.legal-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal-toc li { font-size: 13px; margin-bottom: 7px; }
.legal-toc a { color: var(--t-2); }
.legal-section { margin-top: 40px; scroll-margin-top: 90px; }
.legal-section > h2 {
  font-size: 19px; color: var(--t-1); display: flex; align-items: baseline; gap: 10px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line-soft);
}
.legal-section > h2 .n { color: var(--accent); font-size: 14px; font-weight: 500; }
.legal-section h3 { font-size: 15px; color: var(--t-1); margin-top: 22px; }
.legal-section p, .legal-section li { color: var(--t-2); font-size: 14px; line-height: 1.75; }
.legal-section p { margin: 12px 0; }
.legal-section ul { margin: 12px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal-section ul li::marker { color: var(--accent-dim); }
.legal-section strong { color: var(--t-1); }
.legal-section code {
  font-size: 12.5px; color: var(--accent); background: rgba(0,255,136,0.05);
  padding: 1px 6px; border-radius: 4px;
}
.callout {
  border: 1px solid rgba(255,184,108,0.3); background: rgba(255,184,108,0.05);
  border-radius: 10px; padding: 16px 18px; margin: 18px 0;
}
.callout.danger { border-color: rgba(255,93,93,0.32); background: rgba(255,93,93,0.05); }
.callout .ct { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--risky); margin-bottom: 8px; }
.callout.danger .ct { color: var(--danger); }
.callout p { margin: 0; color: var(--t-1); font-size: 13.5px; line-height: 1.65; }
.def-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.def-table td { border: 1px solid var(--line-soft); padding: 11px 13px; font-size: 13px; vertical-align: top; }
.def-table td:first-child { color: var(--t-1); white-space: nowrap; width: 1%; }
.def-table td:last-child { color: var(--t-3); }

/* ─── Reveal-on-scroll ────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .stats, .readout { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: 1fr; }
  .steps, .features { grid-template-columns: 1fr; }
  /* pipeline → vertical */
  .pipe-track { grid-template-columns: 1fr; gap: 28px; }
  .pipe-track::before, .pipe-track::after { display: none; }
  .pipe-stage { padding: 0; }
  .pipe-stage::before { /* vertical connector between stages */
    content: ''; position: absolute; top: -28px; left: 50%; width: 2px; height: 28px;
    background: repeating-linear-gradient(180deg, var(--line-hi) 0 5px, transparent 5px 10px);
    opacity: 0.5;
  }
  .pipe-stage:first-child::before { display: none; }
  /* bento → single column flow */
  .features {
    grid-template-columns: 1fr; grid-auto-rows: auto;
    grid-template-areas: none;
  }
  .feature.f-watch, .feature.f-privacy, .feature.f-lang,
  .feature.f-plain, .feature.f-hist, .feature.f-share { grid-area: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px var(--pad) 16px;
    background: rgba(7,9,11,0.97); border-bottom: 1px solid var(--line);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .nav-links.open .nav-cta { text-align: center; margin-top: 10px; border-bottom: none; }
  .nav-burger { display: block; }
  .section { padding: 64px 0; }
  .legal-toc ol { columns: 1; }
}
@media (max-width: 480px) {
  .stats, .readout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-cta .btn { flex: 1; }
}
