/* Hashmark v2: palette sampled from the logo lockup. Mint is the one accent. */
:root {
  --bg: #050f0b;
  --bg-2: #071711;
  --card: #0b1a14;
  --card-2: #0f221a;
  --line: rgba(144, 224, 176, .10);
  --line-2: rgba(144, 224, 176, .22);
  --mint: #90e0b0;
  --mint-hi: #b6f0cc;
  --mint-ink: #04140d;
  --text: #e8f0e6;
  --muted: #93aa9d;
  --ok: #90e0b0; --ok-bg: rgba(144, 224, 176, .12);
  --warn: #f2b45a; --warn-bg: rgba(242, 180, 90, .12);
  --bad: #ff7b6b; --bad-bg: rgba(255, 123, 107, .12);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --r-lg: 28px; --r: 20px; --r-sm: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--text); background: var(--bg); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { /* dot field */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(144, 224, 176, .085) 1px, transparent 1.3px);
  background-size: 24px 24px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 80%);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--mint); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; background: var(--mint); color: var(--mint-ink); padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 99px; border: 1px solid transparent; font: 500 1rem var(--body); text-decoration: none; cursor: pointer; color: var(--text); background: transparent; transition: background .2s var(--ease), border-color .2s, color .2s, transform .2s var(--spring), box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn.mint { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 0 rgba(144, 224, 176, 0); }
.btn.mint:hover { background: var(--mint-hi); box-shadow: 0 8px 30px -8px rgba(144, 224, 176, .6); }
.btn.line { border-color: var(--line-2); }
.btn.line:hover { border-color: var(--mint); background: var(--ok-bg); }
.btn.danger { background: var(--bad-bg); color: var(--bad); border-color: rgba(255, 123, 107, .35); }
.btn.danger:hover { background: rgba(255, 123, 107, .2); border-color: var(--bad); }
.btn .ico { width: 17px; height: 17px; }
.btn:disabled { opacity: .5; cursor: wait; }
.btn[hidden], [hidden] { display: none !important; }

/* ---------- nav */
.nav { position: fixed; top: 16px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.nav-pill { pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 16px; border-radius: 99px; background: rgba(9, 24, 18, .7); border: 1px solid var(--line-2); backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font: 500 1.12rem var(--display); margin-right: 18px; }
.brand img { border-radius: 8px; }
.nav nav { display: flex; }
.nav nav a { color: var(--muted); text-decoration: none; padding: 10px 16px; border-radius: 99px; font-size: .93rem; transition: color .2s, background .2s; }
.nav nav a:hover { color: var(--text); background: rgba(144, 224, 176, .08); }
.nav .btn { margin-left: 8px; }

/* ---------- hero */
.hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
.hero::before { /* aurora glow behind the stage */
  content: ""; position: absolute; width: 900px; height: 700px; right: -180px; top: 40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(63, 191, 130, .28), transparent 70%);
  filter: blur(20px);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 56px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); padding: 7px 14px 7px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(144, 224, 176, .04); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(144, 224, 176, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(144, 224, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(144, 224, 176, 0); } }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6.4rem); line-height: .96; letter-spacing: -.045em; font-weight: 500; margin-top: 28px; }
.hero h1 .dim { color: rgba(232, 240, 230, .42); display: block; font-weight: 300; }
.lede { color: var(--muted); font-size: 1.14rem; line-height: 1.6; max-width: 46ch; margin-top: 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

.hero-stage { position: relative; perspective: 1800px; }
.screen { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #030a07; transform: rotateY(-14deg) rotateX(6deg); transform-origin: 60% 50%; box-shadow: 0 60px 140px -50px rgba(63, 191, 130, .55), 0 0 0 1px rgba(144, 224, 176, .05) inset; transition: transform 1.2s var(--ease); }
.hero-stage:hover .screen { transform: rotateY(-6deg) rotateX(3deg); }
.screen video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255, 255, 255, .06), transparent 35%); }
.vid-toggle { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(5, 15, 11, .7); color: var(--text); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); z-index: 2; }
.vid-toggle:hover { border-color: var(--mint); }

.print-card { position: absolute; left: -40px; bottom: -48px; width: min(380px, 82%); padding: 18px 20px; border-radius: var(--r); background: rgba(10, 26, 19, .78); border: 1px solid var(--line-2); backdrop-filter: blur(18px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); display: grid; gap: 12px; z-index: 3; }
.pc-top { display: flex; gap: 12px; align-items: center; }
.pc-top b { display: block; font: 500 1rem var(--display); }
.pc-top small { color: var(--muted); font-size: .8rem; }
.pc-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; }
.pc-hash { font: 400 .84rem/1.6 var(--mono); color: var(--mint); word-break: break-all; letter-spacing: .02em; }
.pc-bar { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.pc-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.pc-ok .ico { width: 15px; height: 15px; }

/* ---------- results */
.results-wrap { padding: 110px 0 0; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 26px; }
.results-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.results-head p { color: var(--muted); max-width: 54ch; font-size: .98rem; }
.results { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.tile { border-radius: var(--r); padding: 18px 20px 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 18px; min-width: 0; }
.tile .t-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.tile .t-name { font-size: .9rem; line-height: 1.3; }
.tile b { grid-column: 1 / -1; font: 500 clamp(2rem, 3.4vw, 2.9rem)/1 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.tile b small { font: 400 .95rem var(--body); margin-left: 8px; letter-spacing: 0; opacity: .7; }
.tile.mint { background: var(--mint); color: var(--mint-ink); }
.tile.mint .t-ico { background: rgba(4, 20, 13, .12); }
.tile.dark { background: var(--card); border: 1px solid var(--line); }
.tile.dark .t-ico { background: var(--ok-bg); color: var(--mint); }
.tile.dark .t-name { color: var(--muted); }

/* ---------- sections */
.section { padding: 140px 0 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }
.sec-head h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.04em; }
.sec-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }

/* bento */
.bento { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.b-card { grid-column: span 2; position: relative; min-height: 440px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); isolation: isolate; }
.b-card.b-wide { grid-column: span 4; }
.b-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.b-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 15, 11, 0) 25%, rgba(5, 15, 11, .82) 62%, rgba(5, 15, 11, .97)); }
.b-card:hover img { transform: scale(1.05); }
.b-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: grid; gap: 10px; }
.b-n { font: 500 .85rem var(--mono); color: var(--mint); }
.b-body h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.1; }
.b-body p { color: var(--muted); max-width: 52ch; }

