/* Certu APIs: tema escuro de vidro, com fundo animado em parallax (fx.js).
   Só escuro, de propósito (Bernie, 17/11/2026: "glass futuristic", "dark theme"). */
:root {
  color-scheme: dark;
  --bg: #05060a;
  --ink: #eef2ff;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(18, 22, 34, 0.52);
  --glass-strong: rgba(22, 27, 42, 0.72);
  --cyan: #38e1ff;
  --violet: #8b5cf6;
  --pink: #f472b6;
  --accent: #38e1ff;
  --accent-ink: #031018;
  --accent-soft: rgba(56, 225, 255, 0.1);
  --surface: var(--glass);
  --code-bg: rgba(5, 8, 14, 0.82);
  --code-ink: #dbe4ff;
  --ok: #4ade80;
  --warn: #fbbf24;
  --radius: 18px;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--pink));
  --blur: blur(18px) saturate(140%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a { color: inherit; }
::selection { background: rgba(56, 225, 255, 0.35); }
code, pre, .mono { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; }
h1, h2, h3, .logo { font-family: "Space Grotesk", "Inter", sans-serif; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* fundo animado (canvas do fx.js) + véu pra leitura */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.veu { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(56, 225, 255, 0.08), transparent 60%),
    linear-gradient(to bottom, rgba(5, 6, 10, 0.1), rgba(5, 6, 10, 0.55) 70%, rgba(5, 6, 10, 0.85)); }
header.top, main, footer { position: relative; z-index: 1; }

/* vidro */
.glass, .card, .term, .fact, .ptable, .band, .box, .docs aside, .endpoint, .step, .lgpd ul {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(5, 6, 10, 0.55); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--grad); color: #050608; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 0 24px rgba(56, 225, 255, 0.45); }
nav.links { display: flex; gap: 26px; align-items: center; font-size: 15px; }
nav.links a { text-decoration: none; color: var(--muted); transition: color .2s; }
nav.links a:hover { color: var(--ink); }
nav.links a.btn-primary, nav.links a.btn-primary:hover { color: #04070d; }
@media (max-width: 720px) { nav.links a.hide-sm { display: none; } nav.links { gap: 14px; } }

.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background .2s ease, border-color .2s; cursor: pointer; font-size: 15px; white-space: nowrap; font-family: inherit; color: var(--ink); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #04070d; box-shadow: 0 10px 40px -10px rgba(56, 225, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15) inset; }
.btn-primary:hover { box-shadow: 0 14px 50px -8px rgba(139, 92, 246, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.25) inset; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.btn-ghost:hover { border-color: rgba(56, 225, 255, 0.5); background: rgba(56, 225, 255, 0.06); }
.btn-sm { padding: 9px 15px; font-size: 14px; border-radius: 10px; }

/* hero */
.hero { padding: 120px 0 110px; min-height: 92vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 64px 0 56px; min-height: auto; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); background: rgba(56, 225, 255, 0.07); border: 1px solid rgba(56, 225, 255, 0.25); padding: 7px 12px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulso 2s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .35; } }
h1 { font-size: clamp(42px, 6.4vw, 78px); line-height: 1; letter-spacing: -0.04em; margin: 22px 0 22px; font-weight: 700; }
h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); }

.term { border-radius: var(--radius); overflow: hidden; background: var(--code-bg); border-color: rgba(56, 225, 255, 0.18); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 40px 120px -40px rgba(56, 225, 255, 0.35), 0 30px 80px -30px rgba(139, 92, 246, 0.45); color: var(--code-ink); }
.term-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); display: block; }
.term-bar i:first-child { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term pre { margin: 0; padding: 20px 22px; font-size: 13.5px; line-height: 1.7; overflow-x: auto; }
.c-k { color: #7dd3fc; } .c-s { color: #a7f3d0; } .c-m { color: #6b7280; } .c-n { color: #f9a8d4; }

/* seções */
section { padding: 96px 0; position: relative; }
section.alt { background: transparent; }
h2 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 14px; font-weight: 700; }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 44px; max-width: 640px; }

/* entra ao rolar (fx.js liga a classe .visivel) */
.surge { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.surge.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .surge { opacity: 1; transform: none; transition: none; } }

/* catálogo */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; color: inherit; text-decoration: none; }
/* 18/11/2026 (Bernie: "a lot of it gets highlighted on hover but nothing happens if I click"):
   só o que leva a algum lugar acende no hover. Card com link no título fica inteiro clicável. */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
