/* $HACKOOR: everything is green terminal text. Three greens: bright for headings, numbers and buttons,
   body for reading, dim for small print (still 5:1+ on black). */
:root {
  --bg: #000;
  --card: #020a04;
  --line: rgba(0, 255, 102, 0.18);
  --line-hi: rgba(0, 255, 102, 0.5);
  --g: #00ff66;
  --g-body: #00d957;
  --g-dim: #00a344;
  --g-faint: rgba(0, 255, 102, 0.08);
  --glow: 0 0 2px rgba(0, 255, 102, 0.55), 0 0 18px rgba(0, 255, 102, 0.35);
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --r: 6px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--g-body); font: 500 15.5px/1.65 var(--mono); -webkit-font-smoothing: antialiased; }
::selection { background: var(--g); color: #000; }
a { color: inherit; }
button, input { font: inherit; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(16px, 4vw, 40px); background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--g); font-weight: 800; font-size: 17px; text-decoration: none; text-shadow: var(--glow); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--g); box-shadow: 0 0 12px var(--g); animation: blink 1.6s steps(2, start) infinite; }
@keyframes blink { to { opacity: 0.25; } }
nav { display: flex; align-items: center; gap: 10px; }
.x-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); color: var(--g); }
.x-link:hover { border-color: var(--line-hi); }
.x-link[hidden] { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: var(--r); border: 1px solid var(--g); background: var(--g); color: #001a0a; font-weight: 800; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 0 22px rgba(0, 255, 102, 0.25); transition: transform 0.12s ease, box-shadow 0.2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(0, 255, 102, 0.45); }
.btn.off { background: transparent; color: var(--g-dim); border-color: var(--line); box-shadow: none; pointer-events: none; opacity: 0.7; }
.btn-ghost { background: transparent; color: var(--g); box-shadow: none; }
.btn-ghost:hover { background: var(--g-faint); box-shadow: none; }

/* 1. hero */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 40px) 16px clamp(56px, 9vw, 96px); text-align: center; }
.rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; -webkit-mask-image: linear-gradient(#000 0%, #000 50%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 50%, transparent 100%); }
.hero-in { position: relative; max-width: 760px; margin: 0 auto; }

/* him, cut out, with the code falling behind and a green glow around him. The wrapper is padded so
   the glow isn't clipped by the fade that melts his coat into the code at the bottom. */
.who { --w: min(480px, 82vw, max(300px, calc((100svh - 430px) * 0.87))); --pad: 70px; position: relative; width: calc(var(--w) + 2 * var(--pad)); padding: var(--pad) var(--pad) 0; margin: calc(-1 * var(--pad)) 0 0 50%; transform: translateX(-50%); -webkit-mask-image: linear-gradient(#000 0%, #000 83%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 83%, transparent 100%); }
.who img { position: relative; display: block; width: 100%; height: auto; filter: drop-shadow(0 0 1.5px rgba(0, 255, 102, 0.95)) drop-shadow(0 0 8px rgba(0, 255, 102, 0.45)); }
.glow { position: absolute; inset: var(--pad) var(--pad) 0; background: var(--g); -webkit-mask: url(img/hackoor-cut.webp) center / 100% 100% no-repeat; mask: url(img/hackoor-cut.webp) center / 100% 100% no-repeat; filter: blur(30px); transform: scale(1.05); opacity: 0.65; animation: glow 3.4s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 1; } }

/* the words under him sit on a soft black pool so green text stays readable over the green rain */
.copy { position: relative; isolation: isolate; }
.copy::before { content: ''; position: absolute; z-index: -1; inset: -10% -14% -18%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.7) 60%, transparent); pointer-events: none; }
h1 { position: relative; margin: -40px 0 0; color: var(--g); font-weight: 800; font-size: clamp(46px, 12.5vw, 112px); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 0 3px rgba(0, 255, 102, 0.7), 0 0 34px rgba(0, 255, 102, 0.45), 0 2px 18px #000; }
.lead { margin: 20px 0 0; color: var(--g); font-size: clamp(18px, 2.9vw, 25px); font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; text-shadow: var(--glow); }
.sub { margin: 10px 0 0; color: var(--g-body); font-size: 15.5px; }

/* the address */
.ca { display: inline-flex; margin-top: 28px; max-width: 100%; padding: 12px 14px 12px 16px; border-radius: var(--r); border: 1px solid var(--line); background: rgba(0, 8, 3, 0.9); font-size: 13px; }
.ca .ca-live { display: none; align-items: center; gap: 12px; min-width: 0; }
.ca .ca-soon { color: var(--g-dim); padding-right: 2px; }
.ca.is-live { border-color: var(--line-hi); box-shadow: 0 0 24px rgba(0, 255, 102, 0.15); }
.ca.is-live .ca-soon { display: none; }
.ca.is-live .ca-live { display: inline-flex; }
.ca-label { color: var(--g); font-weight: 800; }
.ca code { color: var(--g); font: 500 14px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca-copy { flex: none; padding: 7px 12px; border-radius: 4px; border: 0; background: var(--g); color: #001a0a; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }

/* blocks */
.block { max-width: 760px; margin: 0 auto; padding: clamp(56px, 9vw, 96px) 16px; border-top: 1px solid var(--line); text-align: center; }
.kicker { margin: 0 0 14px; color: var(--g-dim); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.kicker::before { content: '// '; }
h2 { margin: 0 0 26px; color: var(--g); font-size: clamp(28px, 5.4vw, 46px); line-height: 1.1; letter-spacing: -0.035em; text-shadow: var(--glow); }

/* 2. charity */
.big { color: var(--g); font-weight: 800; font-size: clamp(50px, 13vw, 116px); line-height: 1; letter-spacing: -0.05em; text-shadow: 0 0 3px rgba(0, 255, 102, 0.7), 0 0 40px rgba(0, 255, 102, 0.4); }
.big-label { margin: 16px 0 0; color: var(--g); font-size: 18px; font-weight: 700; }
.big-label a { text-decoration: underline; text-decoration-color: var(--line-hi); text-underline-offset: 5px; }
.big-label a:hover { text-decoration-color: var(--g); }
.note { max-width: 540px; margin: 18px auto 0; }
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; margin: 30px auto 0; }
.flow div { padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.flow b { display: block; color: var(--g); font-weight: 800; font-size: 17px; }
.flow span { color: var(--g-dim); font-size: 13px; }
.held { max-width: 540px; margin: 18px auto 0; color: var(--g-dim); font-size: 13px; }

/* 3. toy */
.target { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.target input { flex: 1; min-width: 0; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); color: var(--g); caret-color: var(--g); font-weight: 600; font-size: 16px; }
.target input::placeholder { color: var(--g-dim); }
.target input:focus { outline: none; border-color: var(--g); box-shadow: 0 0 0 3px rgba(0, 255, 102, 0.15); }
.btn-go { padding: 14px 26px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 580px; }
.chips button { padding: 7px 12px; border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--g-dim); font-size: 13px; cursor: pointer; }
.chips button:hover { color: var(--g); border-color: var(--line-hi); background: var(--g-faint); }
.term { max-width: 640px; margin: 28px auto 0; border-radius: var(--r); border: 1px solid var(--line-hi); background: #010502; text-align: left; overflow: hidden; box-shadow: 0 0 40px rgba(0, 255, 102, 0.08); }
.term-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--g-dim); font-size: 12px; }
.term-top i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-hi); }
.term-top span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px 20px 22px; min-height: 290px; color: var(--g-body); font: 500 14px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term pre .no { color: #ff4d5e; text-shadow: 0 0 12px rgba(255, 77, 94, 0.5); }
.term pre .res { color: var(--g); font-weight: 800; text-shadow: var(--glow); }
.btn-share { margin-top: 18px; }

/* 4. buy */
.steps { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-align: left; }
.steps li > b { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 4px; background: var(--g-faint); border: 1px solid var(--line); color: var(--g); font-weight: 800; font-size: 14px; }
.steps li > span:not(.tick) { flex: 1; color: var(--g); font-weight: 700; }
.steps .btn { padding: 8px 14px; font-size: 12px; }
.tick { color: var(--g-dim); font-size: 13px; padding-right: 6px; }

footer { padding: 36px 16px 56px; border-top: 1px solid var(--line); text-align: center; color: var(--g-dim); font-size: 12px; }
footer p { margin: 4px auto; max-width: 640px; }

@media (max-width: 520px) {
  .who { --pad: 40px; }
  h1 { margin-top: -24px; }
  .ca .ca-soon { font-size: 12px; }
  .target { flex-direction: column; }
  .flow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .dot, .glow { animation: none; } .glow { opacity: 0.8; } .btn { transition: none; } }
