/**
 * Revolução visual — composição rica, ritmo de seções, CTAs, cards (conteúdo intacto)
 */
body.hn-site-page main > section {
  position: relative;
  padding: var(--section-spacing-desktop) 0;
}

body.hn-site-page main > section.hero:first-of-type {
  padding: clamp(88px, 12vw, 120px) 0 clamp(64px, 8vw, 88px);
  min-height: clamp(520px, 72vh, 760px);
}

/* Hero premium — fundo editorial Setor */
body.hn-site-page.ss-premium-page main > section.hero:first-of-type::before,
body.hn-site-page.ss-page-home .top-bg .hero::before,
body.hn-site-page.ss-page-home main > section.hero:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 88% 92%, rgba(255, 208, 2, 0.16), transparent 58%),
    radial-gradient(ellipse 45% 35% at 12% 18%, rgba(34, 211, 238, 0.12), transparent 52%),
    linear-gradient(128deg, #061229 0%, #0a2347 42%, #0f3460 100%) !important;
}

body.hn-site-page.ss-premium-page main > section.hero:first-of-type::after,
body.hn-site-page.ss-page-home .top-bg .hero::after,
body.hn-site-page.ss-page-home main > section.hero:first-of-type::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.35) 72%, transparent 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.55) 0%, transparent 38%, rgba(2, 6, 23, 0.65) 100%) !important;
}

body.hn-site-page.ss-page-home .top-bg {
  overflow: visible;
}

body.hn-site-page.ss-page-home .hero-bg {
  opacity: 0.12 !important;
  filter: saturate(0.6) blur(1px);
}

body.hn-site-page.ss-page-home .top-bg .hero,
body.hn-site-page.ss-page-home main > section.hero:first-of-type {
  position: relative;
  overflow: visible;
  min-height: clamp(520px, 70vh, 720px);
}

body.hn-site-page.ss-page-home .top-bg .hero .container,
body.hn-site-page.ss-page-home .top-bg .hero .hero-shell,
body.hn-site-page.ss-page-home main > section.hero:first-of-type .container,
body.hn-site-page.ss-page-home main > section.hero:first-of-type .hero-shell {
  position: relative;
  z-index: 3;
}

/* Ritmo alternado nas seções internas */
body.hn-site-page main > section:not(.hero):nth-of-type(even) {
  background: var(--hn-soft);
}

body.hn-site-page main > section:not(.hero):nth-of-type(odd) {
  background: var(--hn-bg);
}

[data-theme="dark"] body.hn-site-page main > section:not(.hero):nth-of-type(even) {
  background: rgba(11, 23, 48, 0.55);
}

/* Divisor curvo entre seções */
body.hn-site-page main > section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(140px, 18vw);
  height: 4px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, transparent, var(--color-brand-yellow), transparent);
  opacity: 0.65;
}

body.hn-site-page:not(.ss-premium-page):not(.ss-page-home) main > section.hero:first-of-type::before {
  content: none;
}

/* Tipografia editorial */
body.hn-site-page main > section.hero:first-of-type h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem) !important;
  max-width: 14ch;
}

body.hn-site-page main > section:not(.hero) h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  margin-bottom: 12px;
}

body.hn-site-page main .muted,
body.hn-site-page main p.muted {
  color: var(--hn-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Cards */
body.hn-site-page main .card {
  border: 1px solid var(--hn-line);
  border-radius: var(--radius-card);
  background: var(--hn-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border-left: 4px solid color-mix(in srgb, var(--color-brand-yellow) 70%, transparent);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.hn-site-page main .card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.hn-site-page main .card:hover {
  border-color: color-mix(in srgb, var(--color-brand-yellow) 45%, var(--hn-line));
  border-left-color: var(--color-brand-yellow);
  box-shadow: var(--shadow-medium);
  transform: translateY(-3px);
}

body.hn-site-page main .grid {
  gap: 16px;
}

/* Botões unificados */
body.hn-site-page .btn,
body.hn-site-page a.btn,
body.hn-site-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 0.88rem;
  background: linear-gradient(135deg, var(--color-brand-yellow), var(--color-brand-yellow-deep));
  color: #111827 !important;
  border: 1px solid rgba(230, 184, 0, 0.5);
  box-shadow: 0 12px 28px rgba(255, 208, 2, 0.22);
}

body.hn-site-page .btn:hover,
body.hn-site-page .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 208, 2, 0.32);
}

body.hn-site-page .btn-soft {
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  border: 1px solid var(--hn-line);
  background: color-mix(in srgb, var(--hn-surface) 88%, transparent);
  backdrop-filter: blur(10px);
}

body.hn-site-page main > section.hero:first-of-type .btn-soft {
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

/* Breadcrumbs */
body.hn-site-page .crumbs {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px !important;
}

body.hn-site-page .crumbs a {
  color: var(--color-brand-yellow);
}

/* Faixa amarela estratégica — última seção antes do chrome */
body.hn-site-page main > section:last-of-type:not(.hero) {
  background: linear-gradient(135deg, #fff8c7 0%, #fff 48%, var(--hn-soft) 100%);
  border-block: 1px solid rgba(255, 208, 2, 0.35);
}

[data-theme="dark"] body.hn-site-page main > section:last-of-type:not(.hero) {
  background: linear-gradient(135deg, rgba(255, 208, 2, 0.12) 0%, rgba(11, 23, 48, 0.95) 100%);
}

/* Home monólito */
body.hn-site-page.ss-page-home main > section {
  padding: var(--section-spacing-desktop) 0;
}

body.hn-site-page.ss-page-home .hero-panel-title,
body.hn-site-page.ss-page-home .section-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

/* Blog artigo */
body.hn-site-page main > section.hero .lead {
  font-size: 1.08rem;
  max-width: 62ch;
  line-height: 1.6;
}

/* Listas com ícones */
body.hn-site-page ul.list li {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--hn-line);
  background: var(--hn-surface);
}

@media (max-width: 768px) {
  body.hn-site-page main > section {
    padding: var(--section-spacing-mobile) 0;
  }

  body.hn-site-page main > section.hero:first-of-type h1 {
    max-width: none;
  }

  body.hn-site-page main > section.hero:first-of-type .container,
  body.hn-site-page main > section.hero:first-of-type .hero-shell {
    max-width: none;
  }
}