a.card, .card:has(h3 a) { cursor: pointer; }
.card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; pointer-events: none; }
a.card:hover, .card:has(h3 a):hover { transform: translateY(-4px); box-shadow: 0 30px 80px -30px rgba(56, 225, 255, 0.35); }
a.card:hover::before, .card:has(h3 a):hover::before { opacity: 1; }
a.card:hover h3, .card:has(h3 a):hover h3 { color: var(--cyan); }
.card .seta { margin-left: auto; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
a.card:hover .seta, .card:has(h3 a):hover .seta { opacity: 1; transform: none; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card .price { font-weight: 700; font-size: 22px; font-family: "Space Grotesk", sans-serif; }
.card .price small { font-weight: 400; color: var(--muted); font-size: 13px; font-family: "Inter", sans-serif; }
.card code.ep { font-size: 12.5px; color: #c7d2fe; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25); padding: 3px 9px; border-radius: 7px; align-self: flex-start; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(56, 225, 255, 0.08); border: 1px solid rgba(56, 225, 255, 0.22); color: var(--cyan); align-self: flex-start; }
.tag.soon { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }

/* passos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { border-radius: var(--radius); padding: 26px; color: inherit; text-decoration: none; display: block; transition: transform .25s ease, border-color .25s ease; }
a.step:hover { transform: translateY(-3px); border-color: rgba(56, 225, 255, 0.45); }
a.step:hover h3 { color: var(--cyan); }
.step::before { counter-increment: s; content: "0" counter(s); font: 600 14px "JetBrains Mono", monospace; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 10px 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--muted); }

/* tabelas */
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; border-radius: var(--radius); overflow: hidden; }
.ptable th, .ptable td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ptable th { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: rgba(255, 255, 255, 0.03); font-weight: 600; }
.ptable td.num { font-weight: 600; white-space: nowrap; font-family: "JetBrains Mono", monospace; font-size: 14px; }
.ptable tbody tr { transition: background .2s; }
.ptable tbody tr[data-href], .ptable tbody tr:has(td a) { cursor: pointer; }
.ptable tbody tr[data-href]:hover, .ptable tbody tr:has(td a):hover { background: rgba(56, 225, 255, 0.07); }
.ptable td a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed rgba(56, 225, 255, 0.4); }
.ptable tbody tr:hover td a { color: var(--cyan); }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td code { color: var(--muted); margin-left: 6px; }
.tbl-scroll { overflow-x: auto; border-radius: var(--radius); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr; } }
.fact { border-radius: var(--radius); padding: 22px; color: inherit; text-decoration: none; display: block; transition: transform .25s ease, border-color .25s ease; }
a.fact:hover { transform: translateY(-3px); border-color: rgba(56, 225, 255, 0.45); }
.fact b { display: block; font-size: 30px; font-family: "Space Grotesk", sans-serif; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: var(--muted); font-size: 14px; }
#busca-modelo { background: var(--glass) !important; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-color: var(--line-strong) !important; color: var(--ink) !important; }
#busca-modelo:focus { outline: none; border-color: rgba(56, 225, 255, 0.6) !important; box-shadow: 0 0 0 4px rgba(56, 225, 255, 0.12); }

/* LGPD / venda */
.lgpd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .lgpd { grid-template-columns: 1fr; } }
.lgpd ul { margin: 0; padding: 22px 22px 22px 42px; color: var(--muted); border-radius: var(--radius); }
.lgpd li { margin-bottom: 10px; }
.lgpd li::marker { color: var(--cyan); }

/* faixa final */
.band { border-radius: 26px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; background: linear-gradient(120deg, rgba(56, 225, 255, 0.12), rgba(139, 92, 246, 0.16) 55%, rgba(244, 114, 182, 0.12)); border-color: var(--line-strong); }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .band { padding: 30px; } }

footer { padding: 48px 0 64px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* docs */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding: 48px 0 96px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; } .docs aside { position: static !important; } }
.docs aside { position: sticky; top: 90px; align-self: start; font-size: 14px; border-radius: var(--radius); padding: 18px 20px; }
.docs aside h4 { margin: 14px 0 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan); }
.docs aside h4:first-child { margin-top: 0; }
.docs aside a { display: block; padding: 5px 0; text-decoration: none; color: var(--muted); transition: color .2s, transform .2s; }
.docs aside a:hover { color: var(--ink); transform: translateX(3px); }
.docs article { min-width: 0; }
.docs article h2 { margin-top: 56px; padding-top: 8px; font-size: 30px; }
.docs article h2:first-child { margin-top: 0; }
.docs article h3 { margin: 28px 0 8px; font-size: 18px; }
.docs article p, .docs article li { color: var(--muted); }
.docs article code { color: #c7d2fe; }
.docs pre.code { background: var(--code-bg); color: var(--code-ink); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 13.5px; line-height: 1.65; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.method { display: inline-block; font: 600 12px "JetBrains Mono", monospace; padding: 3px 9px; border-radius: 7px; margin-right: 10px; }
.m-get { background: rgba(74, 222, 128, 0.12); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.m-post { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.endpoint { font: 500 14.5px "JetBrains Mono", monospace; padding: 12px 16px; border-radius: 12px; overflow-x: auto; white-space: nowrap; }
.callout { border-left: 3px solid var(--cyan); background: rgba(56, 225, 255, 0.06); padding: 14px 18px; border-radius: 0 12px 12px 0; color: var(--ink) !important; }
table.params { width: 100%; border-collapse: collapse; font-size: 14px; margin: 10px 0 18px; }
table.params th, table.params td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
table.params th { color: var(--ink); font-weight: 600; }
table.params code { font-size: 13px; }
