/* =====================================================
   product.css — App Screenshot Showcase Section
   ===================================================== */
.product-section {
    padding: 100px 0;
    background: var(--bg-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.product-section .section-sub { max-width: 560px; margin-bottom: 56px; }

/* ---- Slider container ---- */
.screenshot-slider {
    position: relative;
    width: 100%;
}

/* Window chrome frame */
.screenshot-frame {
    position: relative;
    border: 1px solid var(--border-mid);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(63,185,80,0.08),
        0 40px 80px -20px rgba(0,0,0,0.8),
        0 0 60px rgba(63,185,80,0.04);
    background: #0d1117;
}

/* Window titlebar */
.frame-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: #010409;
    border-bottom: 1px solid var(--border);
}
.frame-dots {
    display: flex;
    gap: 6px;
}
.frame-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
}
.frame-dot.r { background: #f85149; }
.frame-dot.y { background: #e3b341; }
.frame-dot.g { background: #3fb950; }
.frame-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-3);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.frame-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: var(--green);
    font-weight: 600;
}
.frame-status-dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--green);
}

/* Slides */
.slides-wrapper {
    position: relative;
    overflow: hidden;
    height: 540px;
}

.slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transform: translateX(30px);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

/* ---- Controls ---- */
.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--border-mid);
    cursor: pointer;
    transition: var(--t);
    border: none;
}
.slider-dot.active {
    width: 24px;
    border-radius: 3px;
    background: var(--green);
}
.slider-dot:hover:not(.active) { background: var(--text-3); }

.slider-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 1px solid var(--border-mid);
    background: var(--bg-card);
    color: var(--text-2);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--t);
}
.slider-btn:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow2);
}

/* ---- Slide captions ---- */
.slide-captions {
    display: flex;
    gap: 20px;
    margin-top: 32px;
}

.slide-caption {
    flex: 1;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--t);
    opacity: 0.5;
}

.slide-caption.active {
    opacity: 1;
    border-color: var(--green);
    background: rgba(63,185,80,0.03);
}

.slide-caption:hover:not(.active) {
    opacity: 0.8;
    border-color: var(--border-mid);
}

.caption-number {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
}

.caption-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-1);
    margin-bottom: 4px;
}

.caption-desc {
    font-size: 0.82rem;
    color: var(--text-2);
    line-height: 1.5;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .slides-wrapper { height: 280px; }
    .slide-captions { flex-direction: column; }
    .product-section { padding: 64px 0; }
}
