/* ============================================================
   A&7 · Simulador de ROI em Automação — Base (reset, tipografia,
   layout, keyframes globais, sistema de animação)
   ============================================================ */

* { 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(107, 50, 255, .24); }

:focus-visible { outline: 2px solid var(--violet); 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: linear-gradient(160deg, var(--dark-2), var(--dark));
  color: #fff;
}
html[data-theme="dark"] .dark-section { background: linear-gradient(180deg, var(--dark-2), var(--dark)); }
html[data-theme="light"] .dark-section {
  background: linear-gradient(160deg, #181033, var(--dark-2));
  color: #fff;
}
.dark-section .eyebrow { color: #c4a6ff; }
.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(--violet);
  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(1.9rem, 3.4vw, 2.85rem);
  line-height: 1.07;
  letter-spacing: -.04em;
  font-weight: 900;
}
.gradient-text {
  background: linear-gradient(100deg, var(--teal) 0%, var(--violet) 55%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 7s ease-in-out infinite;
}
.gradient-text.money {
  background: linear-gradient(100deg, var(--teal) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: gradShift 7s ease-in-out 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); }

/* ---- Keyframes globais ---- */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 195, 160, .55); }
  70% { box-shadow: 0 0 0 9px rgba(21, 195, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 195, 160, 0); }
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0) translateX(0); }
  33% { transform: translateY(-22px) translateX(14px); }
  66% { transform: translateY(10px) translateX(-12px); }
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(30px, -24px) rotate(12deg); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes stepPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes barGrow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}
@keyframes tickerIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes paybackGlow {
  0%, 100% { text-shadow: 0 0 22px var(--glow-teal), 0 0 46px rgba(47, 213, 159, .18); }
  50% { text-shadow: 0 0 34px var(--glow-teal), 0 0 70px rgba(47, 213, 159, .3); }
}

/* ---- Revelação no scroll (com stagger opcional) ---- */
.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; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@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; }
}
