/* Natural Pulse — temas: cyberpunk | suave (light) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  transition: background 0.35s ease, color 0.25s ease;
}

/* ========== TEMA CYBERPUNK (neons intensos) ========== */
html[data-theme="cyberpunk"] {
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 58rem;
  --radius: 12px;

  --bg: #020308;
  --bg-mid: #060d1a;
  --bg-elevated: #0a1224;
  --text: #f0fbff;
  --text-muted: #7eb8d4;
  --purple: #e040ff;
  --lime: #d8ff00;
  --cyan: #00ffff;
  --magenta: #ff3cfc;
  --knowledge: #c8e8ff;

  --header-bg: rgba(2, 3, 8, 0.9);
  --header-border: rgba(0, 255, 255, 0.55);
  --card-bg: rgba(6, 12, 26, 0.82);
  --card-border: rgba(216, 255, 0, 0.45);
  --section-muted-border: rgba(255, 60, 252, 0.2);
  --note-bps-bg: rgba(0, 255, 255, 0.08);
  --footer-border: rgba(224, 64, 255, 0.45);
  --hero-logo-filter: drop-shadow(0 0 32px rgba(224, 64, 255, 0.75)) drop-shadow(0 0 72px rgba(0, 255, 255, 0.35));
  --theme-switch-label: #5bc0de;
  --code-bg: rgba(0, 255, 255, 0.12);
  --code-text: #d0fff0;
}

html[data-theme="cyberpunk"] body {
  background:
    radial-gradient(ellipse 130% 90% at 50% -15%, rgba(224, 64, 255, 0.35), transparent 52%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(0, 255, 255, 0.14), transparent 48%),
    radial-gradient(ellipse 70% 50% at 0% 85%, rgba(216, 255, 0, 0.12), transparent 42%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(255, 60, 252, 0.1), transparent 45%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg) 50%, #020308 100%);
}

html[data-theme="cyberpunk"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(0, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 40px 40px;
}

html[data-theme="cyberpunk"] main,
html[data-theme="cyberpunk"] .site-header,
html[data-theme="cyberpunk"] .site-footer {
  position: relative;
  z-index: 1;
}

html[data-theme="cyberpunk"] .hero h1 {
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.35),
    0 0 28px rgba(0, 255, 255, 0.75),
    0 0 56px rgba(224, 64, 255, 0.65),
    0 0 80px rgba(255, 60, 252, 0.35);
}

html[data-theme="cyberpunk"] h2 {
  text-shadow:
    0 0 18px rgba(216, 255, 0, 0.85),
    0 0 36px rgba(0, 255, 255, 0.35);
}

html[data-theme="cyberpunk"] .card {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 255, 255, 0.25),
    0 0 28px rgba(224, 64, 255, 0.2),
    0 0 48px rgba(0, 0, 0, 0.55);
}

/* ========== TEMA SUAVE — Nova Paleta (txt no projecto) ========================== */
/* Fundo #F0F7F4 | Grandes e botões #2D6A4F | Secundário #74C69D | Médias #40916C
   | Pequenas #889D94, branco em botões | Adornos #FFB4A2 | Divisórias #8B8B8B */
html[data-theme="light"] {
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 58rem;
  --radius: 18px;

  --bg: #f0f7f4;
  --bg-mid: #e8f3ed;
  --bg-elevated: #ffffff;
  --text: #2d6a4f;
  --text-muted: #889d94;
  /* Grandes; primários */
  --purple: #2d6a4f;
  /* Botões secundários, acentos suaves */
  --lime: #74c69d;
  /* Títulos médios, h2 / h3 */
  --cyan: #40916c;
  /* Adornos, traços salmão */
  --magenta: #ffb4a2;
  --knowledge: #40916c;
  --adorn: #ffb4a2;
  --adorn-soft: rgba(255, 180, 162, 0.55);

  --header-bg: #2d6a4f;
  --header-border: rgba(255, 180, 162, 0.55);
  --card-bg: #ffffff;
  --card-border: rgba(255, 180, 162, 0.64);
  --section-muted-border: rgba(139, 139, 139, 0.4);
  --note-bps-bg: rgba(255, 180, 162, 0.2);
  --footer-border: rgba(139, 139, 139, 0.5);
  --hero-logo-filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.2)) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.12));
  --theme-switch-label: rgba(255, 255, 255, 0.8);
  --code-bg: rgba(64, 145, 108, 0.09);
  --code-text: #2d6a4f;
  --skip-bg: #2d6a4f;
  --skip-fg: #ffffff;
}

