/* ===========================================================================
   API BCE — design system
   Premium developer-docs aesthetic. Light default + dark mode.
   =========================================================================== */
:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --line: #e6e8ee;
  --line-2: #eef0f5;
  --bg: #ffffff;
  --bg-2: #f7f8fb;
  --bg-3: #f1f3f9;
  --surface: #ffffff;

  /* brand = logo royal blue; accent = Belgian red; text-on-blue stays white */
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-ink: #1e3a8a;
  --brand-50: #eff5ff;
  --brand-100: #d6e4fe;
  --on-brand: #ffffff;
  --accent: #e11221;
  --accent-2: #c00e1b;
  --link: #1d4ed8; /* readable blue for text/links on light surfaces */
  --gold: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;

  /* code blocks are always dark, Stripe-style */
  --code-bg: #0d1424;
  --code-bg-2: #131c30;
  --code-line: #1e293b;
  --code-fg: #d7dee9;
  --code-muted: #7c8aa5;
  --code-tab: #8aa0c6;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 12px 32px -14px rgba(15,23,42,.20);
  --shadow-lg: 0 40px 80px -28px rgba(11,23,52,.40);
  --maxw: 1240px;
  --nav-h: 64px;
  --sidebar-w: 268px;
  --toc-w: 220px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
:root[data-theme="dark"] {
  --ink: #ececef;
  --ink-2: #d2d4da;
  --slate: #aeb1bc;
  --muted: #8c8f99;
  --line: rgba(255,255,255,.10);
  --line-2: rgba(255,255,255,.07);
  --bg: #0b0c0f;
  --bg-2: #101216;
  --bg-3: #16181d;
  --surface: #141519;
  --brand: #60a5fa;
  --brand-2: #93c5fd;
  --brand-ink: #bfdbfe;
  --brand-50: rgba(96,165,250,.13);
  --brand-100: rgba(96,165,250,.24);
  --on-brand: #07142b;
  --accent: #ff5a66;
  --accent-2: #ff7079;
  --link: #60a5fa;
  --code-bg: #08090c;
  --code-bg-2: #0e0f13;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow-md: 0 14px 34px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 80px -28px rgba(0,0,0,.8);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: var(--sans); color: var(--ink); background: var(--bg);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
::selection { background: var(--brand-100); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 14.5px; line-height: 1;
  padding: 12px 20px; border-radius: 10px; cursor: pointer; border: 1px solid transparent;
  transition: transform .14s ease, box-shadow .2s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px -8px rgba(37,99,235,.5); }
.btn-primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); background: var(--bg-2); }
.btn-light { background: #fff; color: var(--brand-ink); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* ---------- Header ---------- */
header.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.02em; flex-shrink: 0; }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: block; }
.brand small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.brand .name { display: flex; flex-direction: column; line-height: 1.15; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--link); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* icon button */
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--slate);
  cursor: pointer; transition: color .18s, border-color .18s, background .18s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }

/* language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px;
  font-size: 13.5px; font-weight: 600; color: var(--slate); font-family: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 0 12px; cursor: pointer;
}
.lang-btn:hover { color: var(--ink); border-color: var(--muted); }
.lang-btn .chev { width: 12px; height: 12px; transition: transform .2s; }
.lang-switch.open .lang-btn .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 188px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 6px; z-index: 70;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .16s, transform .16s;
}
.lang-switch.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--slate); }
.lang-menu a:hover { background: var(--bg-2); color: var(--ink); }
.lang-menu a.active { color: var(--link); font-weight: 700; }

/* hamburger */
.nav-toggle { display: none; }
.nav-cta-m { display: none; }
@media (max-width: 1000px) {
  .nav-links { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 20px 20px; box-shadow: var(--shadow-md); }
  body.menu-open .nav-links { display: flex; }
  .nav-links a { padding: 14px 6px; font-size: 16px; border-bottom: 1px solid var(--line-2); border-radius: 0; }
  .nav-links a.active { color: var(--link); }
  /* mobile CTA inside the menu */
  .nav-links a.nav-cta-m { display: flex; justify-content: center; margin-top: 14px; padding: 13px 18px;
    border: none; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-weight: 600; }
  .nav-links a.nav-cta-m:hover { background: var(--brand-2); }
  .nav-links a:not(.nav-cta-m):last-of-type { border-bottom: none; }
  /* top bar: keep it to brand + lang + theme + burger; drop the standalone CTA */
  .nav-cta { display: none; }
  .nav-inner { gap: 10px; }
  .nav-right { gap: 6px; }
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; }
  .nav-toggle span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 420px) {
  .brand { font-size: 15.5px; gap: 8px; }
  .brand .logo { width: 28px; height: 28px; }
  .lang-btn { padding: 0 9px; }
}

