@font-face {
  font-family: "Unbounded Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(./fonts/unbounded-latin-wght-normal.woff2) format("woff2-variations");
}
@font-face {
  font-family: "Space Grotesk Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(./fonts/space-grotesk-latin-wght-normal.woff2) format("woff2-variations");
}

:root {
  --bg: #0b0a12;
  --bg-2: #14121f;
  --card: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --ink: #f5f2ff;
  --muted: #9b96ad;
  --oranje: #ff6a1a;
  --roze: #ff3ea5;
  --lime: #c8ff3e;
  --cyaan: #3ee8ff;
  --geel: #ffd23e;
  --paars: #8a5cff;
  --display: "Unbounded Variable", system-ui, sans-serif;
  --body: "Space Grotesk Variable", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(138, 92, 255, 0.28), transparent 60%),
    radial-gradient(40rem 24rem at -10% 40%, rgba(255, 106, 26, 0.18), transparent 60%),
    radial-gradient(50rem 30rem at 60% 110%, rgba(62, 232, 255, 0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.98; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); }
em { font-style: normal; color: var(--geel); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem clamp(1rem, 4vw, 3rem);
  background: rgba(11, 10, 18, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; text-decoration: none; font-size: 1rem; }
.brand-coin { width: 30px; height: 30px; display: inline-block; }
.brand-coin svg { width: 100%; height: 100%; display: block; }
.nav-right { display: flex; align-items: center; gap: 0.6rem; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.8rem; color: var(--muted);
  font-family: var(--mono);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: 0.7rem 1.25rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--oranje), var(--roze));
  border-color: transparent; color: #140900;
  box-shadow: 0 8px 30px rgba(255, 106, 26, 0.35);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff7d3a, #ff5bb5); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 2rem;
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  max-width: 1240px; margin: 0 auto;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyaan); margin-bottom: 1.2rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #d9d5ea; max-width: 34rem; margin: 1.6rem 0 2rem; }
.fine { margin-top: 1.4rem; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }

.hero-stage { position: relative; height: clamp(300px, 42vw, 520px); perspective: 1400px; }
.glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 210, 62, 0.35), rgba(255, 62, 165, 0.15), transparent);
  filter: blur(30px);
}
.coin3d { position: absolute; transform-style: preserve-3d; }
.coin3d .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.coin3d .face svg { width: 100%; height: 100%; display: block; }
.coin3d .back { transform: rotateY(180deg); }
.coin3d-big { width: 68%; aspect-ratio: 1; left: 16%; top: 8%; animation: spin 11s linear infinite; }
.coin3d-small { width: 30%; aspect-ratio: 1; }
.coin3d-small.a { left: -2%; bottom: 4%; animation: spin 8s linear infinite reverse, bob 6s ease-in-out infinite; }
.coin3d-small.b { right: -2%; top: 0; animation: spin 13s linear infinite, bob 7s ease-in-out infinite 1s; }
@keyframes spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -18px; } }
@media (prefers-reduced-motion: reduce) { .coin3d { animation: none !important; } }

.navlink { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; padding: 0.3rem 0.5rem; }
.navlink:hover { color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { font-size: 0.8rem; }

.check { margin-top: 0.4rem; }
.check-row { display: flex; gap: 0.6rem; }
.check-row input {
  flex: 1; min-width: 0; font: inherit; font-family: var(--mono); font-size: 0.95rem;
  padding: 0.85rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.4); color: var(--ink);
}
.check-row input:focus { outline: 2px solid var(--paars); outline-offset: 0; border-color: transparent; }
.hint { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }

.answer {
  margin-top: 1.2rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  display: flex; gap: 1rem; align-items: center;
  animation: drop 0.35s cubic-bezier(.2,.9,.3,1.2);
}
.answer .mini { width: 96px; flex: none; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
.answer .mini svg { width: 100%; height: auto; display: block; }
.answer .t { font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.1; margin-bottom: 0.3rem; }
.answer .s { color: #cfcbe0; font-size: 0.92rem; }
.answer .s strong { color: var(--ink); }
.answer .s code { font-size: 0.72rem; color: var(--muted); word-break: break-all; }
.answer.fresh { border-color: rgba(200, 255, 62, 0.4); box-shadow: 0 0 50px rgba(200, 255, 62, 0.12); }
.answer.fresh .t { color: var(--lime); }
.answer.spent { border-color: rgba(255, 62, 165, 0.4); box-shadow: 0 0 50px rgba(255, 62, 165, 0.12); }
.answer.spent .t { color: var(--roze); }
.answer.bad .t { color: var(--geel); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }

section { max-width: 1240px; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 3rem); }
.section-head { display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; align-items: end; margin-bottom: 1.6rem; }
.section-head p { grid-column: 1; color: var(--muted); max-width: 44rem; }
.section-head .btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.step {
  position: relative; padding: 1.6rem 1.4rem 1.4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.step .num {
  font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1;
  background: linear-gradient(135deg, var(--geel), var(--oranje));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 0.8rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: #cfcbe0; font-size: 0.98rem; }
.step-wide { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(138, 92, 255, 0.16), rgba(62, 232, 255, 0.08)); }
.step-wide .num { background: linear-gradient(135deg, var(--cyaan), var(--paars)); -webkit-background-clip: text; background-clip: text; }
.organiser .step .num { background: linear-gradient(135deg, var(--cyaan), var(--paars)); -webkit-background-clip: text; background-clip: text; }
.console-line { margin-top: 1.2rem; font-family: var(--mono); font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--paars); padding-left: 0.8rem; }

.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.stempel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; display: grid; gap: 1rem; position: relative; overflow: hidden;
}
.stempel::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 70%;
  background: radial-gradient(closest-side, var(--tint, rgba(255,255,255,.12)), transparent);
  opacity: 0.35; pointer-events: none;
}
.stempel > * { position: relative; }
.stempel-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; }
.stempel-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.stempel-num { font-family: var(--mono); color: var(--muted); font-size: 0.85rem; }
.stempel-coins { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.stempel-coins .mini { width: 84px; height: 84px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45)); }
.stempel-coins .mini svg { width: 100%; height: 100%; display: block; }
.stempel-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; font-size: 0.9rem; }
.stempel-meta .k { color: var(--muted); font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stempel-meta .v { font-weight: 600; }
.stempel-meta .v.big { font-family: var(--display); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stempel-meta .v.dead { color: var(--roze); }
.inkbar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 0.3rem; }
.inkbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--cyaan)); }
.stempel-actions { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }
.owner { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.owner a { text-decoration: none; border-bottom: 1px solid var(--line); }

.foot {
  max-width: 1240px; margin: 2rem auto 0; padding: 2rem clamp(1rem, 4vw, 3rem) 3rem;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 1.2rem; font-family: var(--mono); font-size: 0.8rem; }
.foot-links a { text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .navlink { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-stage { order: -1; height: 62vw; }
  .check-row { flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
