:root {
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-sans: "Satoshi", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  --bg: #05060a;
  --ink: #f2eee4;
  --muted: #9a9386;
  --sail: #e8b86d;
  --ion: #6ee7ff;
  --line: rgba(232, 184, 109, 0.22);
  --glass: rgba(8, 10, 16, 0.62);
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-void { display: none !important; }
}
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
img { max-width: 100%; }
a { color: var(--ion); text-underline-offset: 0.18em; }
a:hover { color: #c8f7ff; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 80; background: #111; padding: 0.4rem 0.7rem; }
.wrap { width: min(1120px, calc(100% - 2.4rem)); margin: 0 auto; }
.slim { width: min(720px, calc(100% - 2.4rem)); }

.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.top-inner {
  display: flex; align-items: center; gap: 1.2rem;
  min-height: 58px;
}
.brand-island {
  display: flex; align-items: center; gap: 0.55rem;
  flex-shrink: 0;
  padding-right: 1rem;
  margin-right: 0.2rem;
  border-right: 1px solid var(--line);
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}
.x-follow {
  display: inline-flex; align-items: center;
  height: 28px; max-height: 28px; flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--sail) 40%, transparent);
  text-decoration: none; color: var(--sail); overflow: hidden;
}
.x-follow-mark {
  width: 24px; height: 24px; max-width: 24px; max-height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.x-follow-mark svg { width: 11px; height: 11px; max-width: 11px; max-height: 11px; }
.x-follow-handle { display: none; font-size: 0.62rem; white-space: nowrap; padding-right: 0.5rem; }
@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}
.nav {
  flex: 1; display: flex; align-items: center; gap: 1.05rem;
  font-size: 0.82rem; letter-spacing: 0.04em;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-plate {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,6,10,0.15) 0%, rgba(5,6,10,0.15) 40%, rgba(5,6,10,0.88) 100%),
    url("/assets/hero.jpg") center 28% / cover no-repeat;
  z-index: 0;
}
.hero-void {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  display: none;
}
@media (min-width: 769px) and (pointer: fine) {
  .hero-void { display: block; }
}
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(80% 70% at 70% 20%, transparent 0%, rgba(5,6,10,0.35) 70%, rgba(5,6,10,0.72) 100%);
}
.hero-copy {
  position: relative; z-index: 3;
  padding: 5.5rem 0 4.2rem;
}
.kicker {
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ion); margin: 0 0 1rem;
}
.kicker .dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--sail); margin: 0 0.45rem 0.15rem; vertical-align: middle;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}
.lead {
  max-width: 46ch;
  color: #d8d2c4;
  font-size: 1.08rem;
  margin: 0 0 1.6rem;
}
.lead em { color: var(--sail); font-style: normal; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.55rem 1.05rem;
  border-radius: 999px; text-decoration: none;
  font-size: 0.92rem; letter-spacing: 0.02em;
}
.btn-gold { background: var(--sail); color: #1a1408; }
.btn-gold:hover { background: #f3cc88; color: #1a1408; }
.btn-line {
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ink);
  background: rgba(0,0,0,0.25);
}
.btn-line:hover { border-color: var(--ion); color: var(--ion); }

.band { padding: 5.2rem 0 4.6rem; }
.band-alt { background: linear-gradient(180deg, #07080e, #0a0c14); }
.sec-kicker {
  color: var(--sail); letter-spacing: 0.16em; text-transform: uppercase;
  font-size: 0.74rem; margin: 0 0 0.7rem;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 1rem;
}
.sec-lead { max-width: var(--measure); color: #c9c2b4; margin: 0 0 2rem; }
.tri {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
.tri article {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  padding: 1.2rem 1.15rem 1.3rem;
  border-radius: 14px;
}
.tri h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; margin: 0 0 0.45rem;
}
.tri p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.lang-grid {
  display: grid; gap: 2.2rem;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}
.ticks { margin: 0; padding: 0 0 0 1.1rem; color: #cfc8ba; }
.ticks li { margin: 0.4rem 0; }
.code {
  margin: 0;
  padding: 1.15rem 1.2rem;
  background: #07080c;
  border: 1px solid rgba(110, 231, 255, 0.16);
  border-radius: 12px;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: #d7efe8;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 20px 50px rgba(0,0,0,0.35);
}
.feel { margin: 0; padding: 0; list-style: none; counter-reset: n; }
.feel li {
  counter-increment: n;
  position: relative;
  padding: 1.15rem 0 1.15rem 3.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #cfc8ba;
}
.feel li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 1.2rem;
  font-family: var(--font-display);
  color: var(--sail); letter-spacing: 0.06em;
}
.feel strong { display: block; color: var(--ink); margin-bottom: 0.25rem; font-weight: 600; }

.faq { margin: 1.4rem 0 0; }
.faq dt { font-weight: 600; margin-top: 1.1rem; }
.faq dd { margin: 0.35rem 0 0; color: var(--muted); }

.foot {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.4rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; }
.foot a { color: var(--muted); }
#hits-count, .hits, [data-hits] { color: var(--muted); }

@media (max-width: 860px) {
  .tri, .lang-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero h1 { max-width: 12ch; }
}
