/* magerdev — clean dark theme */
:root {
  --bg:        #0d0f13;
  --surface:   #161a21;
  --surface-2: #1c212b;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.16);
  --text:      #e7eaee;
  --muted:     #9aa4b0;
  --faint:     #6b7682;
  --accent:    #4ade80;
  --accent-2:  #2fb866;
  --accent-soft: rgba(74,222,128,0.12);
  --amber:     #e6b95a;
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      640px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(0,0,0,0.35), 0 10px 30px rgba(0,0,0,0.20);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  padding: 44px 20px 72px;
}
body::before {
  content: "";
  position: fixed; inset: 0;
  background: radial-gradient(820px 460px at 50% -8%, rgba(74,222,128,0.09), transparent 70%);
  pointer-events: none; z-index: 0;
}
main { max-width: var(--maxw); margin: 0 auto; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { display: block; }
.lnk-hidden { display: none !important; }

/* ── Reveal (progressive, no-JS safe) ───────────────────────── */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(8px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Profile header ─────────────────────────────────────────── */
.profile { text-align: center; margin: 4px 0 26px; }
.avatar {
  width: 66px; height: 66px; border-radius: 50%;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2);
  color: var(--accent);
  font-family: var(--mono); font-weight: 700; font-size: 22px;
  box-shadow: var(--shadow);
}
.profile h1 { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 5px; }
.profile .tagline { color: var(--muted); font-size: 14px; margin: 0; }
.profile .tagline b { color: var(--text); font-weight: 600; }

/* ── Nav ────────────────────────────────────────────────────── */
.nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 0 32px; }
.nav a {
  padding: 7px 15px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 500;
  border: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); border-color: rgba(74,222,128,0.28); }

/* ── Sections ───────────────────────────────────────────────── */
.section { margin: 0 0 26px; }
.section-title {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--faint); font-weight: 700; margin: 0 0 12px; padding-left: 3px;
}