html[data-theme="light"] body {
  background: linear-gradient(185deg, #f5faf8 0%, var(--bg) 42%, #e4f0eb 100%);
}

html[data-theme="light"] body::before {
  display: none;
}

html[data-theme="light"] body::after {
  display: none !important;
}

html[data-theme="light"] {
  scroll-behavior: auto;
}

html[data-theme="light"] .header-logo-full__img {
  animation: none !important;
}

html[data-theme="light"] .hero h1 {
  text-shadow: none;
  color: var(--text);
}
html[data-theme="light"] h2 {
  text-shadow: none;
  color: #40916c;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 3px solid rgba(255, 180, 162, 0.92);
  width: fit-content;
  max-width: 100%;
  padding-bottom: 0.4rem;
  margin-left: auto;
  margin-right: auto;
}
html[data-theme="light"] .section--muted h2,
html[data-theme="light"] #pilares h2,
html[data-theme="light"] [aria-labelledby="h-pilares"] h2 {
  margin-left: 0;
  margin-right: 0;
}
html[data-theme="light"] .card {
  box-shadow: 0 4px 22px rgba(45, 106, 79, 0.08), 0 0 0 2px rgba(255, 180, 162, 0.3);
  border-width: 2px;
}

html[data-theme="light"] .section--muted {
  border-top-width: 2px;
  border-bottom-width: 2px;
}

html[data-theme="light"] .note-bps {
  border-left: 5px solid var(--adorn);
  border-top: 2px solid var(--adorn-soft);
  border-bottom: 2px solid var(--adorn-soft);
  border-right: 2px solid var(--adorn-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
}

html[data-theme="light"] h3 {
  color: #40916c;
  text-decoration: underline 2px solid rgba(255, 180, 162, 0.7);
  text-underline-offset: 0.38rem;
  text-decoration-skip-ink: auto;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-left: none;
  padding-left: 0;
}

/* Cabeçalho na cor da paleta; traço salmão entre barra e logótipo completo */
html[data-theme="light"] .header-bar {
  border-bottom: 2px solid rgba(255, 180, 162, 0.6);
  background: transparent;
}

html[data-theme="light"] .site-header {
  border-bottom-width: 2px;
}
html[data-theme="light"] .header-logo-full {
  position: relative;
  z-index: 1;
  background: transparent;
  border-top: none;
  padding: 0.35rem 1rem 0.85rem;
}
html[data-theme="light"] .site-footer {
  border-top-width: 1px;
}

html[data-theme="light"] .site-header .brand,
html[data-theme="light"] .site-header .brand span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #f0f7f4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
html[data-theme="light"] .site-header .nav-main a {
  color: rgba(255, 255, 255, 0.88);
}
html[data-theme="light"] .site-header .nav-main a:hover {
  color: #ffffff;
}
html[data-theme="light"] .site-header .nav-main a[aria-current="page"] {
  color: #ffffff;
  text-decoration-color: #ffb4a2;
}
html[data-theme="light"] .site-header .theme-switch__btn {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.32);
}
html[data-theme="light"] .site-header .theme-switch__btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}
html[data-theme="light"] .site-header .theme-switch__btn--active {
  color: #2d6a4f !important;
  background: #f0f7f4 !important;
  border-color: #f0f7f4 !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* ========== PARTILHADO ========== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--lime);
  color: var(--bg);
  font-weight: 600;
  border-radius: 6px;
}
.skip-link:focus {
  left: 0.75rem;
}

