/* Hzboytify website: the app's own look (near-black, lime accent, Geist). */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800&family=Geist+Mono:wght@500;600&display=swap");

:root {
  --bg: #0b0c0f;
  --surface-1: #121318;
  --surface-2: #181a20;
  --surface-3: #22252d;
  --line: #ffffff14;
  --fg: #eceef2;
  --fg-2: #a3a8b3;
  --fg-3: #6c717c;
  --accent: #c3ec52;
  --accent-ink: #12140d;
  --accent-soft: #c3ec5222;
  --danger: #ff6b6b;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.55 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav .links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav .links a { text-decoration: none; color: var(--fg-2); font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav .links a:hover { color: var(--fg); }
.nav .links a.btn-primary { color: var(--accent-ink); }
@media (max-width: 640px) { .nav .links .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 15px/1 inherit; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px #ff6b6b44; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 520px;
  background: radial-gradient(closest-side, #c3ec5230, transparent); filter: blur(30px); z-index: -1;
}
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.02; letter-spacing: -0.04em; margin: 20px auto 16px; max-width: 14ch; }
.lead { color: var(--fg-2); font-size: clamp(16px, 2.2vw, 19px); max-width: 56ch; margin: 0 auto 28px; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.meta { color: var(--fg-3); font-size: 13px; margin-top: 14px; }
.shot { margin: 56px auto 0; border-radius: 22px; box-shadow: 0 40px 120px #000a, 0 0 0 1px var(--line); width: min(1040px, 100%); }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.sub { color: var(--fg-2); margin: 0 0 36px; max-width: 60ch; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface-1); border-radius: var(--radius); padding: 22px; box-shadow: inset 0 0 0 1px var(--line); }
.card h3 { margin: 12px 0 6px; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }

/* Downloads */
.downloads { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dl { display: flex; flex-direction: column; gap: 6px; text-decoration: none; }
.dl strong { font-size: 17px; }
.dl span { color: var(--fg-3); font-size: 13px; }
.dl.recommended { box-shadow: inset 0 0 0 2px var(--accent); }
.dl.recommended::after { content: attr(data-badge); align-self: flex-start; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }

/* FAQ */
details { background: var(--surface-1); border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--fg-2); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--fg-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

/* Forms (account pages) */
.panel { width: min(420px, 100% - 32px); margin: 56px auto; background: var(--surface-1); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.panel h1 { font-size: 28px; margin: 0 0 6px; max-width: none; }
.panel .lead { margin: 0 0 22px; font-size: 15px; }
label { display: block; font-size: 13px; color: var(--fg-2); margin: 14px 0 6px; }
input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; border: 0;
  background: var(--surface-2); color: var(--fg); font: 16px inherit;
  box-shadow: inset 0 0 0 1px var(--line); outline: none;
}
input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
input.code { font-family: "Geist Mono", monospace; font-size: 26px; letter-spacing: 0.4em; text-align: center; }
.panel .btn { width: 100%; margin-top: 20px; }
.msg { margin: 14px 0 0; font-size: 14px; }
.msg.error { color: var(--danger); }
.msg.ok { color: var(--accent); }
.switch { margin-top: 18px; text-align: center; font-size: 14px; color: var(--fg-2); }
.switch a, .linkish { color: var(--accent); text-decoration: none; font-weight: 600; background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
[hidden] { display: none !important; }

/* Admin table */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--fg-3); font-weight: 500; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--fg-2); }
.pill.on { background: var(--accent-soft); color: var(--accent); }
.pill.off { background: #ff6b6b22; color: var(--danger); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stats .card strong { display: block; font-size: 30px; letter-spacing: -0.02em; }
.table-wrap { overflow-x: auto; }
