*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--rc-font);
  color: var(--rc-ink);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, color-mix(in srgb, var(--rc-accent) 12%, transparent), transparent 55%),
    var(--rc-bg);
  line-height: 1.6;
  font-size: 16px;
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.wrap {
  width: var(--rc-wrap);
  margin-inline: auto;
}
.wrap-narrow {
  width: var(--rc-wrap-narrow);
  margin-inline: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.hero .reveal,
.page-hero .reveal {
  opacity: 1;
  transform: none;
}

.section {
  padding: var(--rc-section-y) 0;
  position: relative;
}
.section--alt {
  background: var(--rc-bg-alt);
  border-block: 1px solid var(--rc-border);
}
[data-theme="dark"] .section--alt {
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--rc-accent) 3%, transparent) 45%, transparent),
    var(--rc-bg-alt);
}
.section-head {
  max-width: 640px;
  margin: 0 0 44px;
  text-align: left;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--rc-display);
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 750;
}
.section-head h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--rc-accent), var(--rc-brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head p {
  margin: 0;
  color: var(--rc-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--rc-radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--rc-accent), var(--rc-brand));
  color: #041018;
  box-shadow: var(--rc-glow), 0 10px 28px rgba(37, 99, 235, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 0 52px rgba(61, 214, 255, 0.35), 0 14px 32px rgba(37, 99, 235, 0.4);
}
[data-theme="light"] .btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--rc-brand), #1d4ed8);
}
.btn-ghost {
  background: var(--rc-btn-ghost-bg);
  color: var(--rc-btn-ghost-text);
  border: 1px solid transparent;
}
.btn-outline {
  background: color-mix(in srgb, var(--rc-surface-solid) 55%, transparent);
  border: 1px solid var(--rc-border-strong);
  color: var(--rc-ink);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  border-color: var(--rc-accent);
  color: var(--rc-accent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--rc-accent) 25%, transparent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.78rem;
}
.btn-discord {
  background: #5865f2;
  color: #fff;
}

.glass {
  background: var(--rc-surface);
  border: 1px solid var(--rc-border);
  backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: var(--rc-shadow-card);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: var(--rc-radius-pill);
  background: linear-gradient(135deg, var(--rc-accent), var(--rc-brand));
  color: #041018;
  font-weight: 750;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--rc-glow), var(--rc-shadow-card);
}
[data-theme="light"] .fab-wa { color: #fff; }
.fab-wa:hover { filter: brightness(1.06); }
.fab-wa svg { width: 18px; height: 18px; }
.page-diagnostico .fab-wa,
.page-recursos .fab-wa,
.page-api-oficial .fab-wa,
.page-comparativo .fab-wa,
.page-conformidade .fab-wa { display: none; }

.page-home main { padding-bottom: 88px; }

@media (max-width: 719px) {
  :root {
    --rc-wrap: calc(100% - 32px);
    --rc-wrap-narrow: calc(100% - 32px);
    --rc-section-y: 80px;
  }
  .fab-wa {
    right: 16px;
    bottom: 20px;
  }
  .fab-wa span { display: none; }
  .fab-wa { padding: 14px; border-radius: 50%; }
}

@media (min-width: 960px) {
  .page-home main { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover,
  .fab-wa:hover { transform: none; }
}
