/* The Hub — minimal hand-written styles */
:root {
  --bg: #fafafa;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #e3e3e3;
  --accent: #0b6efd;
  --ok: #1a7f37;
  --warn: #9a6700;
  --bad: #cf222e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 Inter, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }

.topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 16px; }
.topbar nav a { color: var(--muted); text-decoration: none; }
.topbar nav a:hover { color: var(--ink); }
.apikey { margin-left: auto; display: flex; gap: 8px; }
.apikey input {
  width: 280px; padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13px;
}
.apikey button {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; cursor: pointer;
}
.apikey button:hover { background: #f0f0f0; }

h1 { font-size: 26px; margin: 8px 0 4px; }
h2 { font-size: 19px; margin: 28px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sub { color: var(--muted); font-size: 13px; }
.lede { font-size: 16px; color: #333; max-width: 62ch; }
.crumb a { color: var(--muted); text-decoration: none; }
.meta { color: var(--muted); font-size: 13px; margin: 4px 0 12px; }
.count { color: var(--muted); }

/* homepage */
.section { margin-top: 44px; }
.hero {
  padding: 52px 36px 40px; margin: 16px -36px 0; border-radius: 16px;
  background:
    radial-gradient(560px 220px at 18% 0%, #e8f1ff 0%, transparent 60%),
    radial-gradient(480px 200px at 88% 20%, #f3eaff 0%, transparent 55%),
    #ffffff;
  border: 1px solid var(--line);
  text-align: left;
}
.kicker {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  background: #eaf3ff; border-radius: 999px; padding: 5px 12px; margin: 0 0 14px;
}
.hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.hero .lede { font-size: 16.5px; color: #444; max-width: 64ch; margin: 0; }
.hero-search { display: flex; gap: 8px; margin-top: 24px; max-width: 620px; }
.hero-search input[type="search"] {
  flex: 1; padding: 13px 16px; border: 1px solid #d5d5d5;
  border-radius: 10px; font-size: 15px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.hero-search input[type="search"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(11,110,253,.12);
}
.hero-search button {
  padding: 13px 22px; border: none; border-radius: 10px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer;
}
.hero-search button:hover { background: #333; }
.search-hints { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.search-hints a {
  color: var(--accent); text-decoration: none; background: #f1f6ff;
  border: 1px solid #dbe7fb; border-radius: 999px; padding: 3px 11px; font-size: 12.5px;
}
.search-hints a:hover { background: #e2edff; }
.stats-strip {
  display: flex; gap: 0; margin: 34px 0 0; padding: 0;
  border-top: 1px solid var(--line);
}
.stats-strip > div { padding: 16px 28px 0 0; margin-right: 28px; }
.stats-strip > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.stats-strip dt { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; }
.stats-strip dd { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }

.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.how-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; transition: box-shadow .15s ease, transform .15s ease;
}
.how-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.06); transform: translateY(-2px); }
.how-card .step {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted); border-bottom: 2px solid var(--accent); padding-bottom: 2px; margin-bottom: 10px;
}
.how-card h3 { margin: 0 0 8px; font-size: 15.5px; }
.how-card p { margin: 0; font-size: 13.5px; color: var(--muted); }

.source-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px;
}
.source-list li {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
}
.source-list li a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.source-list li a:hover { color: var(--accent); }
.source-list .count {
  font-size: 12px; color: var(--muted); background: #f3f3f3;
  border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.source-list .desc { flex-basis: 100%; font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }

.featured-card { border-radius: 12px; transition: box-shadow .15s ease, transform .15s ease; }
.featured-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.07); transform: translateY(-2px); }
.center { text-align: center; margin-top: 20px; }

.cta-band {
  margin: 56px -36px 0; border-radius: 16px; padding: 36px;
  background: #141414; color: #f5f5f5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { border: none; margin: 0 0 8px; padding: 0; color: #fff; font-size: 22px; }
.cta-band p { margin: 0; color: #bdbdbd; font-size: 14px; max-width: 52ch; }
.cta-actions { display: flex; gap: 10px; }
.cta-band .btn {
  background: #fff; color: #141414; border: none; border-radius: 10px;
  padding: 12px 20px; font-weight: 600;
}
.cta-band .btn:hover { background: #e8e8e8; }
.cta-band .btn.ghost {
  background: transparent; color: #fff; border: 1px solid #444;
}
.cta-band .btn.ghost:hover { background: #222; }

.footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 16px 0; margin-top: 40px; font-size: 13px; color: var(--muted);
}
.footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; padding-top: 0; padding-bottom: 0; }

/* dataset detail */
.section-nav {
  display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 4px;
  border-bottom: 1px solid var(--line); padding-bottom: 8px;
}
.section-nav a {
  padding: 6px 12px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-size: 13px;
}
.section-nav a:hover { background: #eee; color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.table-scroll table { border: none; }
.pager { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.downloads { display: flex; align-items: center; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.dl-links a { margin-right: 8px; }

.filters { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.filters input[type="search"] {
  flex: 1; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
}
.filters select {
  padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px;
}
button, .btn {
  display: inline-block; padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer;
  text-decoration: none; font-size: 14px;
}
button:hover, .btn:hover { background: #f0f0f0; }
.btn { margin-right: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card .desc { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.card .meta { margin: 0 0 10px; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px;
  background: #eee; color: var(--muted);
}
.badge.ok { background: #e6f4ea; color: var(--ok); }
.badge.warn { background: #fef3e2; color: var(--warn); }
.badge.bad { background: #fdecea; color: var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f5f5f5; font-weight: 600; }
td code, li code { font-size: 12px; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: #f0f0f0; padding: 1px 5px; border-radius: 4px; }
pre { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; overflow-x: auto; font-size: 12.5px; }
pre.err { border-color: var(--bad); color: var(--bad); }

.kv { list-style: none; padding: 0; }
.kv li { padding: 4px 0; }
.attr { background: #f0f7ff; border-left: 3px solid var(--accent); padding: 8px 12px; font-size: 13px; }
.empty { color: var(--muted); }

.wb { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
.wb-side h3, .wb-main h3 { margin-top: 0; }
.tables { list-style: none; padding: 0; font-size: 13px; }
.tables li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tables li code { display: block; margin-bottom: 2px; }
#sql { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
#results { overflow-x: auto; }

@media (max-width: 760px) {
  .wb { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .topbar nav { gap: 14px; }
  .apikey { margin-left: 0; width: 100%; }
  .apikey input { flex: 1; width: auto; }
  .wrap { padding: 20px 16px 48px; }

  /* homepage */
  .hero { margin: 8px -16px 0; padding: 36px 24px 30px; border-radius: 0; border-left: none; border-right: none; }
  .hero h1 { font-size: 29px; }
  .hero .lede { font-size: 15px; }
  .hero-search { flex-direction: column; }
  .hero-search button { width: 100%; }
  .search-hints { flex-wrap: wrap; row-gap: 8px; }
  .stats-strip {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px; border-top: none; margin-top: 28px;
  }
  .stats-strip > div { padding: 0; margin: 0; }
  .stats-strip > div + div { border-left: none; padding-left: 0; }
  .stats-strip dt { font-size: 22px; }
  .section { margin-top: 36px; }
  .cta-band {
    margin: 40px -16px 0; border-radius: 0; padding: 30px 24px;
    flex-direction: column; align-items: stretch;
  }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { text-align: center; }
}

/* ================= The Hub homepage — midnight edition ================= */
body.page-home {
  --hbg: #06080b;
  --panel: #0c1016;
  --line-d: rgba(255,255,255,.09);
  --txt: #eef1f6;
  --mut: #98a2b3;
  --dim: #697386;
  --lime: #c8f04b;
  --cyan: #6ee7f9;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --disp: "Space Grotesk", Inter, -apple-system, "Segoe UI", sans-serif;
  background: var(--hbg);
  color: var(--txt);
}
body.page-home ::selection { background: rgba(200,240,75,.85); color: #0b0d05; }

/* dark chrome */
body.page-home .topbar {
  background: rgba(6,8,11,.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
body.page-home .brand { color: #fff; }
body.page-home .topbar nav a { color: var(--mut); }
body.page-home .topbar nav a:hover { color: #fff; }
body.page-home .apikey input {
  background: #0d1319; border-color: rgba(255,255,255,.14); color: #fff;
}
body.page-home .apikey input::placeholder { color: #5b6474; }
body.page-home .apikey button {
  background: transparent; border-color: rgba(255,255,255,.16); color: #dfe5ee;
}
body.page-home .apikey button:hover { background: rgba(255,255,255,.07); }
body.page-home main.wrap { max-width: none; padding: 0; }
body.page-home .footer {
  background: #06080b; border-top: 1px solid rgba(255,255,255,.08); color: #7d8798;
}
body.page-home .footer code { background: rgba(255,255,255,.08); color: #c6cdd9; }

.h-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; position: relative; }

/* hero */
.h-hero { position: relative; overflow: hidden; padding: 88px 0 76px; }
.h-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 14% -2%, rgba(200,240,75,.10), transparent 60%),
    radial-gradient(700px 460px at 90% 10%, rgba(110,231,249,.08), transparent 60%);
}
.h-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.034) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 15%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 85% at 50% 15%, #000 25%, transparent 78%);
}
.h-hero-grid {
  display: grid; grid-template-columns: 1.04fr .96fr; gap: 60px; align-items: center;
}
.h-badge {
  display: inline-flex; align-items: center; gap: 9px; margin: 0;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #c9d2e0;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  border-radius: 999px; padding: 7px 15px;
}
.h-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex: none;
  box-shadow: 0 0 0 0 rgba(200,240,75,.5); animation: h-pulse 2.2s infinite;
}
@keyframes h-pulse {
  70% { box-shadow: 0 0 0 9px rgba(200,240,75,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,240,75,0); }
}
.h-copy h1 {
  font-family: var(--disp); font-weight: 700; color: #fff;
  font-size: clamp(2.75rem, 5.8vw, 4.5rem); line-height: 1.02;
  letter-spacing: -.032em; margin: 20px 0 18px;
}
.h-grad {
  background: linear-gradient(94deg, var(--lime) 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-lede { color: var(--mut); font-size: 16.5px; line-height: 1.65; max-width: 54ch; margin: 0; }
.h-search {
  display: flex; gap: 6px; align-items: center; margin-top: 30px; max-width: 600px;
  background: #0d1219; border: 1px solid rgba(255,255,255,.13); border-radius: 14px;
  padding: 6px 6px 6px 16px; box-shadow: 0 10px 36px rgba(0,0,0,.5);
  transition: border-color .18s, box-shadow .18s;
}
.h-search:focus-within {
  border-color: rgba(200,240,75,.55);
  box-shadow: 0 0 0 3px rgba(200,240,75,.13), 0 10px 36px rgba(0,0,0,.5);
}
.h-search-icon { width: 18px; height: 18px; color: #5f6a7e; flex: none; }
.h-search input[type="search"] {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: #fff; font-size: 15px; padding: 12px 6px; font-family: inherit;
}
.h-search input[type="search"]::placeholder { color: #5f6a7e; }
.h-search button {
  background: var(--lime); color: #0b0d05; border: none; border-radius: 10px;
  font-weight: 700; font-size: 14.5px; padding: 13px 24px; cursor: pointer;
  transition: transform .12s, background .12s;
}
.h-search button:hover { background: #d8f76e; transform: translateY(-1px); }
.h-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--dim); }
.h-chips a {
  color: #c9d2e0; text-decoration: none; font-size: 12.5px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  border-radius: 999px; padding: 5px 13px; transition: border-color .15s, color .15s;
}
.h-chips a:hover { border-color: rgba(200,240,75,.5); color: var(--lime); }
.h-stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 40px; margin: 38px 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255,255,255,.09);
}
.h-stats > div { margin: 0; padding: 0; }
.h-stats dt {
  font-family: var(--disp); font-weight: 700; font-size: 31px; letter-spacing: -.02em;
  color: #fff; font-variant-numeric: tabular-nums;
}
.h-stats dd { margin: 3px 0 0; font-size: 12.5px; color: var(--dim); }

/* live query window */
.h-demo { min-width: 0; }
.h-window {
  background: #0a0e14; border: 1px solid rgba(255,255,255,.11); border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 110px rgba(200,240,75,.055);
}
.h-winbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025);
}
.h-dots { display: inline-flex; gap: 7px; }
.h-dots i { width: 11px; height: 11px; border-radius: 50%; }
.h-dots i:nth-child(1) { background: #ff5f57; }
.h-dots i:nth-child(2) { background: #febc2e; }
.h-dots i:nth-child(3) { background: #28c840; }
.h-wintitle { font-family: var(--mono); font-size: 12.5px; color: #8b94a7; }
.h-run {
  margin-left: auto; font-size: 12px; font-weight: 700; color: #0b0d05;
  background: var(--lime); border-radius: 8px; padding: 6px 13px; cursor: default;
}
.h-code {
  margin: 0; padding: 20px 22px 8px; background: transparent; border: none;
  font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #c9d4e3;
  overflow-x: auto; border-radius: 0;
}
.h-code .k { color: #c792ea; }
.h-code .f { color: #82aaff; }
.h-code .s { color: var(--lime); }
.h-code .n { color: #f78c6c; }
.h-reswrap { margin: 14px 22px 0; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; overflow: hidden; }
.h-restable { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,.015); }
.h-restable th {
  background: rgba(255,255,255,.045); color: #8b94a7; font-weight: 500;
  text-align: left; padding: 9px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.h-restable td { padding: 8px 16px; color: #dbe2ee; border-bottom: 1px solid rgba(255,255,255,.045); font-variant-numeric: tabular-nums; }
.h-restable tr:last-child td { border-bottom: none; }
.h-restable tbody tr:hover td { background: rgba(200,240,75,.045); }
.h-winfoot {
  display: flex; align-items: center; gap: 9px; padding: 14px 22px;
  font-family: var(--mono); font-size: 11.5px; color: #7d8798;
}
.h-okdot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 9px var(--lime); flex: none; }
.h-demo-cap { text-align: center; color: var(--dim); font-size: 12.5px; margin: 14px 0 0; }

/* sections */
.h-section { padding: 76px 0 6px; }
.h-eyebrow {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .17em;
  text-transform: uppercase; color: var(--lime);
}
.h-section h2 {
  font-family: var(--disp); font-weight: 700; color: #fff; border: none; padding: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem); letter-spacing: -.022em; margin: 0 0 30px;
}
.h-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 30px; }
.h-sec-head h2 { margin: 0; }
.h-link { color: var(--lime); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.h-link:hover { text-decoration: underline; }

/* sources */
.h-sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.h-sources a {
  display: flex; align-items: center; gap: 13px; padding: 17px 19px;
  background: var(--panel); border: 1px solid var(--line-d); border-radius: 13px;
  text-decoration: none; transition: transform .16s, border-color .16s, box-shadow .16s;
}
.h-sources a:hover { transform: translateY(-2px); border-color: rgba(200,240,75,.4); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.h-src-dot { width: 11px; height: 11px; border-radius: 4px; background: linear-gradient(135deg, var(--lime), var(--cyan)); flex: none; }
.h-src-name { color: #eef1f6; font-weight: 600; font-size: 14.5px; }
.h-src-count {
  margin-left: auto; font-size: 12px; color: var(--mut); background: rgba(255,255,255,.06);
  border-radius: 999px; padding: 3px 11px; white-space: nowrap;
}

/* featured cards */
.h-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line-d); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.h-card:hover { transform: translateY(-4px); border-color: rgba(200,240,75,.38); box-shadow: 0 20px 48px rgba(0,0,0,.5); }
.h-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 15px; }
.h-src-pill { font-size: 11.5px; font-weight: 600; color: #aeb8c9; background: rgba(255,255,255,.06); border-radius: 999px; padding: 4px 11px; }
.h-lic { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.h-lic.ok { color: #0b0d05; background: var(--lime); }
.h-lic.bad { color: #ff9aa2; background: rgba(207,34,46,.15); border: 1px solid rgba(207,34,46,.45); }
.h-lic.warn { color: #ffd479; background: rgba(154,103,0,.18); border: 1px solid rgba(154,103,0,.5); }
.h-card h3 { margin: 0 0 9px; font-size: 17px; font-family: var(--disp); font-weight: 600; letter-spacing: -.01em; }
.h-card h3 a { color: #fff; text-decoration: none; }
.h-card h3 a:hover { color: var(--lime); }
.h-card-desc {
  color: var(--mut); font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.h-card-foot { display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 15px; }
.h-card-rows { font-size: 12.5px; color: #aeb8c9; font-family: var(--mono); }
.h-q { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.h-qbar { width: 62px; height: 5px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.h-qbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), var(--cyan)); border-radius: 999px; }
.h-card-go { margin-left: auto; color: var(--lime); text-decoration: none; font-size: 19px; line-height: 1; }
.h-card-go:hover { transform: translateX(3px); }
.h-card-go { transition: transform .15s; display: inline-block; }

/* how it works */
.h-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-steps li { background: var(--panel); border: 1px solid var(--line-d); border-radius: 16px; padding: 28px 26px; position: relative; overflow: hidden; }
.h-steps li::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--cyan)); opacity: .55;
}
.h-step-n {
  display: inline-block; font-family: var(--disp); font-size: 12.5px; font-weight: 700;
  letter-spacing: .14em; color: var(--lime);
  border: 1px solid rgba(200,240,75,.35); background: rgba(200,240,75,.07);
  border-radius: 8px; padding: 5px 11px;
}
.h-steps h3 { margin: 18px 0 9px; font-size: 17.5px; font-family: var(--disp); font-weight: 600; color: #fff; }
.h-steps p { color: var(--mut); font-size: 13.5px; line-height: 1.65; margin: 0 0 16px; }
.h-steps code { font-family: var(--mono); font-size: 11.5px; color: #8b94a7; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); padding: 6px 11px; border-radius: 7px; }

/* access */
.h-access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.h-acc { background: #0a0e13; border: 1px solid var(--line-d); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; }
.h-acc-head { display: flex; align-items: center; gap: 11px; margin-bottom: 11px; }
.h-acc-ic {
  width: 33px; height: 33px; border-radius: 10px; flex: none;
  background: rgba(200,240,75,.1); border: 1px solid rgba(200,240,75,.32);
  color: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.h-acc h3 { margin: 0; font-size: 16px; font-family: var(--disp); font-weight: 600; color: #fff; }
.h-acc p { color: var(--mut); font-size: 13.5px; line-height: 1.6; margin: 0 0 17px; }
.h-acc pre {
  margin: 0 0 20px; background: #06090d; border: 1px solid rgba(255,255,255,.09);
  border-radius: 10px; padding: 17px 18px; font-family: var(--mono);
  font-size: 12.5px; line-height: 1.75; color: #c9d4e3; overflow-x: auto; flex: 1;
}
.h-acc pre .k { color: #c792ea; }
.h-acc pre .s { color: var(--lime); }
.h-acc pre .n { color: #f78c6c; }
.h-acc pre .h-hdr { color: #82aaff; }
.h-acc .h-link { margin-top: auto; }

/* cta */
.h-cta-sec { padding-bottom: 100px; }
.h-cta {
  position: relative; text-align: center; padding: 76px 32px; border-radius: 26px;
  background: radial-gradient(640px 320px at 50% -10%, rgba(200,240,75,.13), transparent 65%), #0a0e14;
  border: 1px solid rgba(200,240,75,.24); overflow: hidden;
}
.h-cta h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 0 0 15px; }
.h-cta p { color: var(--mut); max-width: 56ch; margin: 0 auto 32px; font-size: 16px; line-height: 1.65; }
.h-cta .h-eyebrow { margin-bottom: 14px; }
.h-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.h-btn {
  display: inline-block; padding: 15px 30px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.17); color: #fff; background: transparent;
  text-decoration: none; font-weight: 600; font-size: 15px;
  transition: transform .14s, background .14s, border-color .14s;
}
.h-btn:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.32); transform: translateY(-1px); }
.h-btn-primary { background: var(--lime); border-color: transparent; color: #0b0d05; }
.h-btn-primary:hover { background: #d8f76e; border-color: transparent; }

/* reveal on scroll (JS-gated: content stays visible without JS) */
.js .page-home .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .page-home .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .page-home .rv { opacity: 1; transform: none; transition: none; }
  .h-pulse { animation: none; }
}

/* responsive */
@media (max-width: 980px) {
  .h-hero { padding: 60px 0 56px; }
  .h-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .h-cards { grid-template-columns: 1fr 1fr; }
  .h-steps { grid-template-columns: 1fr; }
  .h-access { grid-template-columns: 1fr; }
  .h-sources { grid-template-columns: 1fr 1fr; }
  .h-stats { gap: 28px; }
}
@media (max-width: 640px) {
  .h-inner { padding: 0 18px; }
  .h-hero { padding: 48px 0 44px; }
  .h-copy h1 { font-size: 2.55rem; }
  .h-search { flex-direction: column; align-items: stretch; padding: 8px; }
  .h-search-icon { display: none; }
  .h-search input[type="search"] { padding: 12px 14px; }
  .h-search button { width: 100%; }
  .h-stats { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .h-stats dt { font-size: 25px; }
  .h-cards { grid-template-columns: 1fr; }
  .h-sources { grid-template-columns: 1fr; }
  .h-sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h-section { padding: 54px 0 4px; }
  .h-cta { padding: 52px 22px; border-radius: 20px; }
  .h-cta-sec { padding-bottom: 70px; }
  .h-cta-btns .h-btn { width: 100%; text-align: center; }
  .h-code { font-size: 12px; padding: 16px 16px 6px; }
  .h-reswrap { margin: 12px 16px 0; }
  .h-winfoot { padding: 12px 16px; flex-wrap: wrap; }
}
