/* Shared by the landing page and the docs: tokens, base type, buttons,
   the white nav bar, eyebrow chips and the footer, in Unkey's style. */
:root {
  color-scheme: dark;
  --bg: #040406;
  --bg-raised: #0b0c10;
  --fg: #ffffff;
  --muted: #9194a1;
  --faint: #5d606c;
  --line: #2e3038;
  --line-soft: #1b1c22;
  --display: "Manrope", "Inter", ui-sans-serif, system-ui, sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
code, pre, .mono { font-family: var(--mono); }

/* Buttons: square, white or outlined, like Unkey's. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 1px solid var(--fg);
  font: 500 15px/1 var(--body); letter-spacing: -0.02em; cursor: pointer;
  background: transparent; color: var(--fg); white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: #d9dae0; border-color: #d9dae0; }
.btn-outline:hover { background: var(--fg); color: var(--bg); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* Nav */
.nav { position: absolute; inset: 10px 0 auto; z-index: 10; }
.nav .wrap { display: flex; align-items: stretch; gap: 4px; }
.nav-bar { flex: 1; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 8px 0 20px; background: var(--fg); color: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 19px/1 var(--display); letter-spacing: -0.03em; }
.brand-mark { display: grid; place-items: center; width: 24px; height: 24px; background: var(--bg); color: var(--fg); font: 600 13px/1 var(--body); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 0 14px; height: 44px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; letter-spacing: -0.02em; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { height: 44px; border-color: var(--fg); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; letter-spacing: -0.035em; }

/* Eyebrow chip and its glowing marker, as on unkey.com. */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 24px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--fg); font: 400 14px/1.375 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.glow { position: relative; flex: none; width: 10px; height: 10px; }
.glow::before, .glow::after, .glow i { content: ""; position: absolute; inset: 0; border-radius: 2px; }
.glow::before { background: #0095e6; filter: blur(5px); }
.glow::after { background: #35f1e4; filter: blur(2px); }
.glow i { background: #9ffaf2; }
.glow.idle::before { background: #4a4d58; }
.glow.idle::after { background: #8b8e99; }
.glow.idle i { background: #c9cbd3; }

/* Footer */
footer { padding: 48px 0 64px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
footer nav a:hover { color: var(--fg); }
.provided { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.provided a { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.provided a:hover { border-color: var(--fg); }
.brand-light { color: var(--fg); }
.brand-light .brand-mark { background: var(--fg); color: var(--bg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .nav .btn-github span { display: none; }
  .nav .btn-github { padding: 0 12px; }
}
