/* ==========================================================================
   RADARBONTEMPO.COM.BR — DESIGN SYSTEM EXECUTIVO B2B (v1.0)
   Arquitetura: HTML5 / CSS3 Puro / Responsivo / WCAG AA
   Identidade: Executive Navy, Slate & Corporate Emerald
   ========================================================================== */

:root {
  /* Paleta Executiva B2B */
  --bg-navy-950: #060b19;
  --bg-navy-900: #0a1128;
  --bg-navy-800: #111c3d;
  --bg-slate-50: #f8fafc;
  --bg-slate-100: #f1f5f9;
  --bg-white: #ffffff;

  /* Tipografia e Contraste */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;

  /* Cores de Ação e Status */
  --brand-emerald-600: #059669;
  --brand-emerald-700: #047857;
  --brand-emerald-50: #ecfdf5;
  --brand-cyan-600: #0284c7;
  --brand-cyan-50: #e0f2fe;
  --brand-amber-600: #d97706;
  --brand-amber-50: #fffbeb;
  --brand-red-600: #dc2626;
  --brand-red-50: #fef2f2;

  /* Bordas e Sombras */
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #1e293b;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(10, 17, 40, 0.14), 0 4px 10px -2px rgba(10, 17, 40, 0.06);

  /* Fontes */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-slate-50);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Acessibilidade: Skip Link e Foco */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--brand-emerald-600);
  color: var(--bg-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  text-decoration: none;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 3px solid var(--brand-cyan-600);
  outline-offset: 2px;
}

/* Utilitários de Layout */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-dark {
  background-color: var(--bg-navy-900);
  color: var(--text-on-dark);
}

.section-header {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-emerald-600);
  background: var(--brand-emerald-50);
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.section-dark .section-eyebrow {
  color: #34d399;
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-secondary);
}

.section-dark .section-subtitle {
  color: var(--text-on-dark-muted);
}

/* Barra Superior Institucional */
.topbar {
  background-color: var(--bg-navy-950);
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-dark);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
}

/* Cabeçalho e Navegação */
.site-header {
  background-color: rgba(10, 17, 40, 0.97);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-on-dark);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-emerald-600), var(--brand-cyan-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bg-white);
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #34d399;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--bg-white);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-on-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  line-height: 1.2;
}

.btn-primary {
  background-color: var(--brand-emerald-600);
  color: var(--bg-white);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-emerald-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-slate-100);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero Executivo */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.18), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(5, 150, 105, 0.15), transparent 45%),
              var(--bg-navy-900);
  color: var(--text-on-dark);
  padding: 5rem 0 4.5rem;
  border-bottom: 1px solid var(--border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

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

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--bg-white);
}

.metric-item span {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
}

/* Card de Resumo Executivo no Hero */
.hero-panel {
  background: rgba(17, 28, 61, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bg-white);
}

.hero-panel-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.pillar-item h3 {
  font-size: 0.95rem;
  color: var(--bg-white);
  margin-bottom: 0.25rem;
}

.pillar-item p {
  font-size: 0.84rem;
  color: var(--text-on-dark-muted);
}

/* Grid de Cards B2B */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-medium);
}

.card-featured {
  border-top: 4px solid var(--brand-emerald-600);
}

.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: fit-content;
}

.badge-active {
  background: var(--brand-emerald-50);
  color: var(--brand-emerald-700);
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-roadmap {
  background: var(--brand-cyan-50);
  color: var(--brand-cyan-600);
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.badge-warning {
  background: var(--brand-amber-50);
  color: var(--brand-amber-600);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-bottom: 0.65rem;
  color: var(--text-primary);
}

.card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.feature-check-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-check-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-check-list li::before {
  content: "✓";
  color: var(--brand-emerald-600);
  font-weight: 800;
}

/* Calculadora B2B Interativa */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.form-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-slate-50);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), background-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  background: var(--bg-white);
  border-color: var(--brand-cyan-600);
  outline: none;
}

.range-slider {
  width: 100%;
  accent-color: var(--brand-emerald-600);
  cursor: pointer;
}

.calc-results-box {
  background: var(--bg-navy-900);
  color: var(--text-on-dark);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-main {
  background: rgba(5, 150, 105, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1rem 0 1.25rem;
}

.calc-result-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6ee7b7;
  font-family: var(--font-mono);
}

.calc-result-value {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--bg-white);
  margin-top: 0.25rem;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.calc-mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.calc-mini-card span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-on-dark-muted);
}

.calc-mini-card strong {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--bg-white);
}

.disclaimer-note {
  font-size: 0.76rem;
  color: var(--text-on-dark-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
  line-height: 1.45;
}

/* Honeypot Anti-Spam (Oculto para humanos) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Avisos e Alertas Legais */
.legal-banner {
  background: var(--brand-amber-50);
  border-left: 4px solid var(--brand-amber-600);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  color: #78350f;
  font-size: 0.9rem;
}

.status-box {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.status-box.success {
  display: block;
  background: var(--brand-emerald-50);
  border: 1px solid var(--brand-emerald-600);
  color: #065f46;
}

.status-box.error {
  display: block;
  background: var(--brand-red-50);
  border: 1px solid var(--brand-red-600);
  color: #991b1b;
}

.code-preview {
  background: var(--bg-navy-950);
  color: #a7f3d0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-top: 0.85rem;
  border: 1px solid var(--border-dark);
}

/* Tabelas Executivas */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.exec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.exec-table th,
.exec-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.exec-table th {
  background: var(--bg-slate-100);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Rodapé */
.site-footer {
  background-color: var(--bg-navy-950);
  color: var(--text-on-dark-muted);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  color: var(--bg-white);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--bg-white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

/* Responsividade Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .calc-wrapper,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--bg-navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-dark);
    box-shadow: var(--shadow-lg);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .hero-metrics,
  .calc-breakdown {
    grid-template-columns: 1fr;
  }
}
