/* Features Tabs Section (2nd) - Alternate bg with hero/clients */
.features-tabs-section {
    padding: 64px 0 30px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.features-tabs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.features-tabs-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.features-tabs-title {
    font-size: var(--h2-size);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-4);
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.features-tabs-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
    font-weight: var(--font-weight-normal);
}

.features-tabs-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Tabs - separate boxes, no underline */
.features-tabs-nav-wrapper {
    padding: 0;
    margin-bottom: 28px;
    background: transparent;
}

.features-tabs-nav {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    width: 100%;
}

.features-tab-btn {
    flex: 1;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 20px 20px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.features-tab-btn:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.04);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.1);
}

.features-tab-btn.active {
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(168, 85, 247, 0.08);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.12);
}

.tab-btn-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
    transition: color 0.25s ease;
}

.features-tab-btn.active .tab-btn-text {
    color: #a855f7;
}

/* Progress Bar - inside each tab box, inset from edges */
.tab-progress-bar {
    position: absolute;
    bottom: 0px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: rgba(168, 85, 247, 0.2);
    overflow: hidden;
    border-radius: 4px;
}

.tab-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #a855f7, #667eea);
    transition: width 0.1s linear;
}

.features-tab-btn.active .tab-progress-fill {
    animation: progressFill 30s linear forwards;
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Content Area - left content, right image */
.features-tabs-content-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0;
    align-items: stretch;
    min-height: 480px;
    background: transparent;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .features-tabs-content-wrapper {
        align-items: start;
    }

    .features-tabs-content {
        align-items: flex-start;
    }
}

/* Left Side - Content */
.features-tabs-content {
    padding: 0 32px 0 0;
    display: flex;
    align-items: flex-start;
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.features-tab-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
    width: 100%;
    margin-bottom: 0;
    padding-bottom: 0;
}

.features-tab-panel.active {
    display: block;
}

.tab-panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.tab-panel-description {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.tab-panel-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0 0 24px 0;
}

.tab-panel-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-color);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.tab-panel-features li:last-child {
    border-bottom: none;
}

.tab-panel-features li:hover {
    padding-left: 4px;
    color: #a855f7;
}

.tab-panel-features li i {
    color: #10b981;
    font-size: 14px;
    flex-shrink: 0;
}

/* CTA Button - simple */
.tab-panel-cta {
    margin-top: 8px;
    margin-bottom: 0;
}

.tab-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #a855f7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
    border: none;
    cursor: pointer;
}

.tab-cta-button:hover {
    background: #9333ea;
    transform: translateY(-1px);
}

.tab-cta-button:active {
    transform: translateY(0);
}

.tab-cta-button i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.tab-cta-button:hover i {
    transform: translateX(3px);
}

/* Right Side - Image Slider */
.features-tabs-visual {
    position: relative;
    background: transparent;
    overflow: hidden;
    width: 100%;
    min-height: 440px;
    height: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    align-self: stretch;
    box-sizing: border-box;
}

.features-image-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.features-image-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.features-image-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    box-sizing: border-box;
}

.features-image-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.features-image-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.features-image-slide.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
}

.features-image {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    vertical-align: middle;
    font-size: 0;
    line-height: 0;
}

