/* ==============================================================================
   NEXBIM — CSS Oficial (Arquitetura, Tecnologia e Construção Industrializada)
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800&display=swap');

:root {
  /* Paleta Elegante: Fundo Off-White Quente com Pigmento Quase Imperceptível */
  --bg-primary: #F8FAF9;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F1F5F2;
  --bg-surface-elevated: #FFFFFF;
  
  /* Verde Nobre da Marca NEXBIM */
  --brand-green: #00875A;
  --brand-green-hover: #006644;
  --brand-green-light: #E3FCEF;
  --brand-green-border: #ABF5D1;
  --brand-accent: #10B981;

  /* Tipografia & Contrastes Sóbrios */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-light: #94A3B8;

  /* Bordas Suaves e Sombras de Estúdio */
  --border-light: #E2E8F0;
  --border-hover: #CBD5E1;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 14px 34px -10px rgba(15, 23, 42, 0.09);
  --shadow-glow: 0 0 25px rgba(0, 135, 90, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Montserrat', sans-serif;
}

/* Reset Global & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

/* 1. HEADER & TOPBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 250, 249, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

/* Logo Oficial */
.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-logo-text .accent {
  color: var(--brand-green);
}

.brand-badge-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Barra de Busca Central */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 13.5px;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: all 0.2s;
}

.search-input-wrap input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.12);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

/* Navegação Principal */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-green);
}

/* Ações do Header (Conta & CTA Baixar) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-account {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  transition: all 0.2s;
  cursor: pointer;
}

.btn-account:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn-download-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--brand-green);
  color: #FFFFFF;
  text-decoration: none;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
  transition: all 0.25s ease;
}

.btn-download-cta:hover {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 135, 90, 0.35);
}

/* 2. SUBMENU DE CATEGORIAS (PILLS HORIZONTAIS) */
.category-subnav {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-subnav::-webkit-scrollbar {
  display: none;
}

.subnav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  white-space: nowrap;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.category-pill svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
}

.category-pill:hover {
  background: var(--bg-subtle);
  color: var(--brand-green);
  border-color: var(--brand-green-border);
}

.category-pill.active {
  background: var(--brand-green);
  color: #FFFFFF;
  border-color: var(--brand-green);
}

.category-pill.active svg {
  stroke: #FFFFFF;
}

/* 3. HERO BANNER PRINCIPAL (TECNOLOGIA NA CONSTRUÇÃO CIVIL) */
.hero-section {
  position: relative;
  padding: 48px 0 28px;
  overflow: hidden;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0F172A;
  min-height: 420px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  filter: contrast(110%);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 55%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 48px;
  color: #FFFFFF;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #34D399;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.hero-title .highlight {
  color: #34D399;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 26px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  background: var(--brand-green);
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0, 135, 90, 0.4);
  transition: all 0.25s;
}

.btn-hero-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 135, 90, 0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* 4. SHOWCASE DE FERRAMENTAS EXCLUSIVAS (O GRANDE DIFERENCIAL) */
.tools-showcase-section {
  padding: 24px 0 40px;
}

.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.section-title-box h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-title-box p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tool-feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tool-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.tool-badge-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--brand-green-light);
  color: var(--brand-green);
  margin-bottom: 12px;
}

.tool-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--brand-green);
}

.tool-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.tool-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tool-footer-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* 5. GRID DE FAMÍLIAS & CARDS (COM MÉTRICAS E VERSÃO 2023+) */
.catalog-section {
  padding: 20px 0 60px;
}

.filter-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.quick-filters-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-filter-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-filter-pill:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.btn-filter-pill.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #FFFFFF;
}

.catalog-counter-text {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Grid de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* Card da Família / Textura */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform 0.3s ease;
}

.product-card:hover .product-thumb-img {
  transform: scale(1.04);
}

/* Badges sobre a Imagem */
.badge-version-top {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #34D399;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-tag-right {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.product-info-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}

.product-name-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 36px;
}

/* Fabricante com Miniatura */
.product-manufacturer-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.manufacturer-mini-logo {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid var(--border-light);
}

/* Linha de Métricas (Inserções & Estrelas) */
.product-metrics-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  margin-top: auto;
  font-size: 11.5px;
}

.metric-rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #D97706;
}

