/* ─────────────────────────────────────────────
   base.css — Reset, tipografia e componentes globais
───────────────────────────────────────────── */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ── Background layers ── */
#grid-canvas,
#particles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-bg);
}

#grid-canvas {
  opacity: 0;
  transition: opacity 1.4s ease;
}
#grid-canvas.visible { opacity: 1; }

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: calc(var(--z-bg) + 1);
  opacity: 0;
  transition: opacity 2s ease;
}
.orb.show { opacity: 1; }

.orb-1 {
  width: 600px; height: 600px;
  background: var(--gradient-glow-o);
  top: -150px; left: -150px;
  animation: orbFloat1 9s ease-in-out infinite;
}
.orb-2 {
  width: 700px; height: 700px;
  background: var(--gradient-glow-p);
  bottom: -200px; right: -150px;
  animation: orbFloat2 11s ease-in-out infinite;
}

@keyframes orbFloat1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(50px,35px)} }
@keyframes orbFloat2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-35px,-50px)} }

/* ── Seção base ── */
.section-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--color-orange-light);
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Gradiente de texto ── */
.accent {
  background: var(--gradient-text);
  background-size: 100% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Botões ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-brand);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out),
              opacity var(--duration-fast);
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange-hover);
}
.btn-primary:hover::after { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-primary.btn-small {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-primary.btn-full {
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 13px 24px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--duration-normal),
              color var(--duration-normal),
              background var(--duration-normal);
}
.btn-secondary:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: rgba(255,255,255,.04);
}

.btn-arrow {
  font-style: normal;
  transition: transform var(--duration-normal);
}
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

/* ── Reveal (scroll animations) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Acessibilidade ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile First Fixes
   Breakpoints: 768px (tablet), 480px (phone)
═══════════════════════════════════════════ */

/* ── Orbs: menor em mobile para não pesar ── */
@media (max-width: 768px) {
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 350px; height: 350px; }

  /* Section inner: sem overflow lateral */
  .section-inner { padding: 0 20px; }

  .section-title { font-size: clamp(26px,6vw,38px); letter-spacing: -1px; }
  .section-sub   { font-size: 15px; }

  /* Botões empilham em mobile */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .section-title { font-size: clamp(22px,7vw,28px); }
}
