/* assets/css/style.css */
:root {
  --primary: #005BD8;
  --secondary: #FF6F00;
  --success: #00A86B;
  --bg-main: #050505;
  --bg-secondary: #0B0B0D;
  --graphite: #121214;
  --card-bg: #18181B;
  --border-color: #2A2A2E;
  --text-main: #F5F5F7;
  --text-secondary: #B8B8C0;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --card-radius: 12px;
  --glow-orange: rgba(255, 111, 0, 0.4);
  --glow-blue: rgba(0, 91, 216, 0.4);
}

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

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

/* Typography */
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin-bottom: 1.2rem; }
h1 { font-size: var(--h1-size, clamp(2.2rem, 4vw, 3.2rem)); letter-spacing: -0.02em; }
h2 { font-size: var(--h2-size, clamp(1.8rem, 3.5vw, 2.5rem)); color: inherit; }
h3 { font-size: var(--h3-size, 1.25rem); }
p { margin-bottom: 1.5rem; font-size: var(--p-size, 1.125rem); font-weight: 400; color: inherit; }

.impact-phrase {
  font-size: var(--h3-size, 1.25rem);
  font-weight: 500;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Layout */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2;}
section { position: relative; }

/* Dynamic Background Wrappers */
.section-bg-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}
.section-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
}
.bg-grid {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

/* Header */
header {
  position: fixed; width: 100%; top: 0; z-index: 100;
  background: rgba(5, 5, 5, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo img { height: 44px; }
nav ul { display: flex; gap: 2.5rem; list-style: none; }
nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; transition: color 0.2s; font-size: 0.95rem; }
nav a:hover { color: var(--text-main); }
.header-btn {
  background: var(--secondary); color: #fff; padding: 0.75rem 1.75rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; transition: all 0.3s;
}
.header-btn:hover { background: #e65c00; box-shadow: 0 4px 15px var(--glow-orange); }

.menu-toggle { display: none; background: transparent; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 100px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 250px;
  background: linear-gradient(to top, var(--bg-main), transparent); pointer-events: none; z-index: 2;
}
.hero-content { display: grid; grid-template-columns: 4.5fr 5.5fr; gap: 4rem; align-items: center; position: relative; z-index: 3; }

.badges { display: flex; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.badge {
  background: rgba(255, 111, 0, 0.1); color: var(--secondary); border: 1px solid rgba(255, 111, 0, 0.3);
  padding: 0.3rem 0.8rem; border-radius: 50px; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}

.hero-actions { display: flex; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  padding: 1rem 2rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.25); transition: all 0.3s; border: 1px solid transparent;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); box-shadow: 0 0 35px rgba(255,255,255,0.1); }
.btn-secondary {
  padding: 1rem 2rem; border-radius: 6px;
  text-decoration: none; font-weight: 600; display: inline-block;
  border: 1px solid var(--border-color); transition: all 0.3s;
}
.btn-secondary:hover { filter: brightness(1.1); }

.hero-microcopy { margin-top: 1.25rem; font-size: 0.85rem; max-width: 90%; }
.hero-bullets { margin-top: 2rem; list-style: none; }
.hero-bullets li { position: relative; padding-left: 1.75rem; margin-bottom: 0.75rem; font-size: 1.05rem; }
.hero-bullets li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: bold; font-size: 1.1rem; }

.hero-visual { position: relative; width: 100%; padding-top: 20px; }
.hero-visual-composition { position: relative; width: 100%; padding-bottom: 75%; }
.hero-visual-composition img { position: absolute; border-radius: var(--card-radius); border: 1px solid var(--border-color); }
.main-mockup { top: 0; right: 0; width: 85%; z-index: 1; box-shadow: 0 20px 50px rgba(0,0,0,0.8); }
.overlap-mockup { z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.9); }
.overlap-1 { bottom: -10%; left: -5%; width: 55%; border-color: rgba(255, 111, 0, 0.4); }
.overlap-2 { bottom: -5%; right: 10%; width: 45%; }

.floating-card {
  position: absolute; background: var(--card-bg); backdrop-filter: blur(12px);
  padding: 1rem 1.25rem; border-radius: 8px; border: 1px solid var(--border-color);
  box-shadow: 0 15px 35px rgba(0,0,0,0.8); display: flex; align-items: center; gap: 0.85rem; 
  font-size: 0.9rem; font-weight: 500; color: #fff; z-index: 3;
}
.fc-1 { top: -25px; left: 10%; animation: float 7s ease-in-out infinite; border-left: 3px solid var(--success); }
.fc-2 { bottom: 20%; right: -20px; animation: float 6s ease-in-out infinite reverse; border-left: 3px solid var(--primary); }

