﻿:root {
  --bg: #060a14;
  --bg2: #0c1221;
  --bg3: #111a2e;
  --bg4: #162040;
  --border: #1e2d52;
  --text: #e0e6ff;
  --text-bright: #ffffff;
  --muted: #5a6a8a;
  --accent: #0076fc;
  --accent-hover: #38c8ff;
  --accent-soft: rgba(0, 182, 252, 0.14);
  --success: #35c26b;
  --danger: #e25563;
  --donate-a: #ffb20f;
  --donate-b: #ff813f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  --max-width: 1140px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 160ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg4);
  color: var(--text-bright);
  padding: 0.75rem 1rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: rgba(0, 182, 252, 0.35);
  color: var(--text-bright);
}

/* ============ Animações de entrada ============ */

@keyframes sheen {
  to {
    background-position: 200% center;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

.grad {
  background: linear-gradient(90deg, var(--text-bright) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.tint {
  background: linear-gradient(90deg, var(--text-bright) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ============ Header / Navegação ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.site-header.scrolled::before {
  opacity: 1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--text-bright);
  line-height: 1;
}

.brand img {
  width: 56px;
  height: auto;
  margin-right: -4px;
}

.brand:hover {
  color: var(--text-bright);
}

.brand-name {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-family: monospace;
  background: linear-gradient(90deg, var(--text-bright) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  position: relative;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition), background var(--transition);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.site-nav a:hover {
  color: var(--text-bright);
  background: var(--bg3);
}

.site-nav a[aria-current="page"] {
  color: var(--text-bright);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px;
  cursor: pointer;
  transition: border-color var(--transition);
}

.nav-toggle:hover {
  border-color: #2c3f6e;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============ Botões ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #04121f;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #04121f;
  box-shadow: 0 8px 22px rgba(0, 182, 252, 0.3);
}

.btn-ghost {
  background: var(--bg2);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--bg3);
  border-color: #2c3f6e;
  color: var(--text-bright);
}

.btn-donate {
  background: linear-gradient(135deg, var(--donate-b) 0%, var(--donate-a) 100%);
  color: #2b1a00;
}

.btn-donate:hover {
  color: #2b1a00;
  box-shadow: 0 8px 22px rgba(255, 129, 63, 0.35);
  transform: translateY(-1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  padding: 0.7rem 1.55rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ============ Hero ============ */

.hero {
  padding: 6.5rem 0 10rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.hero h1 .grad {
  background: linear-gradient(90deg, var(--text-bright) 0%, var(--accent) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-vx {
  height: 0.8em;
  width: auto;
  margin-right: 0.08em;
  flex-shrink: 0;
  transform: translateY(2px);
}

.hero-bar {
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 1.4rem;
}

.hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.28rem);
  color: var(--text);
  max-width: 46ch;
  line-height: 1.6;
  margin-bottom: 1.7rem;
}

.hero .availability {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 1.9rem;
}

.hero .availability strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-note {
  color: var(--muted);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-note strong {
  color: var(--text);
  font-weight: 400;
}
.hero-media {
  position: relative;
  --rx: -20deg;
  --ry: 8deg;
  aspect-ratio: 4 / 4.6;
  max-width: 786px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: perspective(1600px) rotateX(var(--ry)) rotateY(var(--rx));
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform 0.2s ease-out;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.hero-media::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 2% 2% 2%;
  height: 30%;
  background: radial-gradient(55% 100% at 50% 100%, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 45%, transparent 80%);
  filter: blur(12px);
  transition: height 0.5s ease, inset 0.5s ease, filter 0.5s ease;
}

.hero-media:hover::before {
  height: 46%;
  inset: auto -2% -1% -2%;
  filter: blur(16px);
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-media p {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 22ch;
}

/* ============ Seções genéricas ============ */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--text-bright);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--muted);
}

/* ============ Linha de plataformas ============ */

.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  min-width: 90px;
}

.platform img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.platform span {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 600;
}

/* ============ Cards de recursos (4 grandes) ============ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 400ms ease;
}

.feature-card:hover {
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border-color: #2c3f6e;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.05);
  border-color: #2c3f6e;
}

.feature-body {
  min-width: 0;
}

.feature-card h3 {
  color: var(--text-bright);
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* Extras em formato de pilulas */
.plus-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.6rem;
}

.plus-chip {
  padding: 0.55rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg2);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.plus-chip strong {
  color: var(--accent);
}


.cta-box {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 4rem 2rem;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 1.3rem;
  border: 1px solid rgba(0, 182, 252, 0.12);
  border-radius: calc(var(--radius) - 4px);
  pointer-events: none;
}

.cta-box h2 {
  color: var(--text-bright);
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.cta-box p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ============ Cabeçalho de página ============ */

.page-hero {
  padding: 4.5rem 0 2.5rem;
}

.page-hero h1 {
  color: var(--text-bright);
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 60ch;
}

/* ============ Alertas / avisos ============ */

.alert {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.alert-icon {
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--accent);
}

.alert-info {
  border-left-color: var(--accent);
}

.alert-warn {
  border-left-color: var(--danger);
}

.alert-warn .alert-icon {
  color: var(--danger);
}

.alert strong {
  color: var(--text-bright);
}

.alert > div {
  min-width: 0;
}

.alert strong + span {
  margin-left: 0.35rem;
}

/* ============ Página de downloads ============ */

.page-hero-dl {
  padding-bottom: 1rem;
}

.dl-hero-inner h1 {
  margin-bottom: 0.6rem;
}

.dl-hero-inner > p {
  color: var(--muted);
  max-width: 46ch;
}

.dl-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.4rem;
}

.dl-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
  padding: 0.95rem 1.1rem;
  background: linear-gradient(180deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.dl-tab:hover {
  border-color: #2c3f6e;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text-bright);
}

.dl-tab.is-active {
  border-color: var(--accent);
  color: var(--text-bright);
  background: linear-gradient(180deg, rgba(0, 182, 252, 0.12), rgba(0, 182, 252, 0.04) 60%), var(--bg2);
  box-shadow: 0 6px 20px rgba(0, 182, 252, 0.12);
}

.dl-tab-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--bg4);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.dl-tab-icon img {
  width: 22px;
  height: 22px;
  display: block;
}

.dl-tab-name {
  flex: 1;
  min-width: 0;
}

.dl-tab-arrow {
  flex: 0 0 auto;
  transition: transform var(--transition);
  color: var(--muted);
}

.dl-tab.is-active .dl-tab-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.dl-panel {
  margin-top: 1.4rem;
}

.dl-panel-inner {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(0, 182, 252, 0.06) 0%, transparent 55%),
    var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.dl-panel-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.dl-big-icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg4), var(--bg3));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-big-icon img {
  width: 32px;
  height: 32px;
  display: block;
}

.dl-panel-head-text h3 {
  color: var(--text-bright);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.dl-panel-head-text p {
  color: var(--muted);
  font-size: 0.88rem;
}

.dl-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.dl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--transition), background var(--transition);
}

.dl-row:hover {
  border-color: #2c3f6e;
  background: var(--bg4);
}

.dl-file-badge {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-file-info {
  flex: 1;
  min-width: 0;
}

.dl-file-name {
  display: block;
  color: var(--text-bright);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.12rem;
}

.dl-file-meta {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.dl-soon {
  color: var(--text);
  font-size: 0.95rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
}

.dl-soon strong {
  color: var(--text-bright);
}


/* ============ Prosa (Sobre, Privacidade, Termos...) ============ */

.prose {
  max-width: 760px;
}

.prose h2 {
  color: var(--text-bright);
  font-size: 1.5rem;
  margin: 2.6rem 0 1rem;
  scroll-margin-top: 90px;
}

.prose h3 {
  color: var(--text-bright);
  font-size: 1.15rem;
  margin: 1.8rem 0 0.7rem;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 0.98rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose strong {
  color: var(--text-bright);
}

.updated {
  color: var(--muted);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

/* Sumário lateral (índice com scroll-spy) */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 3rem;
  align-items: start;
}

.doc-content {
  min-width: 0;
}

.doc-content section {
  scroll-margin-top: 96px;
}

.doc-toc {
  position: sticky;
  top: 96px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  overflow-x: hidden;
}

.doc-toc-progress {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg3);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  pointer-events: none;
}

.doc-toc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  transition: width 60ms linear;
}

.doc-toc-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.doc-toc-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}

.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc-toc li {
  margin-bottom: 0.12rem;
}

.doc-toc a {
  position: relative;
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 0.38rem 0.6rem 0.38rem 0.9rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition), font-weight var(--transition);
}

.doc-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  transition: height var(--transition);
}

