@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  --bg: #070b16; --panel: rgba(15, 23, 42, .72); --line: rgba(148, 163, 184, .18); --text: #e2e8f0; --muted: #94a3b8;
  --indigo: #818cf8; --cyan: #22d3ee; --violet: #a78bfa; --ok: #34d399;
  --grad: linear-gradient(100deg, #a5b4fc 0%, #22d3ee 55%, #67e8f9 100%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--bg);
  color: var(--text); overflow-x: hidden; }
a { color: #a5f3fc; text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: .9em ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; background: rgba(148,163,184,.14); padding: 1px 5px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* animated backdrop */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(80px); opacity: .38; animation: drift 22s ease-in-out infinite alternate; }
.b1 { background: #4f46e5; top: -18vmax; left: -12vmax; }
.b2 { background: #0891b2; bottom: -22vmax; right: -14vmax; animation-duration: 26s; animation-delay: -6s; }
.b3 { background: #7c3aed; top: 30%; left: 45%; width: 30vmax; height: 30vmax; opacity: .22; animation-duration: 30s; animation-delay: -12s; }
.bg-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.07) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); animation: pan 40s linear infinite; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@keyframes pan { to { background-position: 44px 44px, 44px 44px; } }

/* hero */
.hero { max-width: 1240px; margin: 0 auto; padding: 72px 24px 48px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: .02em; color: #c7d2fe; }
.logo { border-radius: 14px; box-shadow: 0 0 0 1px rgba(165,180,252,.25), 0 10px 40px -8px rgba(34,211,238,.55); animation: glow 4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 1px rgba(165,180,252,.4), 0 12px 56px -6px rgba(129,140,248,.8); } }
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; margin: 22px 0 18px; color: #f8fafc; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -200% 0; } }
.lede { color: #cbd5e1; font-size: 18px; max-width: 580px; margin: 0; }
.lede b { color: #fff; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #e2e8f0;
  border: 1px solid var(--line); background: rgba(30,41,59,.6); transition: transform .15s, border-color .15s, background .15s; text-decoration: none !important; }
.btn:hover { transform: translateY(-2px); border-color: rgba(165,180,252,.55); }
.btn.primary { background: var(--grad); color: #0b1020; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(34,211,238,.7); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.stats { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 30px; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }

/* terminal */
.term { position: relative; border-radius: 18px; background: rgba(8, 12, 26, .88); border: 1px solid transparent;
  background-clip: padding-box; box-shadow: 0 30px 80px -30px rgba(34,211,238,.45), 0 0 0 1px rgba(129,140,248,.18); overflow: hidden; }
.term::before { content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 60%, #818cf8 75%, #22d3ee 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 5s linear infinite; }
@keyframes spin { to { --angle: 360deg; } }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #818cf8; }
.term-bar i:nth-child(2) { background: #a78bfa; } .term-bar i:nth-child(3) { background: #67e8f9; }
.term-bar span { margin-left: auto; color: #64748b; font: 13px ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; }
.term-body { position: relative; min-height: 262px; }
#term-text { margin: 0; padding: 20px 22px; font: 14.5px/1.9 ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; color: #cbd5e1; white-space: pre-wrap; word-break: break-word; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; background: #67e8f9; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.beam { position: absolute; top: 0; bottom: 0; left: -30%; width: 26%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,.10) 60%, rgba(103,232,249,.55) 97%, #a5f3fc 100%); }
.beam.run { animation: sweep 1.5s cubic-bezier(.5,.05,.4,1) forwards; }
@keyframes sweep { 0% { left: -30%; opacity: 1; } 100% { left: 105%; opacity: 1; } }
.term-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
#term-status.done { color: var(--ok); }

/* highlighted / redacted spans (hero + playground) */
mark { color: #fda4af; background: rgba(244,63,94,.12); border-radius: 5px; padding: 1px 2px; box-shadow: inset 0 0 0 1px rgba(251,113,133,.35); transition: all .35s ease; position: relative; }
mark.cat-secrets { color: #fca5a5; } mark.cat-contact { color: #93c5fd; background: rgba(59,130,246,.12); box-shadow: inset 0 0 0 1px rgba(96,165,250,.35); }
mark.cat-financial { color: #fcd34d; background: rgba(245,158,11,.12); box-shadow: inset 0 0 0 1px rgba(251,191,36,.35); }
mark.cat-network { color: #6ee7b7; background: rgba(16,185,129,.12); box-shadow: inset 0 0 0 1px rgba(52,211,153,.35); }
mark.cat-government_id { color: #f0abfc; background: rgba(217,70,239,.12); box-shadow: inset 0 0 0 1px rgba(232,121,249,.35); }
mark.gone { color: transparent; background: #f1f5f9; box-shadow: none; }
mark.gone::after { content: attr(data-label); position: absolute; left: 6px; top: 50%; transform: translateY(-50%); color: #0f172a;
  font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; white-space: nowrap; overflow: hidden; max-width: calc(100% - 10px); }
.nolabels mark.gone::after { content: none; }

/* sections */
main { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0 24px; }
h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0 0 8px; color: #f8fafc; }
.sub { color: var(--muted); margin: 0 0 28px; max-width: 720px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { --hue: 250; position: relative; padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(10px); display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; overflow: hidden; }
.card:nth-child(1) { --hue: 245; } .card:nth-child(2) { --hue: 160; } .card:nth-child(3) { --hue: 350; }
.card:nth-child(4) { --hue: 275; } .card:nth-child(5) { --hue: 40; } .card:nth-child(6) { --hue: 320; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: conic-gradient(from var(--angle), hsl(var(--hue) 90% 70%), #22d3ee, hsl(var(--hue) 90% 70%) 50%, transparent 50% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; }
.card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, hsl(var(--hue) 85% 60% / .35), transparent 70%); transition: transform .4s; pointer-events: none; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -24px hsl(var(--hue) 85% 55% / .65); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scale(1.4); }
.card img { border-radius: 16px; box-shadow: 0 10px 30px -12px hsl(var(--hue) 85% 55% / .8); transition: transform .4s; }
.card:hover img { transform: rotate(-6deg) scale(1.06); }
.card h3 { margin: 8px 0 0; font-size: 20px; color: #f8fafc; }
.card p { margin: 0; color: #cbd5e1; font-size: 15px; flex: 1; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 4px 0 6px; }
.chips li { font: 12px ui-monospace, Menlo, Consolas, monospace; color: hsl(var(--hue) 90% 82%); background: hsl(var(--hue) 70% 50% / .14);
  border: 1px solid hsl(var(--hue) 80% 65% / .3); padding: 2px 8px; border-radius: 999px; }
.links { display: flex; gap: 8px; }

/* playground */
.play { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pane { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; }
.pane-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.pane-head .tools { display: flex; gap: 14px; align-items: center; text-transform: none; letter-spacing: 0; }
.pane-head label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.link { background: none; border: 0; color: #a5f3fc; font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
.link:hover { text-decoration: underline; }
#input, #output { margin: 0; min-height: 260px; padding: 16px; font: 14px/1.85 ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace; color: #e2e8f0; white-space: pre-wrap; word-break: break-word; }
#input { resize: vertical; width: 100%; border: 0; background: transparent; outline: none; }
#output { flex: 1; overflow: auto; }
.found { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; min-height: 30px; }
.found li { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(30,41,59,.8); border: 1px solid var(--line); animation: pop .3s ease; }
.found li b { color: #fff; margin-right: 4px; }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.proof > div { padding: 20px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.proof b { color: #f8fafc; }
.proof p { margin: 8px 0 0; color: #cbd5e1; font-size: 14.5px; }


footer { max-width: 1240px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(2), .proof .reveal:nth-child(2) { transition-delay: .08s; }
.cards .reveal:nth-child(3), .proof .reveal:nth-child(3) { transition-delay: .16s; }
.cards .reveal:nth-child(4), .proof .reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(5) { transition-delay: .32s; } .cards .reveal:nth-child(6) { transition-delay: .4s; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards, .play, .proof { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* The same index.html doubles as the Hub org card; org-card-only blocks stay hidden here. */
.org-only { display: none; }

