/* backend/static/css/index.css */

/* Versão: 2.8.2 - DISC Particles & Mobile Enabled (DNA Edition - Hologram Glass) */

/* NOTA TÉCNICA:
   Este arquivo gerencia a Home (Landing Page).
   Depende de: core.css (Design Tokens e Grid).
*/

/* --- 1. CANVAS & WRAPPERS --- */
#disc-particles {
  /* Opacidade controlada pelo JS para efeito de respiração */
  pointer-events: none;
  will-change: transform;

  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;

  overflow: hidden;

  width: 100%;
  height: 100vh;
}

.content-wrapper {
  position: relative;
  z-index: auto;

  display: flex;
  flex-direction: column;

  width: 100%;
  max-width: 100%;
}

.content-wrapper>section,
.content-wrapper>div:not(.b2b-zone) {
  position: relative;
  z-index: 2;
}


/* --- 2. HEADER CUSTOMIZATION --- */
header {
  position: relative;
  z-index: 2;

  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid rgb(255 255 255 / 50%);

  /* Header mais cristalino para combinar com o tema */
  background: rgb(255 255 255 / 65%);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-dna-sm);
}

/* --- 3. HERO SECTION --- */
.hero-showcase {
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 28rem;
  margin-bottom: 0;
  padding: var(--spacing-lg) var(--spacing-md);

  perspective: 1200px;
}

.logo-area {
  transform-style: preserve-3d;

  display: flex;
  flex-shrink: 0;
  justify-content: center;

  width: 18.75rem;
  max-width: 100%;
}

.large-logo {
  will-change: transform;

  display: block;

  width: 100%;
  height: auto;

  filter: drop-shadow(var(--shadow-dna-md));
}

.hero-text {
  transform-style: preserve-3d;
  max-width: 37.5rem;
  text-align: left;
  opacity: 0;
}

@media (width <=991px) {
  .hero-text {
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .home-hero-guidance {
    max-width: 100%;
  }
}

.hero-text h1 {
  margin-bottom: var(--spacing-sm);

  font-family: var(--font-family-headings);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--brand-dark);
  letter-spacing: -0.03em;
}

.home-docs-spotlight {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(19 50 188 / 20%);
  border-radius: 12px;
  background: rgb(255 255 255 / 55%);
  backdrop-filter: blur(4px);
  max-width: 500px;
}

.home-hero-guidance {
  display: grid;
  gap: 0.9rem;
  max-width: 500px;
}

.home-docs-spotlight-label {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.home-docs-spotlight-link {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-primary-bs);
  text-decoration: none;
}

.home-docs-spotlight-link:hover {
  text-decoration: underline;
}

.home-rhafael-spotlight {
  padding: 1rem;
  border: 1px solid rgb(14 116 144 / 18%);
  border-radius: 16px;
  background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(240 249 255 / 88%));
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 28px -24px rgb(14 116 144 / 70%);
}

.home-rhafael-spotlight-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.home-rhafael-spotlight-text {
  margin: 0.45rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #334155;
}

.home-rhafael-starters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.home-rhafael-starter {
  cursor: pointer;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgb(19 50 188 / 16%);
  border-radius: 999px;
  background: rgb(255 255 255 / 82%);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand-primary);
  text-align: left;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.home-rhafael-starter:hover,
.home-rhafael-starter:focus-visible {
  transform: translateY(-1px);
  border-color: rgb(19 50 188 / 30%);
  background: rgb(239 246 255 / 95%);
  box-shadow: 0 10px 24px -20px rgb(19 50 188 / 65%);
  outline: none;
}

.home-rhafael-spotlight-link {
  display: inline-flex;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f4c81;
  text-decoration: none;
}

.home-rhafael-spotlight-link:hover {
  text-decoration: underline;
}

/* --- 4. TRUST STRIP ENTERPRISE --- */
.trust-strip-enterprise {
  width: 100%;
  margin-top: 0;
  margin-bottom: var(--spacing-xl);
  padding: 1rem 0;
  border-top: 1px solid var(--border-color-default);
  border-bottom: 1px solid var(--border-color-default);

  background: rgb(37 99 235 / 20%);

  /* Leve transparência - Exceção blindada (colorido) */
  backdrop-filter: blur(4px);
}

.trust-grid-btos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;

  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.trust-item-btos {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}