.metric-usage-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* 6. TABELA DE PLANOS DE ASSINATURA (#planos) */
.pricing-section {
  padding: 60px 0 80px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.pricing-header-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 48px;
}

.pricing-header-center h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.pricing-header-center p {
  font-size: 15px;
  color: var(--text-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  background: #FFFFFF;
  border-color: var(--brand-green);
  box-shadow: 0 8px 30px rgba(0, 135, 90, 0.12);
}

.pricing-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-green);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.plan-title-h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-desc-p {
  font-size: 12.5px;
  color: var(--text-secondary);
  min-height: 38px;
  margin-bottom: 20px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.plan-currency {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.plan-amount {
  font-size: 38px;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-period {
  font-size: 13px;
  color: var(--text-muted);
}

.plan-benefits-list {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.plan-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.plan-benefit-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: var(--brand-green);
  margin-top: 1px;
}

.btn-plan-action {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-primary);
  transition: all 0.2s;
}

.btn-plan-action:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.pricing-card.featured .btn-plan-action {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.3);
}

.pricing-card.featured .btn-plan-action:hover {
  background: var(--brand-green-hover);
}

/* Aviso Obrigatório de Cobrança Direta no Plugin */
.pricing-notice-box {
  margin-top: 36px;
  text-align: center;
  background: var(--brand-green-light);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-md);
  padding: 14px 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
  color: var(--brand-green-hover);
  font-weight: 600;
}

/* 7. MODAL DE DETALHES DA FAMÍLIA (SEM DOWNLOAD DO RFA - APENAS BAIXAR PLUGIN) */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog-large {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #000;
  color: #fff;
}

.modal-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px;
}

.modal-preview-col {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
}

.modal-preview-col img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-badges-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.modal-badge-compat {
  background: #0F172A;
  color: #34D399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.modal-title-h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.modal-meta-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  font-size: 12.5px;
}

.meta-item-label {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
}

.meta-item-val {
  font-weight: 600;
  color: var(--text-primary);
}

.modal-desc-box {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* AVISO IMPORTANTE: Apenas via plugin */
.modal-cta-box {
  margin-top: auto;
  padding: 18px;
  background: var(--brand-green-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-green-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-cta-msg {
  font-size: 12px;
  color: var(--brand-green-hover);
  line-height: 1.4;
}

.btn-modal-plugin-cta {
  width: 100%;
  padding: 12px;
  background: var(--brand-green);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.3);
  transition: all 0.2s;
}

.btn-modal-plugin-cta:hover {
  background: var(--brand-green-hover);
}

/* 8. PÁGINA DE CADASTRO MULTI-STEP (ESTILO FAMÍLIA BIM REFERÊNCIA) */
.signup-layout-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  max-width: 1120px;
  margin: 40px auto 60px;
}

.signup-left-card {
  background: #0F172A;
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-lg);
  height: fit-content;
}

.signup-left-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFFFFF;
}

.signup-left-desc {
  font-size: 13px;
  color: #94A3B8;
  margin-bottom: 28px;
}

.signup-bullets-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.signup-bullet-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-bullet-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #D97706;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.signup-bullet-content h4 {
  font-size: 13px;
  font-weight: 700;
  color: #F8FAFC;
}

.signup-bullet-content p {
  font-size: 11.5px;
  color: #94A3B8;
  margin-top: 2px;
}

/* Coluna Direita: Formulário */
.signup-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.stepper-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.stepper-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.stepper-step-item.active {
  color: var(--brand-green);
  font-weight: 700;
}

.stepper-step-bullet {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-light);
}

.stepper-step-item.active .stepper-step-bullet {
  background: var(--brand-green);
}

.form-group-field {
  margin-bottom: 18px;
}

.form-label-title {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input-text, .form-select-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-input-text:focus, .form-select-control:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 135, 90, 0.12);
}

.form-row-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-form-submit {
  width: 100%;
  height: 48px;
  background: var(--brand-green);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.3);
  transition: all 0.2s;
  margin-top: 10px;
}

.btn-form-submit:hover {
  background: var(--brand-green-hover);
}

