/* ===== M2 MOBILE STYLES OTIMIZADOS ===== */
/* Arquivo separado para estilos específicos de mobile com melhorias significativas */

/* ===== MOBILE PEQUENO (≤640px) - OTIMIZADO ===== */
@media (max-width: 640px) {
  /* === HEADER MOBILE OTIMIZADO === */
  .header-wrap {
    height: 85px; 
    padding: 0 16px;
    justify-content: space-between;
  }
  .logo { 
    height: 65px; 
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  }
  
  /* === CONTAINER MOBILE OTIMIZADO === */
  .container { 
    padding: 0 16px; 
    max-width: 100%;
  }
  
  /* === FOOTER MOBILE OTIMIZADO === */
  .logo-sm { 
    height: 60px; 
    filter: drop-shadow(0 3px 10px rgba(0,0,0,0.5));
  }
  
  /* === TIPOGRAFIA MOBILE OTIMIZADA === */
  h1 { 
    font-size: 2rem !important; 
    line-height: 1.15 !important; 
    margin: 8px 0 12px !important;
    text-align: center;
  }
  h2 { 
    font-size: 1.6rem !important; 
    line-height: 1.2 !important; 
    margin: 0 0 12px !important;
    text-align: center;
  }
  h3 { 
    font-size: 1.3rem !important; 
    line-height: 1.25 !important; 
    margin: 0 0 8px !important;
  }
  
  /* === SEÇÕES COM TÍTULOS PRÓXIMOS === */
  .section {
    padding-top: 30px !important;
    padding-bottom: 40px !important;
  }
  .section h2 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }
  
  /* === HERO MAIS PRÓXIMO === */
  .hero {
    padding: 30px 0 50px 0 !important;
  }
  
  /* === ESPAÇAMENTO GERAL REDUZIDO === */
  .op-head {
    margin-bottom: 12px !important;
  }
  .op-head h2 {
    margin-bottom: 8px !important;
  }
  .op-head .lead {
    margin-bottom: 12px !important;
  }
  
  /* === TEXTO MOBILE OTIMIZADO === */
  p { 
    font-size: 0.95rem; 
    line-height: 1.65; 
    margin: 0 0 12px;
  }
  .lead { 
    font-size: 1rem; 
    line-height: 1.65; 
    text-align: center;
    margin: 0 auto 20px;
    max-width: 90%;
  }
  
  /* === CTAs MOBILE OTIMIZADOS === */
  .hero-ctas a, .btn, .button, .cta, .primary { 
    padding: 12px 18px !important; 
    font-size: 0.9rem !important;
    font-weight: 600;
    border-radius: 12px;
    min-width: 140px;
    text-align: center;
  }
  .hero-ctas.cta-split {
    justify-content: center;
    gap: 12px !important;
    margin: 20px auto 16px;
  }
  
  /* === CARDS MOBILE OTIMIZADOS === */
  .card, .feature, .metric, .panel { 
    padding: 20px !important; 
    border-radius: 16px;
    margin-bottom: 16px;
  }
  .op-card { 
    padding: 16px !important; 
    border-radius: 14px;
    text-align: center;
  }
  
  /* === SEÇÕES MOBILE OTIMIZADAS === */
  section { 
    padding-top: 50px; 
    padding-bottom: 50px; 
  }
  .hero { 
    padding: 40px 0 60px 0; 
    text-align: center;
  }
  
  /* === HERO VIZ MOBILE OTIMIZADO === */
  .hero-viz {
    margin-top: 24px;
    padding: 16px;
    border-radius: 16px;
  }
  .kpis {
    position: static;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
  }
  .kpi {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    min-width: 80px;
    text-align: center;
  }
  .kpi-label {
    font-size: 0.7rem;
    margin-bottom: 2px;
  }
  .kpi-value {
    font-size: 1rem;
    font-weight: 700;
  }
  .hero-graph {
    margin: 16px 0;
    padding: 12px;
    border-radius: 12px;
  }
  .hero-graph canvas {
    max-height: 200px;
    width: 100%;
  }
  .badges {
    position: static;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .badge {
    padding: 6px 12px;
    font-size: 0.75rem;
    border-radius: 12px;
  }
  
  /* === FOOTER MOBILE COMPACTO === */
  .site-footer { 
    padding: 24px 0; 
    background: linear-gradient(180deg, #0a0a0d, #0b0b0f);
  }
  .footer-grid { 
    gap: 16px; 
    text-align: center;
  }
  .links { 
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    align-items: center;
    margin: 8px 0;
  }
  .links a {
    padding: 4px 0;
    font-size: 0.8rem;
    color: #9fb2cc;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
  }
  .links a:hover {
    color: #eaf1ff;
  }
  .links a:not(:last-child)::after {
    content: " | ";
    margin: 0 6px;
    color: #4a5568;
    font-size: 0.7rem;
  }
  .copy {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #1f2937;
    line-height: 1.4;
  }
}

/* ===== TABLET E MOBILE MÉDIO (≤980px) - OTIMIZADO ===== */
@media (max-width: 980px) {
  /* === LAYOUT GRID OTIMIZADO === */
  .hero-grid {
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center;
  }
  .charts {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .grid-3 {
    grid-template-columns: 1fr; 
    gap: 24px; 
  }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .gerente-grid {
    grid-template-columns: 1fr; 
    gap: 32px; 
    text-align: center;
  }
  
  /* === FOOTER TABLET COMPACTO === */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    align-items: center;
  }
  .links a {
    padding: 5px 0;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .links a:not(:last-child)::after {
    content: " | ";
    margin: 0 8px;
    color: #4a5568;
  }
  .copy {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
  }
  
  /* === CONTAINER E ESPAÇAMENTOS === */
  .container {
    padding: 0 24px;
  }
  .section {
    padding: 70px 0;
  }
  .hero {
    padding: 60px 0 100px 0;
  }
  
  /* === TIPOGRAFIA TABLET === */
  h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    text-align: center;
  }
  h2 {
    font-size: 2rem;
    line-height: 1.15;
    text-align: center;
  }
  .lead {
    text-align: center;
    max-width: 80%;
    margin: 0 auto 24px;
  }
}

/* ===== HEADER MOBILE ESPECÍFICO (≤860px) - OTIMIZADO ===== */
@media (max-width: 860px) {
  .header-wrap {
    height: 95px;
    padding: 0 20px;
  }
  .logo {
    height: 75px;
    filter: drop-shadow(0 5px 14px rgba(0,0,0,0.6));
  }
  .burger {
    display: block;
    padding: 8px;
  }
  .nav {
    position: absolute;
    right: 20px;
    top: 95px;
    background: rgba(11, 13, 16, 0.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    flex-direction: column;
    align-items: stretch;
    min-width: 240px;
    padding: 16px;
    display: none;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    backdrop-filter: blur(12px);
  }
  .nav a {
    padding: 12px 16px;
    border-radius: 10px;
    margin: 4px 0;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
  }
  .nav a:hover {
    background: rgba(124, 58, 237, 0.15);
    transform: translateX(4px);
  }
  .nav-toggle:checked ~ .burger + .nav {
    display: flex;
  }
}

/* ===== OPERAÇÃO MOBILE OTIMIZADA ===== */
@media (max-width: 980px) {
  .op-seq {
    grid-template-columns: 1fr 1fr; 
    gap: 16px;
  }
  .op-wrapper {
    padding: 24px;
    border-radius: 20px;
  }
  .op-head {
    margin-bottom: 20px;
  }
  .op-head h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
  .op-head .lead {
    font-size: 1rem;
    max-width: 90%;
  }
}
@media (max-width: 640px) {
  .op-seq {
    grid-template-columns: 1fr; 
    gap: 14px;
  }
  .op-wrapper {
    padding: 20px;
    border-radius: 18px;
  }
  .op-card {
    padding: 18px !important;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
  }
  .op-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  }
  .op-head {
    margin-bottom: 20px;
    text-align: center;
  }
  .op-head h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    text-align: center;
  }
  .op-head .lead {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 90%;
    text-align: center;
  }
  
  /* === ESPAÇAMENTO DA OPERAÇÃO PREVISÍVEL === */
  .op-head {
    margin-bottom: 20px !important;
  }
  .op-head h2 {
    margin-bottom: 12px !important;
  }
  .op-head .lead {
    margin-bottom: 20px !important;
  }
  
  /* === ESCONDER FAQ NO MOBILE === */
  #faq {
    display: none !important;
  }
  .gerente-grid {
    text-align: center !important;
  }
  .gerente-grid h2 {
    text-align: center !important;
    margin-bottom: 16px !important;
  }
  .gerente-grid .lead {
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  .gerente-grid .bullets {
    text-align: left !important;
    margin: 0 auto 20px !important;
    max-width: 280px !important;
  }
  .gerente-grid .bullets li {
    text-align: left !important;
    margin-bottom: 8px !important;
  }
  .gerente-grid .cta {
    text-align: center !important;
    margin-top: 20px !important;
  }
  
/* === SOCIAL LINKS MOBILE === */
.social-links {
  margin: 12px 0;
  gap: 12px;
}

.social-link {
  padding: 6px 12px;
  font-size: 0.85rem;
  gap: 6px;
}

.social-link i {
  font-size: 1rem;
}

.instagram-icon {
  width: 18px;
  height: 18px;
}
  
  .chart-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .chart-title {
    gap: 8px;
  }
  
  .chart-title h4 {
    font-size: 1rem;
  }
  
  .revenue-growth {
    font-size: 0.8rem;
    padding: 3px 6px;
  }
  
  .chart-filter-demo {
    padding: 8px 12px;
    gap: 6px;
  }
  
  .filter-label {
    font-size: 0.85rem;
  }
  
  .filter-indicator {
    width: 6px;
    height: 6px;
  }
  
  .stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .stat-label {
    font-size: 0.85rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .chart-wrapper {
    height: 160px;
    padding: 12px;
  }
}


/* ===== TECNOLOGIA MOBILE OTIMIZADA ===== */
@media (max-width: 980px) {
  .tech-visual {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  /* === ALINHAMENTO SEÇÃO 100 MIL TABLET === */
  .gerente-grid {
    text-align: center !important;
  }
  .gerente-grid h2 {
    text-align: center !important;
    margin-bottom: 18px !important;
  }
  .gerente-grid .lead {
    text-align: center !important;
    margin-bottom: 24px !important;
  }
  .gerente-grid .bullets {
    text-align: left !important;
    margin: 0 auto 24px !important;
    max-width: 320px !important;
  }
  .gerente-grid .bullets li {
    text-align: left !important;
    margin-bottom: 10px !important;
  }
  .gerente-grid .cta {
    text-align: center !important;
    margin-top: 24px !important;
  }
  .kpi-stack {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
  }
  .tech-illustration {
    order: 2;
  }
  .tech-side {
    order: 1;
  }
}
@media (max-width: 640px) {
  .kpi-stack {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .kmini {
    padding: 14px;
    border-radius: 14px;
  }
  .live-sales {
    margin-top: 20px;
  }
  .live-sales h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
  }
}

/* ===== ROBOT MOBILE OTIMIZADO ===== */
@media (max-width: 860px) {
  .menu-robot { 
    width: 60px; 
    height: 60px; 
    right: 24px; 
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 10px rgba(139,92,246,.5));
  }
}

@media (max-width: 640px) {
  .menu-robot { 
    width: 52px; 
    height: 52px; 
    right: 20px; 
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 0 8px rgba(139,92,246,.4));
  }
}

