/* Black Hole Originkit aplicado como fundo global do site */
body {
  position: relative;
  background: #000 !important;
}

html body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.44)
  );
}

html body > *:not(.site-black-hole-bg) {
  position: relative;
  z-index: 1;
}

.site-black-hole-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}

.site-black-hole-bg canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-black-hole-bg .black-hole-fg {
  z-index: 1;
}

body > .orbit-bg {
  display: none !important;
}

.hero-side.black-hole-enabled {
  isolation: isolate;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
}

.hero-side.black-hole-enabled > * {
  position: relative;
  z-index: 2;
}

.hero-side.black-hole-enabled .logo-showcase {
  align-items: center;
  justify-items: center;
  min-height: 390px;
  background: rgba(255, 255, 255, 0.07);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.hero-side.black-hole-enabled .logo-showcase::before {
  display: none;
}

.hero-side.black-hole-enabled .logo-showcase img {
  width: min(250px, 76%);
  padding: 13px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.48);
  filter: grayscale(1) contrast(1.08);
}

.hero-side.black-hole-enabled .metric {
  background: rgba(8, 8, 10, 0.70);
  border-color: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .hero-side.black-hole-enabled .logo-showcase {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .hero-side.black-hole-enabled {
    min-height: 590px;
  }

  .hero-side.black-hole-enabled .logo-showcase {
    min-height: 365px;
    padding: 14px;
  }

  .hero-side.black-hole-enabled .logo-showcase img {
    width: min(200px, 74%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-black-hole-bg canvas {
    opacity: 0.82;
  }
}

/* ============================================================
   Tema Gravity Tech: fundo preto + conteúdo externo branco
   Templates/painéis brancos + conteúdo interno preto
   ============================================================ */

:root {
  --white: #ffffff;
  --off: rgba(255, 255, 255, 0.10);
  --soft: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.20);
  --black: #050505;
  --card: #ffffff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.24);
}

html,
body {
  background: #000 !important;
  color: #fff !important;
}

html body::before {
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.40)) !important;
  background-size: 56px 56px, 56px 56px, 100% 100% !important;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.46), transparent 86%) !important;
}

/* Navegação e elementos externos: branco sobre preto */
.topbar {
  background: rgba(0,0,0,.92) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
}

.navbar {
  background: rgba(0,0,0,.82) !important;
  color: #fff !important;
  border-bottom: 1px solid rgba(255,255,255,.16) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

.brand strong,
.brand span,
.nav-links a,
.breadcrumb,
.breadcrumb a,
.section-head h2,
.section-head p,
.footer,
.footer-brand,
.footer-copy,
.footer-links a,
.copyright {
  color: #fff !important;
}

.brand span,
.section-head p,
.footer-brand,
.footer-copy,
.footer-links a,
.copyright,
.breadcrumb {
  color: rgba(255,255,255,.72) !important;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #000 !important;
  background: #fff !important;
}

.footer {
  background: rgba(0,0,0,.38) !important;
  border-top: 1px solid rgba(255,255,255,.18) !important;
}

.footer-copy,
.copyright {
  border-color: rgba(255,255,255,.16) !important;
}

/* Botões externos: predominância branca */
.btn-black,
.btn-white {
  background: #fff !important;
  color: #050505 !important;
  border-color: rgba(255,255,255,.88) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.25) !important;
}

.btn-black:hover,
.btn-white:hover {
  background: #ededed !important;
  color: #000 !important;
}

.whatsapp-float {
  background: #fff !important;
  color: #050505 !important;
  border-color: rgba(255,255,255,.88) !important;
}

/* Todos os templates e painéis principais ficam brancos */
:is(
  .hero-copy,
  .hero-side,
  .card,
  .side-card,
  .feature-band,
  .feature-panel,
  .feature-list li,
  .faq details,
  .cta,
  .price-card,
  .demo-card,
  .flow-step,
  .contact,
  .contact-box,
  .client-story-card,
  .store-example,
  .store-browser,
  .project-card,
  .project-content,
  .article-body,
  .article-toc,
  .related-card,
  .legal-nav,
  .booking-summary,
  .booking-action-card,
  .highlight-box,
  .empty-note
) {
  --text: #0a0a0a;
  --muted: #5e5e5b;
  --line: #dededb;
  --off: #f6f6f3;
  --soft: #ededeb;
  --black: #050505;
  color: #0a0a0a !important;
  background: #fff !important;
  border-color: #dededb !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.24) !important;
}

/* Texto preto dentro dos templates brancos */
:is(
  .hero-copy,
  .hero-side,
  .card,
  .side-card,
  .feature-band,
  .feature-panel,
  .feature-list li,
  .faq details,
  .cta,
  .price-card,
  .demo-card,
  .flow-step,
  .contact,
  .contact-box,
  .client-story-card,
  .store-example,
  .store-browser,
  .project-card,
  .project-content,
  .article-body,
  .article-toc,
  .related-card,
  .legal-nav,
  .booking-summary,
  .booking-action-card,
  .highlight-box,
  .empty-note
) :is(h1,h2,h3,h4,h5,h6,strong,b,summary,a,label) {
  color: #0a0a0a !important;
}

