/* Nimbio API landing page — brand-consistent with nimbio.com.
   Palette + type mirror the marketing site: purple #7371FC, Filson Pro
   headings, Montserrat/system fallback for body. Single hand-written sheet,
   no build step. */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: "Filson Pro";
  src: url("/static/fonts/FilsonPro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Filson Pro";
  src: url("/static/fonts/FilsonPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Filson Pro";
  src: url("/static/fonts/FilsonPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ tokens */
:root {
  --brand-purple: #7371fc;
  --brand-purple-dark: #5b59e6;
  --brand-black: #12121a;
  --brand-orange: #e15634;
  --ink: #2a2a35;
  --ink-soft: #5b5b6b;
  --line: #e6e6ef;
  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 18, 26, 0.04), 0 8px 24px rgba(18, 18, 26, 0.06);
  --head: "Filson Pro", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: var(--head); color: var(--brand-black); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-weight: 700; }
h2 { font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-weight: 500; font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--brand-purple); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .9em; }

.wrap { width: min(1120px, 92vw); margin: 0 auto; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--head);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-purple); color: #fff; }
.btn-primary:hover { background: var(--brand-purple-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.btn-outline { background: #fff; color: var(--brand-purple); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand-purple); text-decoration: none; }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 1rem; }
.nav__logo img { height: 40px; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.4rem; }
.nav__links a { color: var(--ink); font-family: var(--head); font-weight: 500; font-size: 15px; }
.nav__links a:hover { color: var(--brand-purple); text-decoration: none; }
@media (max-width: 720px) { .nav__links .nav__hide { display: none; } }

/* ------------------------------------------------------------------ dev ribbon */
.devbar {
  background: var(--brand-orange);
  color: #fff;
  text-align: center;
  font-family: var(--head);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 12px;
}
.devbar code { background: rgba(255, 255, 255, .2); padding: 1px 6px; border-radius: 4px; }

/* ------------------------------------------------------------------ hero */
.hero {
  background: radial-gradient(120% 140% at 80% -20%, #8f8dff 0%, var(--brand-purple) 45%, var(--brand-purple-dark) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero__logo { height: 46px; margin-bottom: 1.6rem; }
.hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3.3rem); max-width: 16ch; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 52ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: 14px; color: rgba(255,255,255,.85); }
.hero__meta b { color: #fff; font-family: var(--head); }

/* ------------------------------------------------------------------ sections */
section.block { padding: clamp(3rem, 7vw, 5rem) 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { max-width: 60ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--ink-soft); }
.eyebrow { font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--brand-purple); margin-bottom: .6rem; }

/* ------------------------------------------------------------------ cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card .card__cta { margin-top: 1rem; }
.card__extra { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; }

/* ------------------------------------------------------------------ quickstart */
.quick { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .quick { grid-template-columns: 1fr; } }
.quick ul { padding-left: 1.1rem; color: var(--ink-soft); }
.quick li { margin-bottom: .5rem; }
.codeblock {
  background: var(--brand-black);
  color: #eef;
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  overflow-x: auto;
  white-space: pre;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  box-shadow: var(--shadow);
  -moz-tab-size: 2;
  tab-size: 2;
}
@media (max-width: 520px) { .codeblock { white-space: pre-wrap; } }
.codeblock .c-key { color: #a9a7ff; }
.codeblock .c-str { color: #7ee0b8; }
.codeblock .c-cmt { color: #8b8ba7; }

.pill { display: inline-block; font-family: var(--mono); font-size: 12.5px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--ink); }

/* ------------------------------------------------------------------ geo def */
.geo-def { max-width: 74ch; margin-bottom: 0; }
.geo-def h2 { margin-bottom: .6rem; }
.geo-def p { font-size: 1.12rem; color: var(--ink); margin-bottom: 0; }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2.4rem; }
@media (max-width: 760px) { .faq { grid-template-columns: 1fr; } }
.faq__item { padding-top: 1.2rem; border-top: 1px solid var(--line); }
.faq__q { font-size: 1.05rem; margin-bottom: .4rem; }
.faq__a { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--brand-black); color: rgba(255, 255, 255, .8); padding: 3rem 0 2.5rem; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
.footer img { height: 30px; opacity: .95; }
.footer a { color: rgba(255, 255, 255, .8); }
.footer a:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-family: var(--head); font-weight: 500; font-size: 14px; }
.footer__legal { width: 100%; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.4rem; font-size: 13px; color: rgba(255, 255, 255, .55); }
