:root {
    --primary: #039420;
    --primary-dark: #007517;
    --primary-light: #dcfce7;
    --secondary: #0f172a;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-main: #334155;
    --text-low: #64748b;
    --border: #e2e8f0;
    --radius: 20px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

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

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 800;
    letter-spacing: -1px;
    align-items: center;
    text-align: center;
}

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

.hamburger-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
}

.close-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 25px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 12px rgba(3, 148, 32, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(3, 148, 32, 0.35);
}

.btn-secondary {
    background: white;
    color: var(--secondary);
    border: 1px solid var(--border);
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-low);
}

.btn-third {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: 0.3s;
}

.btn-third:hover {
    background: var(--primary);
    cursor: pointer;
}

.hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg-light) 100%);
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.badge {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
}

h1 {
    font-size: 3.8rem;
    line-height: 1.05;
    color: var(--secondary);
    margin: 20px 0;
    letter-spacing: -2px;
}

h1 span {
    color: var(--primary);
}

.hero p {
    color: var(--text-low);
    font-size: 1.25rem;
    margin-bottom: 35px;
    max-width: 550px;
}

.hero-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    border: 8px solid white;
}

.cta-group {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: start;
    text-align: center;
}

.quick-track {
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

.track-card {
    background: white;
    padding: 30px 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 30px;
    border: 1px solid var(--border);
}

.track-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
}

.track-form input {
    flex-grow: 1;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    outline: none;
    transition: 0.3s;
}

.track-form input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(3, 148, 32, 0.1);
}

.bento-grid {
    padding: 100px 0;
}

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

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 28px;
    transition: 0.4s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.card-large {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 12px;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-low);
    font-size: 1.05rem;
}

.hybrid-services {
    padding: 100px 0;
    background: var(--bg-white);
}

.service-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.service-box {
    padding: 60px 45px;
    border-radius: 32px;
    transition: 0.3s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-box.dark {
    background: var(--secondary);
    color: white;
}

.service-box.dark h3 span {
    color: var(--primary);
}

.service-box.light {
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.service-tag {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: block;
    color: var(--primary);
}

.service-box h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.service-list {
    list-style: none;
    margin-top: 25px;
}

.service-list li {
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list.dark li {
    color: var(--text-main);
}

.light-section {
    padding: 100px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--secondary);
    letter-spacing: -1.5px;
}

.section-header h2 span {
    color: var(--primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.step-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--primary);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: 0.3s;
}

.faq-question {
    font-weight: 700;
    color: var(--secondary);
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    display: none;
    padding-top: 15px;
    color: var(--text-low);
    font-size: 0.95rem;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.faq-item.active .faq-answer {
    display: block;
}

.cta-final-evolve {
    padding: 100px 0;
    background: var(--bg-white);
}

.cta-glass-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 5;
}

.cta-glass-box h2 {
    font-size: 3.2rem;
    color: var(--secondary);
    letter-spacing: -2px;
    margin-bottom: 15px;
}

.cta-glass-box p {
    color: var(--text-low);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    z-index: 1;
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: #dcfce7;
    top: -100px;
    left: -50px;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: #e0f2fe;
    bottom: -50px;
    right: -50px;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: #fef08a;
    top: 20%;
    right: 10%;
    animation-duration: 12s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.footer-minimal {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-white);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: var(--text-low);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    border-radius: 30px;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: white;
    z-index: 2100;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, var(--bg-white) 0%, var(--bg-light) 100%);
}

.login-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.login-logo {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-logo img {
    max-width: 150px;
    height: auto;
    object-fit: contain;
}

.input-group-login {
    margin-bottom: 20px;
    text-align: left;
}

.input-group-login label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-low);
    text-transform: uppercase;
}

.input-group-login input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-light);
    color: var(--secondary);
    outline: none;
    transition: 0.3s;
}

.input-group-login input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(3, 148, 32, 0.1);
}

.btn-primary-login {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background: var(--primary);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary-login:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--text-low);
    font-size: 0.85rem;
    transition: 0.3s;
}

.back-link:hover {
    color: var(--primary);
}

.portal-body {
    background: var(--bg-light);
}

.portal-main {
    padding-top: 140px;
    padding-bottom: 100px;
}

.portal-header {
    margin-bottom: 40px;
    text-align: center;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card-portal {
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: var(--radius);
    transition: 0.4s;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.card-portal:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.module-status {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary-dark);
    text-transform: uppercase;
}

.company-logo {
    background: var(--bg-light);
    border: 1px solid var(--border);
}

.btn-access {
    margin-top: 20px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.card-portal:hover .btn-access {
    background: var(--primary);
    color: white;
}

.user-info {
    font-size: 0.85rem;
    color: var(--text-main);
}

.user-info a {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0 auto;
    justify-content: center;
}

.cta-buttons a {
    text-decoration: none;
    color: var(--primary);
    transform: all .3s ease;
}

.cta-buttons a:hover {
    color: var(--primary-dark);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-wrapper:hover {
    opacity: 0.8;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.sub-logo {
    height: 28px;
}

.logo-separator {
    width: 1px;
    height: 24px;
    background-color: var(--border);
    display: inline-block;
}

.logo-name-nexus {
    font-family: 'Segoe UI', sans-serif;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    font-family: 'Exo 2', sans-serif;
    font-weight: 800;
    font-size: 36px;
    letter-spacing: 0px;
    text-transform: lowercase;
    background: linear-gradient(135deg, #166534 0%, #34c759 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 0.8;
    margin: 0;
    padding: 0;
    text-align: center;
    display: inline-block;
}

.logo-name-nexus .sub-brand {
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #166534;
    -webkit-text-fill-color: #166534;
    line-height: 1.2;
    display: block;
    margin-top: 4px;
}

.sub-brand {
    margin-top: -0.10rem !important;
}

@media (max-width: 1024px) {
    .client-container {
        display: none !important;
    }
}

@media (max-width: 968px) {
    .hamburger-menu {
        display: block;
    }

    .close-menu {
        display: block;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: 0.3s ease-in-out;
        z-index: 1001;
        gap: 20px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hide-mobile {
        display: none !important;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cta-group {
        justify-content: center;
    }

    .track-card {
        flex-direction: column;
        padding: 30px 20px;
    }

    .track-form {
        flex-direction: column;
        width: 100%;
    }

    .grid-layout {
        grid-template-columns: 1fr;
    }

    .card-large {
        grid-column: span 1;
    }

    .service-split {
        grid-template-columns: 1fr;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }
}

#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--bg-light);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}