/* ---- PURPLE ACCENT THEME ---- */
:root {
    --blue: #a78bfa;
    --blue-bright: #c084fc;
    --blue-glow: rgba(192, 132, 252, 0.45);
    --blue-deep: #7c3aed;
    --border-glow: rgba(167, 139, 250, 0.2);
}

/* ---- HERO AMBIENT (purple) ---- */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 900px;
    background: radial-gradient(ellipse 55% 45% at 40% 30%, rgba(139, 92, 246, 0.13) 0%, transparent 100%),
    radial-gradient(ellipse 40% 35% at 65% 70%, rgba(192, 132, 252, 0.08) 0%, transparent 100%);
    filter: blur(36px);
    opacity: 1;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(167, 139, 250, 0.16) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, black 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 15%, black 30%, transparent 85%);
}

@keyframes gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero h1 .flow {
    background: linear-gradient(128deg, #a78bfa, #c084fc, #e879f9, #c084fc, #a78bfa);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: gradient-shift 6s ease-in-out infinite;
}

.hero-badge {
    border-color: rgba(139, 92, 246, 0.22);
    background: rgba(139, 92, 246, 0.06);
    animation: fadeUp 0.55s ease both;
}

.hero h1 {
    animation: fadeUp 0.55s 0.08s ease both;
}

.hero .subtitle {
    animation: fadeUp 0.55s 0.15s ease both;
}

.hero-buttons {
    animation: fadeUp 0.55s 0.22s ease both;
}

.install-bar {
    animation: fadeUp 0.55s 0.29s ease both;
}

.install-bar--hero {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-color: rgba(167, 139, 250, 0.18);
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.06), 0 4px 24px rgba(0,0,0,0.35);
}

.install-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1.25rem;
    background: rgba(255,255,255,0.025);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 1rem;
}

.install-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.docker-req-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #60c8f5;
    background: rgba(36, 150, 237, 0.1);
    border: 1px solid rgba(36, 150, 237, 0.22);
    border-radius: 20px;
    padding: 0.2rem 0.65rem 0.2rem 0.5rem;
    white-space: nowrap;
}

.install-bar-cmd {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
}

.install-bar-cmd pre { flex: 1; margin: 0; overflow-x: auto; min-width: 0; }

/* Fix hardcoded rgba blue values in home.css */
.step-number {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.feature-icon {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.15);
}

/* ---- OS SELECTOR TABS ---- */
.install-os-tabs {
    display: flex;
    gap: 0.2rem;
    background: rgba(0,0,0,0.15);
    border: 1px solid rgba(167, 139, 250, 0.12);
    border-radius: 6px;
    padding: 0.15rem;
}

.install-os-tab {
    padding: 0.18rem 0.7rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.install-os-tab.active {
    background: rgba(139, 92, 246, 0.18);
    color: #a78bfa;
}

.install-os-tab:hover:not(.active) {
    color: #cbd5e1;
    background: rgba(255,255,255,0.04);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---- QUICKSTART TABS ---- */
.qs-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(167, 139, 250, 0.12);
    border-radius: 10px;
    padding: 0.25rem;
    width: fit-content;
}

.qs-tab {
    padding: 0.5rem 1.4rem;
    border-radius: 7px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    transition: all 0.18s ease;
}

.qs-tab.active {
    background: rgba(139, 92, 246, 0.14);
    color: #a78bfa;
    border-color: rgba(139, 92, 246, 0.25);
}

.qs-tab:hover:not(.active) {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

.qs-panel.hidden {
    display: none;
}

/* ---- DASHBOARD SCREENSHOTS ---- */
.qs-screenshot {
    margin-top: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.qs-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.qs-screenshot figcaption {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
}

.qs-screenshots-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.25rem;
}

.qs-screenshots-pair .qs-screenshot {
    margin-top: 0;
}

@media (max-width: 700px) {
    .qs-screenshots-pair {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .install-bar-header {
        flex-wrap: wrap;
        gap: 0.4rem 0.5rem;
    }

    .install-bar-label {
        flex: 0 0 100%;
    }

    .install-os-tabs {
        flex-shrink: 0;
    }

    .install-os-tab {
        padding: 0.18rem 0.4rem;
        font-size: 0.66rem;
    }

    .docker-req-badge {
        font-size: 0.65rem;
        padding: 0.18rem 0.5rem 0.18rem 0.4rem;
    }
}

/* ---- STEP SLIDER ---- */
.qs-slider {
    margin-top: 1.25rem;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.15);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.qs-slide {
    display: none;
}

.qs-slide.active {
    display: block;
}

.qs-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.qs-slide-caption {
    padding: 0.75rem 1.1rem 0.9rem;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    min-height: 6rem;
}

.qs-slide-caption strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 0.2rem;
}

.qs-slide-caption p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.qs-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-top: 1px solid rgba(167, 139, 250, 0.1);
    background: rgba(255, 255, 255, 0.01);
}

.qs-slider-btn {
    background: none;
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 6px;
    color: #a78bfa;
    cursor: pointer;
    padding: 0.28rem 0.8rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.15s ease;
}

.qs-slider-btn:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.35);
}

