/* ========================================
   TO THE MARKETING - MOBILE-FIRST v3.0
   Abordagem: Mobile → Tablet → Desktop
   ======================================== */

/* ===== VARIÁVEIS CSS ===== */
:root {
  /* Cores Primárias */
  --orion-blue: #4A90E2;
  --orion-purple: #8B5CF6;
  --orion-pink: #EC4899;

  /* Gradientes */
  --gradient-orion: linear-gradient(135deg, #4A90E2 0%, #8B5CF6 50%, #EC4899 100%);

  /* Tipografia */
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --text-light: #94A3B8;

  /* Backgrounds */
  --ice-white: #F8FAFF;
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.2);

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(74, 144, 226, 0.08);
  --shadow-md: 0 4px 16px rgba(74, 144, 226, 0.12);
  --shadow-lg: 0 8px 32px rgba(74, 144, 226, 0.16);

  /* Animações */
  --transition-smooth: all 0.3s ease;

  /* Espaciamento */
  --border-radius: 12px;
}

/* ===== RESET MOBILE-FIRST ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--ice-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo animado (leve no mobile) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  background: radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 60%);
}

/* ===== NAVBAR MOBILE-FIRST ===== */
.navbar {
  padding: 0.75rem 0;
  background: rgba(248, 250, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar-brand-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--gradient-orion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar-nav {
  text-align: center;
  margin-top: 1rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: 0.75rem 1rem;
  margin: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--orion-blue) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

/* ===== HERO SECTION - MOBILE FIRST ===== */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero-badge .badge {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--orion-blue);
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin: 1.5rem 0 1rem;
}

.text-gradient {
  background: var(--gradient-orion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

/* Hero Stats - Mobile Stack */
.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-badge {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: var(--border-radius);
  padding: 0.875rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--orion-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BOTÕES MOBILE-FIRST ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition-smooth);
  border: none;
  text-decoration: none;
  min-height: 44px;
  width: 100%;
  text-align: center;
}

.btn i {
  margin-right: 0.5rem;
}

.btn-primary {
  background: var(--gradient-orion);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.btn-outline-primary {
  background: transparent;
  color: var(--orion-blue);
  border: 2px solid var(--orion-blue);
}

.btn-outline-primary:hover {
  background: var(--orion-blue);
  color: white;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  min-height: 36px;
}

/* ===== DASHBOARD MOCKUP - CORRIGIDO MOBILE ===== */
.dashboard-mockup {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(74, 144, 226, 0.1);
  max-width: 100%;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}

.dashboard-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-orion);
}

/* Chart Header */
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chart-header h5 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.chart-header span {
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 600;
}

/* Chart Bars - Mobile Optimized */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding: 0 0.5rem;
  margin-bottom: 1rem;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--orion-blue), #1e40af);
  border-radius: 4px 4px 0 0;
  min-height: 15px;
  opacity: 0.7;
  transition: var(--transition-smooth);
}

.bar.active {
  opacity: 1;
  background: linear-gradient(180deg, #10b981, #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Services Grid - CORRIGIDO (ícones não cortados) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  background: var(--ice-white);
  border-radius: 10px;
  transition: var(--transition-smooth);
  border: 1px solid rgba(74, 144, 226, 0.1);
  min-height: 70px;
}

.service-item:hover {
  background: white;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.service-item i {
  font-size: 1.5rem;
  color: var(--orion-blue);
  flex-shrink: 0;
}

.service-item span {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.8rem;
  text-align: center;
  line-height: 1.2;
}

/* ===== SEÇÕES ===== */
section {
  padding: 50px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
  text-align: center;
}

/* ===== CARDS ===== */
.case-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(74, 144, 226, 0.1);
  height: 100%;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.case-metric {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.metric-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: var(--gradient-orion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-gray);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.case-card h3,
.case-card .h5 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.case-card p {
  color: var(--text-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
}

.footer h5 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer p,
.footer a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a:hover {
  color: var(--orion-blue);
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

/* ===== UTILIDADES ===== */
.bg-light {
  background: #f8f9fa !important;
}

.text-muted {
  color: var(--text-gray) !important;
}

.small {
  font-size: 0.875rem;
}

.fw-bold {
  font-weight: 600 !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-4 { margin-top: 1.5rem !important; }

/* Container responsivo */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* =====================================
   TABLET (576px+)
   ===================================== */
@media (min-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  /* Stats em 2 colunas */
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-badge {
    flex: 1 1 calc(50% - 0.375rem);
  }

  /* Botões inline */
  .btn {
    width: auto;
    min-width: 200px;
  }

  .chart-bars {
    height: 100px;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    max-width: 540px;
  }
}

/* =====================================
   TABLET GRANDE (768px+)
   ===================================== */
@media (min-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }

  .navbar-brand img {
    height: 40px;
  }

  .navbar-brand-text {
    font-size: 1.2rem;
  }

  .navbar-nav {
    margin-top: 0;
    text-align: left;
  }

  .navbar-nav .nav-link {
    margin: 0 0.5rem;
    justify-content: flex-start;
  }

  .hero {
    padding: 140px 0 100px;
    text-align: left;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    max-width: 90%;
  }

  .hero-stats {
    justify-content: flex-start;
    gap: 1rem;
  }

  .stat-badge {
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 180px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .dashboard-mockup {
    max-width: 420px;
    padding: 1.5rem;
  }

  .chart-bars {
    height: 120px;
    gap: 8px;
    padding: 0 1rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-item {
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem;
    justify-content: flex-start;
  }

  .service-item span {
    font-size: 0.9rem;
    text-align: left;
  }

  section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .section-subtitle {
    font-size: 1.25rem;
  }

  .case-card {
    padding: 2rem;
  }

  .metric-number {
    font-size: 2.5rem;
  }

  .case-card h3,
  .case-card .h5 {
    font-size: 1.25rem;
  }

  .footer {
    padding: 60px 0 20px;
  }

  .container {
    max-width: 720px;
  }
}

/* =====================================
   DESKTOP (992px+)
   ===================================== */
@media (min-width: 992px) {
  .navbar-brand img {
    height: 45px;
  }

  .navbar-brand-text {
    font-size: 1.3rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .container {
    max-width: 960px;
  }
}

/* =====================================
   DESKTOP LARGE (1200px+)
   ===================================== */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* =====================================
   PERFORMANCE & ACCESSIBILITY
   ===================================== */

/* Reduzir animações se preferência do usuário */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hardware acceleration */
.dashboard-mockup,
.chart-bars,
.btn,
.case-card {
  transform: translateZ(0);
  will-change: transform;
}

/* Prevenir quebra de texto */
h1, h2, h3, h4, h5, h6, p {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Garantir imagens responsivas */
img {
  max-width: 100%;
  height: auto;
}

/* ===== FIM DO CSS MOBILE-FIRST ===== */