/* Sections */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }

/* Grid / Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius); padding: 2.25rem; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); border-color: rgba(255, 111, 0, 0.4); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }

.card-highlight {
  background: linear-gradient(145deg, var(--card-bg), var(--graphite));
  border-color: rgba(255, 111, 0, 0.4);
  box-shadow: inset 0 0 0 1px rgba(255,111,0,0.1), 0 10px 30px rgba(0,0,0,0.5);
}

.card-icon { margin-bottom: 1.25rem; }
.card-icon svg { width: 36px; height: 36px; stroke-width: 1.5; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; color: var(--text-main); }
.card p { font-size: 0.95rem; margin-bottom: 0; line-height: 1.6; color: var(--text-secondary); }

.status-badge {
  position: absolute; top: 1.25rem; right: 1.25rem; font-size: 0.7rem; font-weight: 600;
  padding: 0.3rem 0.6rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-badge.emevolução { background: rgba(0, 91, 216, 0.15); color: #8ab6ff; border: 1px solid rgba(0, 91, 216, 0.3); }
.status-badge.embreve { background: rgba(255, 255, 255, 0.05); color: #aaa; border: 1px solid var(--border-color); }

/* Portal Section */
.portal-content { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.portal-text { max-width: 560px; }
.portal-points { list-style: none; margin: 2rem 0; }
.portal-points li { margin-bottom: 1rem; padding-left: 2rem; position: relative; font-size: 1.05rem; }
.portal-points li::before { content: '→'; position: absolute; left: 0; color: var(--secondary); font-weight: bold; }

.portal-image { width: 100%; display: flex; justify-content: center; }
.portal-image img {
  width: min(100%, 760px); max-width: 760px; height: auto; object-fit: contain;
  border-radius: var(--card-radius); 
  box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 0 1px var(--border-color);
  transform: perspective(1000px) rotateY(-5deg); transition: transform 0.5s ease;
}
.portal-image:hover img { transform: perspective(1000px) rotateY(0deg); }

/* Como Funciona */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.workflow-card {
  background: var(--card-bg, #18181B);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--card-radius, 12px);
  padding: 1.75rem;
  position: relative;
  transition: all 0.3s ease;
  text-align: left;
}
.workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 111, 0, 0.4);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.workflow-step-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(255, 111, 0, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 111, 0, 0.2);
  display: inline-block;
}
.workflow-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}
.workflow-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.5;
}

/* Screenshots Grid */
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.screenshot-item img { 
  width: 100%; border-radius: var(--card-radius); border: 1px solid var(--border-color); 
  margin-bottom: 1.5rem; box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  transition: transform 0.3s;
}
.screenshot-item:hover img { transform: scale(1.02); }

/* Footer */
footer { background: var(--bg-secondary); padding: 5rem 0 3rem; border-top: 1px solid var(--border-color); text-align: center; }
footer img { height: 36px; margin-bottom: 1.5rem; opacity: 0.9; }
.footer-links { display: flex; justify-content: center; gap: 2.5rem; margin: 1.5rem 0; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.copyright { font-size: 0.875rem; color: rgba(255,255,255,0.3); margin-top: 3rem; }

/* WhatsApp FAB */
.fab-whatsapp {
  position: fixed; bottom: 30px; right: 30px; background: var(--success); color: white;
  width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 168, 107, 0.4); z-index: 1000; text-decoration: none; transition: transform 0.3s;
}
.fab-whatsapp:hover { transform: scale(1.1) translateY(-5px); }
.fab-whatsapp svg { width: 34px; height: 34px; fill: currentColor; }

/* Animations */
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-12px); } 100% { transform: translateY(0); } }

