:root {
    --primary: #17365C;
    --primary-dark: #0d213a;
    --accent: #7c3aed; 
    --secondary: #ADBED3;
    --dark: #0f172a;
    --light-bg: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

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

html {
    scroll-behavior: smooth;
}

body { 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    color: var(--text-main); 
    background: #fff; 
    line-height: 1.6; 
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- ANIMAÇÕES --- */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.reveal { 
    opacity: 0; 
    transform: translateY(40px); 
    transition: all 0.8s ease-out; 
}

.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}

/* HEADER */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(22, 53, 92, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.logo { 
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800; 
    color: var(--dark); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.logo img {
    height: clamp(30px, 4vw, 40px);
    width: auto;
    object-fit: contain;
}

.logo span { 
    color: var(--primary); 
}

nav { 
    display: flex; 
    gap: clamp(15px, 3vw, 30px); 
    align-items: center; 
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-weight: 500; 
    font-size: clamp(12px, 2vw, 14px); 
    transition: 0.3s; 
    white-space: nowrap;
}

nav a:hover { 
    color: var(--primary); 
}

.btn-header { 
    background: var(--primary); 
    color: white; 
    padding: clamp(8px, 2vw, 10px) clamp(16px, 4vw, 24px); 
    border-radius: 8px; 
    border: none; 
    font-weight: 600; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: clamp(12px, 2vw, 14px);
    white-space: nowrap;
}

.btn-header:hover { 
    background: var(--primary-dark); 
    transform: scale(1.05); 
}

.btn-header:active {
    transform: scale(0.98);
}

/* HERO SECTION */
.hero {
    padding: clamp(60px, 10vw, 100px) 5% clamp(80px, 15vw, 120px);
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 40%);
    display: grid; 
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 50px); 
    align-items: center;
    overflow-x: hidden;
    max-width: 100%;
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-content { 
    animation: fadeInUp 1s ease-out; 
}

.hero-content h1 { 
    font-size: clamp(32px, 8vw, 52px); 
    font-weight: 800; 
    color: var(--dark); 
    line-height: 1.1; 
    margin-bottom: clamp(16px, 3vw, 24px); 
    word-spacing: 0.1em;
}

.hero-content h1 span { 
    background: linear-gradient(to right, var(--primary)); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p { 
    font-size: clamp(16px, 4vw, 19px); 
    color: var(--text-muted); 
    margin-bottom: clamp(25px, 5vw, 35px); 
    max-width: 600px; 
    line-height: 1.8;
}

.cta-group { 
    display: flex; 
    gap: clamp(10px, 2vw, 15px); 
    flex-direction: column;
}

@media (min-width: 640px) {
    .cta-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.btn-main { 
    background: var(--primary); 
    color: white; 
    padding: clamp(14px, 3vw, 18px) clamp(24px, 5vw, 35px); 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s; 
    box-shadow: 0 10px 15px -3px rgba(22, 53, 92, 0.2);
    border: none;
    cursor: pointer;
    font-size: clamp(14px, 2.5vw, 16px);
    text-align: center;
    display: inline-block;
}

.btn-main:hover { 
    transform: translateY(-3px); 
    background: var(--accent); 
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.3); 
}

.btn-main:active {
    transform: translateY(0);
}

.btn-accent {
    padding: clamp(14px, 3vw, 18px) clamp(24px, 5vw, 35px);
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    font-size: clamp(14px, 2.5vw, 16px);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.btn-accent:hover {
    color: var(--accent);
}

/* HERO VISUAL */
.mockup-box {
    background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
    width: 120%;
    height: clamp(200px, 45vw, 400px);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(40px, 20vw, 100px);
    box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.8);
    transition: 0.5s;
    overflow: hidden;
}

.hero .mockup-box {
    margin: 0 auto;
    transform: none;
    max-width: 110%;
}

@media (min-width: 768px) {
    .hero .mockup-box {
        margin: 0;
        transform: none;
        max-width: 110%;
    }
}

.mockup-box-with-image {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0;
    height: 100%;
    width: 100%;
}

.mockup-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 30px;
    display: block;
    margin: -5%;
}

/* Estilos específicos para cada imagem */
.detail-row .mockup-box img.image-implementacao {
    transform: scale(0.9);
    margin: 0;
    border-radius: 30px !important;
    overflow: hidden;
    max-height: 500px;
    max-width: 800px;
    object-fit: cover;
    width: 100%;
    height: auto;
    object-position: center;
}

.detail-row .mockup-box.has-image-implementacao {
    max-height: 500px;
    max-width: 800px;
    height: auto;
}

.detail-row .mockup-box img.image-seguranca {
    transform: scale(0.9);
    margin: 0;
    border-radius: 30px !important;
    overflow: hidden;
    max-height: 420px;
    max-width: 800px;
    object-fit: cover;
    width: 100%;
    height: auto;
    object-position: center;
}

.detail-row .mockup-box.has-image-seguranca {
    max-height: 420px;
    max-width: 800px;
    height: auto;
}

/* BANNER SOBRE A EMPRESA */
.company-banner {
    padding: clamp(60px, 8vw, 100px) 8%;
    background: var(--primary);
    color: white;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: center;
}

@media (min-width: 968px) {
    .company-banner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.company-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.company-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%) brightness(80%);
    object-fit: cover;
}

.company-text h2 {
    font-size: clamp(28px, 5vw, 34px);
    margin-bottom: clamp(20px, 4vw, 25px);
    line-height: 1.2;
    font-weight: 700;
}

.company-text h2 span {
    color: var(--primary);
}

.company-text p {
    font-size: clamp(16px, 3vw, 18px);
    opacity: 0.9;
    margin-bottom: clamp(25px, 4vw, 30px);
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 30px);
}

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

