/* ==========================================================================
   Brave2Grow · Rebranding & Agente Raio-X IA
   Identidade visual preservada do AS-IS + Posicionamento Prototype-to-Production
   ========================================================================== */

:root {
  --bg-dark: #0F0D0A;
  --bg-dark-2: #100F0C;
  --bg-dark-3: #0C0B09;
  --bg-light: #F4F2FB;
  --bg-light-2: #EDE9F5;
  --bg-white: #FFFFFF;

  --text-light: #FAF9F6;
  --text-light-muted: rgba(250, 249, 246, 0.56);
  --text-light-subtle: rgba(250, 249, 246, 0.34);

  --text-dark: #100F0C;
  --text-dark-muted: rgba(16, 15, 12, 0.62);
  --text-dark-subtle: rgba(16, 15, 12, 0.42);

  --brand-purple: #5A0FD4;
  --brand-violet: #8B1FE8;
  --brand-magenta: #C020B0;
  --brand-coral: #E83040;
  --brand-orange: #F06020;

  --brand-gradient: linear-gradient(135deg, #5A0FD4 0%, #8B1FE8 28%, #C020B0 58%, #E83040 82%, #F06020 100%);
  --brand-gradient-h: linear-gradient(90deg, #5A0FD4, #C020B0, #F05030);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

/* Navbar */
.b2g-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5rem;
  background: rgba(6, 4, 15, 0.96);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.b2g-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 1;
}

.b2g-brand img {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: screen;
  opacity: 0.9;
  filter: drop-shadow(rgba(130, 30, 220, 0.55) 0px 0px 10px);
}

.b2g-brand-text {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #FFFFFF;
}

.b2g-brand-two {
  background: var(--brand-gradient-h);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.b2g-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.b2g-nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: color 0.15s;
}

.b2g-nav-links a:hover {
  color: #FFFFFF;
}

/* Language Switcher */
.b2g-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.b2g-lang-switcher.mini {
  background: transparent;
  border: none;
  padding: 0;
  gap: 0.4rem;
}

.b2g-lang-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: all 0.15s ease;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.b2g-lang-link:hover {
  color: #FFFFFF;
}

.b2g-lang-link.active {
  color: #FFFFFF;
  background: rgba(139, 31, 232, 0.4);
  font-weight: 700;
}

.b2g-lang-switcher.mini .b2g-lang-link.active {
  background: transparent;
  color: #E5D4FF;
  text-decoration: underline;
}

.b2g-lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 10px;
}

.b2g-btn-primary {
  font-family: var(--font-sans);
  background: var(--brand-gradient);
  color: #FFFFFF;
  padding: 0.85rem 1.85rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: rgba(90, 15, 212, 0.42) 0px 10px 36px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.b2g-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: rgba(90, 15, 212, 0.6) 0px 14px 44px;
}

.b2g-btn-outline-light {
  font-family: var(--font-sans);
  background: transparent;
  color: rgba(250, 249, 246, 0.72);
  border: 1px solid rgba(250, 249, 246, 0.18);
  padding: 0.85rem 1.75rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.b2g-btn-outline-light:hover {
  color: #FFFFFF;
  border-color: rgba(250, 249, 246, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.b2g-btn-outline-dark {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(16, 15, 12, 0.22);
  padding: 0.85rem 1.6rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.15s, background 0.15s;
}

.b2g-btn-outline-dark:hover {
  border-color: var(--brand-purple);
  background: rgba(90, 15, 212, 0.04);
}

/* Hero Section */
.b2g-hero {
  min-height: 100vh;
  background: var(--bg-dark);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  padding: 6.5rem 5rem 4.5rem;
  gap: 3.5rem;
  position: relative;
  overflow: hidden;
}

.b2g-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.b2g-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.b2g-eyebrow-line {
  width: 22px;
  height: 1.5px;
  background: var(--brand-gradient-h);
  flex-shrink: 0;
}

.b2g-eyebrow-text {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 249, 246, 0.52);
}

.b2g-eyebrow-text.dark {
  color: rgba(16, 15, 12, 0.48);
}

.b2g-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.1rem, 5.2vw, 5.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.b2g-gradient-text {
  font-style: italic;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.b2g-hero-subtitle {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250, 249, 246, 0.68);
  max-width: 560px;
  margin-bottom: 2rem;
}

.b2g-anchors-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
}

.b2g-anchor-pill {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(250, 249, 246, 0.85);
  background: rgba(90, 15, 212, 0.18);
  border: 1px solid rgba(139, 31, 232, 0.38);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* Raio-X IA Card Interactive Widget */
.raiox-card {
  background: rgba(20, 17, 29, 0.92);
  border: 1px solid rgba(139, 31, 232, 0.38);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55), 0 0 48px rgba(90, 15, 212, 0.22);
  padding: 2.25rem;
  position: relative;
  z-index: 2;
  color: var(--text-light);
}

.raiox-card-light {
  background: #FFFFFF;
  border: 1px solid rgba(16, 15, 12, 0.1);
  box-shadow: 0 20px 60px rgba(16, 15, 12, 0.08);
  padding: 2.5rem;
  color: var(--text-dark);
}

.raiox-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #E5D4FF;
  background: rgba(90, 15, 212, 0.35);
  border: 1px solid rgba(192, 32, 176, 0.45);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.raiox-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 0 1.25rem;
  overflow: hidden;
}

.raiox-progress-fill {
  height: 100%;
  background: var(--brand-gradient-h);
  transition: width 0.3s ease;
}

.raiox-textarea,
.raiox-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  margin-bottom: 0.9rem;
  transition: border-color 0.15s, background 0.15s;
}

