/* ============================================
   SOFTWARE SOLUTIONS SLIDER
   ============================================ */

.sw {
    padding: 96px 0;
    background: var(--color-bg, #fff);
    font-family: var(--font-body, 'Inter', sans-serif);
}

.sw-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.sw-head {
    max-width: 720px;
    margin-bottom: 40px;
}

.sw-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent, #0067FF);
    margin-bottom: 12px;
}

.sw-title {
    font-size: clamp(28px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-heading, #0F172A);
    margin: 0 0 14px;
}

.sw-lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-body, #364151);
    margin: 0;
}

/* Slider stage */
.sw-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 2.4 / 1;
    background: var(--color-bg-muted, #F8FAFC);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
    .sw-stage { aspect-ratio: 1.4 / 1; }
}
@media (max-width: 600px) {
    .sw-stage { aspect-ratio: 1 / 1.1; border-radius: 14px; }
}

.sw-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.sw-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1), visibility 600ms;
    background-color: #0F172A;
    background-size: cover;
    background-position: center;
}
.sw-slide.is-active { opacity: 1; visibility: visible; }

.sw-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Desktop: dark-to-transparent left → right (matches left-aligned content) */
    background: linear-gradient(
        90deg,
        rgba(8, 12, 24, 0.92) 0%,
        rgba(8, 12, 24, 0.78) 25%,
        rgba(8, 12, 24, 0.45) 55%,
        rgba(8, 12, 24, 0.12) 80%,
        transparent 100%
    );
    pointer-events: none;
}

@media (max-width: 600px) {
    .sw-slide::after {
        /* Mobile: radial spotlight — darker at center where content sits, soft edges */
        background:
            radial-gradient(
                ellipse 90% 70% at center,
                rgba(8, 12, 24, 0.82) 0%,
                rgba(8, 12, 24, 0.62) 50%,
                rgba(8, 12, 24, 0.25) 90%,
                rgba(8, 12, 24, 0.1) 100%
            );
    }
}

.sw-slide-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding: 48px 56px;
}

.sw-card {
    max-width: 480px;
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1) 200ms, transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 200ms;
}

.sw-slide.is-active .sw-card {
    opacity: 1;
    transform: translateY(0);
}

.sw-card-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sw-card-title {
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    color: #fff;
}

.sw-card-desc {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 24px;
}

.sw-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #fff;
    color: var(--color-heading, #0F172A);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 200ms ease, background 200ms ease;
}
.sw-card-cta:hover {
    transform: translateY(-2px);
    background: var(--color-accent, #0067FF);
    color: #fff;
}

/* Controls */
.sw-controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    border-radius: 50%;
    color: var(--color-heading, #0F172A);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.sw-arrow:hover {
    background: var(--color-accent, #0067FF);
    color: #fff;
    transform: translateY(-2px);
}

/* Dots */
.sw-dots {
    position: absolute;
    bottom: 36px;
    left: 56px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.sw-dot {
    width: 28px;
    height: 4px;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: width 350ms ease;
}
.sw-dot.is-active { width: 56px; background: rgba(255, 255, 255, 0.25); }

.sw-dot-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: #fff;
    border-radius: inherit;
}
.sw-dot.is-active .sw-dot-fill {
    width: 100%;
    transition: width var(--sw-interval, 6500ms) linear;
}
.sw[data-autoplay="0"] .sw-dot.is-active .sw-dot-fill { width: 100%; transition: none; }

/* Empty state (when no slides yet) */
.sw-empty {
    padding: 64px 32px;
    text-align: center;
    color: #9CA3AF;
    border: 1px dashed var(--color-border, #E5E7EB);
    border-radius: 16px;
    background: var(--color-bg-muted, #F8FAFC);
}
.sw-empty h4 { color: var(--color-heading, #0F172A); margin: 0 0 8px; font-size: 18px; }
.sw-empty p { margin: 0; font-size: 14px; }
.sw-empty code { background: #fff; padding: 2px 6px; border-radius: 4px; font-size: 13px; color: var(--color-accent, #0067FF); }

/* Responsive */
@media (max-width: 900px) {
    .sw { padding: 72px 0; }
    .sw-slide-inner { padding: 32px 32px; }
    .sw-controls { bottom: 16px; right: 16px; }
    .sw-dots { left: 32px; bottom: 28px; }
}

@media (max-width: 600px) {
    .sw { padding: 56px 0; }
    .sw-container { padding: 0 16px; }

    /* Centered content */
    .sw-slide-inner {
        padding: 32px 24px 60px;
        align-items: flex-end;
        justify-content: center;
        text-align: center;
    }
    .sw-card {
        max-width: 100%;
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .sw-card-kicker { padding: 5px 12px; font-size: 11px; }
    .sw-card-title { font-size: clamp(22px, 6.5vw, 30px); }
    .sw-card-desc { font-size: 14px; }
    .sw-card-cta { margin: 0 auto; }

    /* Tiny round dots — high specificity to override base styles */
    .sw .sw-dots {
        left: 50%;
        bottom: 16px;
        transform: translateX(-50%);
        gap: 8px;
    }
    .sw .sw-dot {
        width: 6px !important;
        height: 6px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.4);
        padding: 0;
        transition: background 200ms ease, transform 200ms ease;
    }
    .sw .sw-dot.is-active {
        width: 6px !important;
        background: #fff;
        transform: scale(1.4);
    }
    .sw .sw-dot-fill { display: none !important; }

    /* Simple small arrows */
    .sw-controls {
        bottom: 12px;
        right: 12px;
        gap: 8px;
    }
    .sw-arrow {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: #fff;
        box-shadow: none;
    }
    .sw-arrow svg { width: 16px; height: 16px; }
    .sw-arrow:hover,
    .sw-arrow:focus {
        background: rgba(255, 255, 255, 0.32);
        color: #fff;
        transform: none;
    }
}
