/* Sinergia Lab - Design Tokens & Styles v1 (Conceito Signal v2)
   Alta intensidade, ritmo visual, movimento CSS leve e contraste WCAG 2.1
*/

:root {
  --ink: #0B0B10;
  --paper: #FFFFFF;
  --surface: #F8F9FA;
  --surface-card: #FFFFFF;
  --signal: #FF6B35;
  --signal-dark: #C44500; /* WCAG 5.0:1 sobre branco */
  --signal-hover: #F0551E;
  --signal-glow: rgba(255, 107, 53, 0.18);
  --border: #E5E7EB;
  --border-focus: #FF6B35;
  --text-muted: #555566;
  --text-muted-light: #9CA3AF;
  --dark-bg: #0B0B10;
  --dark-surface: #14141E;
  --dark-border: #232332;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

html, body {
  background-color: #FAFAFC;
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  box-sizing: border-box;
}

.container {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  min-width: 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.brand-tag {
  background: linear-gradient(135deg, var(--signal) 0%, #FF3F1A 100%);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

@media (min-width: 768px) {
  .header-nav { display: flex; }
}

.nav-link {
  font-size: 12px;
  font-weight: 600;
  color: #4B5563;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: var(--signal-dark);
}

.btn-header-cta {
  display: none;
  align-items: center;
  gap: 6px;
  background-color: var(--signal);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

@media (min-width: 768px) {
  .btn-header-cta {
    display: inline-flex;
  }
}

.btn-header-cta:hover {
  background-color: var(--signal-hover);
  transform: translateY(-1px);
}

/* Ambient Hero com Formas Luminosas */
.hero-section {
  position: relative;
  padding: 40px 0 32px;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ambient-shape-1 {
  position: absolute;
  top: -60px;
  right: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.12) 0%, rgba(255, 107, 53, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatShape 8s ease-in-out infinite alternate;
}

.ambient-shape-2 {
  position: absolute;
  bottom: 10px;
  left: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 63, 26, 0.08) 0%, rgba(255, 63, 26, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: floatShape 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatShape {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(24px, -18px, 0) scale(1.08); }
}

.hero-box {
  position: relative;
  z-index: 2;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 18px;
  box-shadow: 0 12px 36px -12px rgba(11, 11, 16, 0.06);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .hero-box { padding: 56px 48px; }
}

.badge-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 107, 53, 0.1);
  color: var(--signal-dark);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--signal);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

.hero-title {
  font-size: clamp(1.45rem, 5.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: normal;
}

.gradient-text {
  background: linear-gradient(120deg, #FF6B35 0%, #FF3F1A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-subhead {
  font-size: clamp(0.875rem, 3.4vw, 1.05rem);
  color: #4A4A5A;
  max-width: 680px;
  line-height: 1.6;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, background-color 0.15s ease;
}

.btn-primary {
  background-color: var(--signal);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 107, 53, 0.45);
  background-color: var(--signal-hover);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: var(--surface);
}

/* Faixa Rolante (Ticker de Ferramentas) */
.ticker-section {
  background-color: #0B0B10;
  color: #FFFFFF;
  padding: 14px 0;
  overflow: hidden;
  overflow-x: hidden;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  gap: 32px;
  animation: tickerSlide 25s linear infinite;
}

@keyframes tickerSlide {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-item {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D1D5DB;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ticker-sep {
  color: var(--signal);
  font-size: 14px;
}

/* Mini-Ferramenta Funcional no Topo */
.calculator-section {
  padding: 48px 0;
  background-color: #FAFAFC;
}

.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 18px;
  box-shadow: 0 6px 24px -8px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .calc-card { padding: 40px 36px; }
}

.calc-header {
  margin-bottom: 28px;
  min-width: 0;
}

.calc-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.calc-title {
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  overflow-wrap: break-word;
}

.calc-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  max-width: 640px;
  overflow-wrap: break-word;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  min-width: 0;
}

@media (min-width: 768px) {
  .calc-grid { grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.input-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  gap: 8px;
  min-width: 0;
}

.input-val-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--signal-dark);
  white-space: nowrap;
  flex-shrink: 0;
}

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  outline: none;
  accent-color: var(--signal);
  cursor: pointer;
}

.calc-result-box {
  background: #0B0B10;
  color: #FFFFFF;
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  box-sizing: border-box;
}

.result-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9CA3AF;
  margin-bottom: 8px;
}

.result-number {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--signal);
  line-height: 1.1;
  margin-bottom: 12px;
  overflow-wrap: break-word;
}

.result-breakdown {
  border-top: 1px solid #232332;
  padding-top: 14px;
  font-size: 11px;
  color: #D1D5DB;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* Blocos de Ritmo: Banner Laranja Signal */
.signal-banner-section {
  background: linear-gradient(135deg, var(--signal) 0%, #E65100 100%);
  color: #FFFFFF;
  padding: 48px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.signal-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

@media (min-width: 768px) {
  .signal-banner-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.banner-h2 {
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.banner-sub {
  font-size: 0.95rem;
  opacity: 0.92;
  max-width: 580px;
  overflow-wrap: break-word;
}

.btn-banner-action {
  background-color: #0B0B10;
  color: #FFFFFF;
  padding: 14px 26px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-banner-action:hover {
  background-color: #1F2937;
  transform: translateY(-2px);
}

/* Grade de Ferramentas e Utilitários (Fundo Suave para Ritmo) */
.tools-section {
  padding: 56px 0 40px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.section-head {
  margin-bottom: 32px;
  min-width: 0;
}

.section-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(1.45rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  min-width: 0;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.card-tool {
  background-color: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  min-width: 0;
  box-sizing: border-box;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.card-tool:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(11, 11, 16, 0.08);
  border-color: var(--signal);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  min-width: 0;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-dark);
  background-color: rgba(255, 107, 53, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
}

.card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7280;
  background-color: #F3F4F6;
  padding: 4px 8px;
  border-radius: 9999px;
}

.card-h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--ink);
  overflow-wrap: break-word;
}

.card-p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  overflow-wrap: break-word;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--signal-dark);
}

/* Seções do Portal (Fundo Tinted para Ritmo) */
.portal-pillars-section {
  padding: 48px 0;
  background-color: #F8F9FA;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(4, 1fr); }
}

.pillar-box {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.pillar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pillar-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* AdSense Slot Seguro */
.ad-slot-section {
  margin: 36px 0;
}

.ad-wrapper {
  background-color: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ad-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ad-notice {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #64748B;
}

/* Bloco Escuro: Contato e Atendimento */
.contact-section {
  background-color: var(--dark-bg);
  color: #FFFFFF;
  padding: 48px 0;
  border-radius: 20px;
  margin-bottom: 36px;
}

.contact-inner {
  padding: 0 20px;
}

@media (min-width: 768px) {
  .contact-inner { padding: 0 40px; }
}

.contact-tag {
  color: var(--signal);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.contact-h2 {
  font-size: clamp(1.4rem, 5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.contact-lead {
  color: #9CA3AF;
  font-size: 0.95rem;
  max-width: 600px;
  margin-bottom: 28px;
  overflow-wrap: break-word;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  min-width: 0;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-box {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
  box-sizing: border-box;
}

.contact-box-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 6px;
}

.contact-box-val {
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  overflow-wrap: break-word;
  word-break: break-all;
}

.contact-box-val:hover {
  color: var(--signal);
  text-decoration: underline;
}

/* Revelação ao Rolar (IntersectionObserver) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Aviso Legal */
.legal-box {
  background: #F3F4F6;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #4B5563;
  margin-bottom: 48px;
  min-width: 0;
  box-sizing: border-box;
  overflow-wrap: break-word;
}

.legal-tag {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Rodapé */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 12px;
  color: #6B7280;
  background-color: #FFFFFF;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Botão Flutuante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: #FFFFFF;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

.wa-pulse {
  width: 8px;
  height: 8px;
  background-color: #FFFFFF;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ambient-shape-1, .ambient-shape-2 { animation: none !important; }
  .pulse-dot, .wa-pulse { animation: none !important; }
  .ticker-track { animation: none !important; flex-wrap: wrap; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card-tool, .floating-whatsapp, .btn-header-cta {
    transition: none !important;
    transform: none !important;
  }
}
