:root {
  --bg: #0b1020; --surface: #141a2e; --surface-2: #1b2340; --line: #2a3357;
  --text: #eef1f8; --muted: #a3acc7; --pink: #ff5fa2; --orange: #ffb347;
  --teal: #2dd4bf; --gold: #ffd166; --radius: 14px;
  --grad: linear-gradient(135deg, var(--pink), var(--orange));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; padding-top: 20px; padding-bottom: 48px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: var(--teal); }
a:hover { color: #7ff0e0; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 6vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.18em; }
[hidden] { display: none !important; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(11, 16, 32, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.logo-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 40px; display: flex; align-items: center; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.on { color: #0b1020; background: var(--grad); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-primary { background: var(--grad); color: #0b1020; }
.btn-primary:hover { color: #0b1020; }
.btn-gold { background: var(--gold); color: #1a1400; }
.btn-gold:hover { color: #1a1400; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

/* hero */
.hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; margin-bottom: 36px; border: 1px solid var(--line); }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: relative; padding: 24px 20px; width: 100%; background: linear-gradient(to top, rgba(11, 16, 32, .95) 30%, rgba(11, 16, 32, 0)); padding-top: 90px; }
.hero-text p { color: #d7dcee; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections + cards */
section { margin-bottom: 36px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.page-head { margin-bottom: 20px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.page-head h1 .icon { color: var(--pink); }
.page-head p { color: var(--muted); max-width: 44em; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--pink); transform: translateY(-2px); color: var(--text); }
.card h3 { margin: 10px 0 6px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 700; background: var(--surface-2); color: var(--teal); }
.tag-news { color: var(--pink); }
.tag-hacks { color: var(--orange); }
.tag-premium { background: var(--gold); color: #1a1400; }
.empty { color: var(--muted); }
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tile:hover { border-color: var(--teal); color: var(--text); }
.tile .icon { width: 26px; height: 26px; color: var(--teal); margin-bottom: 6px; }
.tile span { color: var(--muted); font-size: .85rem; }
.tile-gold { border-color: var(--gold); }
.tile-gold .icon { color: var(--gold); }

/* article */
.article { max-width: 720px; margin: 0 auto; }
.crumbs { font-size: .9rem; margin-bottom: 8px; }
.crumbs a { text-decoration: none; font-weight: 700; }
.prose { font-size: 1.05rem; margin-top: 20px; }
.prose h2 { margin-top: 1.600em; }
.prose h3 { margin-top: 1.300em; }
.prose ul, .prose ol { padding-left: 1.300em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid var(--orange); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; color: #dfe4f5; }
.prose blockquote p { margin: 0; }
.prose code, .key { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; font-size: .92em; word-break: break-all; }
.key { display: inline-block; padding: 10px 14px; user-select: all; }
.sources { margin-top: 32px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; }
.sources h2 { font-size: 1rem; }
.sources ul { margin: 0; padding-left: 1.200em; }

/* paywall + plans */
.paywall { position: relative; margin-top: 8px; padding: 22px 18px; border: 1px solid var(--gold); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 209, 102, .1), var(--surface)); }
.paywall::before { content: ""; position: absolute; left: 0; right: 0; top: -72px; height: 70px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.paywall h2 { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin: 18px 0 12px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan-best { border-color: var(--gold); }
.plan h3 { margin: 0; color: var(--muted); font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.price { font-size: 2rem; font-weight: 800; margin: 0; }
.price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-note { color: var(--muted); font-size: .9rem; flex: 1; }
.ribbon { position: absolute; top: -11px; right: 14px; background: var(--gold); color: #1a1400; font-size: .75rem; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.fineprint { color: var(--muted); font-size: .85rem; }
.order-info { font-size: .92rem; color: var(--muted); margin: 14px 0 6px; }
.order-info p { margin-bottom: .5em; }
.order-info strong { color: var(--text); }
.consent { display: grid; gap: 10px; margin: 12px 0; }
.consent label { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.checkout-msg { color: #ffb4b4; font-weight: 600; }
.benefits { list-style: none; padding: 0; display: grid; gap: 10px; margin: 0 0 8px; }
.benefits li { padding: 14px 16px; background: var(--surface); border-radius: var(--radius); border-left: 4px solid var(--teal); color: var(--muted); }
.benefits strong { color: var(--text); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; max-width: 720px; margin-bottom: 16px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.form-row input { flex: 1 1 220px; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; }

/* map */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.chip.on { background: var(--teal); color: #06241f; border-color: var(--teal); }
.map-layout { display: grid; gap: 16px; }
@media (min-width: 820px) { .map-layout { grid-template-columns: minmax(0, 1.300fr) minmax(0, 1fr); align-items: start; } }
.map-box { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #0e2a47; }
#map { display: block; width: 100%; height: auto; max-height: 78vh; }
#map text { fill: #fff; font: 700 12px system-ui, sans-serif; paint-order: stroke; stroke: #0b1020; stroke-width: 3px; pointer-events: none; }
.pin { cursor: pointer; }
.pin-hit { fill: transparent; }
.pin-dot { fill: var(--pink); stroke: #fff; stroke-width: 2; transition: r .15s; }
.pin:hover .pin-dot, .pin.on .pin-dot { r: 10; fill: var(--gold); }
.pin:focus-visible { outline: none; }
.pin:focus-visible .pin-dot { stroke: var(--teal); stroke-width: 4; }
.pin.off { display: none; }
.map-info { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.map-info p { color: var(--muted); margin-bottom: .6em; }
.map-info .tag { margin-bottom: 8px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; color: var(--muted); font-size: .88rem; }
.disclaimer { max-width: 60em; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.footer-nav a { color: var(--text); padding: 6px 0; }
.copy { margin: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
