:root {
  --bg: #ffffff;
  --bg-soft: #f7f5fc;
  --card: #ffffff;
  --line: rgba(22, 16, 38, .12);
  --text: #15111f;
  --muted: #5b5470;
  --eyebrow: #6d28d9;

  --violet: #6d28d9;
  --violet-2: #4c1d95;
  --violet-soft: #a75bff;
  --indigo: #2563eb;
  --cyan: #0891b2;
  --cyan-soft: #68d8ff;
  --wa: #25d366;

  --dark: #0b0817;

  --shadow-sm: 0 10px 30px rgba(38, 18, 86, .07);
  --shadow-md: 0 18px 48px rgba(38, 18, 86, .1);
  --shadow-lg: 0 28px 70px rgba(38, 18, 86, .14);

  --max: 1180px;
  --display: "Space Grotesk", sans-serif;
  --body: "DM Sans", sans-serif;
}

.on-dark {
  --text: #f7f4ff;
  --muted: #b3abc6;
  --line: rgba(255, 255, 255, .15);
  --eyebrow: #c994ff;
  --card: rgba(255, 255, 255, .06);
  color: var(--text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font: 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--eyebrow);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); color: var(--text); }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(22, 16, 38, .08);
  background: #fff;
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 26px rgba(38, 18, 86, .08); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo img { width: 44px; height: 34px; object-fit: contain; }
.logo-name {
  color: transparent;
  background: linear-gradient(90deg, var(--violet) 0 45%, var(--indigo) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font: 700 1.15rem/1 var(--display);
  letter-spacing: -.045em;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { color: #2b2440; font-size: .9rem; font-weight: 700; text-decoration: none; transition: color .2s; }
.nav-links > a:hover { color: var(--violet); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  box-shadow: 0 10px 26px rgba(76, 29, 149, .22);
}
.nav-cta svg { width: 16px; height: 16px; flex: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--text); background: #fff; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 6px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--violet), var(--violet-2)); box-shadow: 0 14px 36px rgba(76, 29, 149, .26); }
.btn-primary:hover { box-shadow: 0 18px 44px rgba(76, 29, 149, .32); }

/* ---------- rodapé (escuro) ---------- */
footer { padding: 64px 0 34px; background: var(--dark); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 40px; }
.footer-top .logo-name { background: linear-gradient(90deg, var(--violet-soft) 0 48%, var(--cyan-soft) 100%); -webkit-background-clip: text; background-clip: text; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--muted); font-size: .86rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-links a.wa { display: inline-flex; align-items: center; gap: 7px; }
.footer-links a.wa svg { width: 15px; height: 15px; flex: none; color: var(--wa); }
.footer-legal { margin: 14px 0 0; color: #837b99; font-size: .72rem; line-height: 1.6; }
.footer-legal a { color: inherit; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.09); color: #837b99; font-size: .76rem; }

/* ---------- botão flutuante ---------- */
.wa-float {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #2ee06f, #15a34a);
  box-shadow: 0 14px 34px rgba(21,163,74,.35);
  animation: wa-pulse 2.6s ease-out infinite;
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
@keyframes wa-pulse {
  0% { box-shadow: 0 14px 34px rgba(21,163,74,.35), 0 0 0 0 rgba(37,211,102,.45); }
  70% { box-shadow: 0 14px 34px rgba(21,163,74,.35), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 14px 34px rgba(21,163,74,.35), 0 0 0 0 rgba(37,211,102,0); }
}

@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 76px 0 auto; padding: 26px 20px; display: none; flex-direction: column; align-items: stretch; gap: 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(38,18,86,.12); }
  .nav-links.open { display: flex; }
  .nav-cta { justify-content: center; }
  .menu-toggle { display: grid; place-items: center; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 28px, var(--max)); }
  .logo { gap: 7px; }
  .logo img { width: 37px; height: 29px; }
  .logo-name { font-size: 1.02rem; }
  .nav { min-height: 68px; }
  .nav-links { top: 68px; }
  .footer-top, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: 13px 20px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}

/* ---------- blog ---------- */
.blog-hero { padding: 150px 0 40px; }
.blog-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.04; letter-spacing: -.045em; margin-bottom: 16px; }
.blog-hero .lead { max-width: 620px; color: var(--muted); font-size: 1.05rem; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 20px 0 120px; }
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-6px); border-color: rgba(109,40,217,.3); box-shadow: var(--shadow-lg); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.05); }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.post-card-body .post-card-date { margin-top: auto !important; padding-top: 12px; }
.post-card-tag { display: inline-block; margin-bottom: 14px; color: var(--violet); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.post-card h2 { margin-bottom: 10px; font-size: 1.2rem; letter-spacing: -.02em; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--violet); }
.post-card p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.post-card-date { margin: 0 !important; color: #7d7592; font-size: .78rem; }

.post { padding: 150px 0 100px; max-width: 760px; }
.post-title { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -.04em; margin-bottom: 14px; }
.post-meta { margin-bottom: 28px; color: var(--muted); font-size: .85rem; }
.post-cover {
  margin: 0 0 44px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: var(--dark);
  box-shadow: var(--shadow-md);
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body h2 { margin: 46px 0 16px; font-size: 1.6rem; letter-spacing: -.02em; }
.post-body h3 { margin: 34px 0 14px; font-size: 1.25rem; }
.post-body p { margin: 0 0 20px; color: #3d3654; }
.post-body ul, .post-body ol { margin: 0 0 20px; padding-left: 22px; color: #3d3654; }
.post-body li { margin-bottom: 8px; }
.post-body a { color: var(--violet); text-decoration: underline; }
.post-body strong { color: var(--text); }
.post-body blockquote { margin: 0 0 20px; padding: 4px 0 4px 20px; border-left: 3px solid var(--violet); color: var(--muted); font-style: italic; }
.post-cta {
  margin-top: 56px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(150deg, #f5f2fe, #eaf0fe);
  box-shadow: var(--shadow-sm);
}
.post-cta h2 { margin-bottom: 12px; font-size: 1.5rem; }
.post-cta .lead { margin-bottom: 24px; color: var(--muted); }
.post-back { margin-top: 30px; }
.post-back a { color: var(--muted); font-size: .88rem; text-decoration: none; }
.post-back a:hover { color: var(--violet); }

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post { padding: 120px 0 70px; }
  .post-cta { padding: 30px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .wa-float { animation: none; }
}
