:root {
    --primary: #3B2C7A;
    --primary-dark: #2A1F5B;
    --primary-light: #EBE9F2;
    --accent: #00C389;
    --accent-dark: #00A675;
    --secondary: #FF5C3B;
    --text-dark: #1F1A3D;
    --text-muted: #5C5874;
    --bg-light: #F7F9FC;
    --white: #ffffff;
    --border-color: #E2E4EB;
    --success: #00C389;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}
.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    position: fixed;
}
.brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.brand-icon {
    color: var(--accent);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--accent);
}
.btn-primary {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}
.btn-primary:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 195, 137, 0.2);
}
.btn-outline {
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--primary) !important;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark) !important;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.25rem;
    border-radius: 4px;
}
.lang-switch a {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
}
.lang-switch a.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    padding: 12rem 5% 8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    background: var(--bg-light);
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(to right, rgba(226, 228, 235, 0.5) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 228, 235, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
    pointer-events: none;
}

/* Gradient overlay to fade out the grid toward the edges */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    /* Soften the overlay so it doesn't obscure the text */
    background: radial-gradient(circle at center, transparent 30%, var(--bg-light) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(60px) translateZ(-200px);
    }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 92, 59, 0.1);
    color: var(--secondary);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
    letter-spacing: -0.02em;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.4s both;
    font-weight: 400;
}
.hero-cta {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}
.hero-image {
    flex: 1;
    position: relative;
    animation: fadeInLeft 1s ease 0.5s both;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image video {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(59, 44, 122, 0.15);
}

/* Trust Section */
.trust-section {
    padding: 4rem 5%;
    text-align: center;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
}
.trust-section p {
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
/* Trust Marquee */
.trust-marquee-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}
.trust-marquee-track {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: max-content;
    animation: marqueeScroll 25s linear infinite;
}
.trust-marquee-wrapper:hover .trust-marquee-track {
    animation-play-state: paused;
}
.trust-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}
.trust-logo-item img {
    max-height: 40px;
    max-width: 130px;
    object-fit: contain;
    filter: grayscale(100%) opacity(50%);
    transition: all 0.4s ease;
}
.trust-logo-item:hover img {
    filter: grayscale(0%) opacity(100%);
    transform: scale(1.1);
}
.trust-logo-item span {
    font-weight: 700;
    color: #A3A1B5;
    white-space: nowrap;
    font-size: 1rem;
}
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Features Text-Image Combo */
.features-combo {
    padding: 8rem 5%;
    background: var(--white);
}
.features-combo-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}
.features-combo .img-col {
    flex: 1;
    min-width: 320px;
}
.features-combo .img-col img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.features-combo .text-col {
    flex: 1;
    min-width: 320px;
}
.features-combo .text-col h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}
.features-combo .text-col p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Feature Grid */
.features-grid-section {
    padding: 6rem 5%;
    background: var(--bg-light);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    border-top: 4px solid transparent;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top-color: var(--accent);
}
.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 195, 137, 0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}
.feature-card h3 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
}
.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Outcome Section */
.outcome {
    background: var(--primary);
    color: var(--white);
    padding: 8rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}
.outcome-content {
    flex: 1;
    max-width: 600px;
}
.outcome-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
}
.outcome-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}
.outcome-list {
    list-style: none;
}
.outcome-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
}
.outcome-list i {
    color: var(--white);
    font-size: 1rem;
    background: var(--accent);
    padding: 0.5rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Section */
.lead-section {
    padding: 8rem 5%;
    background: var(--bg-light);
    position: relative;
    z-index: 10;
}
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}
.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}
.lead-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(59, 44, 122, 0.1);
    padding: 3rem;
    border: 1px solid var(--border-color);
}
.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}
.step-indicators::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}
.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}
.step-indicator.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--white);
}
.step-indicator.completed {
    border-color: var(--accent);
    background: var(--white);
    color: var(--accent);
}
.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
    box-sizing: border-box;
    background: #fff;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 195, 137, 0.2);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.btn-submit {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    display: none;
    font-weight: 600;
}
.alert-success {
    background: rgba(0, 195, 137, 0.1);
    color: var(--accent-dark);
    border: 1px solid var(--accent);
    display: block;
}
.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #EF4444;
    display: block;
}
.is-invalid {
    border-color: #EF4444 !important;
}
.error-msg {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 0.4rem;
    display: block;
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--white);
    padding: 4rem 5%;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}
.footer-brand {
    margin-bottom: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== Mobile Hamburger Button ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: relative;
}
.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ===== Mobile Overlay ===== */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(31, 26, 61, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-overlay.open {
    display: block;
    opacity: 1;
}

/* ===== Mobile Drawer ===== */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--white);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}
.mobile-drawer.open {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.mobile-drawer-header .brand {
    font-size: 1.35rem;
}
.mobile-drawer-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    transition: var(--transition);
}
.mobile-drawer-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Drawer Body - Navigation Links */
.mobile-drawer-body {
    flex: 1;
    padding: 1rem 0;
}
.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.mobile-drawer-link:hover {
    background: var(--bg-light);
    color: var(--accent);
    border-left-color: var(--accent);
}
.mobile-drawer-link i {
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--accent);
}

/* Drawer Footer - Language Switch */
.mobile-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.mobile-drawer-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.mobile-lang-switch {
    display: flex;
    gap: 0.75rem;
}
.mobile-lang-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    background: var(--bg-light);
    color: var(--text-muted);
    border: 2px solid transparent;
}
.mobile-lang-btn:hover {
    border-color: var(--border-color);
    color: var(--text-dark);
}
.mobile-lang-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 44, 122, 0.25);
}

/* Responsive */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
    .features-combo-inner {
        flex-direction: column;
        text-align: center;
    }
    .outcome {
        flex-direction: column;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .form-group {
        margin-bottom: 1rem;
    }
    .step-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .step-actions .btn-outline {
        order: 2;
        width: 100%;
        text-align: center;
    }
    .step-actions .btn-primary {
        order: 1;
        width: 100%;
        text-align: center;
    }
}