.trust-item-btos svg {
  flex-shrink: 0;
  color: var(--color-primary-bs);
}

.trust-content-btos h5,
.trust-content-btos .h6 {
  margin: 0;

  font-size: 0.75rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.trust-content-btos p {
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.2;

  /* A11Y LOCK: manter contraste legível sobre a faixa translúcida. */
  color: #334155;
}

/* --- 5. MANIFESTO & B2B SECTION --- */
section.container.section-spacing:nth-of-type(2) {
  padding-bottom: 2rem;
}

section.container.section-spacing:nth-of-type(3) {
  padding-top: 1rem;
}

.manifesto-box {
  position: relative;

  margin: var(--spacing-lg) 0;
  padding: 2.5rem 2rem;
  border-top: none;

  /* Borda de contraste para definir o elemento sem preenchimento opaco */
  border-right: 1px solid rgb(255 255 255 / 40%);
  border-bottom: 1px solid rgb(255 255 255 / 40%);
  border-left: 6px solid var(--brand-primary);
  border-radius: 1rem;

  /* CORREÇÃO DO VIDRO: Exceção blindada (colorido) */
  background: rgb(37 99 235 / 20%);
  backdrop-filter: blur(5px) saturate(120%);
  box-shadow: 0 8px 32px 0 rgb(31 38 135 / 10%);
}

.manifesto-box::before {
  content: '"';

  position: absolute;
  top: 0;
  left: 15px;

  font-family: serif;
  font-size: 4rem;
  line-height: 1;
  color: rgb(19 50 188 / 15%);
}

.b2b-proof-grid {
  display: grid;
  gap: 1rem;
}

.b2b-proof-card {
  position: relative;
  overflow: hidden;

  padding: 1.35rem 1.25rem 1.5rem;
  border: 1px solid rgb(19 50 188 / 12%);
  border-radius: 1.25rem;

  text-align: left;

  background:
    linear-gradient(145deg, rgb(255 255 255 / 88%), rgb(244 247 255 / 92%));
  box-shadow:
    0 10px 30px rgb(19 50 188 / 8%),
    inset 0 1px 0 rgb(255 255 255 / 55%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.b2b-proof-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 1.25rem 0 0 1.25rem;
  background: linear-gradient(180deg, var(--brand-primary), #6ea8fe);
}

.b2b-proof-card:hover {
  transform: translateY(-2px);
  border-color: rgb(19 50 188 / 22%);
  box-shadow:
    0 16px 38px rgb(19 50 188 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 65%);
}

.b2b-proof-card--premium {
  background:
    linear-gradient(145deg, rgb(237 243 255 / 96%), rgb(248 250 255 / 94%));
}

.b2b-proof-card--direta {
  background:
    linear-gradient(145deg, rgb(255 255 255 / 94%), rgb(250 252 255 / 96%));
}

.b2b-proof-card--featured {
  border-color: rgb(19 50 188 / 22%);
  box-shadow:
    0 18px 42px rgb(19 50 188 / 14%),
    inset 0 1px 0 rgb(255 255 255 / 70%);
}

.b2b-proof-card--featured::after {
  content: "";
  position: absolute;
  inset: -35% auto auto -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(37 99 235 / 16%) 0%, transparent 70%);
  pointer-events: none;
  animation: b2bProofGlow 5.5s ease-in-out infinite;
}

.b2b-proof-eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid rgb(19 50 188 / 12%);
  border-radius: 999px;

  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  text-transform: uppercase;

  background: rgb(19 50 188 / 6%);
}

.b2b-proof-card .text-lead {
  color: #0f172a;
  font-weight: 500;
}

.b2b-proof-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.b2b-proof-actions .btn-btos-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
}

@keyframes b2bProofGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.8;
    transform: scale(1.04);
  }
}

.os-table-wrapper {
  overflow: hidden;

  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 1.5rem;

  /* Vidro Holográfico - Fundo e blur mínimos com brilho interno para definição */
  background: rgb(255 255 255 / 1%);
  backdrop-filter: blur(2px);
  box-shadow:
    0 8px 32px 0 rgb(31 38 135 / 15%),
    inset 0 0 20px rgb(255 255 255 / 3%);
}

.os-table {
  border-collapse: collapse;
  width: 100%;
}

.os-table th {
  padding: 1.2rem 1rem;
  border: 1px solid rgb(255 255 255 / 10%);

  font-size: 0.8rem;
  font-weight: 700;

  /* brand-primary com transparência */
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;

  background: rgb(19 50 188 / 85%);
}

