:root {
  --bg: #0b0910;
  --bg2: #120d1c;
  --panel: #171120;
  --border: #2a2238;
  --text: #f0ebf8;
  --muted: #a79cbd;
  --gold: #d4b06a;
  --lav: #b9a2ff;
  --grad: linear-gradient(135deg, #d4b06a, #b9a2ff);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(185,162,255,.14), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(212,176,106,.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lav); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11,9,16,.72);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1040px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad); color: #171020; font-size: 15px; font-weight: 900;
}
.brand span { color: var(--muted); font-weight: 500; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; padding: 12px 18px; font-weight: 650; font-size: .95rem;
  border: 1px solid var(--border); color: var(--text); background: transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: var(--grad); color: #171020; border-color: transparent;
  box-shadow: 0 10px 30px rgba(185,162,255,.22);
}
.btn.sm { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }

main.article { padding: 44px 0 32px; }
.crumbs { color: var(--muted); font-size: .8rem; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.14; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 34px 0 10px; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 1.08rem; margin-bottom: 20px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; color: #d9d2e8; }
li { margin: 5px 0; }
.note { color: var(--muted); font-size: .88rem; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; margin: 16px 0;
}
.card h3 { margin-top: 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 18px 0; }
.tile {
  display: block; background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px; color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.tile:hover { text-decoration: none; border-color: rgba(212,176,106,.5); transform: translateY(-1px); }
.tile h3 { margin: 0 0 6px; font-size: 1.02rem; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
details {
  background: var(--panel); border: 1px solid var(--border); border-radius: 14px;
  padding: 0 18px; margin-bottom: 10px;
}
details summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 15px; color: var(--muted); }
.cta-band {
  margin: 30px 0 10px; border-radius: 20px; padding: 28px 22px; text-align: center;
  background: linear-gradient(135deg, rgba(212,176,106,.14), rgba(185,162,255,.14));
  border: 1px solid rgba(185,162,255,.25);
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { color: var(--muted); margin: 0 auto 16px; max-width: 38rem; }
footer { border-top: 1px solid var(--border); padding: 26px 0 40px; color: var(--muted); font-size: .84rem; margin-top: 30px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; max-width: 1040px; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; }
.disclaimer { max-width: 60rem; margin: 14px auto 0; color: #7f7594; font-size: .76rem; text-align: center; }
@media (max-width: 620px) {
  .nav .wrap { height: 58px; }
  .brand span { display: none; }
  main.article { padding-top: 30px; }
}