:is(
  .hero-copy,
  .hero-side,
  .card,
  .side-card,
  .feature-band,
  .feature-panel,
  .feature-list li,
  .faq details,
  .cta,
  .price-card,
  .demo-card,
  .flow-step,
  .contact,
  .contact-box,
  .client-story-card,
  .store-example,
  .store-browser,
  .project-card,
  .project-content,
  .article-body,
  .article-toc,
  .related-card,
  .legal-nav,
  .booking-summary,
  .booking-action-card,
  .highlight-box,
  .empty-note
) :is(p,li,span,.kicker,.project-kicker,.booking-kicker,.post-date) {
  color: #5e5e5b !important;
}

/* Elementos especiais dentro dos templates */
.hero-copy::after,
.hero-side::before,
.feature-band::before,
.cta::before,
.booking-summary::after,
.card::before {
  border-color: rgba(0,0,0,.10) !important;
}

.eyebrow,
.eyebrow-dark,
.project-label,
.booking-status,
.tag,
.client-story-tags b,
.project-tags span,
.agenda-highlights span,
.legal-meta span {
  background: #f6f6f3 !important;
  color: #0a0a0a !important;
  border-color: #dededb !important;
}

.icon-badge,
.step-number,
.booking-icon {
  background: #050505 !important;
  color: #fff !important;
}

/* Botões dentro dos templates: preto com texto branco */
:is(
  .hero-copy,
  .hero-side,
  .card,
  .side-card,
  .feature-band,
  .feature-panel,
  .cta,
  .price-card,
  .demo-card,
  .flow-step,
  .contact,
  .contact-box,
  .client-story-card,
  .store-example,
  .store-browser,
  .project-card,
  .project-content,
  .article-body,
  .booking-summary,
  .booking-action-card
) .btn-black {
  background: #050505 !important;
  color: #fff !important;
  border-color: #050505 !important;
}

:is(
  .hero-copy,
  .hero-side,
  .card,
  .side-card,
  .feature-band,
  .feature-panel,
  .cta,
  .price-card,
  .demo-card,
  .flow-step,
  .contact,
  .contact-box,
  .client-story-card,
  .store-example,
  .store-browser,
  .project-card,
  .project-content,
  .article-body,
  .booking-summary,
  .booking-action-card
) .btn-white {
  background: #fff !important;
  color: #050505 !important;
  border-color: #cfcfcb !important;
}

/* Hero lateral da home também se torna um template branco */
.hero-side.black-hole-enabled {
  background: #fff !important;
  color: #050505 !important;
  backdrop-filter: none !important;
}

.hero-side.black-hole-enabled .logo-showcase {
  background: #f7f7f5 !important;
  border-color: #dededb !important;
  box-shadow: inset 0 0 70px rgba(0,0,0,.04) !important;
}

.hero-side.black-hole-enabled .metric {
  background: #f6f6f3 !important;
  border-color: #dededb !important;
  color: #050505 !important;
  backdrop-filter: none !important;
}

.hero-side.black-hole-enabled .metric strong {
  color: #050505 !important;
}

.hero-side.black-hole-enabled .metric span {
  color: #5e5e5b !important;
}

/* Preços, processos, contato e listas internas */
.price-card.featured {
  outline: 2px solid #050505 !important;
}

.price-details,
.quick-links a,
.feature-checks li,
.booking-details li {
  background: #f7f7f5 !important;
  color: #0a0a0a !important;
  border-color: #dededb !important;
}

.quick-links a:hover {
  background: #ededeb !important;
}

/* Áreas visuais podem manter imagens e cores próprias */
.portfolio-thumb,
.project-visual,
.article-cover,
.client-story-visual,
.browser-bar,
.browser-content,
.browser-products {
  color: inherit;
}

/* Evita fundos claros soltos fora dos templates */
main,
main > section,
.hero,
.store-example-section,
.booking-section {
  background: transparent !important;
}

@media (max-width: 640px) {
  .navbar {
    background: rgba(0,0,0,.94) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }
}

/* Ajustes finais de contraste e profundidade dos templates */
.step {
  --text: #0a0a0a;
  --muted: #5e5e5b;
  --line: #dededb;
  background: #fff !important;
  color: #0a0a0a !important;
  border-color: #dededb !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.24) !important;
}

.step h3,
.step strong {
  color: #0a0a0a !important;
}

.step p {
  color: #5e5e5b !important;
}

.step::before,
.flow-step > strong {
  background: #050505 !important;
  color: #fff !important;
}

.feature-panel,
.contact-box,
.project-content,
.price-details,
.booking-details li {
  box-shadow: none !important;
}

.feature-panel,
.contact-box,
.price-details {
  background: #f7f7f5 !important;
}

.contact-item {
  color: #5e5e5b !important;
  border-color: #dededb !important;
}

.contact-item strong,
.feature-panel .price,
.feature-panel small,
.price-card small,
.booking-summary small {
  color: #0a0a0a !important;
}

.feature-panel p,
.feature-panel li,
.contact p,
.cta p,
.booking-summary p,
.booking-details li {
  color: #5e5e5b !important;
}

.project-content {
  background: transparent !important;
  border: 0 !important;
}


/* Contraste do menu horizontal em celulares e tablets */
@media (max-width: 980px) {
  .navbar .nav-links a {
    color: #050505 !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .10) !important;
  }

  .navbar .nav-links a:hover,
  .navbar .nav-links a:focus-visible,
  .navbar .nav-links a[aria-current="page"] {
    color: #050505 !important;
    background: #ededeb !important;
    border-color: rgba(0, 0, 0, .22) !important;
  }
}