.doc-toc a:hover {
  color: var(--text-bright);
  background: var(--bg3);
}

.doc-toc a.active {
  color: var(--text-bright);
  font-weight: 600;
  background: var(--accent-soft);
}

.doc-toc a.active::before {
  height: 55%;
}

/* ============ Passos de instalação ============ */

.install-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.4rem;
}

.install-block h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text-bright);
  font-size: 1.1rem;
  margin: 0 0 1.1rem;
}

.install-block h3 img {
  width: 26px;
  height: 26px;
}

.steps {
  display: grid;
  gap: 0.7rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step p {
  color: var(--text);
  font-size: 0.95rem;
}

.step code {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  font-size: 0.88rem;
  color: var(--text-bright);
}

/* Comando copiável */
.copy-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  margin: 0.6rem 0 1rem;
}

.copy-row code {
  flex: 1;
  color: var(--text-bright);
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  overflow-x: auto;
  white-space: nowrap;
}

.btn-copy {
  background: var(--bg4);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-copy:hover {
  background: #1d2a4e;
  color: var(--text-bright);
}

/* Card "Mac / iOS" */
.os-note {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.8rem;
}

.os-note .os-note-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-note h3 {
  color: var(--text-bright);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.os-note p {
  color: var(--muted);
  font-size: 0.95rem;
}

.os-note-donate {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255, 178, 15, 0.08) 0%, transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(255, 129, 63, 0.08) 0%, transparent 55%),
    var(--bg2);
  border-color: #3a2f14;
}

