:root {
    --primary: #9f7aea;
    --primary-dark: #7c3aed;
    --primary-darker: #6d28d9;
    --primary-light: #f3e8ff;
    --accent-1: #c4b5fd;
    --accent-2: #d6bcfa;
    --text: #1e293b;
    --text-light: #475569;
    --gray: #64748b;
    --bg-hero: #ffffff;
    --bg-features: linear-gradient(180deg, #ffffff 0%, #f5f0ff 100%);
    --bg-core: linear-gradient(to bottom, #fdfaff, #ffffff);
    --border: #e0d4ff;
    --white: #ffffff;
    --card-bg: #f9f9fc;
    --card-border: rgba(159,122,234,0.15);
    --bg-white: #ffffff;
    --accent-blue: rgba(29, 78, 216, 0.25); 
    --accent-purple: rgba(124, 58, 237, 0.15);
}

body.dark-theme {
    --white: #0f172a;
    --bg-white: #0f172a;
    --text: #f8fafc;
    --text-light: #cbd5e1;
    --gray: #94a3b8;
    --border: #334155;
    --card-bg: #1e293b;
    --card-border: rgba(159,122,234,0.3);
    --bg-features: linear-gradient(180deg, #0f172a 0%, #1e1b4b 100%);
    --bg-core: #0f172a;
    --accent-blue: rgba(59, 130, 246, 0.15);
    --accent-purple: rgba(139, 92, 246, 0.1);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.policy {
   color: var(--primary); font-weight: 600; text-decoration: none; transition: 0.3s; 
}
.policy:hover {
    text-decoration: underline;
}
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    position: relative;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.main-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: var(--bg-white);
    overflow: hidden;
}

.glass-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(80px);
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
}

.shape-blue {
    top: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
}

.shape-purple {
    top: 5%;
    left: -5%;
    width: 35vw;
    height: 35vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.shape-bottom {
    bottom: -20%;
    left: 20%;
    width: 60vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

body.dark-theme .navbar {
    background: rgba(15, 23, 42, 0.9);
}

.logo {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-darker);
    cursor: pointer;
}

body.dark-theme .logo { color: var(--accent-1); }
.logo span { color: var(--primary); }

.nav-right { display: flex; gap: 16px; align-items: center; }

.btn-primary, .btn-primary-lg {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary { padding: 12px 28px; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

body.dark-theme .btn-outline {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover { background: var(--primary-light); }
body.dark-theme .btn-outline:hover { background: rgba(159, 122, 234, 0.1); }

.btn-primary-lg {
    padding: 18px 56px;
    font-size: 1.22rem;
    box-shadow: 0 10px 25px rgba(159,122,234,0.22);
    min-width: 240px;
}

.btn-primary-lg:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(159,122,234,0.3);
}

.hero-roi-combined {
    padding: 140px 0 80px;
    position: relative;
    z-index: 2;
}

.hero-wrapper {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0 24px;
    text-align: center;
}

.brand-prefix {
    font-size: 3.0rem;
    font-weight: 800;
    color: var(--primary-darker);
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: block;
    text-transform: none;
}
body.dark-theme .brand-prefix { color: var(--accent-1); }

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

.hero-text-block h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-text-block h1 span { color: var(--primary); }

.hero-text-block .lead {
    font-size: 1.45rem;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta { margin-bottom: 100px; }

.roi-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.feature-card.pro-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(159,122,234,0.12);
    border-color: rgba(159,122,234,0.3);
}

.card-icon { 
    margin-bottom: 20px; 
    color: var(--primary); 
    display: inline-flex;
    padding: 12px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(159,122,234,0.1);
}

.pro-card h3 { font-size: 1.55rem; margin-bottom: 16px; color: var(--text); }
.pro-card p { color: var(--text-light); font-size: 1.05rem; margin-bottom: 24px; }

.floating-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    background: rgba(159,122,234,0.08);
    color: var(--primary-dark);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
}
body.dark-theme .tag { color: var(--accent-1); background: rgba(159, 122, 234, 0.2); }

.value-pitch-card {
    grid-column: span 2;
    background: linear-gradient(135deg, #a477e9 0%, #7c3aed 100%);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
}

.value-pitch-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.pitch-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.pitch-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
    opacity: 0.9;
}

.value-pitch-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.value-pitch-card h2 span { color: var(--accent-2); }

.pitch-divider {
    width: 60px;
    height: 4px;
    background: var(--accent-1);
    margin: 20px auto;     border-radius: 2px;
}

.value-pitch-card p {
    font-size: 1.5rem;
    font-weight: 500;
    opacity: 0.95;
    margin: 0;
}

.fancy-title {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(90deg, var(--primary), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-padding { padding: 100px 0; }
.features-deep { background: var(--bg-features); padding: 120px 0 100px; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header p { font-size: 1.25rem; color: var(--gray); max-width: 720px; margin: 0 auto; }

.capabilities-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: visible; 
}

.capabilities-carousel {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: auto;
    padding: 20px 24px 40px; 
    scrollbar-width: none;
    cursor: grab;
    -ms-overflow-style: none;
    overscroll-behavior-x: none; 
}

.capabilities-carousel:active { cursor: grabbing; }
.capabilities-carousel::-webkit-scrollbar { display: none; }

.carousel-card {
    flex: 0 0 450px; 
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.carousel-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(159,122,234,0.18);
    border-color: var(--primary-light);
}

.card-image { width: 100%; height: 280px; object-fit: cover; background: #f8fafc; pointer-events: none; }
body.dark-theme .card-image { background: #1e293b; opacity: 0.9; }

.card-content { padding: 28px 32px; text-align: left; }
.card-content h3 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }

.card-content p { 
    font-size: 1.08rem; 
    color: var(--gray); 
    line-height: 1.55;
    word-break: normal;
    overflow-wrap: break-word;
}
.card-content p span.no-break {
    white-space: nowrap !important;
    display: inline-block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--white);
    width: 95vw; 
    max-width: 1400px;
    height: 92vh; 
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transform: scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    box-shadow: 0 40px 100px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-feature-nav {
    display: flex;
    justify-content: center;
    padding: 8px 20px; 
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
}
.modal-feature-nav::-webkit-scrollbar { display: none; }

.modal-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px; 
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 65px;
}
.modal-nav-item svg { width: 18px; height: 18px; color: var(--gray); } 
.modal-nav-item span { font-size: 0.65rem; font-weight: 700; color: var(--gray); } 

.modal-nav-item:hover { background: var(--primary-light); }
.modal-nav-item.active { background: var(--primary); }
.modal-nav-item.active svg, 
.modal-nav-item.active span { color: white; }

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.9);
    border: none;
    font-size: 1.5rem;
    color: var(--text);
    cursor: pointer;
    z-index: 100;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.modal-body {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    position: relative;
    width: 100%;
    flex: 1; 
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    overflow: hidden; 
    touch-action: none; 
}

.modal-image {
    max-width: 100%;
    max-height: 100%; 
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease-out;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.2s;
    color: var(--primary-dark);
}

.modal-nav.hidden { display: none; }
.modal-nav:hover { background: var(--primary); color: white; scale: 1.05; }
.modal-prev { left: 20px; }
.modal-next { right: 20px; }

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

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(159, 122, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 10px;
}

.modal-text { 
    padding: 20px 40px 30px; 
    flex-shrink: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
}
.modal-text h2 {
    font-size: 1.75rem;
    color: var(--primary-darker);
    margin-bottom: 8px;
    font-weight: 800;
}
body.dark-theme .modal-text h2 { color: var(--accent-1); }
.modal-text p { font-size: 1.05rem; color: var(--text-light); line-height: 1.6; max-width: 100%; }

.core-features { 
    background: var(--bg-core); 
    padding-bottom: 180px; 
}

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

.core-item { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
    background: var(--card-bg); 
    backdrop-filter: blur(10px);
    padding: 40px; 
    border-radius: 24px; 
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.core-item:hover {
    transform: translateY(-10px);
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(159, 122, 234, 0.15);
}

.core-icon { 
    flex-shrink: 0; 
    width: 64px; 
    height: 64px; 
    background: var(--primary-light); 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: transform 0.3s ease;
}
body.dark-theme .core-icon { background: rgba(159, 122, 234, 0.1); }

.core-item:hover .core-icon { transform: rotate(10deg) scale(1.1); }

.core-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
    font-weight: 700;
}

.core-content p { color: var(--gray); font-size: 1.05rem; }

.footer { background: #0f172a; color: #f8fafc; padding: 40px 8% 30px; }
.footer-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px;}
.logo-footer { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.logo-footer span { color: var(--primary); }
.footer-heading { color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 15px; }
.footer-about { color: #cbd5e1; font-size: 1.2rem; line-height: 1.6; max-width: 320px; }
.footer-info { list-style: none; padding: 0; width:70%; }
.footer-info li { margin-bottom: 8px; color: #cbd5e1; display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.4; }
.footer-info strong { color: #fff; font-weight: 800; }
.footer-email { color: var(--primary); font-weight: 600; text-decoration: none; transition: 0.3s; }
.footer-email:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 25px; padding-top: 15px; text-align: center; color: #64748b; font-size: 0.85rem; }

@media (max-width: 768px) {
    .navbar {
        padding: 15px 24px;
        height: 70px;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
        z-index: 1100;
    }
    .mobile-menu-toggle span {
        width: 30px;
        height: 3px;
        background: var(--primary-dark);
        border-radius: 3px;
        transition: 0.3s;
    }
    .mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

    .nav-right {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        background: var(--white);
        flex-direction: column;
        padding: 30px 24px;
        gap: 15px;
        transition: all 0.4s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;
    }

    .nav-right.active { 
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-right a { width: 100%; text-align: center; }

    .hero-roi-combined { padding-top: 80px; }
    .hero-text-block h1 { font-size: 2.8rem; }
    .hero-text-block .lead { font-size: 1.1rem; }
    .brand-prefix { font-size: 2.2rem; }
    .btn-primary-lg { width: 100%; min-width: unset; padding: 15px 30px; }

    .roi-features { grid-template-columns: 1fr; }
    .value-pitch-card { grid-column: span 1; padding: 40px 20px; }
    .value-pitch-card h2 { font-size: 1.6rem; }
    .value-pitch-card p { font-size: 1.1rem; }

    .fancy-title { font-size: 2.2rem; }
    .section-header p { font-size: 1rem; padding: 0 10px; }

    .capabilities-carousel-wrapper {
        margin-left: -24px;
        margin-right: -24px;
        width: calc(100% + 48px);
    }
    .capabilities-carousel {
        padding: 20px 24px 40px;
    }
    .carousel-card { flex: 0 0 85vw; }
    .card-content h3 { font-size: 1.3rem; }
    .card-content p { font-size: 0.95rem; }

    .modal-card { 
        width: 95vw; 
        height: auto; 
        max-height: 90vh;
        border-radius: 20px; 
        margin: auto;
        padding-top: 50px; 
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
        background: var(--white);
        border: 1px solid var(--border);
    }

    .modal-nav { display: none !important; }

    .modal-image-container { 
        flex: 0 0 auto; 
        min-height: unset;
        background: transparent;
        padding: 5px;
    }
    
    .modal-dots {
        bottom: 10px;
    }

    .modal-image {
        width: 100%;
        height: auto;
        max-height: 50vh;
        object-fit: contain;
    }

    .modal-text { 
        padding: 15px 20px; 
        max-height: unset;
        overflow-y: visible;
    }
    .modal-text h2 { font-size: 1.4rem; }
    
    .modal-feature-nav { 
        padding: 10px 20px;
        gap: 15px; 
        border-top: 1px solid var(--border);
        background: var(--card-bg);
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        overflow-x: auto;
        display: flex;
    }

    .modal-nav-item { 
        min-width: 75px; 
        flex: 0 0 auto;
    }
}

/* LANDSCAPE FIX FOR MOBILE NAVBAR */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .nav-right {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        z-index: 1050;
        padding: 0;
        margin: 0;
        display: none; 
        justify-content: center;
        align-items: center;
        flex-direction: row; 
        gap: 40px;
        transform: none;
        opacity: 0;
        visibility: hidden;
    }
    
    .nav-right.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    .nav-right a {
        width: auto; 
        min-width: 180px;
        padding: 15px 30px;
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle { display: none; }
}

/* --- LANDSCAPE FIX FOR MODAL --- */
@media (max-height: 500px) and (orientation: landscape) {
    .modal-card {
        height: 96vh;
        max-height: 96vh;
        width: 98vw;
        padding-top: 0;
        flex-direction: column;
    }

    .modal-close {
        top: 5px;
        right: 5px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 8px; 
    }

    .modal-body {
        display: flex;
        flex-direction: row; 
        overflow-y: hidden;
    }

    .modal-image-container {
        flex: 1.2;
        height: 100%;
        max-height: 100%;
        padding: 10px;
    }

    .modal-image {
        max-height: 100%;
        width: auto;
    }

    .modal-text {
        flex: 1;
        overflow-y: auto;
        padding: 20px;
        border-top: none;
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 60px; 
    }

    .modal-feature-nav {
        padding: 5px 10px;
        background: var(--card-bg);
        border-top: none;
        border-bottom: 1px solid var(--border);
        justify-content: center; /* FIXED: Centered the items */
        overflow-x: hidden; /* FIXED: Prevents unnecessary scrolling */
    }

    .modal-nav-item {
        min-width: 60px;
        padding: 4px;
    }
}