html[data-theme="light"] .skip-link {
  color: var(--skip-fg);
  background: var(--skip-bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.25rem;
  width: 100%;
}

.header-logo-full {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.35rem 1rem 0.85rem;
  margin: 0;
}

.header-logo-full__link {
  display: block;
  line-height: 0;
  width: 100%;
  max-width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.header-logo-full__img {
  width: 100%;
  height: auto;
  max-height: min(42vh, 400px);
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
  filter: var(--hero-logo-filter);
}

/* Mesma linha que na coroa da home (texto SVG «Energia Vital BPS» + pilares), cabeçalho padrão */
.site-header:not(.np-home-classic-crown) .header-logo-full {
  padding-bottom: 0.25rem;
}

.site-header:not(.np-home-classic-crown) .header-crown-pillars-wrap {
  width: 100%;
  padding: 0.2rem 1rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--header-border);
}

.site-header:not(.np-home-classic-crown) .header-crown-pillars {
  margin: 0 auto;
  max-width: 44rem;
  font-size: clamp(0.95rem, 2.15vw, 1.14rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}

.site-header:not(.np-home-classic-crown) .header-crown-pillars__line {
  display: inline-block;
  margin-top: 0.18rem;
  font-size: 0.96em;
  letter-spacing: 0.03em;
}

/* Cabeçalho padrão: 1ª faixa marca + tema (linha divisória); 2ª faixa menu como na barra Spanda da home */
.site-header:not(.np-home-classic-crown) .header-bar {
  border-bottom: 1px solid var(--header-border);
}

.site-header:not(.np-home-classic-crown) .header-right {
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
}

.site-header:not(.np-home-classic-crown) .header-nav-band {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.42rem 1rem 0.45rem;
  background: var(--header-bg);
}

.site-header:not(.np-home-classic-crown) .header-nav-band .nav-main--band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.12rem 0.35rem;
  max-width: 100%;
}

.site-header:not(.np-home-classic-crown) .header-nav-band .nav-main--band a {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: var(--radius);
  transition:
    color 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header:not(.np-home-classic-crown) .header-nav-band .nav-main--band a:hover,
.site-header:not(.np-home-classic-crown) .header-nav-band .nav-main--band a:focus-visible {
  color: var(--lime);
  background: transparent;
  outline: none;
}

.site-header:not(.np-home-classic-crown) .header-nav-band .nav-main--band a[aria-current="page"] {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lime) 45%, transparent);
}

@media (max-width: 640px) {
  .header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .header-logo-full__img {
    max-height: min(36vh, 280px);
  }
}

.header-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem 1.5rem;
}

.theme-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
}

.theme-switch__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--theme-switch-label);
  width: 100%;
  margin: 0;
}
@media (min-width: 900px) {
  .theme-switch__label {
    width: auto;
    margin-right: 0.35rem;
  }
}

.theme-switch__btn {
  margin: 0;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

html[data-theme="cyberpunk"] .theme-switch__btn:hover {
  color: var(--cyan);
  border-color: rgba(0, 245, 255, 0.5);
}

.theme-switch__btn--active {
  color: var(--bg) !important;
  background: var(--lime) !important;
  border-color: var(--lime) !important;
}

html[data-theme="cyberpunk"] .theme-switch__btn--active {
  box-shadow:
    0 0 20px rgba(216, 255, 0, 0.65),
    0 0 36px rgba(0, 255, 255, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: clamp(3.25rem, 14vw, 5.25rem);
  height: auto;
  max-height: 2.5rem;
  object-fit: contain;
  object-position: center center;
  flex-shrink: 0;
}
.brand span {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-main a:hover {
  color: var(--lime);
}
.nav-main a[aria-current="page"] {
  color: var(--lime);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-underline-offset: 0.2em;
}
main {
  overflow-x: hidden;
}

.section {
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

@media (prefers-reduced-motion: no-preference) {
  html[data-theme="cyberpunk"] .header-logo-full__img {
    animation: np-pulse-glow 4s ease-in-out infinite;
  }
}

@keyframes np-pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 28px rgba(224, 64, 255, 0.65)) drop-shadow(0 0 56px rgba(0, 255, 255, 0.25));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.55)) drop-shadow(0 0 64px rgba(255, 60, 252, 0.35));
  }
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}
.hero .tagline {
  margin: 0 auto 1.25rem;
  max-width: 36em;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.hero .lede {
  margin: 0 auto 2rem;
  max-width: 40em;
  color: var(--text);
}
/* Tópicos: Suave = adorno #FFB4A2 (Nova Paleta); Cyber = salmão com brilho */
.hero .lede--bullets {
  list-style: disc;
  list-style-position: inside;
  padding: 0;
  text-align: center;
}
.hero .lede--bullets li {
  margin: 0.55rem 0;
  line-height: 1.55;
}
html[data-theme="light"] .hero .lede--bullets li::marker {
  color: #ffb4a2;
  font-size: 1.05em;
}
html[data-theme="cyberpunk"] .hero .lede--bullets li::marker {
  color: #ffb4a2;
  font-size: 1.05em;
  text-shadow: 0 0 8px rgba(255, 180, 162, 0.55);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn--primary {
  background: var(--purple);
  color: #fff;
  border-color: rgba(216, 255, 0, 0.55);
}
.btn--primary:hover {
  filter: brightness(1.12);
  border-color: var(--lime);
}
html[data-theme="light"] .btn--primary {
  background: #2d6a4f;
  border-color: rgba(45, 106, 79, 0.4);
  color: #ffffff;
}
html[data-theme="light"] .btn--primary:hover {
  filter: none;
  background: #255a42;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: var(--lime);
}
.btn--ghost:hover {
  background: rgba(158, 255, 0, 0.12);
}
html[data-theme="light"] .btn--ghost {
  color: #2d6a4f;
  border-color: #74c69d;
  background: rgba(255, 255, 255, 0.6);
}
html[data-theme="light"] .btn--ghost:hover {
  background: rgba(116, 198, 157, 0.2);
  border-color: #40916c;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--lime);
  letter-spacing: 0.02em;
}
h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--cyan);
}

