:root {
  --bg: #0f1117;
  --panel: #171a22;
  --panel-2: #1d212b;
  --text: #f3f5f7;
  --muted: #aeb5c0;
  --line: #2b313d;
  --brand: #5865f2;
  --brand-2: #7c86ff;
  --ok: #43b581;
  --warn: #f0b232;
  --max: 980px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% -10%, rgba(88,101,242,.18), transparent 28rem),
    radial-gradient(circle at 95% 0%, rgba(124,134,255,.10), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.68;
}

a { color: #aeb5ff; text-decoration: none; }
a:hover { color: #d7d9ff; text-decoration: underline; }

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(15,17,23,.88);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; }
.brand:hover { text-decoration: none; color: var(--text); }
.logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 32px rgba(88,101,242,.25);
  font-weight: 900;
}
.brand small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; margin-top: -2px; }
.navlinks { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 15px; font-size: .92rem; }

main { padding: 62px 0 80px; }
.hero { padding: 18px 0 34px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c8ccff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--brand-2); box-shadow: 0 0 0 5px rgba(124,134,255,.12); }
h1 { font-size: clamp(2.2rem, 6vw, 4.3rem); letter-spacing: -.05em; line-height: 1.04; margin: 15px 0 18px; }
.lead { max-width: 760px; color: #c7ccd5; font-size: clamp(1.05rem, 2.5vw, 1.24rem); }
.meta { color: var(--muted); font-size: .9rem; margin-top: 16px; }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin: 26px 0 10px; }
.card {
  background: linear-gradient(180deg, rgba(29,33,43,.94), rgba(23,26,34,.96));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,.16);
}
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); border-color: rgba(124,134,255,.55); text-decoration: none; }
.card-link .arrow { color: #c8ccff; font-weight: 800; }

.article {
  background: rgba(23,26,34,.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 5vw, 48px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}
.article h2 { margin-top: 2.2em; padding-top: .2em; font-size: 1.36rem; letter-spacing: -.02em; }
.article h2:first-of-type { margin-top: 1.2em; }
.article h3 { margin-top: 1.6em; font-size: 1.08rem; }
.article p, .article li { color: #d4d8df; }
.article strong { color: #fff; }
.article ul { padding-left: 1.3rem; }
.article li + li { margin-top: .45rem; }
.note, .warning {
  border-left: 4px solid var(--brand);
  background: rgba(88,101,242,.08);
  padding: 15px 17px;
  border-radius: 0 10px 10px 0;
  margin: 22px 0;
  color: #dfe1ff;
}
.warning { border-left-color: var(--warn); background: rgba(240,178,50,.08); color: #f5e5ba; }

.pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 7px 11px; color: #cfd4dc; font-size: .84rem; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 10px; font-weight: 800; background: var(--brand); color: white; border: 1px solid transparent; }
.button:hover { background: #6874f6; color: white; text-decoration: none; }
.button.secondary { background: transparent; border-color: var(--line); color: #e3e6eb; }
.button.secondary:hover { border-color: #626a78; background: rgba(255,255,255,.03); }

footer { border-top: 1px solid var(--line); padding: 30px 0 42px; color: var(--muted); font-size: .9rem; }
.footerline { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; flex-wrap: wrap; }
.footerlinks { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .nav { align-items: flex-start; padding: 14px 0; }
  .navlinks { gap: 10px 13px; font-size: .84rem; }
  .card-grid { grid-template-columns: 1fr; }
  main { padding-top: 36px; }
  .article { border-radius: 14px; }
}

@media print {
  .topbar, footer, .actions { display: none; }
  body { background: white; color: black; }
  .article { box-shadow: none; border: 0; padding: 0; }
  .article p, .article li, .lead, .meta { color: #222; }
  a { color: #000; text-decoration: underline; }
}
