/* ============================================================
   DUNA — Agência de Marketing | Landing Page
   Sistema visual
   ============================================================ */

:root {
  /* Cores (ajustáveis via Tweaks) */
  --bg: #f4f4f4;
  --bg-warm: #faf8f6;
  --charcoal: #343434;
  --charcoal-soft: #4a4a4a;
  --ink: #232323;
  --pink-soft: #f1b7c7;
  --pink-vivid: #e8709b;
  --pink-deep: #d24f7f;

  /* Acentos lúdicos (usados com parcimônia) */
  --acc-yellow: #ffc83d;
  --acc-blue: #5b8def;
  --acc-green: #7fc88a;
  --acc-coral: #ff6b4a;

  --white: #ffffff;
  --muted: #6f6f6f;
  --line: rgba(52, 52, 52, 0.10);

  /* Tipografia */
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Forma */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(52, 52, 52, 0.06);
  --shadow: 0 16px 40px -18px rgba(52, 52, 52, 0.22);
  --shadow-pink: 0 18px 44px -16px rgba(232, 112, 155, 0.55);

  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Intensidade da personalidade (formas decorativas) */
  --deco-opacity: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--charcoal);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 140px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--pink-vivid);
  border-radius: 2px;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  margin-top: 18px;
}
.section-head .lead {
  margin-top: 18px;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 620px;
}

.center { text-align: center; margin-inline: auto; }
.center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: var(--pink-vivid);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px -14px rgba(232, 112, 155, 0.7);
  background: var(--pink-deep);
}

.btn-dark {
  background: var(--charcoal);
  color: #fff;
}
.btn-dark:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(52,52,52,0.18);
}
.btn-ghost:hover { border-color: var(--charcoal); background: rgba(52,52,52,0.04); }

.btn-lg { padding: 20px 38px; font-size: 1.1rem; }
.btn-arrow svg { transition: transform .25s; }
.btn:hover .btn-arrow svg { transform: translateX(4px); }

/* ---------- Decorative shapes ---------- */
.shape {
  position: absolute;
  opacity: var(--deco-opacity);
  pointer-events: none;
  z-index: 0;
}
.shape-dot { border-radius: 50%; }
.shape-half-t { border-radius: 999px 999px 0 0; }
.shape-half-b { border-radius: 0 0 999px 999px; }
.shape-sq { border-radius: 8px; }

/* Cluster de formas (estilo "mosaico" lúdico) */
.glyph-row { display: flex; align-items: center; gap: 10px; }
.glyph { width: 34px; height: 34px; }
.glyph.c1 { background: var(--pink-vivid); border-radius: 999px 0 999px 0; }
.glyph.c2 { background: var(--acc-blue); border-radius: 50%; }
.glyph.c3 { background: var(--pink-soft); border-radius: 999px 999px 0 0; transform: rotate(0deg); }
.glyph.c4 { background: var(--acc-yellow); border-radius: 6px; transform: rotate(12deg); }
.glyph.c5 { background: var(--acc-green); border-radius: 0 999px 0 999px; }
.glyph.c6 { background: var(--charcoal); border-radius: 999px; height: 16px; align-self: center; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: 12px; top: -120px;
  z-index: 1000;
  background: var(--charcoal); color: #fff;
  padding: 12px 20px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}