.stat-box {
    border-left: 3px solid var(--primary);
    padding-left: clamp(12px, 2vw, 15px);
}

@media (max-width: 968px) {
    .company-banner {
        text-align: center;
        padding: clamp(60px, 8vw, 80px) 5%;
    }
    
    .stat-box {
        border-left: none;
        border-bottom: 2px solid var(--accent);
        padding: 0 0 clamp(10px, 2vw, 15px) 0;
        text-align: center;
    }
}

.stat-box h5 {
    font-size: clamp(20px, 3vw, 24px);
    color: white;
    font-weight: 700;
    margin-bottom: clamp(5px, 1vw, 8px);
}

.stat-box span {
    font-size: clamp(12px, 2vw, 14px);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* SEÇÃO POSICIONAMENTO DE MARCA (UMBRELLA) */
.umbrella-section {
    background: white;
    padding: clamp(80px, 12vw, 120px) 5%;
    text-align: center;
}

.umbrella-section h2 {
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: clamp(20px, 4vw, 30px);
    line-height: 1.2;
}

.umbrella-section h2 span {
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.umbrella-description {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto clamp(60px, 10vw, 80px);
}

.pillars-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 40px);
    max-width: 1200px;
    margin: 0 auto;
}

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

.pillar-item {
    padding: clamp(30px, 5vw, 40px);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: transparent;
}

.pillar-item:hover {
    transform: translateY(-8px);
    background: rgba(124, 58, 237, 0.03);
}

.pillar-item i {
    font-size: clamp(40px, 6vw, 48px);
    color: var(--primary);
    margin-bottom: clamp(20px, 4vw, 25px);
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    width: clamp(80px, 12vw, 100px);
    height: clamp(80px, 12vw, 100px);
    line-height: clamp(80px, 12vw, 100px);
    border-radius: 20px;
}

.pillar-item h4 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(15px, 3vw, 20px);
    line-height: 1.3;
}

.pillar-item p {
    font-size: clamp(15px, 2.5vw, 16px);
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* FEATURE CARDS */
.features-grid { 
    padding: clamp(60px, 10vw, 80px) 5%; 
    display: grid; 
    grid-template-columns: 1fr;
    gap: clamp(20px, 3vw, 30px);
}

.product-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(30px, 5vw, 50px);
    border-bottom: 2px solid var(--border);
}

.product-header h2 {
    font-size: clamp(32px, 6vw, 42px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: clamp(8px, 2vw, 12px);
    line-height: 1.2;
}

.product-header h3 {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.3;
}

.product-header p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -80px;
    }
}

.f-card {
    background: white; 
    padding: clamp(30px, 5vw, 45px) clamp(25px, 5vw, 40px); 
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9; 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; 
    overflow: hidden;
    display: flex; 
    flex-direction: column;
}

