:root {
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --surface: #171f2a;
  --surface-alt: #1e2733;
  --border: #252f3d;
  --text: #f4f6f8;
  --text-secondary: #8a98aa;
  --text-muted: #5b6b7e;
  --accent: #ffc542;
  --accent-ink: #1a1300;
  --positive: #34d399;
  --negative: #f87171;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}

main {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 72px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}
.lang-switch button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button.active {
  background: var(--accent);
  color: var(--accent-ink);
}

/* hero */
.hero { padding: 56px 0 40px; }
.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
h1 { font-size: clamp(30px, 5.4vw, 46px); font-weight: 800; margin: 0 0 14px; line-height: 1.1; }
h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; }
h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; }
.lead { color: var(--text-secondary); font-size: 17px; max-width: 640px; margin: 0 0 8px; }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px 24px;
  margin: 16px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 20px;
}
.feature .dot {
  width: 10px; height: 10px; border-radius: 5px;
  background: var(--accent);
  margin-bottom: 12px;
}
.feature p { color: var(--text-secondary); font-size: 14px; margin: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink) !important;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none !important;
}
.btn.secondary {
  background: var(--surface-alt);
  color: var(--text) !important;
  border: 1px solid var(--border);
}
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

.doc h2 { border-top: 1px solid var(--border); padding-top: 24px; }
.doc h2:first-of-type { border-top: none; padding-top: 0; }
.doc p, .doc li { color: var(--text-secondary); }
.doc .meta { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

footer.site {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.site a { color: var(--text-secondary); }

code {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}