.section--muted {
  background: var(--bg-elevated);
  border-top: 1px solid var(--section-muted-border);
  border-bottom: 1px solid var(--section-muted-border);
}

/* Mapa muito curto da home, entre o hero e os pilares (index) */
.section--apresentacao {
  padding: clamp(1.15rem, 3vw, 1.75rem) 1.25rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--section-muted-border);
  border-bottom: 1px solid var(--section-muted-border);
}
.section--apresentacao h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}
.section--apresentacao p {
  margin: 0;
  max-width: 48em;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.section--apresentacao a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
html[data-theme="light"] .section--apresentacao a {
  color: #2d6a4f;
}
.section--apresentacao .apresentacao-lead {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.65;
}
.section--apresentacao .apresentacao-tour {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.section--apresentacao .apresentacao-lista {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 48em;
}
.section--apresentacao .apresentacao-lista li {
  margin: 0.4rem 0;
}
.section--apresentacao .apresentacao-lista strong {
  color: var(--text);
}
/* Evitar linha dupla com a secção de pilares (também muted) */
.section--apresentacao + .section--muted {
  border-top: 0;
}

.pillars {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.35rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.note-bps {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--knowledge);
  background: var(--note-bps-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.98rem;
  color: var(--text-muted);
}
.note-bps strong {
  color: var(--text);
}

.section--logo-meaning p {
  color: var(--text-muted);
  max-width: 42em;
}

code {
  font-size: 0.9em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
}

.color-key {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.color-key span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--purple {
  background: #9e00ff;
}
.dot--lime {
  background: #9eff00;
}
.dot--gray {
  background: #c5c5c5;
}
html[data-theme="light"] .dot--purple {
  background: #2d6a4f;
}
html[data-theme="light"] .dot--lime {
  background: #74c69d;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
html[data-theme="light"] .dot--gray {
  background: #889d94;
}

/* Blocos inseridos por main.js a partir de partials/ (cabeçalho e rodapé únicos) */
#np-shell-header:empty {
  min-height: 4.5rem;
}
.np-shell-err {
  color: var(--text-muted);
  max-width: 40em;
  font-size: 0.95rem;
}
.np-shell-err code {
  font-size: 0.9em;
}

/*
 * Ficha padrão de infoproduto = template (modelo) de página.
 * Convenção: 1) Acervo: cartão + link para esta ficha. 2) Como usar. 3) Abrir. 4) Voltar.
 * 5) O que inclui. 6) Requisitos. 7) Documentação. Ver: infoproduto-template.html
 */
.np-ficha-infoproduto h1,
.acervo-page h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}
html[data-theme="light"] .acervo-page h1,
html[data-theme="light"] .np-ficha-infoproduto h1 {
  color: #2d6a4f;
  text-shadow: none;
}
html[data-theme="cyberpunk"] .acervo-page h1,
html[data-theme="cyberpunk"] .np-ficha-infoproduto h1 {
  text-shadow:
    0 0 10px rgba(0, 255, 255, 0.45),
    0 0 24px rgba(224, 64, 255, 0.35);
}
.acervo-page .acervo-intro,
.np-ficha-lead {
  max-width: 42em;
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.acervo-page .acervo-intro strong,
.np-ficha-lead strong {
  color: var(--text);
}
.np-ficha-sec--uso {
  margin-top: 0;
}
.np-ficha-acoes {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.np-ficha-sub {
  margin: 2rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cyan);
}
html[data-theme="light"] .np-ficha-sub {
  color: #40916c;
}
.np-ficha-lista {
  max-width: 42em;
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  list-style: disc;
  line-height: 1.55;
}
.np-ficha-req,
.np-ficha-docs,
.np-ficha-rodape {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 44em;
  line-height: 1.55;
}
.np-ficha-rodape {
  font-size: 0.95rem;
  margin-top: 1rem;
}
.np-ficha-rodape a {
  color: var(--lime);
}
html[data-theme="light"] .np-ficha-rodape a {
  color: #40916c;
}
html[data-theme="light"] .np-ficha-rodape a:hover {
  color: #2d6a4f;
}

/* Blog — lista de notícias (conteúdo editável em blog.html) */
.np-blog-feed {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
  max-width: 44rem;
}
.np-blog-post {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--section-muted-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}
.np-blog-post__time {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.np-blog-post__title {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.35;
}
html[data-theme="light"] .np-blog-post__title {
  color: #1b4332;
}
.np-blog-post__excerpt {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.np-blog-post__excerpt code {
  font-size: 0.88em;
}

.acervo-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}
@media (min-width: 560px) {
  .acervo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .acervo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.content-slot {
  display: flex;
  flex-direction: column;
  min-height: 8rem;
}
.content-slot h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
.content-slot p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}
.content-slot__status {
  margin-top: 0.85rem !important;
  padding-top: 0.65rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.82rem !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
}
html[data-theme="cyberpunk"] .content-slot--pending {
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.12);
}
html[data-theme="light"] .content-slot--pending .content-slot__status {
  color: #889d94 !important;
}
.content-slot--ready {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px rgba(216, 255, 0, 0.15);
}
html[data-theme="light"] .content-slot--ready {
  border-color: #74c69d;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.12), 0 0 0 2px rgba(255, 180, 162, 0.28);
}
.content-slot--ready .content-slot__status,
.content-slot__status--ready {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-top-color: var(--card-border) !important;
  color: var(--lime) !important;
  font-size: 0.9rem !important;
}
html[data-theme="light"] .content-slot--ready .content-slot__status {
  color: #2d6a4f !important;
}
.content-slot__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 0.65rem;
}
.content-slot__actions a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  border: 2px solid var(--lime);
  color: var(--lime);
  transition: background 0.2s, color 0.2s;
}
.content-slot__actions a:hover {
  background: rgba(158, 255, 0, 0.12);
}
.content-slot__actions a.btn--fill {
  background: var(--purple);
  color: #fff;
  border-color: transparent;
}
html[data-theme="light"] .content-slot__actions a {
  color: #2d6a4f;
  border-color: #74c69d;
}
html[data-theme="light"] .content-slot__actions a:hover {
  background: rgba(116, 198, 157, 0.2);
}
html[data-theme="light"] .content-slot__actions a.btn--fill {
  background: #2d6a4f;
  color: #fff;
  border-color: #2d6a4f;
}
html[data-theme="light"] .content-slot__actions a.btn--fill:hover {
  background: #255a42;
}
html[data-theme="cyberpunk"] .content-slot__actions a.btn--fill {
  background: linear-gradient(90deg, var(--magenta), var(--cyan));
  color: #020308;
  font-weight: 700;
  border: none;
}
html[data-theme="cyberpunk"] .content-slot__actions a.btn--fill:hover {
  filter: brightness(1.15);
  background: linear-gradient(90deg, var(--cyan), var(--lime));
}

.cta-band {
  text-align: center;
}
.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--footer-border);
}
.site-footer p {
  margin: 0;
}
.site-footer__legal {
  margin: 0.75rem 0 0;
  font-size: 0.86rem;
}
.site-footer a {
  color: var(--lime);
}
html[data-theme="light"] .site-footer a {
  color: #40916c;
  text-decoration: underline;
  text-decoration-color: rgba(255, 180, 162, 0.9);
  text-underline-offset: 0.15em;
}
html[data-theme="light"] .site-footer a:hover {
  color: #2d6a4f;
  text-decoration-color: #ffb4a2;
}