/* ===========================================================================
   LANDING
   =========================================================================== */
.hero {
  position: relative; overflow: hidden; padding: 86px 0 74px;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(640px 380px at 2% 0%, rgba(225,18,33,.08), transparent 55%);
}
:root[data-theme="dark"] .hero { background:
  radial-gradient(900px 460px at 88% -8%, rgba(96,165,250,.14), transparent 60%),
  radial-gradient(640px 380px at 2% 0%, rgba(255,90,102,.10), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  color: var(--brand-ink); background: var(--brand-50); border: 1px solid var(--brand-100);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 22px; letter-spacing: .01em;
}
:root[data-theme="dark"] .eyebrow { color: var(--brand); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(225,18,33,.20); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; font-weight: 800; letter-spacing: -.035em; margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(120deg, var(--brand-ink), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .hero h1 .hl { background: linear-gradient(120deg, #60a5fa, #ff7a84); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; color: var(--slate); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-note { font-size: 13.5px; color: var(--muted); max-width: 520px; }

/* hero code card */
.code-card { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.code-card .cc-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--code-line); }
.code-card .cc-top .dots { display: flex; gap: 6px; }
.code-card .cc-top .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-card .cc-top .label { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--code-muted); }
.code-card pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; }
.code-card code { font-family: var(--mono); font-size: 13px; line-height: 1.75; color: var(--code-fg); }

/* ---------- Code block component (tabs + copy) — shared landing + docs ---------- */
.code { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-sm); overflow: hidden; margin: 16px 0; }
.code-head { display: flex; align-items: center; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--code-line); background: var(--code-bg-2); }
.code-tab { font-family: var(--mono); font-size: 12px; color: var(--code-tab); background: none; border: none; padding: 11px 12px; cursor: pointer; border-bottom: 2px solid transparent; font-weight: 500; }
.code-tab:hover { color: #cdd9ee; }
.code-tab.active { color: #fff; border-bottom-color: var(--brand); }
.code-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 12px; color: var(--code-muted); background: none; border: none; cursor: pointer; padding: 8px 10px; border-radius: 7px; }
.code-copy:hover { color: #fff; background: rgba(255,255,255,.06); }
.code-copy svg { width: 14px; height: 14px; }
.code-body { display: none; }
.code-body.active { display: block; }
.code pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--code-fg); white-space: pre; }
.code .tok-key { color: #7aa2ff; }
.code .tok-str { color: #9ece6a; }
.code .tok-num { color: #ff9e64; }
.code .tok-bool { color: #f7768e; }
.code .tok-punc { color: #7c8aa5; }
.code .tok-comment { color: #5a6987; font-style: italic; }

/* trust strip */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 60px; padding-top: 36px; border-top: 1px solid var(--line); }
.trust .t-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.trust .t-label { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* sections */
section.block { padding: 84px 0; }
section.alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 50px; }
.kicker { color: var(--link); font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(27px, 4vw, 38px); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; }
.section-head p { font-size: 17px; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 22px; margin-bottom: 16px; background: var(--brand-50); }
.card h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { color: var(--muted); font-size: 14.5px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.step .num { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* FAQ */
.faq-wrap { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; font-size: 16px; font-weight: 600; color: var(--ink); font-family: inherit; }
.faq-q .sign { font-size: 22px; color: var(--link); transition: transform .25s; line-height: 1; flex-shrink: 0; }
.faq-item.open .faq-q .sign { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--muted); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 360px; }

/* CTA */
.cta-band { position: relative; background: linear-gradient(135deg, #0a1326, #0c1f44 60%, #0e2a5e); color: #fff; text-align: center; border-radius: 0; border-top: 3px solid var(--brand); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(560px 280px at 50% -10%, rgba(37,99,235,.3), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(27px, 4vw, 40px); letter-spacing: -.03em; margin-bottom: 14px; }
.cta-band p { font-size: 18px; color: rgba(255,255,255,.85); margin-bottom: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.site { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.foot-about .brand { margin-bottom: 12px; }
.foot-about p { font-size: 13.5px; color: var(--muted); max-width: 320px; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; }
.foot-col a { display: block; font-size: 14px; color: var(--slate); padding: 5px 0; }
.foot-col a:hover { color: var(--link); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 600px) { .brand small { display: none; } .trust { grid-template-columns: 1fr 1fr; } .foot-grid { grid-template-columns: 1fr; } }

/* network status banner (offline / back online) */
.net-banner {
  position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 130%);
  z-index: 1000; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .28s ease;
}
.net-banner::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
}
.net-banner.online::before { background: #22c55e; }
.net-banner.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .net-banner { transition: opacity .2s ease; } }

/* ===========================================================================
   HOME — CompanyBelgium API (mockup-aligned components)
   =========================================================================== */
/* solid blue highlight (overrides the gradient .hl) */
.hero h1 .hl, .section-head h2 .hl, .sample-left h2 .hl, .fc-text h2 .hl,
:root[data-theme="dark"] .hero h1 .hl {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: var(--brand); color: var(--brand);
}

/* brand wordmark: "CompanyBelgium" + blue "API" */
.brand .name { flex-direction: row; align-items: baseline; gap: 6px; font-weight: 800; letter-spacing: -.02em; }
.brand .name b { color: var(--brand); font-weight: 800; }

/* hero */
.hero { padding: 74px 0 64px; }
.hero h1 { font-size: clamp(33px, 4.6vw, 50px); }
.hero-grid { align-items: center; }
.hero-card { align-self: center; }
.hero .btn-primary svg { width: 16px; height: 16px; }

/* hero trust badges */
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.ht-item { display: flex; align-items: center; gap: 11px; }
.ht-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.ht-ic svg { width: 20px; height: 20px; }
.ht-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.ht-item span { font-size: 13px; color: var(--muted); }

/* features (4-up) */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card .ico svg { width: 24px; height: 24px; color: var(--brand); }

/* use cases (6 inline icons) */
.usecases { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.uc-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 8px 4px; }
.uc-ic { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); transition: transform .2s; }
.uc-item:hover .uc-ic { transform: translateY(-3px); }
.uc-ic svg { width: 26px; height: 26px; }
.uc-t { font-size: 13.5px; font-weight: 600; color: var(--ink-2); line-height: 1.3; max-width: 130px; }

/* sample dark band (request / response) */
.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  background: linear-gradient(135deg, #0a1326, #0c1f44 60%, #0e2a5e); border-radius: var(--radius-lg);
  padding: 46px; box-shadow: var(--shadow-lg); }
.sample-left h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin-bottom: 12px; }
.sample-left h2 .hl { -webkit-text-fill-color: var(--brand-2); color: var(--brand-2); }
.sample-left > p { color: rgba(255,255,255,.78); font-size: 16px; margin-bottom: 22px; }
.sample-req { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 12px 14px; margin-bottom: 20px; }
.sample-req .sr-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.5); flex-shrink: 0; }
.sample-req code { font-family: var(--mono); font-size: 13px; color: #cfe0ff; overflow-x: auto; white-space: nowrap; }
.sample-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-2); font-weight: 600; font-size: 15px; transition: gap .18s; }
.sample-link svg { width: 16px; height: 16px; }
.sample-link:hover { gap: 12px; }
.sample-right { background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.sample-right .sr-head { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.45); padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sample-right pre { margin: 0; padding: 16px 18px; overflow-x: auto; }
.sample-right code { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--code-fg); }

/* final CTA (light) */
.final-cta .fc-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius-lg); padding: 40px 46px; }
.fc-text h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -.02em; margin-bottom: 8px; }
.fc-text p { color: var(--slate); font-size: 16px; max-width: 480px; }
.fc-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* footer socials */
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--slate); background: var(--surface); transition: color .18s, border-color .18s; }
.foot-social a:hover { color: var(--brand); border-color: var(--brand-100); }
.foot-social svg { width: 18px; height: 18px; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(3, 1fr); }
  .sample { grid-template-columns: 1fr; gap: 26px; padding: 32px; }
  .final-cta .fc-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .hero-trust { gap: 18px 26px; }
}