.os-table td {
  padding: 1.2rem 1rem;
  border: 1px solid rgb(255 255 255 / 10%);

  color: var(--color-text-default);
  vertical-align: middle;

  background: transparent;

  /* Fundo transparente para evitar sobreposição de vidro (Stacking Context) */
}

.badge-metodologia {
  display: inline-flex;
  gap: 0.75rem;
  align-items: center;

  margin-top: var(--spacing-lg);
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 50px;

  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--color-text-default);

  background: rgb(255 255 255 / 1%);
  backdrop-filter: blur(2px);
  box-shadow:
    0 6px 16px rgb(31 38 135 / 12%),
    inset 0 0 10px rgb(255 255 255 / 3%);
}

@media (max-width: 767.98px) {
  .b2b-proof-actions .btn-btos-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-proof-card,
  .b2b-proof-card--featured::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- 6. CARDS & TECHNOLOGY --- */
.card-accent-d {
  border-top: 6px solid var(--color-disc-d) !important;
}

.card-accent-i {
  border-top: 6px solid var(--color-disc-i) !important;
}

.card-accent-s {
  border-top: 6px solid var(--color-disc-s) !important;
}

.card-accent-c {
  border-top: 6px solid var(--color-disc-c) !important;
}

.grid-btos-2x2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-lg);

  width: 100%;
  margin-top: var(--spacing-lg);
}

@media (width >=768px) {
  .grid-btos-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >=1400px) {
  .grid-btos-2x2 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* CORE FIX PARA CARDS: Hologram Glass Effect
*/
.card-btos-standard {
  position: relative;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  height: 100%;
  padding: 2rem;

  /* Bordas ajustadas para vidro fino e reflexo direcional */
  border: 1px solid rgb(255 255 255 / 15%);
  border-top: 1px solid rgb(255 255 255 / 30%);
  border-left: 1px solid rgb(255 255 255 / 30%);
  border-radius: 1.5rem;

  color: inherit;
  text-decoration: none;

  background: rgb(255 255 255 / 1%);
  backdrop-filter: blur(2px);
  box-shadow:
    0 8px 32px 0 rgb(31 38 135 / 12%),
    inset 0 0 20px rgb(255 255 255 / 3%);

  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.card-btos-standard::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  box-shadow:
    inset 2px 0 0 rgb(255 255 255 / 55%),
    inset 0 -2px 0 rgb(15 23 42 / 12%);
}

.card-btos-standard:hover {
  transform: translateY(-10px);

  /* No hover, mantemos o vidro transparente, intensificando a sombra e o brilho interno */
  background: rgb(255 255 255 / 3%);
  box-shadow:
    0 15px 45px 0 rgb(31 38 135 / 25%),
    inset 0 0 25px rgb(255 255 255 / 5%);
}

.card-exploration img {
  width: 3.125rem;
  height: 3.125rem;
  margin-bottom: 1rem;

  /* Adiciona leve brilho atrás do ícone para destacar no vidro */
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 10%));
}

.card-cta-text {
  margin-top: auto;
  padding-top: 1.5rem;

  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-tight-top {
  padding-top: 48px;
}

.section-tight-bottom {
  padding-bottom: 56px;
}

.b2c-proof-section {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

.b2c-proof-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  align-items: stretch;

  max-width: 760px;
  margin: 0 auto;
}

.b2c-proof-card {
  position: relative;
}

.b2c-proof-duo .card-btos-standard {
  height: 100%;
}

.b2c-proof-card--primary {
  transform: translateY(-8px);
}

.b2c-proof-card--secondary {
  transform: translateY(8px);
}

.b2b-divider {
  width: min(960px, 90%);
  height: 2px;
  margin: 12px auto 20px;

  background: linear-gradient(90deg,
      rgb(15 23 42 / 0%),
      rgba(206, 105, 75, 0.705),
      rgb(15 23 42 / 0%));
  box-shadow: 0 1px 0 rgb(255 255 255 / 65%);
}

.b2b-zone {
  position: relative;
  width: 100%;
}

.b2b-zone::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  background: #f1f4f7;
}

.b2b-zone>section {
  position: relative;
  z-index: 2;
}

