/* ════════════════════════════════════════════
   base.css — Reset, tipografia e utilitários
   ════════════════════════════════════════════ */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Utilitários de layout ── */
.wm   { font-family: var(--wm); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.section        { padding: clamp(76px, 11vh, 150px) 0; }
.section--dark  { background: var(--coal); color: var(--cream); }
.section--mist  { background: var(--mist); }
.section--cloud { background: var(--cloud); }
.center         { text-align: center; }

/* ── Tipografia ── */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .eyebrow { color: rgba(252, 249, 242, .55); }

.h-display {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
}
.h-section {
  font-size: clamp(1.95rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.05;
}
.lead {
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  line-height: 1.55;
  color: var(--ink-2);
  font-weight: 400;
}
.section--dark .lead   { color: rgba(252, 249, 242, .74); }
.muted                 { color: var(--muted); }
.section--dark .muted  { color: rgba(252, 249, 242, .55); }

/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: .98rem;
  padding: .78rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--graphite);
  color: var(--cream);
  box-shadow: 0 1px 2px rgba(46, 46, 46, .3);
}
.btn--primary:hover {
  background: #1A1A1A;
  box-shadow: 0 8px 22px rgba(20, 20, 20, .22);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(16, 24, 40, .03);
}
.btn--lg { padding: .95rem 2rem; font-size: 1.05rem; }

/* ── Reveal on scroll ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.16, .84, .44, 1), transform .75s cubic-bezier(.16, .84, .44, 1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── Scroll cue ── */
.cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted-lt);
  opacity: 1;
  transition: opacity .4s ease;
  animation: cueBounce 2s ease-in-out infinite;
}
body.scrolled .cue { opacity: 0; pointer-events: none; }
@keyframes cueBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Âncoras com offset do nav ── */
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ── Responsive misc ── */
@media (max-width: 680px) {
  .hero-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 460px) {
  .intg-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; }
  [data-reveal], svg.flow, .vf-step, .vf-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .flow-line { stroke-dashoffset: 0 !important; transition: none !important; }
  .vf-track  { height: auto; }
  .vf-pin    { position: static; height: auto; padding: 80px 0; }
}