/* Páginas legais (termos, privacidade) */
.legal-page {
  text-align: left;
}
.legal-page h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.65rem;
  color: var(--lime);
}
html[data-theme="light"] .legal-page h2 {
  color: #2d6a4f;
}
.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}
.legal-page ul {
  margin: 0.35rem 0 0.5rem;
  padding-left: 1.35rem;
  list-style: disc;
}
.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.legal-h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
  color: var(--text);
}
html[data-theme="light"] .legal-h3 {
  color: #1a3a2c;
}

html[data-theme="light"] a:focus-visible,
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] .btn:focus-visible {
  outline: 3px solid rgba(255, 180, 162, 0.95);
  outline-offset: 2px;
}

/* ========== CYBERPUNK: High-tech (CRT, revelar ao scroll, brilho do rato) ========== */
html[data-theme="cyberpunk"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 255, 255, 0.04) 2px,
    rgba(0, 255, 255, 0.04) 3px
  );
  animation: np-crt-scan 10s linear infinite;
}

@keyframes np-crt-scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(5px);
  }
}

html[data-theme="cyberpunk"] .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    var(--cyan),
    var(--magenta),
    var(--lime),
    var(--cyan),
    transparent
  );
  background-size: 200% 100%;
  animation: np-header-flow 5s ease infinite;
  opacity: 0.85;
  pointer-events: none;
}

