:root {
  --bg: #0a0607;
  --bg-2: #120a0c;
  --panel: #170d10;
  --panel-2: #1e1114;
  --line: #34181d;
  --line-2: #4a2028;
  --red: #e3263f;
  --red-2: #ff4a5f;
  --red-dim: #7d0d1b;
  --gold: #ffcf3f;
  --purple: #a855f7;
  --text: #f4ecec;
  --muted: #a5939a;
  --dim: #6f5c62;
  --ok: #3ddc84;
  --err: #ff5a6e;
  --display: "Unbounded", "Rubik", system-ui, sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --pixel: "Press Start 2P", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
img.px, canvas { image-rendering: pixelated; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 6, 7, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 800; letter-spacing: .04em; font-size: 16px; }
.brand b { color: var(--red); }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav .sp { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  font: 600 15px var(--body);
  color: #fff; text-decoration: none;
  background: var(--red);
  border: 0; cursor: pointer;
  box-shadow: inset 0 -4px 0 var(--red-dim), inset 0 2px 0 rgba(255,255,255,.18);
  transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: wait; }
.btn.ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 2px var(--line-2);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--red); filter: none; }
.btn.sm { padding: 9px 14px; font-size: 14px; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.eyebrow {
  font-family: var(--pixel); font-size: 11px; color: var(--red); letter-spacing: .08em;
  text-transform: uppercase; margin: 0 0 16px;
}
.h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 16px;
}
.lead { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0; }
.textured {
  background:
    linear-gradient(rgba(10,6,7,.93), rgba(10,6,7,.96)),
    url(blocks/netherrack.png) 0 0 / 64px 64px;
  image-rendering: pixelated;
}
.textured > * { image-rendering: auto; }
.ground {
  height: 32px;
  background: url(blocks/obsidian.png) 0 0 / 32px 32px;
  image-rendering: pixelated;
  box-shadow: inset 0 10px 18px rgba(0,0,0,.7);
}

/* ---------- forms ---------- */
label.lbl { display: block; color: var(--muted); font-size: 14px; margin: 0 0 6px; }
input.inp {
  width: 100%; padding: 13px 14px; font: 16px var(--body); color: var(--text);
  background: var(--bg); border: 2px solid var(--line-2); outline: none; border-radius: 0;
}
input.inp:focus { border-color: var(--red); }
.msg { min-height: 22px; margin-top: 12px; font-size: 14px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* ---------- panel ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px #000, 0 20px 40px rgba(0,0,0,.35);
}

footer.site {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--dim); font-size: 14px;
}
footer.site .container { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .section { padding: 64px 0; }
}

.head { display: inline-block; flex: none; image-rendering: pixelated; box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.head { position: relative; }
.head.on::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; background: var(--ok); border: 2px solid var(--bg); box-shadow: 0 0 6px var(--ok); }
