/* ============================================================
   A&7 · Dashboard Financeiro — Base (reset, tipografia, layout, util)
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background .35s ease, color .35s ease;
}
body.menu-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(20, 200, 164, .26); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.container {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.section { position: relative; padding: 76px 0; }
.section-tight { padding: 56px 0; }

/* ---- Seções escuras / de destaque ---- */
.dark-section {
  background: var(--dark, #070d0b);
  color: #fff;
}
html[data-theme="dark"] .dark-section { background: linear-gradient(180deg, #0a1310, #070d0b); }
html[data-theme="light"] .dark-section {
  background: linear-gradient(160deg, #0d1c17, #08120e);
  color: #fff;
}
.dark-section .eyebrow { color: #7ee6cf; }
.dark-section .section-lead,
.dark-section .section-copy,
.dark-section .muted { color: rgba(255, 255, 255, .64); }

/* ---- Tipografia ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  font-weight: 850;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}

.display {
  margin: 0;
  max-width: 1000px;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 900;
}
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 160% 160%;
  animation: gradShift 9s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.section-title {
  margin: 0;
  max-width: 940px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 900;
}
.section-lead {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(.88rem, 1.3vw, 1rem);
  line-height: 1.6;
}
.section-copy {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 720px;
}
.muted { color: var(--muted); }

/* ---- Revelação no scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