/* Mobile Responsive */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text { max-width: 800px; margin: 0 auto; }
  .badges { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-bullets li { display: inline-block; text-align: left; margin: 0.5rem 1rem; }
  .hero-visual-composition { padding-bottom: 60%; margin-top: 4rem; }
  .floating-card { display: none; } 
  
  .portal-content { grid-template-columns: 1fr; }
  .portal-image img { transform: none; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

.cta-section .btn-primary,
.cta-section a.btn-primary {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: var(--cta-final-btn-bg, var(--primary)) !important;
    color: var(--cta-final-btn-text, #ffffff) !important;
    border: 1px solid var(--cta-final-btn-border, transparent) !important;
    border-radius: var(--cta-final-btn-radius, 6px) !important;
    padding: var(--cta-final-btn-padding, 1rem 2rem) !important;
    text-decoration: none !important;
    font-weight: var(--cta-final-btn-weight, 600) !important;
}

.cta-section .btn-primary:hover,
.cta-section a.btn-primary:hover {
    background: var(--cta-final-btn-hover-bg, var(--cta-final-btn-bg, var(--primary))) !important;
    color: var(--cta-final-btn-hover-text, var(--cta-final-btn-text, #ffffff)) !important;
    border-color: var(--cta-final-btn-hover-border, var(--cta-final-btn-border, transparent)) !important;
}

@media (max-width: 768px) {
  nav ul, .header-btn { display: none; }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-bullets li { display: block; margin: 0.5rem 0; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 2rem; }
  
  .mobile-menu-open nav ul {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 0; width: 100%;
    background: var(--bg-secondary); padding: 2rem; border-bottom: 1px solid var(--border-color);
  }
  .mobile-menu-open .header-btn { display: inline-block; margin-top: 1.5rem; width: 100%; text-align: center; }
  .hero-visual-composition { padding-bottom: 80%; }
  .workflow-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.hero-mobile-image-wrap { display: none; }

/* --- MOBILE HOTFIX --- */
@media (max-width: 768px) {
    /* 1. Hero Mobile */
    .hero { padding-top: 100px !important; min-height: auto !important; padding-bottom: 40px !important; }
    .hero-text { text-align: center !important; }
    .hero-text h1, .hero-text p, .impact-phrase { text-align: center !important; }
    .badges { justify-content: center !important; margin-bottom: 1rem !important; }
    
    .hero-mobile-image-wrap {
        display: block;
        width: 100%;
        margin: 18px auto 18px;
        max-width: 440px;
    }
    .hero-mobile-image {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
        border-radius: 22px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
    }

    .hero-actions { justify-content: center !important; margin-top: 1.5rem !important; flex-direction: column !important; width: 100%; gap: 0.75rem !important; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100% !important; text-align: center !important; }
    .hero-visual-composition { margin-top: 2rem !important; padding-bottom: 60% !important; }
    
    /* 2. Reduzir espaços mortos */
    section { padding-top: 42px !important; padding-bottom: 42px !important; }
    .section-header { margin-bottom: 22px !important; }
    
    /* 3. Imagens/fundos */
    .section-bg-wrapper { background-position: center center !important; }

    /* 4. Cards mobile centralizados e compactos */
    .card, .workflow-card, .feature-card, .problem-card, .benefit-card, .step-card, .target-card {
        text-align: center !important;
        padding: 1.5rem !important;
    }
    .card-icon, .feature-icon, .problem-icon, .workflow-icon, .benefit-icon, .step-icon {
        margin: 0 auto 1rem auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    .card h3, .workflow-card h3 { text-align: center !important; }
    .card p, .workflow-card p { text-align: center !important; }
    
    /* 5. Grids mobile mais compactos */
    .features-grid, .problem-grid, .workflow-grid, .benefits-grid, .cards-grid, .target-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* 8. Portal do Cliente */
    .portal-content { gap: 1.5rem !important; }
    .portal-text { text-align: center !important; margin: 0 auto !important; }
    .portal-points li { text-align: left !important; }
    .portal-image img { width: 100% !important; margin-top: 1rem !important; }

    /* 9. Para quem é */
    .target-tag { justify-content: center !important; width: 100% !important; text-align: center !important; padding: 0.85rem 1rem !important; font-size: 1rem !important; }

    /* 11. Botão flutuante WhatsApp e respiro */
    .fab-whatsapp { bottom: 20px !important; right: 20px !important; width: 56px !important; height: 56px !important; }
    .fab-whatsapp svg { width: 30px !important; height: 30px !important; }
    body { padding-bottom: 80px !important; }

    /* 12. Reveal-safe deslocamento menor */
    .reveal-safe { transform: translateY(16px); }
}

@media (max-width: 480px) {
    section { padding-top: 36px !important; padding-bottom: 36px !important; }
    
    .hero-mobile-image-wrap {
        margin: 14px auto 16px;
        max-width: 100%;
    }
    .hero-mobile-image {
        border-radius: 18px;
    }
}

/* Animations - Safe Reveal */
.reveal-safe {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
    will-change: opacity, transform;
}

.reveal-safe.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-safe-delay-1 {
    transition-delay: 80ms;
}

.reveal-safe-delay-2 {
    transition-delay: 160ms;
}

.reveal-safe-delay-3 {
    transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
    .reveal-safe,
    .reveal-safe.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto !important;
    }
}