.raiox-textarea:focus,
.raiox-input:focus {
  outline: none;
  border-color: #C020B0;
  background: rgba(255, 255, 255, 0.09);
}

.raiox-textarea-wrap {
  position: relative;
  margin-bottom: 0.95rem;
}

.raiox-textarea-wrap .raiox-textarea {
  margin-bottom: 0;
  padding-right: 3rem;
  display: block;
}

.raiox-textarea-wrap.is-recording .raiox-textarea {
  border-color: #E83040;
  background: rgba(232, 48, 64, 0.06);
}

.raiox-mic-btn {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(250, 249, 246, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.raiox-mic-btn:hover {
  color: #FAF9F6;
  background: rgba(139, 31, 232, 0.28);
  border-color: rgba(192, 32, 176, 0.55);
  transform: scale(1.05);
}

.raiox-mic-btn.is-listening {
  color: #FFFFFF;
  background: rgba(232, 48, 64, 0.32);
  border-color: #E83040;
  box-shadow: 0 0 16px rgba(232, 48, 64, 0.45);
}

.raiox-mic-dot {
  display: none;
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF4D5E;
  box-shadow: 0 0 6px #FF4D5E;
  animation: b2g-mic-pulse 1.1s infinite ease-in-out;
}

.raiox-mic-btn.is-listening .raiox-mic-dot {
  display: inline-block;
}

.raiox-mic-status {
  position: absolute;
  left: 0.85rem;
  bottom: 0.55rem;
  z-index: 2;
  font-size: 10.5px;
  color: #FFB3BA;
  pointer-events: none;
  background: rgba(15, 13, 10, 0.82);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}

.raiox-mic-status:empty {
  display: none;
}

@keyframes b2g-mic-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.45);
    opacity: 0.45;
  }
}

.raiox-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.raiox-pill-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(250, 249, 246, 0.78);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.raiox-pill-btn:hover {
  background: rgba(90, 15, 212, 0.28);
  border-color: rgba(192, 32, 176, 0.55);
  color: #FFFFFF;
}

.raiox-first-reading {
  background: rgba(90, 15, 212, 0.16);
  border-left: 3px solid #C020B0;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(250, 249, 246, 0.9);
}

/* Sections */
.b2g-section-light {
  background: var(--bg-light);
  padding: 6.5rem 0;
}

.b2g-section-light-alt {
  background: var(--bg-light-2);
  padding: 6.5rem 0;
}

.b2g-section-white {
  background: var(--bg-white);
  padding: 6.5rem 0;
}

.b2g-section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 6.5rem 0;
  position: relative;
}

