/* Komms Subnet page — builds on home.css (tokens, bands, buttons, nav, footer).
   Same colour-banded scroll, but denser and more technical: mono labels, data, terminals. */

.hero-sub { padding-block: 104px 88px; }
.hero-sub h1 { font-size: clamp(36px, 6.2vw, 76px); }
.factline { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; }
.factline span { border: 1px solid var(--line-dark); border-radius: 8px; padding: 6px 10px; color: var(--on-dark-soft); background: rgba(255,255,255,.03); }
.factline b { color: var(--on-dark); font-weight: 600; }
.factline .live-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 7px; box-shadow: 0 0 10px var(--amber); }

.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 980px; margin-top: 18px; text-align: left; }
@media (max-width: 900px) { .paths { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .paths { grid-template-columns: 1fr; } }
.path {
  display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; text-decoration: none; color: var(--on-dark);
  background: rgba(13, 31, 43, .75); border: 1px solid var(--line-dark); transition: border-color .2s, transform .2s, background .2s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.path:hover { border-color: rgba(23,196,236,.6); transform: translateY(-3px); background: rgba(15, 40, 54, .9); }
.path small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.path b { font-size: 17px; }
.path span { font-size: 14px; color: var(--on-dark-soft); }

/* ---------- Architecture ---------- */
.arch { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 960px) { .arch { grid-template-columns: 1fr; } }
.arch > * { min-width: 0; }
.arch-svg-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(0,0,0,.18); padding: 12px; min-width: 0; }
.arch-svg { width: 100%; min-width: 600px; height: auto; display: block; }
.arch-svg .edge { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1.5; stroke-dasharray: 4 6; }
.arch-svg .edge-label { fill: var(--on-dark-soft); font: 500 11px var(--mono); }
.arch-svg .pkt { fill: var(--green); }
.arch-svg .pkt.c { fill: var(--cyan); }
.arch-svg .nd { cursor: pointer; outline: none; }
.arch-svg .nd rect { fill: #0e2230; stroke: rgba(255,255,255,.16); stroke-width: 1.2; transition: stroke .2s, fill .2s; }
.arch-svg .nd:hover rect, .arch-svg .nd:focus-visible rect { stroke: rgba(23,196,236,.8); }
.arch-svg .nd.on rect { fill: #10303f; stroke: url(#ag); stroke-width: 2.4; }
.arch-svg .nd text { fill: var(--on-dark); font: 700 15px var(--body); pointer-events: none; }
.arch-svg .nd .sub { fill: var(--on-dark-soft); font: 500 11px var(--mono); }
.arch-svg .group { fill: rgba(63,220,124,.03); stroke: rgba(63,220,124,.3); stroke-dasharray: 5 5; }
.arch-svg .group-label { fill: var(--green); font: 600 11px var(--mono); letter-spacing: .12em; }
.arch-card { border-radius: 18px; padding: 24px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); display: grid; gap: 12px; min-width: 0; }
.arch-card .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.arch-card h3 { font-family: var(--display); font-weight: 600; font-size: 24px; }
.arch-card p { color: var(--on-dark-soft); }
.arch-card ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--on-dark-soft); font-size: 15px; }
.arch-card code { font-family: var(--mono); font-size: .88em; color: #bfeee2; }
.arch-hint { font-size: 13px; color: var(--on-dark-soft); margin-top: 10px; text-align: center; }

/* ---------- Investors / due diligence (paper) ---------- */
.dd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .dd { grid-template-columns: 1fr; } }
.factsheet { background: var(--on-light); color: var(--on-dark); border-radius: 20px; padding: 24px; font-family: var(--mono); font-size: 13.5px; min-width: 0; }
.factsheet h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 14px; }
.factsheet dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.factsheet dt, .factsheet dd { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.factsheet dt { color: #8fa3ad; padding-right: 16px; white-space: nowrap; }
.factsheet dd { text-align: right; overflow-wrap: anywhere; }
.factsheet .warn { color: var(--amber); }
.dd-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .dd-cards { grid-template-columns: 1fr; } }
.dd-card { background: #fff; border: 1px solid var(--line-light); border-radius: 16px; padding: 20px; display: grid; gap: 6px; align-content: start; }
.dd-card .n { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #0b7a86; }
.dd-card b { font-size: 17px; }
.dd-card p { color: var(--on-light-soft); font-size: 15px; }
.dd-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Encryption deep dive (deep) ---------- */
.spec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }
.spec-card { border-radius: 16px; padding: 20px; border: 1px solid rgba(63,220,124,.18); background: rgba(255,255,255,.03); display: grid; gap: 6px; align-content: start; }
.spec-card .tag { font-family: var(--mono); font-size: 11.5px; color: var(--green); }
.spec-card b { font-size: 17px; }
.spec-card p { color: var(--on-dark-soft); font-size: 15px; }

/* ---------- Miners (sky) ---------- */
.reqs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
@media (max-width: 900px) { .reqs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .reqs { grid-template-columns: 1fr 1fr; } }
.req { background: #fff; border: 1px solid var(--line-light); border-radius: 14px; padding: 14px 16px; }
.req b { display: block; font-family: var(--display); font-weight: 600; font-size: 20px; }
.req small { color: var(--on-light-soft); font-size: 13px; }
.term-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .term-wrap { grid-template-columns: 1fr; } }
.steps-nav { display: grid; gap: 6px; }
@media (max-width: 860px) { .steps-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps-nav { grid-template-columns: 1fr 1fr; } }
.step-btn {
  display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-light);
  background: #fff; color: var(--on-light); font-weight: 700; font-size: 14.5px; cursor: pointer; min-width: 0;
}
.step-btn i { font-style: normal; font-family: var(--mono); font-size: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e9f0f4; flex-shrink: 0; }
.step-btn.on { background: var(--on-light); color: #fff; border-color: var(--on-light); }
.step-btn.on i { background: var(--grad); color: #03161b; }
.step-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.terminal { border-radius: 16px; background: #071017; color: #d6e4ea; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(4, 30, 50, .6); min-width: 0; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #0d1a22; border-bottom: 1px solid rgba(255,255,255,.06); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a44; flex-shrink: 0; }
.term-bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #7f939d; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { font: 600 12px var(--mono); color: #cfe; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 5px 10px; cursor: pointer; flex-shrink: 0; }
.term-body { padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; min-height: 240px; overflow-x: auto; white-space: pre; }
.term-body .p-l { color: #f2c06b; }
.term-body .p-s { color: #5fd6e0; }
.term-body .cm { color: #6f8590; }
.term-body .ok { color: var(--green); }
.term-body .cursor { display: inline-block; width: 8px; height: 1.1em; background: #5fd6e0; vertical-align: -0.2em; animation: caret 1s steps(1) infinite; }
.term-note { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: 14.5px; color: #a9bcc5; }
.pitfalls { margin-top: 22px; background: #fff; border: 1px solid var(--line-light); border-radius: 18px; padding: 22px 24px; }
.pitfalls h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin-bottom: 12px; }
.pitfalls ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
@media (max-width: 760px) { .pitfalls ul { grid-template-columns: 1fr; } }
.pitfalls li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; color: var(--on-light-soft); font-size: 15px; }
.pitfalls li::before { content: "!"; width: 20px; height: 20px; border-radius: 50%; background: #fdf1dc; color: #95600a; font: 800 12px var(--mono); display: grid; place-items: center; margin-top: 2px; }
.pitfalls li b { color: var(--on-light); }
.pitfalls code { font-family: var(--mono); font-size: .9em; background: #f1f5f7; padding: 1px 5px; border-radius: 5px; color: var(--on-light); }

/* ---------- Stats (navy) ---------- */
.sample-note { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: #2e1f02; background: var(--amber); padding: 5px 12px; border-radius: 999px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { border-radius: 16px; padding: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line-dark); display: grid; gap: 4px; min-width: 0; align-content: start; }
.tile small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); }
.tile b { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2.4vw, 28px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile span { font-size: 13px; color: var(--on-dark-soft); }
.tile svg { width: 100%; height: 36px; margin-top: 6px; }
.uid-wrap { margin-top: 14px; overflow-x: auto; border-radius: 16px; border: 1px solid var(--line-dark); }
.uid { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.uid th, .uid td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-dark); white-space: nowrap; }
.uid th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-soft); font-weight: 600; background: rgba(255,255,255,.03); }
.uid td.num, .uid th.num { text-align: right; }
.uid td.num { font-family: var(--mono); }
.uid tr:last-child td { border-bottom: 0; }
.mono-s { font-family: var(--mono); font-size: .9em; color: var(--on-dark-soft); }
.role { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; font-weight: 600; }
.role.v { background: rgba(23,196,236,.15); color: #7fdcf2; }
.role.m { background: rgba(63,220,124,.14); color: #8ff0b4; }
.up { display: inline-flex; align-items: center; gap: 6px; }
.up::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.up.syncing::before { background: var(--amber); }

/* ---------- Validators (mint) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: st; }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 520px) { .pipeline { grid-template-columns: 1fr; } }
.stage { position: relative; background: #fff; border: 1px solid var(--line-light); padding: 22px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.stage:first-child { border-radius: 18px 0 0 18px; }
.stage:last-child { border-radius: 0 18px 18px 0; }
.stage + .stage { border-left: 0; }
@media (max-width: 900px) { .stage, .stage:first-child, .stage:last-child { border-radius: 16px; } .stage + .stage { border-left: 1px solid var(--line-light); } }
.stage::before { counter-increment: st; content: "0" counter(st); font-family: var(--mono); font-size: 12px; color: #0b7a86; font-weight: 600; }
.stage b { font-family: var(--display); font-weight: 600; font-size: 19px; }
.stage p { color: var(--on-light-soft); font-size: 15px; }
.stage code { font-family: var(--mono); font-size: .86em; background: #eef5f2; padding: 1px 5px; border-radius: 5px; color: var(--on-light); }
.stage .bar-anim { height: 3px; border-radius: 3px; background: #e3ece9; overflow: hidden; margin-top: 6px; }
.stage .bar-anim i { display: block; height: 100%; width: 40%; background: var(--grad); animation: scan 2.4s ease-in-out infinite; }
.stage:nth-child(2) .bar-anim i { animation-delay: .6s; }
.stage:nth-child(3) .bar-anim i { animation-delay: 1.2s; }
.stage:nth-child(4) .bar-anim i { animation-delay: 1.8s; }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(260%); } }

/* Final CTA buttons on the gradient */
.final-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-ink-line { color: #03161b; border-color: rgba(3,22,27,.35); background: rgba(255,255,255,.25); }
.btn-ink-line:hover { background: rgba(255,255,255,.45); }

/* ---------- Phones ---------- */
.arch-mobile { display: none; }
@media (max-width: 700px) {
  .arch-desktop { display: none; }
  .arch-mobile { display: block; padding: 8px; }
  .arch-mobile .arch-svg { min-width: 0; max-width: 420px; margin: 0 auto; }
  .arch-mobile .nd text { font-size: 13px; }
  .arch-mobile .nd .sub, .arch-mobile .edge-label { font-size: 10px; }
  .paths { grid-template-columns: 1fr 1fr; gap: 10px; }
  .path { padding: 14px; }
  .path span { display: none; }
  .path b { font-size: 15px; }
  .term-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; min-height: 200px; padding: 16px; }
  .tile.wide { grid-column: 1 / -1; }
  .uid .opt { display: none; }
  .uid { min-width: 0; }
  .uid { font-size: 13.5px; }
  .uid th, .uid td { padding: 11px 7px; }
  .uid .role { padding: 2px 6px; }
  .brand-tag { display: none; }
  .dd-links .btn, .band-cta .btn { flex: 1 1 100%; justify-content: center; }
}

/* Live stats badge */
.sample-note.live { background: rgba(63,220,124,.16); color: #8ff0b4; border: 1px solid rgba(63,220,124,.35); }
