
  :root {
    --charcoal: #111923;
    --midnight: #243142;
    --slate: #3c4c60;
    --dark: #333333;
    --gray: #5b6a7d;
    --muted: #9ca3af;
    --line: #e1eaf6;
    --surface: #f8f9fb;
    --surface-2: #ebf1f8;
    --white: #ffffff;
    --lime: #cbe417;
    --lime-hover: #deed74;
    --teal: #00a1b3;
    --teal-2: #28e9ff;
    --teal-soft: #cbf0e9;
    --radius: 10px;
    --radius-sm: 5px;
    --shadow: 0 1px 2px rgba(17, 25, 35, .04), 0 8px 24px rgba(17, 25, 35, .06);
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    margin: 0; min-width: 320px;
    background: var(--surface);
    color: var(--dark);
    font: 400 16px/26px Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }
  a { color: inherit; }
  img { display: block; max-width: 100%; }
  code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
  .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
  @media (min-width: 1024px) { .container { padding: 0 24px; } }

  /* ---------- header ---------- */
  header.top { background: var(--charcoal); color: var(--white); position: sticky; top: 0; z-index: 20; }
  .nav { display: flex; align-items: center; gap: 24px; height: 64px; }
  .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; background: var(--white); }
  .nav-links { display: none; gap: 4px; margin-left: 12px; }
  .nav-links a { text-decoration: none; padding: 7px 12px; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px; color: #d7dee8; transition: background .15s, color .15s; }
  .nav-links a:hover { background: var(--midnight); color: var(--white); }
  .nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
  .nav-cta .gh { display: none; text-decoration: none; color: var(--lime); font-weight: 600; font-size: 15px; }
  .nav-cta .divider { display: none; width: 1px; height: 32px; background: var(--midnight); }
  @media (min-width: 900px) {
    .nav-links { display: flex; }
    .nav-cta .gh, .nav-cta .divider { display: inline-flex; }
  }

  /* ---------- buttons ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font: 600 16px/1 Manrope, sans-serif; padding: 14px 22px; border-radius: var(--radius-sm); transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
  .btn-sm { padding: 10px 16px; font-size: 15px; }
  .btn-lime { background: var(--lime); color: var(--dark); }
  .btn-lime:hover, .btn-lime:focus-visible { background: var(--lime-hover); }
  .btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--slate); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--muted); }
  .btn-outline { background: var(--white); color: var(--dark); box-shadow: inset 0 0 0 1px var(--line); }
  .btn-outline:hover { box-shadow: inset 0 0 0 1px var(--teal); color: var(--teal); }
  .btn svg { width: 18px; height: 18px; flex: none; }

  /* ---------- hero ---------- */
  .hero { background: var(--charcoal); color: var(--white); padding: 40px 0 72px; position: relative; overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 520px; background: radial-gradient(closest-side, rgba(0, 161, 179, .28), transparent); pointer-events: none; }
  .hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
  @media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; padding-top: 24px; } }
  .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--lime); background: rgba(203, 228, 23, .1); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
  .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
  .hero h1 { font-size: 36px; line-height: 44px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
  .hero h1 .grad { background: linear-gradient(90deg, var(--teal), var(--teal-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  @media (min-width: 1024px) { .hero h1 { font-size: 52px; line-height: 62px; } }
  .hero .lead { color: #c3ccd8; font-size: 18px; line-height: 30px; margin: 0 0 32px; max-width: 560px; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
  .hero-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 0; margin: 0; list-style: none; color: #c3ccd8; font-size: 15px; }
  .hero-facts li { display: flex; align-items: center; gap: 8px; }
  .hero-facts svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

  .terminal { background: #0b1118; border: 1px solid var(--midnight); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; min-width: 0; }
  .terminal-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: var(--midnight); }
  .terminal-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3c4c60; }
  .terminal-bar em { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--muted); }
  .terminal pre { margin: 0; padding: 18px 18px 22px; font-size: 13px; line-height: 22px; color: #d7dee8; overflow-x: auto; }
  .terminal .c { color: #5b6a7d; }
  .terminal .p { color: var(--lime); user-select: none; }
  .terminal .k { color: var(--teal-2); }
  .terminal .s { color: #f2f391; }
  .terminal .ok { color: #42c52c; }

  /* ---------- sections ---------- */
  main { margin-top: -40px; position: relative; }
  .card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 16px; margin-bottom: 20px; }
  @media (min-width: 1024px) { .card { padding: 56px 48px; } }
  .section-head { max-width: 720px; margin-bottom: 36px; }
  .section-head .kicker { display: block; color: var(--teal); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
  h2 { font-size: 28px; line-height: 36px; font-weight: 800; letter-spacing: -.015em; margin: 0 0 12px; color: var(--charcoal); }
  @media (min-width: 1024px) { h2 { font-size: 36px; line-height: 46px; } }
  .section-head p { margin: 0; color: var(--gray); font-size: 17px; line-height: 28px; }
  h3 { font-size: 18px; line-height: 26px; font-weight: 700; margin: 0 0 6px; color: var(--charcoal); }

  .features { display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .features { grid-template-columns: repeat(4, 1fr); } }
  .feature { background: var(--surface); border-radius: var(--radius); padding: 24px; }
  .feature p { margin: 0; color: var(--gray); font-size: 15px; line-height: 24px; }
  .icon-tile { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; margin-bottom: 16px; background: var(--teal-soft); color: #007f8d; }
  .icon-tile svg { width: 22px; height: 22px; }

  /* steps */
  .steps { display: grid; gap: 16px; counter-reset: step; padding: 0; margin: 0; list-style: none; }
  @media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
  .steps li { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
  .steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--dark); font-weight: 800; margin-bottom: 16px; }
  .steps p { margin: 0; color: var(--gray); font-size: 15px; line-height: 24px; }
  .note { margin: 24px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); background: #e5f6fd; color: var(--slate); font-size: 15px; line-height: 24px; }

  /* featured */
  .featured { display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .featured { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .featured { grid-template-columns: repeat(3, 1fr); } }
  .repo { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
  .repo:hover { border-color: var(--teal); box-shadow: var(--shadow); transform: translateY(-2px); }
  .repo-top { display: flex; align-items: center; gap: 12px; }
  .mono { width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--white); background: var(--midnight); flex: none; }
  .repo strong { font-size: 17px; color: var(--charcoal); }
  .repo .slug { display: block; font-size: 13px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
  .repo p { margin: 0; color: var(--gray); font-size: 15px; line-height: 24px; }
  .repo .arrow { margin-top: auto; padding-top: 6px; color: var(--teal); font-weight: 600; font-size: 14px; }

  /* directory */
  .dir-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
  .search { position: relative; flex: 1 1 260px; max-width: 420px; }
  .search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
  .search input { width: 100%; font: 500 16px Manrope, sans-serif; color: var(--dark); padding: 12px 14px 12px 42px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); outline: none; transition: border-color .15s, background .15s; }
  .search input:focus { border-color: var(--teal); background: var(--white); }
  .dir-count { color: var(--gray); font-size: 15px; }
  .dir-group { margin-bottom: 28px; }
  .dir-group:last-child { margin-bottom: 0; }
  .dir-group h3 { display: flex; align-items: baseline; gap: 10px; font-size: 16px; margin-bottom: 12px; }
  .dir-group h3 .n { font-size: 13px; font-weight: 600; color: var(--muted); }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid transparent; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--dark); transition: border-color .15s, background .15s; }
  .chip:hover { border-color: var(--teal); background: var(--white); }
  .chip .m { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--white); background: var(--slate); }
  .dir-empty { display: none; color: var(--gray); margin: 0; }
  .dir-all { margin-top: 32px; }

  /* integrations */
  .split { display: grid; gap: 32px; }
  @media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
  .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
  .checklist li { display: flex; gap: 12px; align-items: flex-start; }
  .checklist svg { width: 22px; height: 22px; flex: none; color: #42c52c; margin-top: 2px; }
  .products { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
  .product { padding: 20px; border-radius: var(--radius); background: var(--surface); }
  .product b { display: block; color: var(--charcoal); margin-bottom: 4px; }
  .product span { color: var(--gray); font-size: 14px; line-height: 22px; }
  .optional { margin: 20px 0 0; color: var(--gray); font-size: 15px; line-height: 24px; }
  .optional a, .inline-link { color: var(--teal); font-weight: 600; text-decoration: none; }
  .optional a:hover, .inline-link:hover { text-decoration: underline; }

  /* request banner */
  .banner { background: var(--charcoal); color: var(--white); border-radius: var(--radius); padding: 40px 16px; margin-bottom: 20px; position: relative; overflow: hidden; }
  @media (min-width: 1024px) { .banner { padding: 56px 48px; } }
  .banner::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(203, 228, 23, .18), transparent); }
  .banner-grid { position: relative; display: grid; gap: 28px; align-items: center; }
  @media (min-width: 900px) { .banner-grid { grid-template-columns: 1.4fr 1fr; } }
  .banner h2 { color: var(--white); }
  .banner p { color: #c3ccd8; margin: 0; font-size: 17px; line-height: 28px; }
  .banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
  @media (min-width: 900px) { .banner-actions { justify-content: flex-end; } }

  /* contributing */
  .contrib { display: grid; gap: 16px; }
  @media (min-width: 900px) { .contrib { grid-template-columns: repeat(3, 1fr); } }
  .contrib div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
  .contrib p { margin: 0; color: var(--gray); font-size: 15px; line-height: 24px; }
  .fineprint { margin: 24px 0 0; color: var(--muted); font-size: 14px; }

  /* footer */
  footer { background: var(--charcoal); color: #aab4c2; margin-top: 40px; padding: 48px 0 32px; font-size: 15px; }
  .foot-grid { display: grid; gap: 32px; }
  @media (min-width: 900px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
  footer h4 { color: var(--white); font-size: 15px; margin: 0 0 12px; }
  footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  footer a { text-decoration: none; }
  footer a:hover { color: var(--lime); }
  footer .tagline { margin: 14px 0 0; max-width: 360px; line-height: 24px; }
  .foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--midnight); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--gray); }

  :focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
  [hidden] { display: none !important; }

  /* ================= shared: scraper pages ================= */
  .crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #8f9bab; margin: 0 0 18px; padding: 0; list-style: none; }
  .crumbs a { color: #c3ccd8; text-decoration: none; }
  .crumbs a:hover { color: var(--lime); }
  .crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--slate); }
  .hero h1 .site { display: block; }
  .access-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin: 0 0 24px 8px; }
  .access-free { background: rgba(66, 197, 44, .14); color: #7ee06b; }
  .access-sometimes { background: rgba(242, 243, 145, .14); color: #f2f391; }
  .access-required { background: rgba(0, 161, 179, .18); color: var(--teal-2); }
  .hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
  .hero-chips li { font-size: 13px; font-weight: 600; color: #c3ccd8; background: var(--midnight); padding: 5px 10px; border-radius: var(--radius-sm); }

  .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
  @media (min-width: 900px) { .stats { grid-template-columns: repeat(var(--n, 4), 1fr); } }
  .stat { background: var(--white); padding: 22px 20px; }
  .stat b { display: block; font-size: 30px; line-height: 38px; font-weight: 800; color: var(--charcoal); letter-spacing: -.02em; }
  .stat span { display: block; color: var(--gray); font-size: 14px; line-height: 20px; margin-top: 4px; }
  .card.stats-card { padding: 0; background: transparent; box-shadow: var(--shadow); }

  .modes { display: grid; gap: 16px; }
  @media (min-width: 700px) { .modes { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .modes.n3, .modes.n5, .modes.n6 { grid-template-columns: repeat(3, 1fr); } }
  .mode { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .mode .input { align-self: flex-start; font-size: 13px; font-weight: 600; color: #007f8d; background: var(--teal-soft); padding: 4px 10px; border-radius: 999px; }
  .mode p { margin: 0; color: var(--gray); font-size: 15px; line-height: 24px; }

  /* code blocks + tabs */
  .code { position: relative; background: #0b1118; color: #d7dee8; border-radius: var(--radius-sm); font-size: 13px; line-height: 22px; }
  .code pre { margin: 0; padding: 16px 52px 16px 16px; overflow-x: auto; white-space: pre; }
  .code .p { color: var(--lime); user-select: none; }
  .copy { position: absolute; top: 8px; right: 8px; border: 0; cursor: pointer; font: 600 12px Manrope, sans-serif; color: #c3ccd8; background: var(--midnight); padding: 5px 9px; border-radius: 4px; }
  .copy:hover { background: var(--slate); color: #fff; }
  .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
  .tab { border: 1px solid var(--line); background: var(--white); color: var(--gray); font: 600 14px Manrope, sans-serif; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
  .tab[aria-selected="true"] { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }
  .tabpanel[hidden] { display: none; }
  .qs { display: grid; gap: 20px; counter-reset: qs; }
  .qs > li { list-style: none; display: grid; gap: 12px; grid-template-columns: 36px 1fr; align-items: start; }
  .qs > li::before { counter-increment: qs; content: counter(qs); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); font-weight: 800; color: var(--dark); }
  .qs h3 { margin: 6px 0 10px; }
  .qs p { margin: 0 0 10px; color: var(--gray); font-size: 15px; }
  .qs > li > div { min-width: 0; }
  ol.qs { padding: 0; margin: 0; }

  /* data */
  .data-grid { display: grid; gap: 24px; }
  @media (min-width: 1024px) { .data-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
  .fields { width: 100%; border-collapse: collapse; font-size: 15px; }
  .fields th, .fields td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
  .fields th { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
  .fields code { font-size: 13px; color: #007f8d; background: var(--surface); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
  .fields td:last-child { color: var(--gray); }
  .json { max-height: 560px; overflow: auto; }
  .json .k { color: var(--teal-2); }
  .json .s { color: #f2f391; }
  .json .n { color: #ffb86b; }
  .json .b { color: #ff7a90; }
  .sample-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }

  .builtin { display: grid; gap: 16px; }
  @media (min-width: 700px) { .builtin { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1100px) { .builtin { grid-template-columns: repeat(3, 1fr); } }

  .compare { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
  .compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
  .compare thead th { font-size: 14px; color: var(--charcoal); }
  .compare thead th:nth-child(2) { background: rgba(203, 228, 23, .18); border-radius: 6px 6px 0 0; }
  .compare td:nth-child(2) { background: rgba(203, 228, 23, .07); font-weight: 600; color: var(--charcoal); }
  .compare td:first-child { color: var(--gray); font-weight: 600; width: 26%; }
  .compare td:last-child { color: var(--gray); }
  .table-wrap { overflow-x: auto; }

  .access-box { border-radius: var(--radius); padding: 24px; background: var(--surface); }
  .access-box p { margin: 0 0 12px; color: var(--slate); }
  .limits { margin: 16px 0 0; padding-left: 20px; color: var(--gray); font-size: 15px; }
  .limits li { margin-bottom: 6px; }

  .faq details { border-bottom: 1px solid var(--line); }
  .faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 17px; color: var(--charcoal); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--teal); flex: none; }
  .faq details[open] summary::after { content: "–"; }
  .faq details p { margin: 0 0 18px; color: var(--gray); max-width: 860px; }

  .related { display: grid; gap: 12px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .related { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1024px) { .related { grid-template-columns: repeat(3, 1fr); } }
  .related .repo p { font-size: 14px; line-height: 22px; }
  .card h2 + .lede { margin: 0 0 28px; color: var(--gray); font-size: 17px; max-width: 760px; }
  .data-grid > *, .split > *, .hero-grid > *, .banner-grid > * { min-width: 0; }
  .fields code { white-space: nowrap; }
  .fields td:first-child { width: 1%; }
  .terminal pre { white-space: pre-wrap; overflow-wrap: anywhere; }
