/* ===== VARIÁVEIS ===== */
:root {
    --primary: #0A0A0A;
    --secondary: #1A1A1A;
    --accent: #1e3a8a;
    --accent-light: #3b82f6;
    --text: #FFFFFF;
    --text-muted: #A0A0A0;
    --text-dark: #334155;
    --text-light: #E0E0E0;
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body {
        cursor: default;
    }
}

/* ===== CURSOR ===== */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    display: inline-block;
}

.loader-line {
    width: min(150px, 60vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: loaderLine 1.5s ease-in-out infinite;
}

@keyframes loaderLine {
    0% { transform: scaleX(0); opacity: 0; }
    50% { transform: scaleX(1); opacity: 1; }
    100% { transform: scaleX(0); opacity: 0; }
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.6rem 0;
}

.header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: clamp(35px, 5vw, 45px);
    width: auto;
    display: block;
}

.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2.5rem);
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--accent);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--text-light);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
    white-space: nowrap;
}

.header-btn i {
    font-size: 1rem;
}

.header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: 1rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
    background: var(--primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.03) 0%, transparent 70%);
    animation: gradientMove 20s ease-in-out infinite;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 138, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

@keyframes gradientMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-5%, -5%); }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-title span {
    color: var(--accent-light);
}

.mobile-break {
    display: none;
}

.hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.hero-description strong {
    color: var(--text);
}

.hero-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.hero-highlight i {
    color: var(--text-light);
    font-size: 1.1rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(12px, 3vw, 14px) clamp(20px, 4vw, 28px);
    background: var(--gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    width: fit-content;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-primary i {
    font-size: 0.9rem;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(30, 58, 138, 0.4);
}

.hero-cta-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ===== CARROSSEL ===== */
.carousel-container {
    width: 100%;
    max-width: min(450px, 90%);
    aspect-ratio: 4/5;
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    transition: transform 7s ease;
}

.carousel-slide.active .carousel-img {
    transform: scale(1.1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(10, 10, 10, 0.3) 50%, rgba(30, 58, 138, 0.2) 100%);
}

.carousel-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    padding: 20px;
    color: var(--text);
    pointer-events: none;
}

.carousel-icon i {
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--accent-light);
    margin-bottom: 15px;
}

.carousel-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    font-weight: 700;
    font-family: var(--font-secondary);
    line-height: 1.3;
    margin-bottom: 12px;
}

.carousel-title span {
    color: var(--accent-light);
}

.carousel-divider {
    width: clamp(40px, 10vw, 50px);
    height: 2px;
    background: var(--text-light);
    margin: 12px auto;
}

.carousel-text {
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    color: var(--text-muted);
    letter-spacing: 1px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 11;
}

.indicator {
    width: clamp(5px, 2vw, 6px);
    height: clamp(5px, 2vw, 6px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.indicator.active {
    background: var(--text-light);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* ===== SEÇÃO PROBLEMA ===== */
.pain {
    padding: clamp(50px, 10vw, 80px) 0;
    background: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto clamp(30px, 6vw, 50px);
}

.section-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(30, 58, 138, 0.2);
    border-radius: 30px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-light);
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: var(--text);
}

.section-title span {
    color: var(--accent-light);
}

.section-description {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.pain-card {
    padding: clamp(25px, 5vw, 35px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    height: 100%;
}

.pain-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-light);
}

.pain-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 12px;
    color: var(--text);
}

.pain-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== SEÇÃO SOLUÇÃO ===== */
.solution {
    padding: clamp(50px, 10vw, 80px) 0;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .solution-grid {
        grid-template-columns: 1fr;
    }
}

.solution-card {
    padding: clamp(25px, 5vw, 35px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.solution-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(30, 58, 138, 0.3);
    margin-bottom: 15px;
    line-height: 1;
}

.solution-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 12px;
    color: var(--text);
}

.solution-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===== SEÇÃO PORTFÓLIO ===== */
.cases {
    padding: clamp(50px, 10vw, 80px) 0;
    background: var(--secondary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 20px;
}

.case-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.case-image {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.5);
    transition: transform 0.7s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(30, 58, 138, 0.3);
    border-radius: 30px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--accent-light);
}

.case-content {
    padding: 20px;
}

.case-content h3 {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    margin-bottom: 8px;
    color: var(--text);
}

.case-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
    padding: clamp(50px, 10vw, 80px) 0;
}

.cta-box {
    text-align: center;
    max-width: min(700px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 8vw, 50px);
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border: 1px solid var(--border);
    border-radius: clamp(30px, 6vw, 50px);
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: clamp(1.5rem, 6vw, 2.3rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text);
}

.cta-title span {
    color: var(--accent-light);
}

.cta-description {
    color: var(--text-muted);
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-large {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    font-size: 0.95rem;
}

.cta-alt-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.cta-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px dotted var(--accent-light);
}

.cta-link:hover {
    color: var(--text);
    border-bottom-color: var(--text);
}

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 4vw, 25px);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.cta-trust i {
    margin-right: 5px;
    color: var(--text-light);
}

/* ===== RODAPÉ ===== */
.footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent-light);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-contact i {
    color: var(--text-light);
    width: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== ANIMAÇÕES ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-light);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-highlights {
        align-items: center;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .logo img {
        height: 30px;
    }
    
    .navbar {
        order: 2;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        gap: 2rem;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        color: var(--text-dark);
        white-space: normal;
    }
    
    .header-btn {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-trust {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (min-width: 769px) {
    .hamburger {
        display: none !important;
    }
    
    .nav-menu {
        position: static;
        flex-direction: row;
        height: auto;
        background: transparent;
        padding: 0;
        gap: 2rem;
        left: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }
    
    .btn-primary {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .carousel-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .cta-box {
        padding: 25px 15px;
    }
}