.hero-carousel {
    margin-top: 72px;
    background: linear-gradient(180deg, #f0f4ff 0%, #f5f7ff 60%, #fafbff 100%);
    position: relative;
    overflow: hidden;
    height: 436px;
}

.slide-bg-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 0;
}

.slide-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide-bg.active {
    opacity: 0.55;
}

.slide-overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(245, 247, 255, 0.88) 0%, rgba(245, 247, 255, 0.6) 40%, rgba(245, 247, 255, 0.1) 100%);
}

@media screen and (min-width: 1400px) {
    .hero-carousel { height: 461px; }
}

@media screen and (min-width: 1600px) {
    .hero-carousel { height: 500px; }
}

.hero-inner {
    display: flex;
    height: 100%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.carousel-controller {
    width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 28px;
    position: relative;
    z-index: 2;
}

.carousel-controller::before {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background: rgba(200, 208, 219, 0.8);
}

.controller-item {
    position: relative;
    padding: 16px 16px 16px 0;
    cursor: pointer;
    text-align: right;
    transition: all 0.3s ease;
}

.controller-item:hover .controller-text {
    color: var(--primary-500);
}

.controller-item.active .controller-text {
    color: var(--primary-500);
    font-weight: 500;
}

.controller-item.active::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-500);
    z-index: 1;
}

.controller-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
    color: white;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.controller-text {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.controller-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-500);
    animation: progress linear;
    transform-origin: left;
}

@keyframes progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.carousel-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(20px) translateZ(0);
    pointer-events: none;
}

.slide-content.active {
    opacity: 1;
    transform: translateX(0) translateZ(0);
    pointer-events: auto;
    will-change: transform, opacity;
}

.slide-content.leaving {
    opacity: 0;
    transform: translateX(-20px) translateZ(0);
}

.slide-info {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding-left: 48px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-tag {
    display: inline-block;
    padding: 3px 12px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-xs);
    margin-bottom: 16px;
}

.slide-title {
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.slide-title .gradient-text {
    background: linear-gradient(90deg, var(--primary-500), #606eff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.slide-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 32px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--primary-500), #4656ff);
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.slide-cta:hover {
    box-shadow: 0 6px 20px rgba(36, 104, 242, 0.35);
    transform: translateY(-2px);
}

.slide-cta:hover .cta-icon {
    transform: translateX(4px);
}

.cta-text {
    margin-right: 8px;
}

.cta-icon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.cta-icon svg {
    width: 14px;
    height: 14px;
}

@media screen and (max-width: 768px) {
    .hero-carousel {
        height: auto;
        padding: 32px 0;
    }

    .hero-inner {
        flex-direction: column;
    }

    .carousel-controller {
        width: 100%;
        flex-direction: row;
        padding: 0;
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 4px;
    }

    .carousel-controller::-webkit-scrollbar {
        display: none;
    }

    .carousel-controller::before {
        display: none;
    }

    .controller-item {
        padding: 8px 12px;
        text-align: center;
        flex-shrink: 0;
        min-width: fit-content;
    }

    .controller-item.active::after {
        bottom: -2px;
        top: auto;
        width: 100%;
        height: 2px;
        right: auto;
    }

    .controller-tag {
        margin-bottom: 4px;
        font-size: 11px;
        padding: 2px 6px;
    }

    .controller-text {
        font-size: 12px;
        white-space: nowrap;
    }

    .slide-bg.active {
        opacity: 0.35;
    }

    .slide-overlay {
        background: linear-gradient(180deg, rgba(245, 247, 255, 0.85) 0%, rgba(245, 247, 255, 0.5) 100%);
    }

    .slide-info {
        padding-left: 0;
    }

    .slide-title {
        font-size: 28px;
        line-height: 36px;
    }

    .slide-cta {
        padding: 8px 20px;
        font-size: 14px;
    }
}