/* Rede neural (canvas): só Cyberpunk, faixa superior do cabeçalho; brilho extra, sem tocar no corpo */
html[data-theme="cyberpunk"] .neural-fx {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
  /* Sem blur CSS: o canvas fica nítido; o brilho fica a cargo do stroke no 2D */
  opacity: 1;
  filter: none;
}
html[data-theme="light"] .neural-fx,
.neural-fx[hidden] {
  display: none !important;
}
html[data-theme="cyberpunk"] .header-bar,
html[data-theme="cyberpunk"] .header-logo-full {
  position: relative;
  z-index: 1;
}

@keyframes np-header-flow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

html[data-theme="cyberpunk"] .card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(0, 255, 255, 0.35),
    rgba(224, 64, 255, 0.25),
    rgba(216, 255, 0, 0.3),
    rgba(0, 255, 255, 0.35)
  );
  background-size: 300% 300%;
  animation: np-card-border 8s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

html[data-theme="cyberpunk"] .card > * {
  position: relative;
  z-index: 1;
}

@keyframes np-card-border {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

html[data-theme="cyberpunk"] .brand span {
  transition: text-shadow 0.2s ease, filter 0.2s ease;
}
html[data-theme="cyberpunk"] .brand:hover span {
  animation: np-glitch-text 0.35s ease-out;
}

@keyframes np-glitch-text {
  0%,
  100% {
    text-shadow: none;
    filter: none;
  }
  20% {
    text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan);
    filter: hue-rotate(15deg);
  }
  40% {
    text-shadow: -1px 0 var(--lime), 1px 0 var(--magenta);
  }
  60% {
    text-shadow: 1px 0 var(--cyan), -1px 0 var(--purple);
  }
}

html[data-theme="cyberpunk"] main .section.cyber-reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  filter: blur(1px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s ease;
}
html[data-theme="cyberpunk"] main .section.cyber-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

#cyber-cursor-glow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    circle 220px at var(--cx, 50%) var(--cy, 50%),
    rgba(0, 255, 255, 0.14),
    rgba(224, 64, 255, 0.06) 35%,
    transparent 70%
  );
}
html[data-theme="cyberpunk"] #cyber-cursor-glow {
  opacity: 1;
}
html[data-theme="light"] #cyber-cursor-glow {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="cyberpunk"] body::after,
  html[data-theme="cyberpunk"] .site-header::after,
  html[data-theme="cyberpunk"] .card::before {
    animation: none !important;
  }
  html[data-theme="cyberpunk"] .brand:hover span {
    animation: none !important;
  }
  html[data-theme="cyberpunk"] .header-logo-full__img {
    animation: none !important;
  }
  html[data-theme="cyberpunk"] main .section.cyber-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
