/* DM Sans - Local Font Face */

/* Latin Extended - Normal */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin - Normal */
@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended - Italic */
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Latin - Italic */
@font-face {
    font-family: 'DM Sans';
    font-style: italic;
    font-weight: 100 1000;
    font-display: swap;
    src: url('../fonts/DMSans-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

span.ai-badge {display: inline-flex; align-items: center; justify-content: center; padding: 1px 6px; background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); color: #fff; font-weight: 700; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; font-size: 11px;}

.compare-wrapper {
    display: flex;
    justify-content: center;
    padding-bottom: 80px;
}

.compare-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    border-radius: 16px;
    -webkit-user-select: none;
    user-select: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
    height: 680px;
}

.compare-img {
    width: 100%;
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
    height: auto;
    object-fit: cover;
    position: relative;
    top: 7px;
    left: 2px;
}

.compare-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
}

.compare-overlay .compare-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: none;
}

.compare-slider {
    position: absolute;
    top: 0;
    left: 70%;
    width: 3px;
    height: 100%;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    transform: translateX(-50%);
    z-index: 20;
    transition: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 3px rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 28px rgba(0,0,0,0.3), 0 0 0 4px rgba(255,255,255,0.4);
}

.slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(0.95);
}

.compare-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 16px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.compare-container:hover .compare-label {
    opacity: 1;
}

.compare-label-left {
    left: 20px;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.compare-label-right {
    right: 20px;
    background: rgba(0,0,0,0.15);
    color: rgba(255,255,255,0.9);
}

.workflow-img {
    object-position: top;
}

.feature-item a {
    display: flex;
    gap: 20px;
    text-decoration: none;
    color: #222;
}

@media (max-width: 1350px) {
    .compare-container {
        max-width: 90%;
    }
    .compare-img {
        height: auto;
    }
}

@media (max-width: 768px) {
    .compare-wrapper {
        display: none;
    }
}

/* Language Switcher */
.top-banner {
    position: relative;
}

.top-banner-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.top-banner-content .text {
    display: flex;
    gap: 5px;
}

.lang-switcher .lang-select {
    pointer-events: auto;
    float: right;
}

.lang-select {
    position: relative;
}

.lang-select-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-select-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
}

.lang-flag {
    width: 20px;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

.lang-code {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
}

.lang-arrow {
    color: #fff;
    transition: transform 0.2s ease;
    width: 14px;
    height: 14px;
}

.lang-select.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-select.open .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #333;
    font-size: 14px;
}

.lang-option:hover {
    background: #f5f5f5;
}

.lang-option.active {
    background: #f0f0f0;
    font-weight: 600;
}

@media (max-width: 768px) {
    .top-banner {
        flex-direction: column;
        gap: 12px;
        padding: 12px 15px;
    }
    
    .lang-switcher {
        position: static;
    }
    
    .top-banner-content {
        font-size: 13px;
        max-width: 100%;
        justify-content: center;
    }

    .top-banner-content .text {
        display:none;
    }
    
}