:root {
  --bg: #f4f6fa;
  --bg-elevated: #ffffff;
  --bg-subtle: #e8edf5;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --brand: #b8860b;
  --brand-soft: #d4a017;
  --line: #dbe3ef;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 12px;
  --font: "Segoe UI", system-ui, sans-serif;
  --display: "Segoe UI", system-ui, sans-serif;
  --logo-ratio: 1024 / 559;
  --content-width: 720px;
  --page-width: 1280px;
  --article-sidebar: 280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  background-image: linear-gradient(180deg, #ffffff 0%, var(--bg) 220px);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.wrap { width: min(var(--page-width), 100% - 2rem); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; line-height: 0; }
.brand__logo {
  height: 2.5rem;
  width: auto;
  max-width: min(10rem, 44vw);
  object-fit: contain;
  object-position: left center;
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.9375rem; align-items: center; }
.nav a { color: var(--text-secondary); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a:hover { color: var(--text); }

.hero {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.hero__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 2.5rem 3rem;
  }
  .hero__copy .btn-row { justify-content: flex-start; }
}
.hero__visual { display: flex; justify-content: center; }
@media (min-width: 900px) {
  .hero__visual { justify-content: flex-end; }
}
.hero__logo {
  width: 100%;
  max-width: min(400px, 100%);
  height: auto;
  aspect-ratio: var(--logo-ratio);
  object-fit: contain;
}
.hero__copy { text-align: center; }
@media (min-width: 900px) {
  .hero__copy { text-align: left; }
}
.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--brand); font-style: normal; }
.hero p {
  color: var(--text-secondary);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  font-size: 1.0625rem;
}
@media (min-width: 900px) {
  .hero p { margin-left: 0; margin-right: 0; }
}

.page-hero { padding: 2.25rem 0 0.5rem; }
.eyebrow {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.85rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.lead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 42rem;
  line-height: 1.7;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(135deg, var(--brand-soft), #e8c547);
  color: #1a1208;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.25);
}
.btn--ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: #c5d0e0; }
.btn--block { width: 100%; }

.section { padding: 2.5rem 0; }
.section__title {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  margin-bottom: 1.25rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  color: inherit;
  display: block;
}
a.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #c5d0e0;
  color: inherit;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--text); }
.card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.card__tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.service-card h2 {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.service-card p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.service-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.service-card li { margin-bottom: 0.35rem; }

.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { margin-bottom: 0.75rem; font-size: 1.25rem; }
.cta-band p { color: var(--text-secondary); }
.cta-band__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.steps {
  text-align: left;
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text-secondary);
  padding-left: 1.25rem;
}
.steps li { margin-bottom: 0.65rem; }

.prose { max-width: 42rem; }
.prose h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
}
.prose p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Hub de conteúdo */
.content-hub {
  padding: 2rem 0 3.5rem;
}
.content-hub__head {
  margin-bottom: 2rem;
  max-width: 40rem;
}
.content-hub__head h1 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hub-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
  color: inherit;
  min-height: 100%;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.hub-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: #c5d0e0;
  color: inherit;
}
.hub-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.75rem;
}
.hub-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}
.hub-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.hub-card__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

/* Artigo individual */
.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb--hero a { color: inherit; opacity: 0.85; }
.breadcrumb--hero { color: rgba(15, 23, 42, 0.55); }

.article-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
  --hero-accent: #1d4ed8;
  --hero-bg: #eff6ff;
}
.article-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, var(--hero-accent) 0%, transparent 55%),
    linear-gradient(135deg, var(--hero-bg) 0%, #ffffff 70%);
  opacity: 0.55;
}
.article-hero__grid {
  position: relative;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0 2.25rem;
}
@media (min-width: 900px) {
  .article-hero__grid {
    grid-template-columns: 1fr minmax(200px, 280px);
    padding: 2.25rem 0 2.75rem;
  }
}
.article-hero h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 36rem;
}
.article-hero__visual {
  display: flex;
  justify-content: center;
  color: var(--hero-accent);
}
.article-deco { width: min(240px, 70vw); height: auto; }