.qs-slider-btn:disabled {
    opacity: 0.28;
    cursor: default;
}

.qs-slider-dots {
    display: flex;
    gap: 0.45rem;
    align-items: center;
}

.qs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.22);
    cursor: pointer;
    transition: background 0.15s ease;
}

.qs-dot.active {
    background: #a78bfa;
    width: 18px;
    border-radius: 3px;
}

.qs-col-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #a78bfa;
    margin-bottom: 0.6rem;
}

/* ---- IMAGE MODAL ---- */
.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 4.5rem;
    cursor: zoom-out;
}

.img-modal.open {
    display: flex;
}

.img-modal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: min(88vw, 1100px);
    cursor: default;
    animation: modalIn 0.18s ease both;
}

.img-modal-inner img {
    max-width: 100%;
    max-height: 76vh;
    border-radius: 10px;
    border: 1px solid rgba(167, 139, 250, 0.2);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    display: block;
}

.img-modal-caption {
    margin-top: 0.9rem;
    text-align: center;
    max-width: 560px;
}

.img-modal-caption strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.25rem;
}

.img-modal-caption p {
    font-size: 0.83rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.55;
}

.img-modal-counter {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.5rem;
}

.img-modal-close {
    position: fixed;
    top: 1.1rem;
    right: 1.3rem;
    background: rgba(30, 20, 50, 0.85);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 8px;
    color: #a78bfa;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    transition: background 0.15s ease;
    z-index: 1001;
}

.img-modal-close:hover {
    background: rgba(139, 92, 246, 0.2);
}

.img-modal-nav {
    flex-shrink: 0;
    background: rgba(30, 20, 50, 0.75);
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 10px;
    color: #a78bfa;
    font-size: 1.3rem;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
    z-index: 1001;
}

.img-modal-nav:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
}

.img-modal-nav:disabled {
    opacity: 0.2;
    cursor: default;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .img-modal {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        align-content: center;
        padding: 3.5rem 0.75rem 1.5rem;
        gap: 0;
    }

    .img-modal-inner {
        order: 1;
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }

    .img-modal-inner img {
        max-height: 70vh;
    }

    .img-modal-nav {
        order: 2;
        flex: 0 0 auto;
        position: static;
        transform: none;
    }

    #imgModalNext {
        margin-left: auto;
    }
}

.qs-slide img,
.qs-screenshot img {
    cursor: zoom-in;
}

/* ---- IMAGE LOADER ---- */
.img-wrap {
    position: relative;
    overflow: hidden;
}

.img-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.img-spinner::after {
    content: '';
    width: 26px;
    height: 26px;
    border: 2px solid rgba(167, 139, 250, 0.15);
    border-top-color: #a78bfa;
    border-radius: 50%;
    animation: imgSpin 0.75s linear infinite;
}

@keyframes imgSpin {
    to { transform: rotate(360deg); }
}

.img-wrap.img-loaded .img-spinner {
    opacity: 0;
}