.f-card:hover { 
    transform: translateY(-15px); 
    border-color: var(--accent);
    box-shadow: 0 30px 40px -10px rgba(124, 58, 237, 0.15);
}

.product-badge {
    position: absolute; 
    top: 20px; 
    right: -30px; 
    background: var(--primary);
    color: white; 
    font-size: 10px; 
    font-weight: 800; 
    padding: 5px 35px;
    transform: rotate(45deg); 
    text-transform: uppercase;
}

.f-card i { 
    font-size: clamp(30px, 6vw, 35px); 
    color: var(--primary); 
    margin-bottom: clamp(15px, 3vw, 25px); 
    display: inline-block;
    background: rgba(124, 58, 237, 0.08); 
    width: clamp(55px, 12vw, 70px); 
    height: clamp(55px, 12vw, 70px); 
    line-height: clamp(55px, 12vw, 70px);
    text-align: center; 
    border-radius: 18px;
}

.f-card h3 { 
    margin-bottom: 12px; 
    font-size: clamp(20px, 4vw, 24px); 
    color: var(--primary); 
}

.f-card p { 
    font-size: clamp(14px, 2.5vw, 15px); 
    color: var(--text-muted); 
    margin-bottom: 20px; 
    line-height: 1.6;
}

.product-features { 
    list-style: none; 
    border-top: 1px solid #f1f5f9; 
    padding-top: 20px; 
    margin-top: auto;
}

.product-features li { 
    font-size: clamp(12px, 2vw, 13px); 
    font-weight: 600; 
    color: var(--text-main); 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.product-features li i { 
    width: auto; 
    height: auto; 
    background: none; 
    font-size: 16px; 
    color: var(--accent); 
    margin: 0; 
}

/* PROTHEUS SECTION */
.protheus-section {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4b82 100%); 
    color: white; 
    padding: clamp(50px, 8vw, 80px) 5%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    border-radius: 30px; 
    margin: clamp(60px, 10vw, 100px) 5%;
    box-shadow: 0 20px 40px rgba(22, 53, 92, 0.3);
    text-align: center;
}

.protheus-text {
    max-width: 800px;
    margin: 0 auto;
}

.protheus-text h2 { 
    font-size: clamp(28px, 6vw, 32px); 
    margin-bottom: 15px; 
    line-height: 1.2;
}

.protheus-text p { 
    opacity: 0.8; 
    font-size: clamp(16px, 3vw, 18px); 
    line-height: 1.6;
    
}

.protheus-logo { 
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: clamp(200px, 68vw, 150px);  

}

.protheus-logo img {
    width: auto; 
    max-height: clamp(300px, 68vw, 150px);  
    border-radius: 20px;
    object-fit: contain;
}

/* DETAILS SECTION */
.details { 
    padding: clamp(60px, 10vw, 100px) 5%; 
    background: var(--light-bg); 
}

.detail-row { 
    display: grid; 
    grid-template-columns: 1fr;
    gap: clamp(40px, 8vw, 100px); 
    align-items: center; 
    margin-bottom: clamp(80px, 15vw, 120px); 
}

@media (min-width: 768px) {
    .detail-row {
        grid-template-columns: 1fr 1fr;
    }

    .detail-row:nth-child(even) { 
        direction: rtl; 
    }

    .detail-row:nth-child(even) .detail-text { 
        direction: ltr; 
    }
}

.detail-text h2 { 
    font-size: clamp(28px, 6vw, 38px); 
    color: var(--dark); 
    margin-bottom: 15px;
    line-height: 1.2;
}

.detail-text h2 span { 
    color: var(--primary); 
}

