:root {
  --bg: #090b0e;
  --bg-raise: #12151c;
  --bg-band: #0e1116;
  --line: #232833;
  --text: #e8edf2;
  --muted: #8b95a5;
  --accent: #3dcc6e;
  --accent-ink: #06140b;
  --accent-dim: #163322;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --radius: 14px;
  --font: "Figtree", "Segoe UI", sans-serif;
  --display: "Sora", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: radial-gradient(1200px 600px at 10% -10%, #163322 0%, transparent 55%),
              radial-gradient(900px 500px at 100% 0%, #142033 0%, transparent 50%),
              var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100%;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus { left: 12px; top: 12px; background: var(--bg-raise); padding: 8px 12px; }

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  background: #0b0f14;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover,
.nav a.is-on { color: var(--text); }

.nav-ext { color: var(--accent) !important; }

.hero {
  padding: 88px 0 56px;
}

.hero h1,
.page-head h1,
.band h2,
.dl-card h2 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 10px 0 16px;
  max-width: 16ch;
}

.lead {
  font-size: 20px;
  color: #c5cdd8;
  max-width: 42rem;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.hero-meta { margin-top: 8px; }
.hero-dl { margin: 32px 0 0; }
.dl-when {
  margin: 10px 0 8px;
  font-variant-numeric: tabular-nums;
}
.muted { color: var(--muted); }

.band { padding: 28px 0 64px; }
.band-alt { background: var(--bg-band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-lead { color: var(--muted); max-width: 40rem; }

.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  display: block;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  min-height: 160px;
}

.card:hover {
  text-decoration: none;
  border-color: #355a43;
}

.card h3 {
  font-family: var(--display);
  margin: 0 0 8px;
}

.card p { margin: 0; color: var(--muted); }

.page { padding: 48px 0 80px; }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 12px; }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 8px 0 40px;
}

.dl-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.dl-card .btn { margin-top: 8px; margin-right: 8px; }

.prose { max-width: 760px; }
.prose.excerpt { max-width: none; }

.prose h2, .prose h3, .prose h4 {
  font-family: var(--display);
  line-height: 1.25;
}

.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: #d5dbe3; }
.prose code {
  font-family: Consolas, "IBM Plex Mono", monospace;
  font-size: 0.92em;
  background: #1a2030;
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

.prose pre {
  overflow: auto;
  background: #10141c;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.prose pre code { background: none; padding: 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 15px;
}

.prose th, .prose td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 8px 10px;
  vertical-align: top;
}

.prose th { color: var(--muted); font-weight: 700; }

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}

.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-brand {
  font-family: var(--display);
  font-weight: 700;
  margin: 0 0 6px;
}

.foot-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: center;
}

.hero-mark {
  display: flex;
  justify-content: center;
}

.hero-mark img {
  width: min(220px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(61, 204, 110, 0.18));
}

.stats {
  padding: 0 0 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 32px;
  color: var(--accent);
}

.stat span { color: var(--muted); font-size: 14px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.note {
  background: var(--accent-dim);
  border: 1px solid #2a5a3c;
  color: #d7efe0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.cl-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  font-family: var(--display);
}

.cl-switch button {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.cl-switch button.is-on { color: var(--accent); }

.cl-pipe { color: var(--line); }

.cl-panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px 22px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
}

.older { margin-top: 12px; }

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lang summary::-webkit-details-marker { display: none; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  display: grid;
  gap: 4px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.lang-menu a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 13px;
}

.lang-menu a:hover,
.lang-menu a.is-on { background: var(--accent-dim); color: var(--accent); }

.foot-brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notfound { text-align: center; padding-top: 72px; }
.notfound .lead { margin-left: auto; margin-right: auto; }
.notfound-logo { margin-bottom: 12px; }

.shots { margin: 28px 0 8px; }
.shots h2 { margin: 0 0 12px; }
.shots-empty { margin: 0; }
.shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.shot {
  margin: 0;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.shot img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.shot figcaption {
  padding: 8px 10px 10px;
  color: var(--muted);
  font-size: 13px;
}

.support-block { margin: 36px 0; }
.support-block h2 { margin: 0 0 8px; }
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.support-card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.support-card h3 { margin: 0; font-family: var(--display); }
.support-card p { margin: 0; color: #d5dbe3; font-size: 15px; flex: 1; }
.support-card .btn { align-self: flex-start; margin-top: 4px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 7, 10, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

@media (max-width: 720px) {
  .top-inner { flex-direction: column; align-items: flex-start; padding: 12px 0; }
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .split { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