.features-image-slide.active .features-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Images fit fully - no cropping */
.features-image-dashboard,
.features-image-services,
.features-image-payments,
.features-image-settings,
.features-image-bookings {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Responsive Design */
@media (max-width: 1200px) {
    .features-tabs-container {
        max-width: 100%;
        padding: 0 24px;
    }

    .features-tabs-content {
        padding: 0 28px 0 0;
    }
}

@media (max-width: 1024px) {
    .features-tabs-section {
        padding: 56px 0 48px;
    }

    .features-tabs-header {
        margin-bottom: 32px;
    }

    .features-tabs-container {
        padding: 0 20px;
    }

    .features-tabs-content-wrapper {
        grid-template-columns: 1fr;
        min-height: 0;
        gap: 0;
    }

    .features-tabs-visual {
        border-left: none;
        order: -1;
        height: auto;
        min-height: 360px;
        aspect-ratio: 16 / 10;
        width: 100%;
        max-width: 100%;
    }

    .features-image-container {
        position: absolute;
        inset: 0;
        height: 100%;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .features-image-slider {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-tabs-content {
        padding: 0 16px;
    }

    .features-image {
        min-height: 0;
    }

    .features-tabs-nav-wrapper {
        margin-bottom: 24px;
    }

    .features-tabs-nav {
        gap: 10px;
    }

    .features-tab-btn {
        padding: 16px 14px 24px 14px;
        min-height: 66px;
        border-radius: 10px;
    }

    .tab-progress-bar {
        bottom: 8px;
        left: 10px;
        right: 10px;
        height: 3px;
    }

    .tab-btn-text {
        font-size: 14px;
    }

    .features-tabs-title {
        font-size: 36px;
    }

    .features-tabs-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .features-tabs-section {
        padding: 48px 0 40px;
    }

    .features-tabs-header {
        margin-bottom: 28px;
        padding: 0 8px;
    }

    .features-tabs-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .features-tabs-subtitle {
        font-size: 15px;
        padding: 0 8px;
    }

    .features-tabs-container {
        padding: 0 16px;
    }

    .features-tabs-content-wrapper {
        gap: 24px;
    }

    .features-tabs-nav {
        gap: 10px;
        justify-content: center;
    }

    .features-tab-btn {
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
        max-width: calc(50% - 5px);
        padding: 14px 10px 22px 10px;
        min-height: 62px;
        border-radius: 10px;
    }

    .tab-progress-bar {
        bottom: 8px;
        left: 10px;
        right: 10px;
        height: 3px;
    }

    .tab-btn-text {
        font-size: 13px;
    }

    .features-tabs-visual {
        margin-bottom: 0;
        height: auto;
        min-height: 300px;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    .features-tabs-content {
        padding: 0 8px;
    }

    .features-image {
        min-height: 0;
    }

    .tab-panel-title {
        font-size: 1.25rem;
    }

    .tab-panel-description {
        font-size: 14px;
    }

    .tab-panel-features li {
        font-size: 13px;
    }

    .features-image-slide {
        padding: 0;
    }

    .features-image-container {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image-slider {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image,
    .features-image-slide.active .features-image,
    .features-image-dashboard,
    .features-image-services,
    .features-image-payments,
    .features-image-settings,
    .features-image-bookings {
        object-fit: contain;
        object-position: center;
        max-width: 100%;
        max-height: 100%;
    }

    .tab-cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .features-tabs-section {
        padding: 40px 0 32px;
    }

    .features-tabs-header {
        margin-bottom: 20px;
        padding: 0 4px;
    }

    .features-tabs-title {
        font-size: 22px;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .features-tabs-subtitle {
        font-size: 14px;
        padding: 0 4px;
        line-height: 1.5;
    }

    .features-tabs-container {
        padding: 0 12px;
    }

    .features-tabs-nav-wrapper {
        margin-bottom: 16px;
    }

    .features-tabs-nav {
        gap: 8px;
        justify-content: center;
    }

    .features-tab-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        max-width: calc(50% - 4px);
        padding: 12px 8px 18px 8px;
        min-height: 56px;
        border-radius: 10px;
    }

    .tab-progress-bar {
        bottom: 6px;
        left: 8px;
        right: 8px;
        height: 3px;
    }

    .tab-btn-text {
        font-size: 12px;
    }

    .features-tabs-visual {
        height: auto;
        min-height: 260px;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    .features-tabs-content {
        padding: 0 4px;
    }

    .features-image {
        min-height: 0;
    }

    .tab-panel-title {
        font-size: 1.125rem;
    }

    .tab-panel-description {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .tab-panel-features li {
        font-size: 13px;
        padding: 8px 0;
    }

    .features-image-slide {
        padding: 0;
    }

    .features-image-container {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image-slider {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image,
    .features-image-slide.active .features-image,
    .features-image-dashboard,
    .features-image-services,
    .features-image-payments,
    .features-image-settings,
    .features-image-bookings {
        object-fit: contain;
        object-position: center;
        max-width: 100%;
        max-height: 100%;
    }

    .tab-cta-button {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .features-tabs-visual {
        height: auto;
        min-height: 260px;
        aspect-ratio: 2 / 1;
        max-width: 100%;
    }

    .features-image-container {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image-slider {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-tabs-content {
        padding: 0 16px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .features-tabs-section {
        padding: 36px 0 28px;
    }

    .features-tabs-header {
        margin-bottom: 14px;
        padding: 0 4px;
    }

    .features-tabs-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .features-tabs-subtitle {
        font-size: 13px;
        padding: 0 4px;
    }

    .features-tabs-container {
        padding: 0 10px;
    }

    .features-tabs-nav-wrapper {
        margin-bottom: 12px;
    }

    .features-tabs-nav {
        gap: 6px;
    }

    .features-tab-btn {
        flex: 1 1 calc(50% - 3px);
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        padding: 10px 6px 16px 6px;
        min-height: 52px;
    }

    .tab-btn-text {
        font-size: 11px;
    }

    .features-tabs-visual {
        height: auto;
        min-height: 200px;
        max-width: 100%;
        aspect-ratio: 16 / 10;
    }

    .features-image-container {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-image-slider {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .features-tabs-content {
        padding: 0 4px;
    }

    .tab-panel-title {
        font-size: 1.125rem;
    }

    .tab-panel-description {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .tab-panel-features li {
        font-size: 12px;
        padding: 8px 0;
    }

    .tab-cta-button {
        padding: 12px 16px;
        font-size: 13px;
    }
}