:root {
  --bg: #0a0b14;
  --bg-soft: #10121f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eceefb;
  --muted: #9aa0b8;
  --syntris-1: #2354f5;
  --syntris-2: #9b65f8;
  --link: #b7c6ff;
  --radius: 18px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--syntris-2);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 8px 14px;
  z-index: 80;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
}

.when-en {
  display: none;
}

html[data-lang="en"] .when-pt {
  display: none;
}

html[data-lang="en"] .when-en {
  display: inline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.bar {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  min-height: 70px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand-svg {
  height: 26px;
  width: auto;
}

.doc-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.lang {
  justify-self: end;
  display: flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  flex: none;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
}

html[data-lang="pt"] .lang a[data-set-lang="pt"],
html[data-lang="en"] .lang a[data-set-lang="en"],
.lang a[aria-current="true"] {
  background: linear-gradient(120deg, var(--syntris-1), var(--syntris-2));
  color: #fff;
}

main {
  position: relative;
}

main::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(91, 88, 246, 0.28), rgba(91, 88, 246, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
}

article[data-lang="en"] {
  display: none;
}

html[data-lang="en"] article[data-lang="pt"] {
  display: none;
}

html[data-lang="en"] article[data-lang="en"] {
  display: block;
}

article[hidden] {
  display: none !important;
}

article {
  padding: 64px 0 88px;
}

article h1,
article h2,
article h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

article h1 {
  margin: 0 0 0.75em;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 800;
}

article h2 {
  margin: 2.2em 0 0.55em;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
}

article h3 {
  margin: 1.6em 0 0.4em;
  font-size: 1.08rem;
  font-weight: 600;
}

article p,
article li {
  font-size: 1.02rem;
  color: var(--muted);
}

article p {
  margin: 0 0 1em;
}

article ul,
article ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

article li {
  margin: 0.4em 0;
}

article li::marker {
  color: var(--syntris-2);
}

article li strong,
article p strong {
  color: var(--text);
  font-weight: 600;
}

article a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(183, 198, 255, 0.45);
  text-underline-offset: 3px;
}

article a:hover {
  color: #fff;
}

article hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.2rem 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  padding: 48px 0 40px;
  margin-top: 10px;
}

.footer-row {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 30px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .bar {
    grid-template-columns: 1fr auto;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 12px 16px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .lang {
    grid-column: 2;
    grid-row: 1;
  }

  .doc-title {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    --bg: #fff;
    --text: #161616;
    --muted: #333;
    --border: #ccc;
    --link: #1a3fbf;
  }

  body {
    background: #fff;
    color: #161616;
  }

  .site-header {
    position: static;
    background: #fff;
  }

  main::before,
  .skip,
  .lang {
    display: none;
  }

  .brand-svg path,
  .brand-svg rect {
    fill: #161616 !important;
  }
}
