@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary: #40e0e6;
    --primary-dark: #35c5cb;
    --primary-light: rgba(64, 224, 230, 0.1);
    --secondary: #0047a9;
    --secondary-dark: #003680;
    --secondary-light: rgba(0, 71, 169, 0.05);
    --accent: #f59e0b;
    /* Golden accent for trust/premium */
    --bg-white: #ffffff;
    --bg-soft: #f8fafc;
    --text-heading: #1a202c;
    --text-body: #4a5568;
    --text-muted: #718096;
    --white: #ffffff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-pill: 100px;

    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-premium: 0 20px 25px -5px rgba(0, 71, 169, 0.1), 0 10px 10px -5px rgba(0, 71, 169, 0.04);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    color: var(--text-heading);
    font-weight: 800;
    line-height: 1.2;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.125rem;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-4px);
    box-shadow: var(--shadow-premium);
}

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
}

/* Layout Utilities */
.section-padding {
    padding: 120px 0;
}

.bg-soft {
    background-color: var(--bg-soft);
}

/* Case Section Layout */
.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
}

.col-text {
    flex: 1.2;
    min-width: 320px;
}

.col-image {
    flex: 0.8;
    min-width: 320px;
    display: flex;
    justify-content: center;
}

.row.reverse {
    flex-direction: row-reverse;
}

.case-content {
    max-width: 550px;
}

.case-tag {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: var(--primary-light);
    color: var(--secondary);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.case-image-wrapper {
    position: relative;
    padding: 2rem;
}

.case-image-main {
    width: 100%;
    max-width: 560px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    z-index: 2;
    position: relative;
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

.case-image-wrapper:hover .case-image-main {
    transform: scale(1.02);
}

.case-mockup-alt {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
    z-index: 3;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-premium);
}

/* Feature Matrix & Segments */
.feature-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-item {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-bottom: 4px solid transparent;
    transition: var(--transition);
}

.feature-item:hover {
    border-bottom: 4px solid var(--primary);
    transform: translateY(-5px);
}

.segment-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.segment-tag {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-pill);
    font-weight: 600;
    color: var(--secondary);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.segment-tag:hover {
    background: var(--secondary);
    color: var(--white);
    transform: scale(1.05);
}

/* Wave Separators */
.wave-sep {
    line-height: 0;
    width: 100%;
}

.wave-sep svg {
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Utils */
.desktop-only {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: flex !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .row {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }

    .col-text,
    .col-image {
        flex: 1;
        width: 100%;
    }

    .case-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    /* Fixed 2-column grids should stack on mobile */
    .novidades-grid {
        grid-template-columns: 1fr !important;
    }

    /* Footer Responsive */
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer div[style*="justify-content: space-between"] {
        justify-content: center !important;
        text-align: center;
    }

    .section-padding {
        padding: 80px 0;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        width: 100%;
        font-size: 1rem;
    }

    /* Hamburger Menu */
    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 3000;
        /* Higher than nav (2000) to remain clickable */
    }

    .menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--secondary);
        border-radius: 3px;
        transition: var(--transition);
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        /* Change to 100% for full screen overlay or keep 80% if preferred */
        height: 100vh;
        background: var(--white);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        padding: 4rem 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        /* Higher than header */
        opacity: 0;
        visibility: hidden;
    }

    header nav.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-links-mobile {
        display: flex !important;
        /* Force display in dropdown */
        flex-direction: column;
        width: 100%;
        gap: 2rem !important;
        text-align: center;
    }

    .nav-buttons-mobile {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem !important;
        margin-top: 3rem;
    }

    header .container {
        justify-content: space-between !important;
        flex-direction: row !important;
    }

    header img {
        width: 140px !important;
    }

    /* Change hamburger color when menu is active if needed, or add a closeX class */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Base state for menu toggle */
.menu-toggle {
    display: none;
}