:root {
  --bg: #0d0f14;
  --surface: #161a22;
  --border: #262c38;
  --text: #e8ebf1;
  --muted: #9aa3b2;
  --yellow: #ffe000;
  --blue: #0a84d6;
  --red: #e2162b;
  --green: #8bc34a;
  --radius: 14px;
  --max: 1040px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: "Quicksand", "Inter", system-ui, sans-serif;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 15, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand img { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; max-width: 14ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin: 0 0 32px; }
.dots { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.dots span {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.22;
}
.dots .y { background: var(--yellow); width: 260px; height: 260px; top: 20px; right: 8%; }
.dots .b { background: var(--blue); width: 320px; height: 320px; top: 160px; right: 28%; }
.dots .r { background: var(--red); width: 220px; height: 220px; top: 260px; right: 2%; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.btn:hover { text-decoration: none; opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); margin-left: 8px; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.9rem; }
.lead { color: var(--muted); max-width: 60ch; margin-bottom: 32px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0; }
.pip { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pip.y { background: var(--yellow); } .pip.b { background: var(--blue); }
.pip.r { background: var(--red); }    .pip.g { background: var(--green); }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--muted); }
.checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--green);
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }

/* Legal / prose pages */
.prose { max-width: 760px; padding: 56px 20px 80px; margin: 0 auto; }
.prose h1 { font-size: 2.2rem; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose p, .prose li { color: #c9cfda; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--text); }
.meta { color: var(--muted); font-size: 14px; }

/* 404 */
.center { min-height: 60vh; display: grid; place-content: center; text-align: center; }

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  .btn.ghost { margin: 12px 0 0; }
}
