/* ============ Tokens ============ */
:root {
  --bg: #F7F4EE;
  --bg-alt: #F1ECE3;
  --surface: #FFFFFF;
  --ink: #1C1B20;
  --ink-soft: rgba(28, 27, 32, 0.66);
  --ink-faint: rgba(28, 27, 32, 0.38);
  --border: rgba(28, 27, 32, 0.09);
  --accent: #544DC5;
  --accent-ink: #1E0593;
  --accent-soft: #E3DFFF;
  --accent-surface: #EEEBFF;

  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
[data-lucide] { width: 1em; height: 1em; }

/* ============ Grain texture ============ */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(18px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }

.reveal-word {
  display: block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(30px);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal-word.is-visible { opacity: 1; filter: blur(0); transform: translateY(0); }
.reveal-word:nth-child(1) { transition-delay: 0s; }
.reveal-word:nth-child(2) { transition-delay: 0.15s; }
.reveal-word:nth-child(3) { transition-delay: 0.3s; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-text {
  padding: 11px 4px;
  color: var(--ink-soft);
}
.btn-text:hover { color: var(--ink); gap: 12px; }
.btn-lg { padding: 15px 30px; font-size: 0.98rem; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: all 0.4s var(--ease);
}
.nav.is-scrolled {
  padding: 14px 0;
  background: rgba(247, 244, 238, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo img {
  display: block;
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.nav-links a { transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.nav-burger span { width: 22px; height: 1.5px; background: var(--ink); transition: all 0.3s var(--ease); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
  position: relative;
}
.hero-inner { max-width: 900px; }
.kicker {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: floatCue 2.6s ease-in-out infinite;
}
@keyframes floatCue {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ============ Manifesto (foco seletivo) ============ */
.manifesto {
  max-width: 880px;
  margin: 0 auto;
  padding: 100px 32px 160px;
}
.manifesto-text {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.5;
  text-align: center;
  letter-spacing: -0.01em;
}
.manifesto-text span {
  display: inline;
  transition: opacity 0.6s var(--ease), color 0.6s var(--ease);
}
.manifesto-text .dim { color: var(--ink-faint); }
.manifesto-text .focus { color: var(--ink); font-style: italic; }
.manifesto-text.is-active .dim { color: var(--ink); }

/* ============ Sections ============ */
.section { padding: 120px 32px; max-width: 1180px; margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; padding-left: 0; padding-right: 0; }
.section-alt > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-alt .section-head,
.section-alt .solutions-list,
.section-alt .faq-list { padding-left: 32px; padding-right: 32px; }

.section-head { max-width: 640px; margin: 0 0 64px; }
.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-title em { font-style: italic; color: var(--accent); }

/* ============ Bento grid ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px 34px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(28, 27, 32, 0.18);
}
.bento-card i {
  width: 26px; height: 26px;
  color: var(--accent);
  margin-bottom: 22px;
}
.bento-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 0 10px;
}
.bento-card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.bento-lg { grid-column: span 2; }
.bento-wide { grid-column: span 3; }

/* ============ Solutions ============ */
.solutions-list { display: flex; flex-direction: column; }
.solution-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
}
.solution-row:last-child { border-bottom: 1px solid var(--border); }
.solution-num {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--accent);
  font-style: italic;
}
.solution-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 10px;
}
.solution-body p {
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0;
  font-size: 1.02rem;
}

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial-card > i { color: var(--accent-soft); width: 30px; height: 30px; }
.testimonial-card p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-surface);
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.82rem; color: var(--ink-faint); }
.testimonials-note {
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin: 40px 0 0;
}

/* ============ FAQ ============ */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-top: 1px solid var(--border); }
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.faq-question i { flex-shrink: 0; color: var(--accent); transition: transform 0.4s var(--ease); }
.faq-item[data-open="true"] .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.faq-answer p {
  margin: 0 0 26px;
  padding-right: 60px;
  color: var(--ink-soft);
  font-size: 1rem;
}
.faq-answer a { color: var(--accent-ink); text-decoration: underline; }

/* ============ CTA / Orçamento ============ */
.cta-section { background: var(--ink); border-radius: var(--radius-lg); max-width: 1180px; color: var(--bg); }
.cta-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  padding: 80px;
}
.cta-copy .eyebrow { color: var(--accent-soft); }
.cta-copy .section-title { color: var(--bg); }
.cta-copy .section-title em { color: var(--accent-soft); }
.cta-copy p:not(.eyebrow) { color: rgba(247, 244, 238, 0.66); font-size: 1.05rem; margin-top: 18px; }

.cta-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cta-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; color: rgba(247, 244, 238, 0.6); }
.cta-form input, .cta-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.cta-form input:focus, .cta-form textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.1);
}
.cta-form .btn-primary { background: var(--bg); color: var(--ink); margin-top: 6px; align-self: flex-start; }
.cta-form .btn-primary:hover { background: var(--accent-soft); }
.form-status { font-size: 0.88rem; color: var(--accent-soft); min-height: 1.2em; margin: 0; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 48px 32px; }
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-inner p { color: var(--ink-faint); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; align-items: center; gap: 24px; font-size: 0.88rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-lg { grid-column: span 2; }
  .bento-wide { grid-column: span 2; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; padding: 56px 36px; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .nav-actions .btn-ghost { display: none; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    box-shadow: 0 24px 48px -24px rgba(28, 27, 32, 0.25);
  }
  .nav-links a { padding: 10px 12px; border-radius: var(--radius-sm); }
  .nav-links a:hover { background: var(--bg-alt); }
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .solution-row { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 90px 22px; }
  .cta-section { border-radius: var(--radius-md); margin: 0 14px; }
  .cta-inner { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============ Support page ============ */
.support-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.support-toc a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: all 0.3s var(--ease);
}
.support-toc a:hover { border-color: var(--ink); color: var(--ink); }
.support-toc a i { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.support-list { display: flex; flex-direction: column; }
.support-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 100px;
}
.support-list .support-item:last-child { border-bottom: 1px solid var(--border); }
.support-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-item-icon i { width: 20px; height: 20px; color: var(--accent-ink); }
.support-item-body h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0 0 12px;
}
.support-item-body h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 8px;
}
.support-item-body > p, .support-item-body > ul { max-width: 640px; }
.support-item-body p { color: var(--ink-soft); margin: 0 0 14px; font-size: 1rem; line-height: 1.7; }
.support-item-body ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-soft); }
.support-item-body li { margin-bottom: 8px; line-height: 1.6; }
.support-tip {
  font-size: 0.9rem;
  color: var(--accent-ink);
  background: var(--accent-surface);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  max-width: 640px;
  margin: 4px 0 0;
}

@media (max-width: 640px) {
  .support-item { grid-template-columns: 1fr; gap: 14px; }
}

/* ============ Legal page (privacidade) ============ */
.legal { padding-top: 160px; }
.legal-content { max-width: 720px; }
.legal-content p { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; margin: 0 0 20px; }
.legal-content h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 40px 0 14px;
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content ul { margin: 0 0 20px; padding-left: 20px; color: var(--ink-soft); }
.legal-content li { margin-bottom: 10px; line-height: 1.7; }
.legal-content a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }

/* ============ WhatsApp floating button ============ */
.whatsapp-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px -12px rgba(28, 27, 32, 0.35);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 20px 36px -12px rgba(28, 27, 32, 0.4); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 640px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 25px; height: 25px; }
}

/* ============ Cookie consent banner ============ */
.btn-sm { padding: 9px 18px; font-size: 0.86rem; }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9998;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 24px 48px -24px rgba(28, 27, 32, 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  flex: 1 1 280px;
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; justify-content: center; }
}