.b2g-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5rem;
}

.b2g-section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 1.15rem;
}

/* Grid systems */
.b2g-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(16, 15, 12, 0.08);
  border-left: 1px solid rgba(16, 15, 12, 0.08);
}

.b2g-grid-card {
  display: flex;
  flex-direction: column;
  padding: 2.15rem 1.9rem;
  border-right: 1px solid rgba(16, 15, 12, 0.08);
  border-bottom: 1px solid rgba(16, 15, 12, 0.08);
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.b2g-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Offer Table */
.b2g-offer-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  box-shadow: 0 8px 32px rgba(16, 15, 12, 0.05);
}

.b2g-offer-table th,
.b2g-offer-table td {
  padding: 1.15rem 1.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(16, 15, 12, 0.08);
  font-size: 13.5px;
}

.b2g-offer-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(16, 15, 12, 0.45);
  background: rgba(90, 15, 212, 0.03);
}

/* WhatsApp Floating Button */
.b2g-wa-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: rgba(37, 211, 102, 0.4) 0px 8px 32px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.b2g-wa-float:hover {
  transform: scale(1.06);
}

/* Footer */
.b2g-footer {
  background: var(--bg-dark-3);
  border-top: 1px solid rgba(250, 249, 246, 0.06);
  color: var(--text-light);
}

.b2g-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.25rem 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.htmx-request {
  opacity: 0.72;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .b2g-nav {
    padding: 1rem 1.5rem;
  }
  .b2g-nav-links {
    display: none;
  }
  .b2g-hero {
    grid-template-columns: 1fr;
    padding: 6rem 1.5rem 3.5rem;
  }
  .b2g-container,
  .b2g-footer-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .b2g-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .b2g-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .b2g-grid-3,
  .b2g-grid-4 {
    grid-template-columns: 1fr;
  }
  .raiox-card,
  .raiox-card-light {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Celular: barra de navegação, rodapé e grades de colunas fixas
   ========================================================================== */
.b2g-nav-cta-short {
  display: none;
}

@media (max-width: 900px) {
  /* Grades declaradas em linha nas páginas (oferta, stack AWS, plano 7D) viram uma coluna */
  main .b2g-container > div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem !important;
  }
}

@media (max-width: 640px) {
  .b2g-footer-inner {
    justify-content: flex-start;
    padding-top: 1.75rem;
    padding-bottom: 1.75rem;
  }
  .b2g-footer-links {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }
  /* Tabela de ofertas vira uma lista de cartões: pacote, investimento e quando vender empilhados */
  .b2g-offer-table thead {
    display: none;
  }
  .b2g-offer-table,
  .b2g-offer-table tbody,
  .b2g-offer-table tr,
  .b2g-offer-table td {
    display: block;
    width: 100%;
  }
  .b2g-offer-table tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid rgba(16, 15, 12, 0.08);
  }
  .b2g-offer-table td {
    padding: 0.12rem 0;
    border-bottom: 0;
  }
  .b2g-offer-table td:first-child {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  /* Pares de campos da validação do Raio-X e listas "incluído / fora do escopo" do plano empilhados */
  #raiox-interactive-box [style*="grid-template-columns: 1fr 1fr"],
  .raiox-card-light [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 560px) {
  .b2g-nav {
    padding: 0.75rem 1rem;
  }
  .b2g-brand {
    gap: 0.5rem;
  }
  .b2g-brand img {
    width: 30px;
    height: 30px;
  }
  .b2g-brand-text {
    font-size: 1rem;
  }
  .b2g-nav-actions {
    gap: 0.5rem !important;
  }
  .b2g-nav .b2g-lang-switcher {
    padding: 0.25rem 0.5rem;
  }
  .b2g-nav-cta {
    padding: 0.55rem 0.85rem !important;
    white-space: nowrap;
  }
  .b2g-nav-cta-full {
    display: none;
  }
  .b2g-nav-cta-short {
    display: inline;
  }
}

@media (max-width: 370px) {
  /* Telas muito estreitas: fica o símbolo da marca para caber idioma e botão */
  .b2g-brand-text {
    display: none;
  }
}