/* ===========================================================================
   PRICING
   =========================================================================== */
.pricing-hero { padding: 64px 0 84px; }
.pricing-hero .section-head { margin-bottom: 44px; }
.pricing-hero h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -.03em; margin-bottom: 14px; }
.btn-block { display: flex; width: 100%; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); }
.plan.popular { border-color: var(--brand); box-shadow: 0 18px 44px -22px rgba(37,99,235,.5); }
.plan-badge { position: absolute; top: -11px; left: 24px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.plan h3 { font-size: 19px; letter-spacing: -.01em; }
.plan-tag { color: var(--muted); font-size: 13.5px; margin-top: 4px; min-height: 38px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.plan-price .amount { font-size: 34px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-year { font-size: 12.5px; color: var(--muted); margin-top: 2px; min-height: 18px; }
.plan-quota { list-style: none; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: grid; gap: 6px; }
.plan-quota li { font-size: 13.5px; color: var(--slate); }
.plan-quota strong { color: var(--ink); font-weight: 700; }
.plan .btn-block { margin-bottom: 18px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan-feats li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--slate); }
.plan-feats li::before { content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 15px;
  background: var(--brand-50); border-radius: 50%;
  -webkit-mask: no-repeat center/10px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l4 4 10-10'/></svg>");
  mask: no-repeat center/10px url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12l4 4 10-10'/></svg>");
  background-color: var(--brand); }
.plan-vat { text-align: center; font-size: 13px; color: var(--muted); margin-top: 26px; }
.plan-note { max-width: 720px; margin: 48px auto 0; text-align: center; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; }
.plan-note h2 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; }
.plan-note p { font-size: 14.5px; color: var(--muted); }

@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } }

/* ===========================================================================
   PLAYGROUND
   =========================================================================== */
.pg { margin-top: 8px; }
.pg-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.pg-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--slate); }
.pg-field span { letter-spacing: .01em; }
.pg-field input, .pg-field select {
  font-family: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; width: 100%;
}
.pg-field input:focus, .pg-field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.pg-params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.pg-params:empty { display: none; }
.pg-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-url { font-family: var(--mono); font-size: 12.5px; color: var(--muted); word-break: break-all; }
.pg-output { display: grid; gap: 14px; }
.pg-block { background: var(--code-bg); border: 1px solid var(--code-line); border-radius: var(--radius-sm); overflow: hidden; }
.pg-block-h { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--code-muted); padding: 10px 14px; border-bottom: 1px solid var(--code-line); }
.pg-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; max-height: 460px; }
.pg-block pre, .pg-block code { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--code-fg); white-space: pre-wrap; word-break: break-word; }
.pg-status { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0; text-transform: none; padding: 2px 8px; border-radius: 999px; }
.pg-status.ok { background: rgba(22,163,74,.18); color: #34d399; }
.pg-status.err { background: rgba(220,38,38,.18); color: #f87171; }
@media (max-width: 700px) { .pg-auth, .pg-params { grid-template-columns: 1fr; } }
