/**
 * BCR System — Hero Page Stylesheet
 * Estética: Midnight Precision & Ambient Glow (Dark Tech Luxury)
 */

:root {
  --bcr-bg: #030914;
  --bcr-bg-card: rgba(8, 20, 38, 0.65);
  --bcr-blue: #0062ff;
  --bcr-blue-light: #149be5;
  --bcr-blue-glow: rgba(0, 98, 255, 0.35);
  --bcr-text: #ffffff;
  --bcr-text-muted: #cbd5e1;
  --bcr-text-sub: #94a3b8;
  --bcr-border-subtle: rgba(255, 255, 255, 0.08);
  --bcr-container-max: 1200px;
}

/* Reset básico e tipografia */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bcr-bg);
  color: var(--bcr-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Wrapper Principal da Hero */
.bcr-hero-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: 
    radial-gradient(ellipse at 50% 15%, rgba(0, 98, 255, 0.18) 0%, rgba(3, 9, 20, 0) 70%),
    linear-gradient(180deg, rgba(3, 9, 20, 0.4) 0%, rgba(3, 9, 20, 0.85) 100%),
    var(--bcr-hero-bg, url('../images/hero-bg.webp'));
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 4rem 1.5rem;
}

/* Seletor Flutuante de Versão */
.bcr-version-nav {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  display: inline-flex;
  gap: 0.4rem;
  background: rgba(3, 9, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bcr-version-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.bcr-version-nav a:hover {
  color: #ffffff;
}

.bcr-version-nav a.active {
  background: #0062ff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(0, 98, 255, 0.6);
}

/* Linhas Guia Estruturais (Grid Blueprint inspirado no wireframe) */
.bcr-grid-guide {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(20, 155, 229, 0.12) 30%, rgba(20, 155, 229, 0.08) 80%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 1;
}

.bcr-grid-guide.guide-left {
  left: max(2rem, calc((100vw - var(--bcr-container-max)) / 2));
}

.bcr-grid-guide.guide-right {
  right: max(2rem, calc((100vw - var(--bcr-container-max)) / 2));
}

/* Container de Conteúdo */
.bcr-hero-container {
  position: relative;
  z-index: 2;
  max-width: var(--bcr-container-max);
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Título Principal (Heading) */
.bcr-heading {
  font-size: clamp(3.2rem, 7.8vw, 7.8rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 40%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Subheadline */
.bcr-subheadline {
  font-size: clamp(1.2rem, 2.7vw, 2.6rem);
  font-weight: 400;
  color: var(--bcr-text-muted);
  line-height: 1.35;
  max-width: 960px;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

/* Deck / Pilares Operacionais (Badge Pill) */
.bcr-deck-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: var(--bcr-bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--bcr-border-subtle);
  border-radius: 9999px;
  padding: 0.65rem 1.75rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.bcr-deck-item {
  font-size: clamp(0.85rem, 1.35vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  color: #f1f5f9;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.bcr-deck-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bcr-blue-light);
  box-shadow: 0 0 8px var(--bcr-blue-light);
  display: inline-block;
}

.bcr-deck-separator {
  color: rgba(255, 255, 255, 0.25);
  font-style: normal;
  user-select: none;
}

/* Botão de Ação CTA ("Call me now!") */
.bcr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: linear-gradient(135deg, #0052e0 0%, #0062ff 55%, #0ea5e9 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: clamp(1.1rem, 2vw, 1.5rem) clamp(2.5rem, 4.5vw, 4rem);
  border-radius: 9999px;
  box-shadow: 
    0 12px 35px var(--bcr-blue-glow),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.bcr-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 18px 45px rgba(0, 98, 255, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.bcr-cta-btn:active {
  transform: translateY(-1px) scale(1.0);
}

.bcr-cta-btn svg {
  width: 1.25em;
  height: 1.25em;
  transition: transform 0.25s ease;
}

.bcr-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   VERSÃO 2 — Tratamento de Alto Contraste e Imagem de Terreno Tecnológico
   ========================================================================== */

.bcr-hero-wrapper.version-2 {
  background-image: 
    /* Scrim equilibrado: protege a leitura dos textos mantendo os holofotes e ondas de partículas visíveis */
    radial-gradient(ellipse at 50% 50%, rgba(2, 6, 15, 0.58) 0%, rgba(3, 9, 20, 0.3) 50%, rgba(2, 6, 15, 0.75) 100%),
    var(--bcr-hero-bg, url('../images/hero-bg-v2.webp'));
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Título Versão 2: contraste reforçado com sombra tridimensional */
.version-2 .bcr-heading {
  background: linear-gradient(180deg, #ffffff 30%, #f8fafc 70%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.95)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
  margin-bottom: 1.5rem;
}

/* Subheadline Versão 2: cor pura e peso 500 para legibilidade absoluta sobre as ondas */
.version-2 .bcr-subheadline {
  color: #f8fafc;
  font-weight: 500;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
  margin-bottom: 2.25rem;
  max-width: 980px;
}

/* Deck / Pilares Versão 2: cápsula fosca de alta densidade e isolamento de fundo */
.version-2 .bcr-deck-pill {
  background: rgba(3, 9, 20, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 14px 40px rgba(0, 0, 0, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
  margin-bottom: 3.75rem;
}

.version-2 .bcr-deck-item {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.version-2 .bcr-deck-dot {
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8, 0 0 4px #ffffff;
}

/* Botão CTA Versão 2: projeção de luz refinada e contraste vibrante */
.version-2 .bcr-cta-btn {
  background: linear-gradient(135deg, #0052e0 0%, #0062ff 50%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 
    0 14px 40px rgba(0, 98, 255, 0.6),
    0 0 25px rgba(2, 132, 199, 0.4),
    inset 0 1px 2px rgba(255, 255, 255, 0.45);
}

.version-2 .bcr-cta-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 18px 50px rgba(0, 98, 255, 0.8),
    0 0 35px rgba(56, 189, 248, 0.6),
    inset 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* Responsividade Mobile (< 768px) */
@media (max-width: 768px) {
  .bcr-hero-wrapper {
    padding: 3rem 1.25rem;
  }
  
  .bcr-grid-guide {
    display: none; /* Simplifica o visual em telas móveis */
  }

  .bcr-deck-pill {
    padding: 0.5rem 1.25rem;
    gap: 0.5rem;
    margin-bottom: 2.75rem;
  }

  .bcr-cta-btn {
    width: 100%;
    max-width: 380px;
  }
}