.os-note-donate .os-note-icon {
  background: rgba(255, 129, 63, 0.14);
  color: var(--donate-a);
}

.os-note-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.os-note p {
  max-width: 52ch;
}

.os-note-action {
  margin-top: 1.25rem;
}

.os-note-action .btn {
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

/* ============ Galeria de assets ============ */

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem;
}

.asset-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
}

.asset-preview {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: 1rem;
}

.asset-preview img {
  max-height: 96px;
}

.asset-card h3 {
  color: var(--text-bright);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.asset-card p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ============ 404 ============ */

.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page .code {
  font-size: 4.5rem;
  font-weight: 700;
  color: var(--border);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 1rem;
}

.error-page h1 {
  color: var(--text-bright);
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.error-page p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ============ Rodapé ============ */

.site-footer {
  position: relative;
  background:
    radial-gradient(80% 120% at 50% 130%, rgba(0, 182, 252, 0.06) 0%, transparent 60%),
    var(--bg2);
  border-top: 1px solid var(--border);
  margin-top: 5rem;
  padding: 4rem 0 2rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.9rem;
  max-width: 32ch;
  line-height: 1.6;
}

.footer-title {
  color: var(--text-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.28rem 0;
  transition: color var(--transition), transform var(--transition);
}

.footer-col a::before {
  content: "";
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.footer-col a:hover {
  color: var(--text-bright);
  transform: translateX(2px);
}

.footer-col a:hover::before {
  width: 10px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "copy social"
    "note note";
  gap: 0.35rem 2rem;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1.6rem;
}

.footer-copy {
  grid-area: copy;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.footer-copy span {
  color: var(--text);
  opacity: 0.75;
}

.footer-copy a {
  color: var(--text-bright);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 182, 252, 0.45);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-copy a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.footer-rights {
  white-space: nowrap;
}

.footer-social {
  grid-area: social;
  display: flex;
  gap: 0.6rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-social-link:hover {
  color: var(--accent);
  border-color: #2c3f6e;
  transform: translateY(-2px);
}

.footer-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 34px;
  padding: 0 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.footer-lang:hover {
  color: var(--accent);
  border-color: #2c3f6e;
  transform: translateY(-2px);
}

.footer-note {
  grid-area: note;
  font-size: 0.78rem;
  max-width: 95ch;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid rgba(0, 182, 252, 0.35);
  padding-left: 0.9rem;
}

/* ============ Toast ============ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  background: var(--bg4);
  color: var(--text-bright);
  border: 1px solid var(--border);
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 300;
}

.toast.show {
  opacity: 1;
}

/* ============ Scrollbar personalizada ============ */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.doc-toc {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg2);
}

.doc-toc::-webkit-scrollbar-thumb {
  border-color: var(--bg2);
}

.doc-toc::-webkit-scrollbar-track {
  background: var(--bg2);
}

/* ============ Responsivo ============ */

@media (max-width: 1024px) {
  .doc-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .doc-toc {
    order: -1;
    position: static;
    max-height: none;
    overflow: visible;
    margin-bottom: 2rem;
  }

  .doc-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0 1rem;
  }

  .doc-toc a {
    padding-left: 0.9rem;
  }

  .doc-toc a::before {
    left: 0;
  }
}

@media (max-width: 980px) {
  .dl-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3rem;
  }

  .hero-media {
    max-width: 340px;
  }

  .os-strip,
  .dl-tabs {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 10, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    transform: translateY(-4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] {
    background: var(--bg3);
  }

  .site-nav a::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "social"
      "note";
    gap: 1rem;
  }

  .btn-lg {
    width: 100%;
  }

  .platforms {
    gap: 1.6rem;
  }
}

/* ============ Acessibilidade ============ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============ Proteção de imagens ============ */

img,
svg,
[role="img"] {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: auto;
}

img {
  -webkit-tap-highlight-color: transparent;
}

/* ============ Contato ============ */

.hidden {
  display: none !important;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.6rem;
  align-items: start;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.contact-form-title {
  color: var(--text-bright);
  font-size: 1.2rem;
  margin-bottom: 1.4rem;
}

.contact-form .contact-field {
  display: block;
  margin-bottom: 1.1rem;
}

.contact-field > span {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.contact-req {
  color: var(--danger);
  font-style: normal;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-bright);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.98rem;
  resize: vertical;
}

.contact-field textarea {
  min-height: 130px;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.contact-err {
  display: block;
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 0;
}

.contact-form-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 0.6rem 0;
  min-height: 1em;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.contact-success {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-bright);
}

.contact-success svg {
  color: var(--success);
  margin-bottom: 1rem;
}

.contact-success h2 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.contact-success p {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto 1.4rem;
  line-height: 1.65;
}

.contact-side .contact-alert {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.contact-alert h3 {
  color: var(--text-bright);
  font-size: 1.02rem;
  margin-bottom: 0.5rem;
}

.contact-alert p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-alert a,
.faq-more a {
  color: var(--accent);
}

/* ============ FAQ ============ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.05rem 1.3rem;
  background: none;
  border: none;
  color: var(--text-bright);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}

.faq-q:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  border-top: 1px solid var(--border);
}

.faq-a-inner {
  padding: 1rem 1.3rem 1.25rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.98rem;
}

.faq-a-inner a {
  color: var(--accent);
}

.faq-more {
  max-width: 620px;
}

@media (max-width: 800px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ============ Revelar e-mail (anti-scraping) ============ */

vx-email {
  display: inline-block;
}

.vx-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.vx-email-btn:hover {
  color: var(--accent);
  border-color: #2c3f6e;
  background: var(--bg2);
}

.vx-email-lock {
  color: inherit;
}

.vx-email-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}

.vx-email-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 182, 252, 0.45);
  padding-bottom: 1px;
  word-break: break-all;
}

.vx-email-link:hover {
  color: var(--accent-hover);
  border-color: var(--accent);
}

.footer-social-link.vx-email-btn,
.footer-social vx-email:not([router-pre]) .vx-email-btn {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-social vx-email .vx-email-btn:hover {
  color: var(--accent);
  border-color: #2c3f6e;
  transform: translateY(-2px);
}

.footer-social vx-email {
  display: inline-flex;
}

.footer-social vx-email .vx-email-wrap {
  display: inline-flex;
  align-items: center;
}