/* ===== CONTACT MOBILE OTIMIZADO ===== */
@media (max-width: 960px) {
  .contact-wrap { 
    grid-template-columns: 1fr; 
    padding: 28px;
    gap: 24px;
  }
  .contact-form .row { 
    grid-template-columns: 1fr; 
    gap: 16px;
  }
  .contact-points { 
    grid-template-columns: 1fr 1fr; 
    gap: 12px;
    justify-items: center;
  }
  .contact-copy {
    text-align: center;
  }
  .contact-copy h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
  }
}
@media (max-width: 640px) {
  .contact-copy h2 {
    font-size: 1.6rem;
  }
  .contact-points { 
    grid-template-columns: 1fr; 
    gap: 8px;
  }
  .contact-wrap {
    padding: 24px;
    border-radius: 18px;
  }
  .field input, .field textarea {
    padding: 14px 16px;
    font-size: 16px;
  }
  .btn-contact {
    padding: 14px 20px;
    font-size: 0.95rem;
    width: 100%;
  }
}

/* ===== FEATURES MOBILE OTIMIZADAS ===== */
@media (max-width: 640px) {
  .grid-3.features { 
    grid-template-columns: 1fr; 
    gap: 16px; 
  }
  .feature {
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
  }
  .feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  }
  .feature h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .feature p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ===== ROBOT 3D MOBILE OTIMIZADO ===== */
@media (max-width: 980px) {
  .char3d {
    height: 200px;
  }
  .tech-illustration .sale-pop {
    left: 16px;
    bottom: -12px;
  }
}
@media (max-width: 640px) {
  .char3d {
    height: 180px;
  }
  .tech-illustration .sale-pop {
    left: 12px;
    bottom: -8px;
  }
}

/* ===== MELHORIAS GERAIS MOBILE ===== */
@media (max-width: 640px) {
  /* === SCROLL SUAVE === */
  html {
    scroll-behavior: smooth;
  }
  
  /* === SEÇÕES COM SCROLL MARGIN === */
  section[id], h2[id], h3[id] {
    scroll-margin-top: 100px;
  }
  
  /* === FLAG OTIMIZADA === */
  .flag {
    padding: 10px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
    margin-bottom: 16px;
  }
  
  /* === SOCIAL PROOF OTIMIZADA === */
  .social-proof {
    font-size: 0.9rem;
    margin-top: 16px;
    text-align: center;
  }
  
}