.b2b-zone .card-btos-standard,
.b2b-zone .manifesto-box,
#empresas .card-btos-standard {
  background: var(--color-background-primary);
}

.b2b-howto-section {
  padding-bottom: 56px;
}

.b2b-proof-section {
  padding-top: 1.5rem;
}

.section-tight-top+.b2b-proof-section {
  margin-top: -4rem;
}

@media (width >=992px) {
  .section-tight-top {
    padding-top: 72px;
  }

  .section-tight-bottom {
    padding-bottom: 80px;
  }

  .b2c-proof-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
  }

  .b2b-howto-section {
    padding-bottom: 80px;
  }
}

@media (width <=768px) {

  .b2c-proof-card--primary,
  .b2c-proof-card--secondary {
    transform: none;
  }
}

/* --- 7. SOCIAL PROOF --- */
.verified-badge {
  display: inline-flex;
  margin-left: 4px;
  color: var(--color-primary-bs);
  vertical-align: middle;
}

.badge-btos {
  display: inline-block;

  padding: 4px 12px;
  border-radius: 4px;

  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
}

.badge-d {
  background-color: var(--color-disc-d);
}

.badge-i {
  background-color: var(--color-disc-i);
}

.badge-s {
  background-color: var(--color-disc-s);
}

.badge-c {
  background-color: var(--color-disc-c);
}

/* A11Y LOCK: badges da prova social precisam manter contraste AA no Lighthouse mobile. */
.grid-btos-2x2 .badge-i {
  background-color: #b45309;
}

.grid-btos-2x2 .badge-s {
  background-color: #047857;
}

/* A11Y HOTFIX: badge amarelo "Perfil I" da prova social precisa contraste AA. */
.b2c-proof-section .badge-i {
  background-color: #92400e;
}

/* --- 8. FAQ & CTA --- */
.faq-teaser-refined {
  width: 100%;
  max-width: 820px;
  margin: 32px auto;
  padding-top: 2rem;
  padding-bottom: 2rem;

  border: 1px solid rgb(15 23 42 / 10%);
  background: #f8fafc;
  backdrop-filter: none;
}

@media (width >=992px) {
  .faq-teaser-refined {
    margin: 48px auto;
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }
}

.cta-glow {
  border: 1px solid rgb(19 50 188 / 20%) !important;
  box-shadow:
    0 0 40px rgb(19 50 188 / 15%),
    var(--shadow-dna-xl) !important;
}

.promo-badge-floating {
  position: absolute;
  z-index: 10;
  top: -15px;
  right: -15px;

  padding: 8px 16px;
  border-radius: 50px;

  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;

  background: var(--color-disc-d);
  box-shadow: var(--shadow-dna-md);

  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(239 68 68 / 40%);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgb(239 68 68 / 0%);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgb(239 68 68 / 0%);
  }
}

/* Utilitário Glassmorphism Local (Genérico - Hologram Glass)
   Aplicado em Steps e Containers
*/
.glass-btos {
  position: relative;
  overflow: hidden;

  border: 1px solid rgb(255 255 255 / 15%);
  border-top: 1px solid rgb(255 255 255 / 30%);

  background: rgb(255 255 255 / 1%);
  backdrop-filter: blur(2px);
  box-shadow:
    0 8px 32px 0 rgb(31 38 135 / 12%),
    inset 0 0 20px rgb(255 255 255 / 3%);
}

.glass-btos::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  box-shadow:
    inset 2px 0 0 rgb(255 255 255 / 55%),
    inset 0 -2px 0 rgb(15 23 42 / 10%);
}

.faq-teaser-refined.glass-btos {
  border: 1px solid rgb(15 23 42 / 12%);
  background: #f8fafc;
  backdrop-filter: none;
}

/* --- 9. RESPONSIVIDADE --- */
@media (width <=768px) {
  .hero-showcase {
    flex-direction: column;
    gap: 1.25rem;
    padding-top: var(--spacing-lg);
    text-align: center;
  }

  .hero-text {
    padding: 0 1rem;
    text-align: center;
  }

  .home-docs-spotlight,
  .home-rhafael-spotlight {
    text-align: left;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .logo-area {
    width: 12.5rem;
  }

  .trust-grid-btos {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 1.25rem;
  }

  .trust-item-btos {
    justify-content: flex-start;
  }

  .manifesto-box::before {
    top: -5px;
    left: 10px;
    font-size: 3rem;
  }
}
