:root {
  color-scheme: dark;
  --bg: #101114;
  --panel: #17191f;
  --panel-2: #20232b;
  --text: #f3efe4;
  --muted: #c7bdab;
  --line: #37313a;
  --gold: #d6ad5b;
  --green: #71d59d;
  --red: #ff8d8d;
  --blue: #9cc7ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 20, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-size: 1rem;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.82rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.92rem;
}

.hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--green);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0;
}

h2 {
  font-size: 1.55rem;
  margin: 36px 0 14px;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
  margin: 24px 0 10px;
}

p {
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.08rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 4px 9px;
  font-size: 0.82rem;
}

.section {
  padding: 26px 0 44px;
}

.notice {
  border-left: 4px solid var(--gold);
  background: var(--panel-2);
  padding: 16px;
  border-radius: 8px;
  margin: 22px 0;
}

.risk {
  border-left-color: var(--red);
}

.ok {
  border-left-color: var(--green);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--panel-2);
  color: var(--text);
}

td {
  color: var(--muted);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code {
  color: var(--blue);
}

pre {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0c0f;
  padding: 14px;
}

ul {
  padding-left: 20px;
}

li {
  margin: 6px 0;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 26px 0;
  font-size: 0.9rem;
}

@media (max-width: 780px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    justify-content: flex-start;
  }

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }
}