/* 9. RODAPÉ INSTITUCIONAL */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-brand h3 {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col-title {
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: #34D399;
}

.footer-bottom-bar {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

/* RESPONSIVIDADE */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .signup-layout-grid {
    grid-template-columns: 1fr;
  }
  .modal-content-split {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  .hero-title {
    font-size: 28px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .form-row-grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-columns-grid {
    grid-template-columns: 1fr;
  }
}

/* Logo oficial NEXBIM — recorte visual da arte fornecida */
.brand-logo-official {
  gap: 10px;
}

.brand-logo-crop {
  display: block;
  width: 226px;
  height: 44px;
  flex: 0 0 226px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #050706;
  background-image: url("../assets/images/nexbim-logo-source.png");
  background-repeat: no-repeat;
  background-size: 530px 298px;
  background-position: -157px -124px;
}

@media (max-width: 640px) {
  .brand-logo-crop {
    width: 174px;
    height: 34px;
    flex-basis: 174px;
    background-size: 408px 230px;
    background-position: -121px -96px;
  }

  .brand-logo-official .brand-badge-tag {
    display: none;
  }
}

/* Cabeçalhos internos: mesma assinatura transparente da página inicial. */
.site-header:not(.home-header) .brand-logo-official {
  gap: 0;
}

.site-header:not(.home-header) .brand-logo-crop {
  position: relative;
  width: 194px;
  height: 38px;
  flex: 0 0 194px;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.site-header:not(.home-header) .brand-logo-crop img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 230px;
  max-width: none;
  height: auto;
  transform: translate(-50%, -50%);
}

.auth-header-note {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-header:not(.home-header) .brand-logo-crop {
    width: 156px;
    height: 32px;
    flex-basis: 156px;
  }

  .site-header:not(.home-header) .brand-logo-crop img {
    width: 185px;
  }

  .auth-header-note {
    max-width: 170px;
    white-space: normal;
    font-size: 12px !important;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  .site-header:not(.home-header) .brand-logo-crop {
    width: 132px;
    height: 29px;
    flex-basis: 132px;
  }

  .site-header:not(.home-header) .brand-logo-crop img {
    width: 158px;
  }

  .auth-header .header-inner {
    gap: 8px;
  }

  .auth-header-note {
    max-width: 135px;
    font-size: 11px !important;
  }
}

/* Perfil: avatar sincronizado e campos pessoais protegidos. */
.profile-avatar-control {
  position: relative;
  flex: 0 0 auto;
}

.profile-avatar-button {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 2px solid var(--brand-green-border);
  border-radius: 50%;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font: 800 22px/1 var(--font-display);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.profile-avatar-button:hover,
.profile-avatar-button:focus-visible {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(0, 135, 90, .10);
  outline: none;
  transform: translateY(-1px);
}

.profile-avatar-button img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 5px 2px 6px;
  background: rgba(4, 40, 29, .80);
  color: #fff;
  font: 650 8px/1 var(--font-sans);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .2s, transform .2s;
}

.profile-avatar-button:hover .profile-avatar-overlay,
.profile-avatar-button:focus-visible .profile-avatar-overlay,
.profile-avatar-button.is-uploading .profile-avatar-overlay {
  opacity: 1;
  transform: translateY(0);
}

.profile-avatar-button.is-uploading .profile-avatar-overlay {
  inset: 0;
  display: grid;
  place-items: center;
  padding: 6px;
}

.profile-avatar-button.is-uploading .profile-avatar-overlay::after {
  content: "Enviando...";
}

.profile-avatar-button.is-uploading .profile-avatar-overlay {
  font-size: 0;
}

.profile-avatar-button.is-uploading .profile-avatar-overlay::after {
  font-size: 9px;
}

.profile-display-profession {
  margin-top: 3px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 650;
}

.protected-profile-field {
  background: #f6f9f7;
  color: #43534d;
  cursor: default;
}

.profile-field-note {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

/* Download: versão ativa apresentada dentro da ação principal. */
.download-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px;
}

.download-meta-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--text-muted);
  font-size: 12.5px;
  text-align: center;
}

.download-meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.download-meta-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--brand-green);
}

.download-meta-separator {
  color: #7c9188;
  font-weight: 800;
}

.youtube-tutorial-wrap {
  display: flex;
  justify-content: center;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.youtube-tutorial-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s, color .2s, transform .2s;
}

.youtube-tutorial-link[aria-disabled="true"] {
  cursor: default;
}

.youtube-tutorial-link.is-available:hover {
  background: #fff0f0;
  color: #c80000;
  transform: translateY(-1px);
}

.youtube-tutorial-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #ff0000;
}

.youtube-tutorial-link small {
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.youtube-tutorial-link.is-available small {
  background: #ffe1e1;
  color: #b80000;
}

@media (max-width: 640px) {
  .download-primary-button {
    width: 100%;
    padding: 14px 16px !important;
    font-size: 13px !important;
  }

  .download-primary-button #download-button-version {
    font-size: 11px !important;
  }

  .download-meta-row {
    align-items: center;
    flex-direction: column;
    gap: 10px;
  }

  .download-meta-item {
    white-space: normal;
    text-align: center;
  }

  .download-meta-separator {
    display: none;
  }

  .youtube-tutorial-link {
    flex-wrap: wrap;
    padding: 9px 10px;
    text-align: center;
  }
}