/* ── Link cards (socials / streams / etc.) ──────────────────── */
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .grid { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 15px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
a.card:hover, a.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-2);
  background: var(--surface-2);
  outline: none;
}
.card .icon { width: 22px; height: 22px; flex: none; color: var(--accent); }
.card .icon svg { width: 100%; height: 100%; fill: currentColor; }
.card .body { min-width: 0; flex: 1; }
.card .title { display: block; font-weight: 600; font-size: 14px; color: var(--text); line-height: 1.3; }
.card .sub { color: var(--faint); font-size: 12px; }
.card .meta { margin-left: auto; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.card .meta:empty { display: none; }
.card .tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.card .arrow { flex: none; color: var(--faint); transition: transform .15s, color .15s; }
a.card:hover .arrow, a.card:focus-visible .arrow { color: var(--accent); transform: translateX(2px); }

/* ── Soft showcase cards ────────────────────────────────────── */
.soft-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.soft-card:hover, .soft-card:focus-visible {
  transform: translateY(-2px); border-color: var(--border-2); background: var(--surface-2); outline: none;
}
.soft-card .top { display: flex; align-items: baseline; gap: 12px; }
.soft-card h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.soft-card .platform { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.soft-card .price { margin-left: auto; color: var(--accent); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.soft-card .desc { color: var(--muted); font-size: 14px; margin: 7px 0 0; }
.soft-card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.soft-card .more .arrow { transition: transform .15s; }
.soft-card:hover .more .arrow { transform: translateX(3px); }
.soft-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.soft-foot .more { margin-top: 0; }
.soft-card .meta { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.soft-card .meta:empty { display: none; }

/* ── Prose / bullets ────────────────────────────────────────── */
.lead { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 0 0 26px; }
.lead b { color: var(--text); font-weight: 600; }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bullets li { position: relative; padding-left: 24px; color: var(--muted); line-height: 1.55; }
.bullets li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bullets li b { color: var(--text); font-weight: 600; }

/* ── Spec list (setup) ──────────────────────────────────────── */
.specs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 16px; border-top: 1px solid var(--border); }
.specs .row:first-child { border-top: none; }
.specs .k { color: var(--faint); font-size: 13px; flex: none; }
.specs .v { color: var(--text); font-weight: 500; text-align: right; }
.specs .v .sub { color: var(--faint); font-weight: 400; font-size: 12px; }
.specs .v a { color: var(--accent); }

/* ── Buy box / buttons ──────────────────────────────────────── */
.buy { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.buy .price-lg { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.buy .price-lg .small { font-size: 13px; font-weight: 500; color: var(--muted); }
.buy p { color: var(--muted); margin: 10px 0 0; line-height: 1.6; }
.buy .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.buy .alt { color: var(--faint); font-size: 13px; margin-top: 14px; }
.buy .alt a { color: var(--muted); border-bottom: 1px solid var(--border-2); }
.buy .alt a:hover { color: var(--text); }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #0a0c0f; font-weight: 600; font-size: 14px; padding: 11px 18px; border-radius: var(--radius-sm); transition: filter .12s, transform .12s; }
.btn:hover, .btn:focus-visible { filter: brightness(1.08); transform: translateY(-1px); outline: none; }
.btn.secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); }

/* ── Notes / footer ─────────────────────────────────────────── */
.note { color: var(--faint); font-size: 13px; line-height: 1.55; margin: 16px 0 0; }
.note.warn { color: var(--amber); }
.lead a, .note a { color: var(--accent); }
.lead a:hover, .note a:hover { text-decoration: underline; }

.footer { margin-top: 38px; text-align: center; }
.footer a { color: var(--faint); font-size: 13px; }
.footer a:hover { color: var(--text); }

/* ── Club: tiers + steps ────────────────────────────────────── */
.tiers { display: grid; gap: 12px; }
@media (min-width: 560px) { .tiers { grid-template-columns: 1fr 1fr; } }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.tier.featured { border-color: rgba(74,222,128,0.40); box-shadow: 0 0 0 1px rgba(74,222,128,0.10); }
.tier .top { display: flex; align-items: baseline; gap: 9px; }
.tier h3 { margin: 0; font-size: 17px; font-weight: 700; }
.tier .badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 999px; }
.tier .price { margin-left: auto; color: var(--accent); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; }
.tier .price .per { color: var(--muted); font-weight: 500; font-size: 12px; }
.tier p { color: var(--muted); font-size: 14px; margin: 9px 0 0; line-height: 1.55; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 13px; }
.steps li { position: relative; padding-left: 40px; color: var(--muted); line-height: 1.5; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 27px; height: 27px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.steps li b { color: var(--text); font-weight: 600; }

/* ── Screenshots gallery ────────────────────────────────────── */
.shots { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .shots { grid-template-columns: 1fr 1fr; } }
.shot { margin: 0; }
.shot a { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #000; transition: border-color .15s, transform .15s; }
.shot a:hover, .shot a:focus-visible { border-color: var(--border-2); transform: translateY(-2px); outline: none; }
.shot img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: top; }
.shot figcaption { color: var(--faint); font-size: 12.5px; margin-top: 8px; padding-left: 2px; line-height: 1.4; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 28px;
  background: rgba(5,7,10,0.92);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  visibility: hidden; opacity: 0;
  transition: opacity .18s ease, visibility .18s ease;
  cursor: zoom-out;
}
.lb.open { visibility: visible; opacity: 1; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; cursor: default; }
.lb-fig img { max-width: 100%; max-height: 82vh; border-radius: 10px; border: 1px solid var(--border-2); box-shadow: 0 24px 70px rgba(0,0,0,0.6); }
.lb-fig figcaption { color: var(--muted); font-size: 13px; text-align: center; max-width: 70ch; }
.lb-close, .lb-nav {
  position: absolute; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2);
  color: var(--text); font-size: 24px; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.lb-close:hover, .lb-nav:hover, .lb-close:focus-visible, .lb-nav:focus-visible {
  background: var(--surface); border-color: var(--accent); color: var(--accent); outline: none;
}
.lb-close { top: 16px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { position: absolute; top: 20px; left: 22px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 12px; }
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }
@media (max-width: 560px) { .lb { padding: 14px; } .lb-prev { left: 8px; } .lb-next { right: 8px; } }

::selection { background: var(--accent); color: #0a0c0f; }
