/* Estilo comum das páginas do site do Airo (início e documentação): cores, base,
   peças pequenas, navegação flutuante, troca de idioma e rodapé. Sem build. */
:root {
  color-scheme: dark;
  --bg: #060709;
  --panel: #0C0D11;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --line-3: rgba(255, 255, 255, .24);
  --fg: #F1F2F4;
  --fg-2: #A6ABB5;
  --fg-3: #80868F;
  --live: #F04438;
  --live-label: #C8261B;
  --live-text: #FFB4AB;
  --pvw: #22C55E;
  --pvw-label: #15803D;
  --pvw-text: #4ADE80;
  --amber: #FACC15;
  --blue: #8AB4FF;
  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: max(16px, min(5vw, 32px));
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grão de filme bem leve por cima de tudo */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(240, 68, 56, .4); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Peças comuns ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px 0 11px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--live); box-shadow: 0 0 10px var(--live); }
.dot.g { background: var(--pvw); box-shadow: 0 0 10px var(--pvw); }
.dot.b { background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px;
  font: 600 10.5px/1 var(--mono); letter-spacing: .08em; color: #fff; white-space: nowrap;
}
.tag.pgm { background: var(--live-label); }
.tag.pvw { background: var(--pvw-label); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; white-space: nowrap;
  font: 500 15px/1 var(--font); letter-spacing: -.01em; border: 1px solid transparent;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arr { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-light { background: #F4F5F7; color: #0A0B0E; box-shadow: 0 10px 40px -12px rgba(255, 255, 255, .45); }
.btn-light:hover { background: #fff; box-shadow: 0 14px 50px -10px rgba(255, 255, 255, .55); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--line-3); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }


h1 em, h2 em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; font-size: 1.07em;
}
h2 em { color: #BFC3CB; }
.lede { font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.6; color: var(--fg-2); max-width: 60ch; text-wrap: pretty; }

/* ---------- Navegação flutuante ---------- */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: 50; display: flex; justify-content: center;
  padding-inline: 12px; pointer-events: none;
  top: max(14px, env(safe-area-inset-top));
}
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 4px;
  width: min(100%, 900px); height: 58px; padding: 0 8px 0 20px; border-radius: 999px;
  background: rgba(16, 17, 22, .5); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .7);
  transition: background .3s, border-color .3s;
}
.nav.scrolled .nav-pill { background: rgba(16, 17, 22, .82); border-color: var(--line-2); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px/1 var(--font); letter-spacing: -.03em; }
.brand svg { width: 26px; height: auto; }
.nav-links { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; }
.nav-links a { padding: 9px 13px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
.lang { display: flex; flex: none; gap: 2px; margin-right: 6px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.lang button { min-width: 38px; height: 34px; padding: 0 9px; border-radius: 999px; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--fg-3); transition: color .2s, background .2s; }
.lang button:hover { color: var(--fg); }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .12); color: var(--fg); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-pill .lang { margin-left: auto; }
}

/* ---------- Rodapé ---------- */
.foot { position: relative; overflow: hidden; margin-top: clamp(104px, 13vw, 168px); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; padding-top: 56px; }
.foot-brand p { margin-top: 16px; max-width: 34ch; color: var(--fg-2); font-size: 14.5px; }
.foot h4 { margin-bottom: 14px; font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.foot nav a { display: block; padding: 5px 0; color: var(--fg-2); font-size: 14.5px; transition: color .2s; }
.foot nav a:hover { color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 48px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-3); }
.wordmark {
  display: flex; justify-content: center; align-items: flex-end; margin-bottom: -.12em; user-select: none;
  font: 700 clamp(120px, 31vw, 440px)/.8 var(--font); letter-spacing: -.07em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, 0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark i { display: inline-block; width: .15em; height: .15em; margin: 0 0 .1em .03em; border-radius: 50%; background: var(--live); box-shadow: 0 0 80px 10px rgba(240, 68, 56, .45); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