/* flags */
.flags-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.lock-fig { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.lock-fig img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.lock-fig figcaption { padding: 20px 24px 24px; color: var(--muted); font-size: .96rem; }
.codes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.code { position: relative; padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; transition: border-color .25s, transform .3s var(--ease); }
.code:hover { transform: translateX(4px); border-color: var(--line-2); }
.code b { font: 500 1.08rem var(--mono); letter-spacing: .01em; }
.code p { color: var(--muted); font-size: .96rem; }
.c-sev { position: absolute; top: 20px; right: 20px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500; padding: 4px 10px; border-radius: 99px; }
.c-sev .ico { width: 14px; height: 14px; }
.code.bad b { color: var(--bad); } .code.bad .c-sev { color: var(--bad); background: var(--bad-bg); }
.code.warn b { color: var(--warn); } .code.warn .c-sev { color: var(--warn); background: var(--warn-bg); }

/* ---------- tool console */
.tool-sec { padding-bottom: 110px; }
.console { border-radius: 32px; padding: 22px; background: linear-gradient(180deg, #0a1913, #07130e); border: 1px solid var(--line-2); box-shadow: 0 80px 160px -60px rgba(63, 191, 130, .35); }
.c-bar { display: grid; grid-template-columns: minmax(0,1fr) 240px 170px; gap: 14px; align-items: end; padding: 6px 6px 16px; border-bottom: 1px solid var(--line); }
.c-id { display: flex; gap: 12px; align-items: center; align-self: center; }
.c-id img { border-radius: 8px; }
.c-id b { display: block; font: 500 1.08rem var(--display); }
.c-id small { color: var(--muted); font-size: .82rem; }
.console label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.console input[type=text], .console select, .console textarea { width: 100%; font: 400 .96rem var(--body); color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 14px; min-height: 44px; transition: border-color .2s, box-shadow .2s; }
.console select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; cursor: pointer; }
.console input:focus, .console select:focus, .console textarea:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(144, 224, 176, .18); }
.console textarea { font-family: var(--mono); font-size: .9rem; padding: 12px 14px; min-height: 92px; resize: vertical; line-height: 1.5; }
.console ::placeholder { color: rgba(147, 170, 157, .65); }
.c-algonote { color: var(--muted); font-size: .86rem; padding: 12px 6px 0; }

.c-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.c-tiles .tile b { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.tile.status { background: var(--card); border: 1px solid var(--line); transition: background .4s, border-color .4s; }
.tile.status .t-name { color: var(--muted); }
.tile.status .t-ico { background: var(--ok-bg); color: var(--mint); }
.tile.status.warn { border-color: rgba(242, 180, 90, .4); } .tile.status.warn .t-ico { background: var(--warn-bg); color: var(--warn); }
.tile.status.bad { border-color: rgba(255, 123, 107, .45); background: linear-gradient(180deg, rgba(255, 123, 107, .1), var(--card)); } .tile.status.bad .t-ico { background: var(--bad-bg); color: var(--bad); }
.badge { display: inline-flex; padding: 2px 14px; border-radius: 99px; font: 500 1.05rem/1.5 var(--display); letter-spacing: 0; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }

.c-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; margin-top: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.step { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 .8rem var(--mono); color: var(--mint); border: 1px solid var(--line-2); }
.hint { color: var(--muted); font-size: .88rem; }
.hint.small { font-size: .8rem; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.btns.tight { margin-top: 0; padding-top: 0; }

.c-custody, .c-verify, .c-rewrite { grid-column: span 4; }
.c-log { grid-column: span 12; }

.gauge { position: relative; display: grid; place-items: center; margin-top: 4px; }
.gauge svg { width: 100%; max-width: 220px; overflow: visible; }
.g-track, .g-fill { fill: none; stroke-width: 12; stroke-linecap: round; }
.g-track { stroke: rgba(144, 224, 176, .1); }
.g-fill { stroke: var(--mint); stroke-dasharray: var(--p) 100; transition: stroke-dasharray .7s var(--ease), stroke .4s; filter: drop-shadow(0 0 8px rgba(144, 224, 176, .5)); }
.gauge.bad .g-fill { stroke: var(--bad); filter: drop-shadow(0 0 8px rgba(255, 123, 107, .5)); }
.g-val { position: absolute; bottom: 2px; text-align: center; }
.g-val b { display: block; font: 500 2rem/1 var(--display); letter-spacing: -.03em; }
.g-val small { color: var(--muted); font-size: .76rem; }
.verdict { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; font-weight: 500; color: var(--ok); margin-top: auto; padding: 10px 12px; border-radius: 12px; background: var(--ok-bg); }
.verdict.bad { color: var(--bad); background: var(--bad-bg); }
.v-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--mint); color: var(--mint-ink); }
.verdict.bad .v-ico { background: var(--bad); }
.v-ico .ico { width: 14px; height: 14px; stroke-width: 2.6; }

.hashbox { border-radius: 14px; padding: 12px 14px; background: rgba(4, 13, 9, .6); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.hashbox small { display: block; color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.hashbox.now { border-color: rgba(144, 224, 176, .3); }
.hashbox.bad { border-color: rgba(255, 123, 107, .5); background: var(--bad-bg); }
.hash { font: 400 .8rem/1.65 var(--mono); color: var(--text); word-break: break-all; letter-spacing: .02em; }
.hash u { text-decoration: none; color: var(--mint-ink); background: var(--bad); border-radius: 3px; padding: 0 1px; }
.flagl { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.flagl li { font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.flagl b { font: 500 .76rem var(--mono); padding: 2px 8px; border-radius: 6px; background: var(--bad-bg); color: var(--bad); }
.flagl b.warn { background: var(--warn-bg); color: var(--warn); }
.flagl li.none { color: var(--ok); }

.xfer { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.log-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lt-head, .lg { display: grid; grid-template-columns: 48px 190px minmax(0, 1fr) 110px 130px; gap: 14px; align-items: center; padding: 12px 16px; }
.lt-head { font-size: .76rem; color: var(--muted); background: rgba(4, 13, 9, .6); border-bottom: 1px solid var(--line); }
.lg { border-bottom: 1px solid var(--line); font-size: .9rem; animation: rowIn .45s var(--ease); }
.lg:last-child { border-bottom: 0; }
.lg:nth-child(even) { background: rgba(144, 224, 176, .025); }
.lg .n { font: .82rem var(--mono); color: var(--muted); }
.lg .t { font: .8rem var(--mono); color: var(--muted); }
.lg .e b { font-weight: 500; }
.lg .e span { display: block; color: var(--muted); font-size: .82rem; }
.lg code { font: .78rem var(--mono); color: var(--muted); }
.lg.bad { background: linear-gradient(90deg, rgba(255, 123, 107, .1), transparent 70%); }
.lg.bad .n { color: var(--bad); }
.res { justify-self: start; font: 500 .74rem var(--mono); padding: 3px 10px; border-radius: 99px; background: rgba(144, 224, 176, .07); color: var(--muted); white-space: nowrap; }
.res.ok { background: var(--ok-bg); color: var(--ok); }
.res.bad { background: var(--bad-bg); color: var(--bad); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-6px); } }

.tool-note { color: var(--muted); font-size: .88rem; margin-top: 18px; max-width: 80ch; }

#td-toast { position: fixed; left: 16px; right: 16px; bottom: 20px; margin: 0 auto; width: max-content; max-width: min(520px, calc(100vw - 32px)); z-index: 90; display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: rgba(12, 30, 22, .92); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8); font-size: .94rem; animation: toastIn .35s var(--spring); }
#td-toast[hidden] { display: none; }
#td-toast .ico { margin-top: 2px; }
#td-toast.good { border-color: rgba(144, 224, 176, .5); } #td-toast.good .ico { color: var(--ok); }
#td-toast.badt { border-color: rgba(255, 123, 107, .55); } #td-toast.badt .ico { color: var(--bad); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }


/* ---------- hero hash rain */
.rain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%); mask-image: linear-gradient(180deg, #000 55%, transparent 98%); }
.hero-copy { position: relative; }
.hero-copy::before { /* soft shade so the headline stays readable over the rain */
  content: ""; position: absolute; inset: -60px -80px -60px -120px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 15, 11, .92), rgba(5, 15, 11, .7) 55%, transparent); }
.hero > .wrap { position: relative; z-index: 1; }

/* ---------- simulation: stepper */
.stepper { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper li { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(4, 13, 9, .5); color: var(--muted); transition: border-color .3s, background .3s, color .3s; }
.stepper li b { display: block; font: 500 .98rem var(--display); color: inherit; }
.stepper li small { font-size: .8rem; }
.sp-n { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 .85rem var(--mono); border: 1px solid var(--line-2); }
.stepper li.on { border-color: var(--mint); background: var(--ok-bg); color: var(--text); }
.stepper li.on .sp-n { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.stepper li.done .sp-n { background: var(--ok-bg); color: var(--mint); }
.part { animation: partIn .5s var(--ease); }
@keyframes partIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- part 1: case-file evidence cards */
.case-head { padding: 18px 6px 26px; display: grid; gap: 10px; }
.case-kicker { font: 500 .78rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.case-title { font: 700 clamp(2.6rem, 6vw, 5rem)/.9 "Barlow Condensed", var(--display); text-transform: uppercase; letter-spacing: -.005em; color: #efe9da; }
.case-lede { font: 400 1.12rem/1.6 "Source Serif 4", Georgia, serif; color: #b9c6bd; max-width: 62ch; }
.devs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 0 4px 8px; }
.dev { --paper: #ece6d6; --ink: #16231c; position: relative; text-align: left; padding: 0; border: 0; cursor: pointer; font: inherit; color: var(--ink); background: var(--paper); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column;
  background-image: repeating-linear-gradient(0deg, rgba(22, 35, 28, .035) 0 1px, transparent 1px 5px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, .45); transition: transform .35s var(--spring), box-shadow .35s var(--ease); }
.dev:nth-child(odd) { transform: rotate(-.6deg); } .dev:nth-child(even) { transform: rotate(.5deg) translateY(6px); }
.dev:hover, .dev:focus-visible { transform: translateY(-8px) rotate(0); box-shadow: 14px 18px 0 rgba(0, 0, 0, .5), 0 0 0 2px var(--mint); }
.dev.sel { transform: translateY(-8px) rotate(0); box-shadow: 14px 18px 0 rgba(0, 0, 0, .5), 0 0 0 3px var(--mint); }
.dev-photo { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #06120d; }
.dev-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.dev:hover .dev-photo img { transform: scale(1.06); }
.dev-photo::after { content: "SAMPLE"; position: absolute; top: 10px; right: 10px; font: 600 .66rem var(--mono); letter-spacing: .16em; color: #efe9da; border: 1px solid rgba(239, 233, 218, .5); padding: 3px 7px; border-radius: 3px; background: rgba(5, 15, 11, .45); }
.dev-body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.dev-top { display: flex; justify-content: space-between; align-items: end; border-bottom: 2.5px solid var(--ink); padding-bottom: 8px; }
.dev-n { font: 700 2.4rem/.9 "Barlow Condensed", sans-serif; color: #a8291d; }
.dev-case { font: 600 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.dev-sub { font: 500 .7rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #5b6a61; }
.dn { font: 700 1.9rem/.95 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: -.005em; }
.dev-meta { border-top: 1px solid rgba(22, 35, 28, .22); border-bottom: 1px solid rgba(22, 35, 28, .22); padding: 8px 0; display: grid; gap: 2px; }
.dev-meta small { font: 500 .64rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #5b6a61; }
.dev-meta span { font: 600 1.02rem "Barlow Condensed", sans-serif; }
.ds { font: 400 .95rem/1.45 "Source Serif 4", Georgia, serif; color: #2d3b33; flex: 1; }
.dev-open { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #1d5a39; margin-top: 4px; }
.dev-open .ico { width: 16px; height: 16px; transition: transform .3s var(--spring); }
.dev:hover .dev-open .ico { transform: translateX(5px); }

/* ---------- part 1b: acquisition */
.part-h { display: grid; gap: 6px; padding: 6px 6px 18px; }
.part-h h3 { font: 700 clamp(2rem, 4vw, 3rem)/.95 "Barlow Condensed", var(--display); text-transform: uppercase; color: #efe9da; }
.acq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; }
.acq-rig { display: grid; grid-template-columns: 1.4fr auto .9fr auto .9fr; align-items: center; gap: 0; padding: 20px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); align-self: start; }
.acq-rig span { display: block; font-size: .78rem; color: var(--muted); margin-top: 8px; text-align: center; }
.rig-dev img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border: 1px solid var(--line-2); }
.rig-wb, .rig-img { display: grid; justify-items: center; padding: 14px 6px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); transition: all .4s var(--ease); }
.rig-wb .ico, .rig-img .ico { width: 26px; height: 26px; }
.rig-wb.on { border-style: solid; border-color: var(--mint); color: var(--mint); background: var(--ok-bg); box-shadow: 0 0 30px -8px rgba(144, 224, 176, .6); }
#td-acq.done .rig-img { border-style: solid; border-color: var(--mint); color: var(--mint); background: var(--ok-bg); }
.rig-wire { width: 34px; height: 2px; background: var(--line-2); position: relative; overflow: hidden; margin-bottom: 22px; }
.rig-wire i { position: absolute; inset: 0; width: 40%; background: var(--mint); transform: translateX(-120%); }
#td-acq.copying .rig-wire i { animation: flow .7s linear infinite; }
#td-acq.done .rig-wire { background: var(--mint); }
@keyframes flow { to { transform: translateX(260%); } }
.acq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.acq-steps > li { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); opacity: .55; transition: opacity .3s, border-color .3s; }
.acq-steps > li > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.acq-steps > li.active { opacity: 1; border-color: var(--line-2); }
.acq-steps > li.done { opacity: 1; }
.as-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 .8rem var(--mono); border: 1px solid var(--line-2); color: var(--mint); }
.acq-steps li.done .as-n { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.acq-steps li.active .as-n { box-shadow: 0 0 0 4px rgba(144, 224, 176, .15); }
.hint.ok { display: flex; gap: 8px; align-items: flex-start; color: var(--ok); }
.hint.ok .ico { width: 16px; height: 16px; margin-top: 2px; }
.bar { height: 10px; border-radius: 99px; background: rgba(144, 224, 176, .08); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #3fbf82, var(--mint)); box-shadow: 0 0 16px rgba(144, 224, 176, .6); transition: width .09s linear; }
.verdict.hide { display: none; }
.part-btns { margin-top: 16px; }

.c-id { flex-wrap: wrap; }
.c-dev { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-2); }
.c-id #td-change { margin-left: auto; }

@media (max-width: 1100px) { .devs { grid-template-columns: repeat(2, 1fr); } .acq-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .devs { grid-template-columns: 1fr; gap: 18px; }
  .dev:nth-child(n) { transform: none; }
  .stepper { grid-template-columns: 1fr; }
  .stepper li small { display: none; }
  .acq-rig { grid-template-columns: 1.3fr auto 1fr auto 1fr; padding: 14px; }
  .rig-wire { width: 14px; }
  .rain { opacity: .6; }
}


/* ---------- part 2: mission guide */
.guide { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; padding: 20px 22px; margin-bottom: 16px; border-radius: var(--r); border: 1px solid rgba(144, 224, 176, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(144, 224, 176, .14), transparent 60%), var(--card); box-shadow: 0 0 40px -18px rgba(144, 224, 176, .6); }
.g-now { display: grid; gap: 8px; align-content: start; }
.g-count { font: 500 .74rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mint); }
.g-now h3 { font: 700 clamp(1.7rem, 3vw, 2.3rem)/1 "Barlow Condensed", var(--display); text-transform: uppercase; color: #efe9da; }
.g-now p { color: #c4d2c9; font-size: 1rem; max-width: 52ch; }
.g-now .btns { margin-top: 6px; }
.g-last { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; padding: 10px 12px; border-radius: 12px; margin-top: 4px; }
.g-last .ico { margin-top: 2px; width: 16px; height: 16px; }
.g-last.good { background: var(--ok-bg); color: var(--ok); }
.g-last.bad { background: var(--bad-bg); color: #ffc4bb; } .g-last.bad .ico { color: var(--bad); }
.g-last[hidden] { display: none; }
.g-side { display: grid; gap: 12px; align-content: start; }
.g-prog { height: 6px; border-radius: 99px; background: rgba(144, 224, 176, .1); overflow: hidden; }
.g-prog span { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 99px; transition: width .5s var(--ease); box-shadow: 0 0 12px rgba(144, 224, 176, .7); }
.g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.g-steps li { display: flex; gap: 10px; align-items: center; font-size: .88rem; color: var(--muted); padding: 5px 8px; border-radius: 10px; }
.gs-n { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 500 .7rem var(--mono); border: 1px solid var(--line-2); }
.gs-n .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.g-steps li.done { color: var(--ok); } .g-steps li.done .gs-n { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.g-steps li.cur { color: var(--text); background: var(--ok-bg); font-weight: 500; } .g-steps li.cur .gs-n { border-color: var(--mint); color: var(--mint); }

/* the card the guide is pointing at */
.console .focus { border-color: var(--mint) !important; box-shadow: 0 0 0 1px var(--mint), 0 0 34px -6px rgba(144, 224, 176, .55); position: relative; animation: focusPulse 2.2s var(--ease) infinite; }
.c-who.focus { border-radius: 14px; padding: 8px; margin: -8px; }
@keyframes focusPulse { 50% { box-shadow: 0 0 0 1px var(--mint), 0 0 0 7px rgba(144, 224, 176, .1), 0 0 34px -6px rgba(144, 224, 176, .55); } }
.console .focus::before { content: "Next step"; position: absolute; top: -11px; left: 16px; font: 600 .66rem var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--mint); color: var(--mint-ink); padding: 3px 8px; border-radius: 6px; z-index: 2; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .g-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g-steps { grid-template-columns: 1fr; } }


/* ---------- part 2: case banner with a big device photo */
.c-case { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 22px; align-items: stretch; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.cc-photo { position: relative; border-radius: 18px; overflow: hidden; min-height: 260px; background: #06120d; border: 1px solid var(--line-2); }
.cc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-tag { position: absolute; left: 14px; top: 14px; font: 600 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #efe9da; border: 1px solid rgba(239, 233, 218, .5); padding: 4px 8px; border-radius: 4px; background: rgba(5, 15, 11, .5); backdrop-filter: blur(6px); }
.cc-info { display: flex; flex-direction: column; gap: 10px; padding: 10px 8px 6px; min-width: 0; }
.cc-name { font: 700 clamp(2.2rem, 4vw, 3.3rem)/.92 "Barlow Condensed", var(--display); text-transform: uppercase; color: #efe9da; }
.cc-sub { color: var(--muted); font-size: .95rem; }
.cc-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: end; margin-top: 8px; }
.cc-change { align-self: flex-start; margin-top: auto; }
.c-sign { border-radius: 14px; }
.who-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.who-row .btn { min-height: 44px; }
.signed { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; min-height: 60px; border-radius: 14px; background: var(--ok-bg); border: 1px solid rgba(144, 224, 176, .45); animation: partIn .4s var(--spring); }
.sg-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--mint-ink); }
.sg-ico .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.sg-txt { flex: 1; min-width: 0; display: grid; line-height: 1.2; }
.sg-txt small { color: var(--muted); font-size: .76rem; }
.sg-txt b { font: 500 1.15rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-case .c-algonote { padding: 0; }

/* ---------- part 2: fingerprint check panel */
.c-file { grid-column: span 5; }
.c-print { grid-column: span 7; }
.c-print .card-h { align-items: baseline; }
.cp-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; align-items: center; }
.cp-gauge .gauge svg { max-width: 210px; }
.cp-hashes { display: grid; gap: 6px; }
.cp-vs { font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.c-print .verdict { margin-top: 4px; font-size: .98rem; padding: 12px 14px; }
.c-print .hash { font-size: .84rem; }

/* ---------- guide steps are buttons */
.g-steps li { padding: 0; }
.g-steps button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.g-steps button:hover { background: rgba(144, 224, 176, .07); border-color: var(--line-2); }
.gs-t { flex: 1; }
.gs-go { opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s var(--spring); color: var(--mint); display: grid; }
.gs-go .ico { width: 15px; height: 15px; }
.g-steps button:hover .gs-go, .g-steps button:focus-visible .gs-go, .g-steps li.cur .gs-go { opacity: 1; transform: none; }
.console .peek { animation: peek 1.8s var(--ease); }
@keyframes peek { 0%, 100% { box-shadow: 0 0 0 0 rgba(144, 224, 176, 0); } 15%, 60% { box-shadow: 0 0 0 3px var(--mint), 0 0 50px -6px rgba(144, 224, 176, .7); } }

@media (max-width: 1100px) { .c-file, .c-print { grid-column: span 12; } }
@media (max-width: 900px) { .c-case { grid-template-columns: 1fr; } .cc-photo { min-height: 0; aspect-ratio: 16 / 10; } }
@media (max-width: 640px) { .cc-row { grid-template-columns: 1fr; } .cp-grid { grid-template-columns: 1fr; } .cp-gauge .gauge svg { max-width: 180px; } }


/* ---------- step tags on each task card */
.step-tag { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font: 600 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(4, 13, 9, .5); margin-bottom: 4px; transition: all .3s var(--ease); }
.step-tag .ico { width: 13px; height: 13px; stroke-width: 2.6; }
.step-tag.cur { color: var(--mint-ink); background: var(--mint); border-color: var(--mint); }
.step-tag.done { color: var(--ok); background: var(--ok-bg); border-color: rgba(144, 224, 176, .4); }
.c-sign > .step-tag { margin-bottom: 8px; }
/* the tag now says which step is next, so drop the separate "Next step" label */
.console .focus::before { display: none; }


/* cards follow the guide's order from top to bottom */
.c-grid > .c-custody { order: 1; grid-column: span 6; }
.c-grid > .c-verify  { order: 2; grid-column: span 6; }
.c-grid > .c-file    { order: 3; }
.c-grid > .c-print   { order: 4; }
.c-grid > .c-rewrite { order: 5; grid-column: span 12; }
.c-grid > .c-log     { order: 6; }
@media (max-width: 640px) { .c-grid > .card { grid-column: span 12; } }


/* ---------- one card per step, in aligned pairs: 1|2, 3|4, fingerprint, 5|6, 7|8, log */
.c-grid > .card { grid-column: span 6; }
.c-grid > .c-name    { order: 1; }
.c-grid > .c-custody { order: 2; }
.c-grid > .c-verify  { order: 3; }
.c-grid > .c-file    { order: 4; }
.c-grid > .c-print   { order: 5; grid-column: span 12; }
.c-grid > .c-verify2 { order: 6; }
.c-grid > .c-edit    { order: 7; }
.c-grid > .c-bypass  { order: 8; }
.c-grid > .c-report  { order: 9; }
.c-grid > .c-log     { order: 10; grid-column: span 12; }
.c-print .cp-grid { grid-template-columns: 240px minmax(0, 1fr); }
.cc-row { grid-template-columns: minmax(0, 240px); }
.c-name .signed { margin-top: auto; }
.c-name .who-form { margin-top: auto; }

/* optional extras tucked under a step */
.extra { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 4px; }
.extra summary { cursor: pointer; font-size: .86rem; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 8px; }
.extra summary::-webkit-details-marker { display: none; }
.extra summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); font: 500 .8rem var(--mono); }
.extra[open] summary::before { content: "−"; }
.extra[open] > :not(summary) { margin-top: 8px; }

/* bigger, easier-to-read step tags */
.step-tag { gap: 10px; padding: 6px 16px 6px 6px; font-size: .82rem; letter-spacing: .16em; margin-bottom: 6px; }
.step-tag .st-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 700 1.35rem/1 "Barlow Condensed", var(--display); letter-spacing: 0; background: rgba(144, 224, 176, .1); color: var(--text); }
.step-tag.cur .st-n { background: var(--mint-ink); color: var(--mint); }
.step-tag.done .st-n { background: var(--mint); color: var(--mint-ink); }
.step-tag .st-n .ico { width: 18px; height: 18px; stroke-width: 2.8; }

@media (max-width: 760px) { .c-grid > .card { grid-column: span 12; } .c-print .cp-grid { grid-template-columns: 1fr; } }

/* ---------- footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; }
.foot-row { display: flex; gap: 44px; align-items: center; }
.foot-row img { width: 250px; border-radius: 14px; }
.foot-row p { color: var(--muted); font-size: .92rem; max-width: 68ch; }

/* ---------- motion: reveal on scroll and the console straightening as it arrives */
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(40px); } }
  .tilt { animation: untilt linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; transform-origin: 50% 0; }
  @keyframes untilt { from { opacity: .3; transform: perspective(1800px) rotateX(22deg) scale(.92); } to { opacity: 1; transform: none; } }
}

/* ---------- responsive */
@media (max-width: 1100px) {
  .c-custody, .c-verify { grid-column: span 6; } .c-rewrite { grid-column: span 12; }
  .lt-head, .lg { grid-template-columns: 40px 170px minmax(0, 1fr) 100px; }
  .lt-head span:last-child, .lg code { display: none; }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid, .flags-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 70px; }
  .screen { transform: none; }
  .print-card { left: 16px; bottom: -56px; }
  .results { grid-template-columns: repeat(2, 1fr); }
  .results-head { flex-direction: column; align-items: start; gap: 10px; }
  .bento .b-card, .bento .b-card.b-wide { grid-column: span 6; min-height: 380px; }
  .c-bar { grid-template-columns: 1fr 1fr; }
  .c-id { grid-column: 1 / -1; }
  .c-tiles { grid-template-columns: repeat(2, 1fr); }
  .nav nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .print-card { position: relative; left: 0; bottom: 0; width: 100%; margin-top: -30px; }
  .section { padding-top: 100px; }
  .results { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile { padding: 14px 16px; row-gap: 12px; }
  .tile .t-name { font-size: .82rem; }
  .console { padding: 12px; border-radius: 24px; }
  .c-bar { grid-template-columns: 1fr; }
  .c-grid > .card { grid-column: span 12; }
  .xfer { grid-template-columns: 1fr; }
  .lt-head { display: none; }
  .lg { grid-template-columns: 34px minmax(0, 1fr) auto; row-gap: 2px; }
  .lg .t { grid-column: 2; grid-row: 2; }
  .lg .e { grid-column: 2; grid-row: 1; }
  .lg .res { grid-column: 3; grid-row: 1 / span 2; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .nav .brand span { display: none; }
  .nav .brand { margin-right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .screen { transform: none; }
}

/* =====================================================================
   v3 refinement: same template and colors, quieter and more precise.
   Sharper corners, hairline borders, tighter type, no glow effects,
   mint used for small signals instead of large surfaces.
   ===================================================================== */
:root {
  --r-lg: 14px; --r: 10px; --r-sm: 8px;
  --line: rgba(232, 240, 230, .08);
  --line-2: rgba(232, 240, 230, .14);
  --muted: #8ea398;
  --card: #0a1712;
  --card-2: #0d1d17;
  --display: "Outfit", system-ui, sans-serif;
}
body { font-size: 15px; letter-spacing: -.003em; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; }
body::before { opacity: .55; }

/* buttons: smaller, calmer, no glow */
.btn { min-height: 44px; padding: 0 20px; font-size: .92rem; font-weight: 500; letter-spacing: -.005em; }
.btn.sm { min-height: 38px; padding: 0 15px; font-size: .86rem; }
.btn.mint:hover { box-shadow: none; background: #a9ecc3; }
.btn.line { border-color: rgba(232, 240, 230, .18); }
.btn.line:hover { background: rgba(232, 240, 230, .05); border-color: rgba(232, 240, 230, .35); }
.btn.danger { background: transparent; }
.btn .ico { width: 15px; height: 15px; }

/* nav: thinner glass bar */
.nav-pill { padding: 5px 5px 5px 14px; background: rgba(6, 16, 12, .72); border-color: var(--line-2); box-shadow: none; }
.nav nav a { font-size: .86rem; padding: 8px 14px; }

/* hero: lighter headline, quieter frame */
.hero h1 { font-weight: 500; letter-spacing: -.055em; }
.hero h1 .dim { font-weight: 400; color: rgba(232, 240, 230, .38); }
.lede { font-size: 1.04rem; color: #a7b8ae; }
.tag { border-radius: 99px; font-size: .78rem; padding: 6px 12px; }
.hero::before { opacity: .55; }
.screen { border-radius: 14px; box-shadow: 0 40px 100px -50px rgba(63, 191, 130, .35); }
.print-card { border-radius: 12px; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .9); }
.pc-ico { border-radius: 8px; width: 32px; height: 32px; }
.rain { opacity: .7; }

/* section headers: label and title on the left, intro on the right, over a hairline */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.eyebrow i { font-style: normal; color: var(--mint); }
.sec-head, .results-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: end; max-width: none; border-top: 1px solid var(--line-2); padding-top: 22px; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
.results-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.sec-head p, .results-head p { font-size: 1rem; color: #a7b8ae; max-width: 52ch; justify-self: end; }
.flags-copy .sec-head { grid-template-columns: 1fr; gap: 14px; }
.flags-copy .sec-head p { justify-self: start; }

/* results: hairline stat columns instead of solid mint blocks */
.results { gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.results .tile.mint { background: transparent; color: var(--text); border-radius: 0; padding: 26px 24px 28px 0; }
.results .tile + .tile { border-left: 1px solid var(--line); padding-left: 24px; }
.results .tile .t-ico { background: transparent; color: var(--mint); width: auto; height: auto; }
.results .tile .t-name { color: var(--muted); font-size: .86rem; }
.results .tile b { font-weight: 400; font-size: clamp(2.6rem, 4.4vw, 3.8rem); letter-spacing: -.05em; }
.results .tile b small { font-size: .9rem; color: var(--muted); opacity: 1; }

/* bento + flags: flatter cards */
.b-card { border-radius: 14px; min-height: 420px; }
.b-card:hover img { transform: scale(1.03); }
.b-n { color: var(--muted); }
.b-body h3 { font-weight: 500; letter-spacing: -.03em; }
.lock-fig, .code { border-radius: 12px; }
.code { padding: 20px 22px; background: transparent; }
.code:hover { transform: none; background: rgba(232, 240, 230, .02); }
.c-sev { border-radius: 4px; }

/* simulation shell */
.console { border-radius: 18px; padding: 18px; background: #08140f; border-color: var(--line-2); box-shadow: none; }
@supports (animation-timeline: view()) {
  @keyframes untilt { from { opacity: .4; transform: perspective(1800px) rotateX(10deg) scale(.97); } to { opacity: 1; transform: none; } }
}
.stepper li { border-radius: 10px; padding: 10px 14px; }
.sp-n { width: 26px; height: 26px; }
.card, .c-case, .guide, .acq-rig, .acq-steps > li { border-radius: 12px; }
.card { background: var(--card); border-color: var(--line); }
.hashbox { border-radius: 8px; }
.console input[type=text], .console select, .console textarea { border-radius: 8px; border-color: rgba(232, 240, 230, .14); background: #050d0a; }
.console input:focus, .console select:focus, .console textarea:focus { box-shadow: 0 0 0 3px rgba(144, 224, 176, .12); }

/* status tiles: dark with a thin accent line, not solid mint */
.c-tiles .tile.mint { background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: inset 0 2px 0 var(--mint); }
.c-tiles .tile.mint .t-ico { background: var(--ok-bg); color: var(--mint); }
.c-tiles .tile.mint .t-name { color: var(--muted); }
.c-tiles .tile { border-radius: 10px; }
.c-tiles .tile b { font-weight: 500; letter-spacing: -.03em; }
.tile .t-ico { border-radius: 8px; width: 30px; height: 30px; }

/* guide: flat panel, no glow */
.guide { background: var(--card); box-shadow: none; border-color: rgba(144, 224, 176, .3); }
.g-now h3, .cc-name, .part-h h3 { font-family: var(--display); font-weight: 500; text-transform: none; letter-spacing: -.04em; }
.g-now h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.cc-name { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.part-h h3 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.g-prog span, .bar span { box-shadow: none; }
.g-steps button { border-radius: 8px; }

/* highlighted next step: a clean outline, no pulsing glow */
.console .focus { animation: none; box-shadow: 0 0 0 1px var(--mint); }
@keyframes peek { 0%, 100% { box-shadow: 0 0 0 0 rgba(144, 224, 176, 0); } 15%, 60% { box-shadow: 0 0 0 2px var(--mint); } }
.rig-wb.on { box-shadow: none; }
.g-fill, .gauge.bad .g-fill { filter: none; }
.g-track, .g-fill { stroke-width: 8; }
.g-val b { font-weight: 400; letter-spacing: -.04em; }

/* step tags: clear but understated */
.step-tag { border-radius: 99px; font-size: .74rem; padding: 4px 12px 4px 4px; }
.step-tag .st-n { width: 28px; height: 28px; font: 500 .95rem/1 var(--display); }

/* case-file cards: keep the paper look, lose the tilt and heavy block shadow */
.dev, .dev:nth-child(odd), .dev:nth-child(even) { transform: none; border-radius: 4px; box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 24px 50px -30px rgba(0, 0, 0, .9); }
.dev:hover, .dev:focus-visible { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 0 0 1px var(--mint); }
.dev.sel { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95), 0 0 0 2px var(--mint); }
.dev-photo::after { border-radius: 2px; }
.case-title { font-size: clamp(2.4rem, 5vw, 4.2rem); }

/* toast */
#td-toast { border-radius: 10px; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .9); }

@media (max-width: 960px) {
  .sec-head, .results-head { grid-template-columns: 1fr; gap: 14px; }
  .sec-head p, .results-head p { justify-self: start; }
  .results .tile:nth-child(3) { border-left: 0; padding-left: 0; }
  .results .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .results .tile + .tile { border-left: 0; padding-left: 0; }
  .results .tile { border-top: 1px solid var(--line); }
}
.hero h1 { font-size: clamp(2.9rem, 5.2vw, 5.2rem); }
.hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.screen { transform: rotateY(-7deg) rotateX(3deg); }
.hero-stage:hover .screen { transform: rotateY(-3deg) rotateX(1deg); }
@media (max-width: 960px) { .screen { transform: none; } }

/* =====================================================================
   v4: even grids, aligned columns, fingerprint strip under the video
   ===================================================================== */
html, body { overflow-x: clip; }

/* how it works: four equal cards, image on top, text below, all the same height */
.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bento .b-card, .bento .b-card.b-wide { grid-column: auto; min-height: 0; display: flex; flex-direction: column; background: var(--card); }
.b-card img { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; z-index: auto; border-bottom: 1px solid var(--line); }
.b-card::after { display: none; }
.b-body { position: static; padding: 24px 26px 28px; gap: 8px; flex: 1; align-content: start; }
.b-body h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.b-body p { max-width: 56ch; }

/* flags: picture and list side by side, same height, tops aligned */
.flags-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.flags-copy { display: flex; }
.lock-fig { display: flex; flex-direction: column; flex: 1; }
.lock-fig img { flex: 1; min-height: 260px; height: 100%; aspect-ratio: auto; object-fit: cover; }
.codes { gap: 10px; grid-auto-rows: 1fr; }
.code { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; column-gap: 16px; row-gap: 6px; align-content: center; background: var(--card); }
.code b { grid-column: 1; grid-row: 1; font-size: 1rem; }
.code p { grid-column: 1 / -1; grid-row: 2; font-size: .93rem; }
.c-sev { position: static; grid-column: 2; grid-row: 1; align-self: center; }

/* hero: the fingerprint sits in a clean strip under the video instead of on top of it */
.hero-stage { display: grid; gap: 14px; }
.print-card { position: static; width: auto; left: auto; bottom: auto; margin: 0; padding: 14px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; row-gap: 4px; border-radius: 12px; background: rgba(10, 23, 18, .75); border: 1px solid var(--line-2); box-shadow: none; backdrop-filter: blur(10px); }
.pc-top { grid-column: 1; grid-row: 1 / span 2; }
.pc-top span:last-child { display: none; }
.pc-ico { width: 36px; height: 36px; }
.pc-hash { grid-column: 2; grid-row: 1; font-size: .78rem; line-height: 1.5; color: var(--mint); }
.pc-bar { grid-column: 2; grid-row: 2; border-top: 0; padding-top: 0; font-size: .74rem; gap: 12px; justify-content: flex-start; }
.pc-bar > span:first-child::before { content: "SHA-256 of the demo's sample evidence, "; }
.screen, .hero-stage:hover .screen { transform: none; }

/* footer lockup in the new name */
.lockup { display: flex; align-items: center; gap: 14px; flex: none; }
.lockup img { width: 52px; height: 52px; border-radius: 12px; }
.lockup b { display: block; font: 500 1.7rem/1 var(--display); letter-spacing: -.04em; }
.lockup small { display: block; margin-top: 6px; font: 500 .7rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.foot-row img { width: auto; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .flags-grid { grid-template-columns: 1fr; }
  .codes { grid-auto-rows: auto; }
}
@media (max-width: 640px) {
  .print-card { margin-top: 0; }
  .pc-bar > span:first-child::before { content: ""; }
}
.pc-hash { letter-spacing: 0; max-width: 32ch; font-size: .82rem; }

/* how it works: big, clear step numbers */
.b-n { display: inline-flex; align-items: center; gap: 12px; font: 500 .74rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.b-n b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 500 1.35rem/1 var(--display); letter-spacing: -.02em; color: var(--mint-ink); background: var(--mint); }

/* hero video: no box. Its dark background drops out (screen blend) and the edges fade into the page */
.screen { border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; transform: none !important; }
.screen::after { display: none; }
.screen video { mix-blend-mode: screen; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 52%, transparent 100%);
          mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 52%, transparent 100%); }
.hero-stage { isolation: auto; }
.vid-toggle { right: 8px; bottom: 8px; width: 34px; height: 34px; opacity: .55; transition: opacity .2s; background: rgba(5, 15, 11, .5); }
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; }
.hero::before { opacity: .35; }
/* layering so the video can blend with the rain: rain, then shade, then content, with no isolated layer in between */
.hero > .wrap { z-index: auto; }
.hero-stage { perspective: none; }
.hero-copy::before { display: none; }
.hero-shade { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 62% at 24% 52%, rgba(5, 15, 11, .92), rgba(5, 15, 11, .65) 55%, transparent 80%); }
@media (max-width: 960px) { .hero-shade { background: radial-gradient(90% 45% at 30% 32%, rgba(5, 15, 11, .92), rgba(5, 15, 11, .6) 60%, transparent 85%); } }
.print-card { background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; backdrop-filter: none; padding: 14px 4px 0; }