.theme-saas { --hero-accent: #1d4ed8; --hero-bg: #eff6ff; }
.theme-apps { --hero-accent: #6d28d9; --hero-bg: #f5f3ff; }
.theme-integrations { --hero-accent: #0d9488; --hero-bg: #f0fdfa; }
.theme-modern { --hero-accent: #b45309; --hero-bg: #fffbeb; }
.theme-ops { --hero-accent: #15803d; --hero-bg: #f0fdf4; }
.theme-dev { --hero-accent: #4338ca; --hero-bg: #eef2ff; }

.article-body__cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-accent);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  margin-bottom: 0.85rem;
}
.lead-meta {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.lead-meta--hero {
  max-width: 52rem;
  margin: 0;
}

.article-layout {
  display: grid;
  gap: 2rem;
  padding: 2rem 0 3.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) var(--article-sidebar);
    gap: 2.5rem 3rem;
  }
}
.article-main {
  min-width: 0;
}
.article-prose {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.prose-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.15rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}
.article-layout.theme-saas .prose-block,
.article-layout.theme-saas .prose-block__icon { --accent: #1d4ed8; }
.article-layout.theme-apps .prose-block,
.article-layout.theme-apps .prose-block__icon { --accent: #6d28d9; }
.article-layout.theme-integrations .prose-block,
.article-layout.theme-integrations .prose-block__icon { --accent: #0d9488; }
.article-layout.theme-modern .prose-block,
.article-layout.theme-modern .prose-block__icon { --accent: #b45309; }
.article-layout.theme-ops .prose-block,
.article-layout.theme-ops .prose-block__icon { --accent: #15803d; }
.article-layout.theme-dev .prose-block,
.article-layout.theme-dev .prose-block__icon { --accent: #4338ca; }
.article-layout.theme-saas .prose-block { border-left-color: #1d4ed8; }
.article-layout.theme-apps .prose-block { border-left-color: #6d28d9; }
.article-layout.theme-integrations .prose-block { border-left-color: #0d9488; }
.article-layout.theme-modern .prose-block { border-left-color: #b45309; }
.article-layout.theme-ops .prose-block { border-left-color: #15803d; }
.article-layout.theme-dev .prose-block { border-left-color: #4338ca; }

.prose-block__title {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}
.prose-block__icon {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), #93c5fd);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.prose-block__body p {
  margin-bottom: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 1rem;
}
.prose-block__body p:last-child { margin-bottom: 0; }
.article-list {
  margin: 0.15rem 0 0.25rem 1.15rem;
  color: var(--text-secondary);
}
.article-list li { margin-bottom: 0.5rem; line-height: 1.65; }

.article-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .article-aside {
    position: sticky;
    top: 5rem;
  }
}
.toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.toc__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.toc__link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line);
}
.toc__link:last-child { border-bottom: none; }
.toc__link:hover { color: var(--accent); }

.aside-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.aside-card--cta {
  background: linear-gradient(160deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}
.aside-card__title {
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 0.45rem;
}
.aside-card__text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.related { margin-top: 0.25rem; }
.related__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.related-link {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--text-secondary);
}
.related-link:hover { color: var(--accent); }

.contact-layout {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
}
@media (min-width: 768px) {
  .contact-layout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
}
.contact-aside h2 { font-size: 1rem; color: var(--text); margin: 1rem 0 0.5rem; }
.contact-aside p { color: var(--text-secondary); margin-bottom: 0.5rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.site-footer__logo {
  height: 2.125rem;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}
.site-footer__legal {
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 28rem;
  color: var(--text-muted);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #93c5fd;
  border-color: var(--accent);
}

.whatsapp-fab {
  position: fixed;
  z-index: 60;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45), 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5), 0 12px 32px rgba(15, 23, 42, 0.14);
}
.whatsapp-fab svg {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}
.whatsapp-fab__hint {
  display: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding-right: 0.35rem;
  white-space: nowrap;
}
@media (min-width: 480px) {
  .whatsapp-fab {
    padding: 0.85rem 1.1rem 0.85rem 0.85rem;
  }
  .whatsapp-fab__hint {
    display: block;
  }
}