.detail-text p {
    font-size: clamp(15px, 3vw, 17px);
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.detail-text ul { 
    list-style: none; 
}

.detail-text li { 
    margin-bottom: clamp(12px, 2vw, 15px); 
    display: flex; 
    gap: 12px; 
    align-items: flex-start;
    font-size: clamp(14px, 2.5vw, 16px);
}

.detail-text li i { 
    color: var(--primary); 
    margin-top: 5px; 
    font-size: clamp(16px, 3vw, 18px);
    flex-shrink: 0;
}

/* SEÇÃO CONSULTORIA TOTVS */
.totvs-section {
    padding: clamp(60px, 10vw, 100px) 5%;
    background: white;
}

.totvs-hero {
    text-align: center;
    margin-bottom: clamp(60px, 10vw, 80px);
    padding: clamp(40px, 8vw, 60px) 0;
}

.totvs-hero-image {
    margin-bottom: clamp(30px, 5vw, 40px);
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.totvs-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.totvs-hero h2 {
    font-size: clamp(32px, 7vw, 48px);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.2;
}

.totvs-hero h2 span {
    background: linear-gradient(to right, var(--primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.totvs-hero .hero-subtitle {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--primary);
    font-weight: 600;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.totvs-hero p {
    font-size: clamp(16px, 3vw, 19px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto clamp(30px, 5vw, 40px);
    line-height: 1.8;
}

.totvs-transformacao {
    text-align: center;
    margin-bottom: clamp(60px, 10vw, 80px);
    padding: clamp(40px, 8vw, 60px);
    background: linear-gradient(135deg, rgba(22, 53, 92, 0.03), rgba(124, 58, 237, 0.03));
    border-radius: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 40px);
    align-items: center;
}

@media (min-width: 768px) {
    .totvs-transformacao {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.totvs-transformacao-content {
    order: 2;
}

@media (min-width: 768px) {
    .totvs-transformacao-content {
        order: 1;
    }
}

.totvs-transformacao-image {
    order: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .totvs-transformacao-image {
        order: 2;
    }
}

.totvs-transformacao-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.totvs-transformacao h3 {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(16px, 3vw, 24px);
    line-height: 1.3;
}

.totvs-transformacao p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.totvs-beneficios-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(25px, 4vw, 35px);
    margin-bottom: clamp(60px, 10vw, 80px);
}

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

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

.totvs-beneficio-card {
    background: white;
    padding: clamp(25px, 4vw, 35px);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.totvs-beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.totvs-beneficio-card i {
    font-size: clamp(32px, 6vw, 40px);
    color: var(--primary);
    margin-bottom: clamp(16px, 3vw, 20px);
    display: inline-block;
    background: rgba(124, 58, 237, 0.1);
    width: clamp(70px, 12vw, 80px);
    height: clamp(70px, 12vw, 80px);
    line-height: clamp(70px, 12vw, 80px);
    border-radius: 20px;
}

.totvs-beneficio-card h4 {
    font-size: clamp(18px, 3vw, 20px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(12px, 2vw, 16px);
    line-height: 1.3;
}

.totvs-beneficio-card p {
    font-size: clamp(14px, 2.5vw, 15px);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.totvs-credibilidade {
    text-align: center;
    padding: clamp(40px, 8vw, 60px);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 30px;
    color: white;
    margin-bottom: clamp(60px, 10vw, 80px);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 40px);
    align-items: center;
}

@media (min-width: 768px) {
    .totvs-credibilidade {
        grid-template-columns: 1fr 1fr;
    }
}

.credibilidade-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.credibilidade-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.credibilidade-content {
    order: 2;
}

@media (min-width: 768px) {
    .credibilidade-content {
        order: 1;
    }
}

@media (min-width: 768px) {
    .credibilidade-image {
        order: 2;
    }
}

.totvs-credibilidade .credibilidade-destaque {
    font-size: clamp(48px, 10vw, 72px);
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: clamp(8px, 2vw, 12px);
    line-height: 1;
}

.totvs-credibilidade .credibilidade-texto {
    font-size: clamp(18px, 4vw, 22px);
    margin-bottom: clamp(20px, 4vw, 30px);
    opacity: 0.95;
    line-height: 1.6;
}

.totvs-credibilidade p {
    font-size: clamp(16px, 3vw, 18px);
    opacity: 0.9;
    margin-bottom: clamp(16px, 3vw, 20px);
    line-height: 1.8;
}

.totvs-credibilidade .destaque-text {
    font-size: clamp(20px, 4vw, 24px);
    font-weight: 700;
    color: var(--secondary);
    margin-top: clamp(20px, 4vw, 30px);
}

.totvs-modalidades {
    margin-bottom: clamp(60px, 10vw, 80px);
}

.totvs-modalidades h3 {
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 60px);
}

.totvs-modalidades-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(30px, 5vw, 40px);
}

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

.totvs-modalidade-card {
    background: white;
    padding: clamp(35px, 6vw, 50px);
    border-radius: 24px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.totvs-modalidade-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
    transform: translateY(-5px);
}

.modalidade-image {
    width: 100%;
    margin-bottom: clamp(20px, 4vw, 25px);
    border-radius: 16px;
    overflow: hidden;
}

.modalidade-image img {
    width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

.totvs-modalidade-card i {
    font-size: clamp(36px, 6vw, 42px);
    color: var(--primary);
    margin-bottom: clamp(20px, 4vw, 25px);
    display: inline-block;
}

.totvs-modalidade-card h4 {
    font-size: clamp(22px, 4vw, 26px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(16px, 3vw, 20px);
}

.totvs-modalidade-card p {
    font-size: clamp(15px, 3vw, 17px);
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0;
}

.totvs-metodologia {
    background: var(--light-bg);
    padding: clamp(50px, 8vw, 70px);
    border-radius: 30px;
    margin-bottom: clamp(60px, 10vw, 80px);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 60px);
    align-items: center;
}

.metodologia-image {
    width: 100%;
    display: none;
}

.metodologia-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.metodologia-content {
    width: 100%;
    grid-column: 1 / -1;
}

.totvs-metodologia h3 {
    font-size: clamp(28px, 6vw, 36px);
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.totvs-metodologia p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    text-align: center;
    max-width: 900px;
    margin: 0 auto clamp(40px, 8vw, 60px);
    line-height: 1.8;
}

.totvs-etapas-container {
    margin-top: clamp(40px, 6vw, 60px);
}

.totvs-etapas-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 clamp(60px, 8vw, 100px);
}

.totvs-etapas-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), var(--primary));
    border-radius: 2px;
}

.totvs-etapa-item {
    position: relative;
    margin-bottom: clamp(30px, 5vw, 40px);
    padding-bottom: clamp(30px, 5vw, 40px);
    width: 48%;
}

.totvs-etapa-item:nth-child(odd) {
    margin-right: auto;
    margin-left: 0;
}

.totvs-etapa-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.totvs-etapa-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.totvs-etapa-item:last-child::after {
    display: none;
}

.etapa-number {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: clamp(16px, 2.5vw, 18px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    z-index: 2;
}

.totvs-etapa-item:nth-child(odd) .etapa-number {
    left: -70px;
    right: auto;
}

.totvs-etapa-item:nth-child(even) .etapa-number {
    right: -70px;
    left: auto;
}

.etapa-content {
    background: white;
    padding: clamp(20px, 4vw, 30px);
    border-radius: 12px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.etapa-content h4 {
    text-align: center;
}

.totvs-etapa-item:hover .etapa-content {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.15);
}

.totvs-etapa-item:nth-child(odd):hover .etapa-content {
    transform: translateX(-5px);
}

.totvs-etapa-item:nth-child(even):hover .etapa-content {
    transform: translateX(5px);
}

.etapa-content h4 {
    font-size: clamp(16px, 3vw, 18px);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .totvs-etapas-timeline {
        padding: 0 clamp(50px, 8vw, 60px);
    }
    
    .totvs-etapas-timeline::before {
        left: 30px;
        transform: none;
    }
    
    .totvs-etapa-item {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .etapa-number {
        left: -55px !important;
        right: auto !important;
        top: 50%;
        transform: translateY(-50%) !important;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .etapa-content {
        padding: clamp(18px, 4vw, 25px);
        margin-left: 10px;
    }
    
    .etapa-content h4 {
        text-align: center;
    }
    
    .totvs-etapa-item:hover .etapa-content {
        transform: translateX(5px) !important;
    }
}

.totvs-cta-section {
    background: linear-gradient(135deg, rgba(22, 53, 92, 0.05), rgba(124, 58, 237, 0.05));
    padding: clamp(50px, 8vw, 80px);
    border-radius: 40px;
    text-align: center;
    margin-bottom: clamp(40px, 8vw, 60px);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(40px, 6vw, 30px);
    align-items: center;
}

@media (min-width: 768px) {
    .totvs-cta-section {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
}

.cta-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    order: 1;
}

@media (min-width: 768px) {
    .cta-image {
        order: 2;
    }
}

.cta-image img {
    width: 100%;
    height: auto;
    margin-left: 20px;
    object-fit: cover;
    background-color: transparent;
}

.cta-content {
    order: 2;
}

@media (min-width: 768px) {
    .cta-content {
        order: 1;
    }
}

.totvs-cta-section h3 {
    font-size: clamp(28px, 6vw, 38px);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: clamp(12px, 3vw, 20px);
    line-height: 1.2;
}

.totvs-cta-section h4 {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.totvs-cta-section p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto clamp(30px, 5vw, 40px);
    line-height: 1.8;
}

/* CTA FINAL */
.final-cta {
    margin: clamp(60px, 10vw, 0px) 5%; 
    background: linear-gradient(135deg, var(--primary) 0%); 
    border-radius: 40px; 
    padding: clamp(50px, 8vw, 100px) clamp(30px, 5vw, 40px); 
    text-align: center; 
    color: white;
    box-shadow: 0 30px 50px rgba(124, 58, 237, 0.2);
}

.final-cta h2 { 
    font-size: clamp(28px, 7vw, 45px); 
    margin-bottom: clamp(12px, 2vw, 20px); 
    line-height: 1.2;
}

.final-cta p {
    font-size: clamp(15px, 3vw, 18px);
    margin-bottom: 0;
    line-height: 1.8;
}

.btn-white { 
    background: white; 
    color: var(--primary); 
    padding: clamp(14px, 3vw, 22px) clamp(30px, 6vw, 50px); 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: 800; 
    display: inline-block; 
    margin-top: clamp(20px, 4vw, 30px); 
    transition: 0.3s; 
    font-size: clamp(14px, 2.5vw, 16px);
    border: none;
    cursor: pointer;
}

.btn-white:hover { 
    transform: scale(1.08); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.btn-white:active {
    transform: scale(1);
}

/* FOOTER */
footer {
    text-align: center; 
    padding: clamp(30px, 5vw, 50px) 5%; 
    color: var(--text-muted); 
    font-size: clamp(12px, 2vw, 14px);
    border-top: 1px solid var(--border);
    background: white;
}

footer p {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* MEDIA QUERIES */
@media (max-width: 640px) {
    nav {
        gap: 10px;
    }

    nav a {
        display: none;
    }

    nav a:first-child,
    nav a:nth-child(3) {
        display: inline;
    }

    .btn-header {
        padding: 8px 16px;
    }

    .mockup-box {
        min-height: 250px;
    }

    .hero .mockup-box {
        margin: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 12px 3%;
    }

    .logo {
        font-size: 18px;
    }

    .logo img {
        height: 28px;
    }

    nav {
        gap: 5px;
    }

    .btn-header {
        padding: 6px 12px;
        font-size: 11px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 28px;
    }

    .f-card:hover {
        transform: translateY(-8px);
    }
}

/* Touch-friendly adjustments */
@media (hover: none) and (pointer: coarse) {
    .btn-main,
    .btn-header,
    .btn-white {
        padding-top: clamp(12px, 4vw, 18px);
        padding-bottom: clamp(12px, 4vw, 18px);
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
}

/* MODAL E FORMULÁRIO */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: clamp(30px, 5vw, 40px);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--dark);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-content h2 {
    color: var(--dark);
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 25px;
    padding-right: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--dark);
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, #1e4b82 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 53, 92, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .modal-close {
        right: 15px;
        top: 15px;
        font-size: 28px;
    }
}

/* TOAST NOTIFICATION */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    min-width: 320px;
    max-width: 500px;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    visibility: hidden;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
    visibility: visible;
}

.toast.success {
    --toast-bg: #10b981;
    --toast-icon: #ffffff;
}

.toast.error {
    --toast-bg: #ef4444;
    --toast-icon: #ffffff;
}

.toast-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border-left: 4px solid var(--toast-bg, var(--primary));
    position: relative;
    animation: slideInRight 0.4s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--toast-bg, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--toast-icon, white);
    font-size: 20px;
    animation: scaleIn 0.3s ease 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.toast-message {
    flex: 1;
    min-width: 0;
}

.toast-title {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.toast-text {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 14px;
}

.toast-close:hover {
    background: #f5f5f5;
    color: var(--dark);
}

/* Responsivo */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .toast.show {
        transform: translateY(0);
    }

    .toast-content {
        padding: 16px;
    }

    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .toast-title {
        font-size: 15px;
    }

    .toast-text {
        font-size: 13px;
    }
}

