/* ============================================================
   BTC MEDUSA — page sections
   ============================================================ */

/* ===== HERO ===== */
#hero { padding: 150px 0 80px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-eyebrow { margin-bottom: 26px; }
#hero h1 {
  font-size: clamp(40px, 6.4vw, 78px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.98;
}
#hero h1 .line2 { display: block; color: var(--text-dim); font-weight: 400; }
#hero h1 em { font-style: normal; }
.hero-sub { margin: 30px 0 34px; max-width: 50ch; font-size: clamp(16px, 1.4vw, 19px); }
.hero-sub b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-meta .item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta .n { font-family: var(--mono); font-size: 22px; font-weight: 600; color: var(--text); }
.hero-meta .l { font-size: 12.5px; color: var(--text-faint); }

/* scanner window mock */
.scanner {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-2);
  background: var(--bg-2); box-shadow: var(--shadow); position: relative;
}
.scanner .bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--border); }
.scanner .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); display: inline-block; }
.scanner .bar .t { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.scanner img { width: 100%; display: block; }

/* animated scan sequence */
.scan-stage { position: relative; width: 100%; aspect-ratio: 1400 / 799; background: #0b0912; overflow: hidden; }
.scan-screen { position: absolute; inset: 0; }
.scan-screen .frame {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0;
}
.scan-screen .frame.on { opacity: 1; }
.scan-dim {
  position: absolute; inset: 0; background: rgba(8,6,14,0.66);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
.scan-dim.on { opacity: 1; }
.scan-cards { position: absolute; inset: 0; display: grid; place-items: center; }
.scan-cards .card {
  position: absolute; height: 90%; width: auto; max-width: 94%; object-fit: contain; display: block;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,0.55));
  opacity: 0; transform: translateY(16px) scale(0.965);
  transition: opacity 0.45s cubic-bezier(.2,.7,.2,1), transform 0.45s cubic-bezier(.2,.7,.2,1);
}
.scan-cards .card.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .scan-screen .frame, .scan-dim, .scan-cards .card { transition: none; }
}
.scanner-tag {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px; border-radius: 100px; font-family: var(--mono); font-size: 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent); border: 1px solid var(--border-2);
  backdrop-filter: blur(8px); color: var(--text);
}
.scanner-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--safe); box-shadow: 0 0 10px var(--safe); }

.powered {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 4px;
  font-size: 13px; color: var(--text-faint);
}
.powered a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--border-2); }
.powered a:hover { color: var(--text); }

/* ===== logo strip / what chain reveals ===== */
.reveal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reveal-item {
  padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); display: flex; flex-direction: column; gap: 8px;
}
.reveal-item .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--purple); text-transform: uppercase; }
.reveal-item h4 { font-size: 16px; font-weight: 650; }
.reveal-item p { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }

