:root {
  --bg: #15110e;
  --bg-2: #1c1713;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5ede4;
  --muted: #d2c4b5;
  --muted-2: #b19f8e;
  --accent: #f0a24b;
  --accent-2: #ffcb7e;
  --warning: rgba(255, 203, 126, 0.12);
  --warning-line: rgba(255, 203, 126, 0.28);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(240, 162, 75, 0.12), transparent 24%),
    linear-gradient(180deg, #1f1a16 0%, #181411 42%, #12100f 100%);
  color: var(--text);
}

a {
  color: inherit;
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease;
}

.link-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

.link-chip.is-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #17120e;
  box-shadow: 0 16px 34px rgba(240, 162, 75, 0.22);
}

.card {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  margin-top: 16px;
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.meta-item {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.meta-label {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meta-value {
  display: block;
  margin-top: 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.doc-card {
  margin-top: 18px;
  padding: 30px;
}

.note {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--warning-line);
  background: var(--warning);
}

.note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.note p,
.note li {
  color: #efe3d4;
}

.doc-content {
  display: grid;
  gap: 22px;
}

.doc-section {
  display: grid;
  gap: 12px;
}

.doc-section h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.doc-section h3 {
  font-size: 20px;
  line-height: 1.25;
}

.doc-content p,
.doc-content li,
.doc-content td,
.doc-content th,
.doc-content dd {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.doc-content ul {
  margin: 0;
  padding-left: 22px;
}

.pair-list {
  display: grid;
  gap: 10px;
}

.pair-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pair-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pair-key {
  color: var(--text);
  font-weight: 700;
}

.placeholder {
  color: #ffe1b4;
}

.table-wrap {
  overflow-x: auto;
}

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

th,
td {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 700;
}

.footer-link {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(1040px, calc(100% - 20px));
    padding-top: 24px;
  }

  .hero-card,
  .doc-card {
    padding: 22px;
    border-radius: 24px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .pair-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