/* ===== score / heuristics ===== */
.score-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gauge { position: relative; width: 240px; height: 240px; }
.gauge svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .grade { font-family: var(--mono); font-size: 64px; font-weight: 600; line-height: 1; }
.gauge .num { font-family: var(--mono); font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.gauge .lbl { font-size: 12px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 8px; }
.grade-legend { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; color: var(--text-faint); }
.grade-legend span b { color: var(--text-dim); }

.heur-list { display: flex; flex-direction: column; gap: 0; }
.heur-row {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 16px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.heur-row:last-child { border-bottom: 0; }
.heur-row .ix { font-family: var(--mono); font-size: 12px; color: var(--text-faint); padding-top: 2px; }
.heur-row .body h4 { font-size: 15.5px; font-weight: 650; margin-bottom: 3px; }
.heur-row .body p { font-size: 13.5px; color: var(--text-dim); line-height: 1.5; }
.heur-row .sev {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap; align-self: center;
}
.sev.crit { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }
.sev.med  { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.heur-foot { margin-top: 26px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-faint); }

/* stats band */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.stat-band .s { background: var(--bg); padding: 28px 24px; }
body.light .stat-band .s { background: var(--bg); }
.stat-band .n { font-family: var(--mono); font-size: clamp(26px, 3vw, 38px); font-weight: 600; }
.stat-band .n .grad-text { font-weight: 600; }
.stat-band .l { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* ===== innovation / bridge — before/after ===== */
.bridge { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bridge .col { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); }
.bridge .before { background: var(--surface); }
.bridge .after  { background: var(--grad-soft); border-color: var(--border-2); }
.bridge h4 { font-size: 13px; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; color: var(--text-faint); }
.bridge .after h4 { color: var(--purple); }
.bridge ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.bridge li { display: flex; gap: 12px; font-size: 14.5px; color: var(--text-dim); line-height: 1.5; }
.bridge li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.bridge .after li { color: var(--text); }
.b-cross { color: var(--text-faint); }
.b-check { color: var(--safe); }

/* ===== flow / double-blind diagram ===== */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 12px; }
.flow-side {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface);
}
.flow-side .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.flow-side .hd .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.flow-side .hd h4 { font-size: 17px; }
.flow-step { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid var(--border); }
.flow-step:first-of-type { border-top: 0; }
.flow-step .k { font-family: var(--mono); font-size: 12px; color: var(--purple); flex-shrink: 0; width: 22px; }
.flow-step .x { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.flow-step .x code { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
.flow-note {
  margin-top: 18px; text-align: center; font-family: var(--mono); font-size: 12.5px;
  color: var(--text-faint); padding: 14px; border: 1px dashed var(--border-2); border-radius: var(--radius-sm);
}
.flow-note b { color: var(--safe); }

/* ===== threat cards ===== */
.threat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.threat { padding: 24px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.threat .ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; color: var(--purple); }
.threat .ic svg { width: 19px; height: 19px; }
.threat h4 { font-size: 15.5px; margin-bottom: 8px; }
.threat p { font-size: 13px; color: var(--text-dim); line-height: 1.55; }

/* ===== server-learns table ===== */
.learns { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.learns table { width: 100%; border-collapse: collapse; }
.learns th {
  text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500; padding: 16px 22px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.learns td { padding: 15px 22px; font-size: 14.5px; color: var(--text-dim); border-bottom: 1px solid var(--border); vertical-align: middle; }
.learns tr:last-child td { border-bottom: 0; }
.learns tr:hover td { background: var(--surface); }
.learns td:first-child { color: var(--text); font-weight: 500; }
.flag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.flag.no { color: var(--safe); }
.flag.yes { color: var(--warn); }
.flag .d { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.learns td.why { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); }

/* ===== verify band ===== */
.verify {
  text-align: center; border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: clamp(40px, 6vw, 72px); background: var(--grad-soft); position: relative; overflow: hidden;
}
.verify h2 { font-size: clamp(30px, 4.5vw, 52px); margin-bottom: 18px; }
.verify p { max-width: 56ch; margin: 0 auto 30px; font-size: 17px; color: var(--text-dim); }
.verify .row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ===== download / tiers ===== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; gap: 14px; }
.tier.feat { border-color: var(--border-2); background: var(--grad-soft); }
.tier .name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.tier .feat-tag { font-family: var(--mono); font-size: 11px; color: var(--purple); }
.tier .price { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.tier .price small { font-size: 14px; color: var(--text-faint); font-weight: 400; }
.tier .price-note { font-family: var(--mono); font-size: 12px; color: var(--text-faint); margin-top: -4px; }
.tier .price-note .sats { color: var(--text-dim); }
.tier .price .sats.loading { opacity: 0.4; }
.tier .desc { font-size: 13.5px; color: var(--text-dim); }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.tier li { font-size: 13.5px; color: var(--text-dim); display: flex; gap: 9px; }
.tier li svg { width: 16px; height: 16px; color: var(--safe); flex-shrink: 0; margin-top: 2px; }

/* ===== zcash / elephant-in-the-room ===== */
.zk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.zk-card {
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.045);
  position: relative; overflow: hidden;
}
body.light .zk-card { background: rgba(40,30,55,0.04); }
.zk-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
}
.zk-card.privacy { background: linear-gradient(150deg, color-mix(in srgb, var(--safe) 14%, transparent), rgba(255,255,255,0.03) 60%); }
.zk-card.privacy::before { background: var(--safe); }
.zk-card.billing { background: linear-gradient(150deg, color-mix(in srgb, var(--warn) 12%, transparent), rgba(255,255,255,0.03) 60%); }
.zk-card.billing::before { background: var(--warn); }

.zk-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.zk-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border-2); background: var(--surface);
}
.zk-ic svg { width: 22px; height: 22px; }
.zk-card.privacy .zk-ic { color: var(--safe); }
.zk-card.billing .zk-ic { color: var(--warn); }
.zk-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 3px; color: var(--text-faint);
}
.zk-card h4 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.zk-card p { font-size: 14.5px; color: var(--text-dim); line-height: 1.65; }
.zk-card p code { font-family: var(--mono); font-size: 12.5px; color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

.zk-kicker {
  margin-top: 18px; text-align: center; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5;
  max-width: 62ch; margin-left: auto; margin-right: auto; color: var(--text);
  padding: 26px 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.zk-kicker b { font-weight: 700; }
.zk-kicker .grad-text { font-weight: 700; }
@media (max-width: 720px) { .zk-grid { grid-template-columns: 1fr; } }

/* ===== contact / footer ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--text-dim); margin-bottom: 18px; max-width: 42ch; }
.contact-info .person { margin-bottom: 14px; }
.contact-info .person b { display: block; color: var(--text); font-size: 14px; }
.contact-info a { color: var(--blue); text-decoration: none; font-family: var(--mono); font-size: 13.5px; border-bottom: 1px solid var(--border-2); }
.contact-info a:hover { color: var(--text); }
.cform { display: flex; flex-direction: column; gap: 12px; }
.cform input, .cform textarea {
  width: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); font-family: inherit; font-size: 15px; outline: none; transition: border-color 0.25s;
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--text-faint); }
.cform input:focus, .cform textarea:focus { border-color: var(--blue); }
.cform textarea { min-height: 120px; resize: vertical; }
.cform .status { font-size: 13px; min-height: 18px; font-family: var(--mono); }
.status.ok { color: var(--safe); }
.status.err { color: var(--danger); }

footer { border-top: 1px solid var(--border); padding: 50px 0 40px; margin-top: 60px; }
.foot-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-grid .brand b { font-size: 15px; }
footer .sm { color: var(--text-faint); font-size: 12.5px; line-height: 1.7; max-width: 50ch; }
footer .links { display: flex; gap: 22px; }
footer .links a { color: var(--text-dim); font-size: 13px; text-decoration: none; }
footer .links a:hover { color: var(--text); }

/* ===== responsive ===== */
@media (max-width: 940px) {
  .hero-grid, .score-split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .reveal-grid, .threat-grid, .tiers { grid-template-columns: repeat(2, 1fr); }
  .bridge, .flow { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .reveal-grid, .threat-grid, .tiers, .stat-band { grid-template-columns: 1fr; }
  .learns { overflow-x: auto; }
  .learns table { min-width: 520px; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}
