/* Base styles - shared across all versions */
.glass-card {
    background: rgba(4, 7, 20, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #02040a;
}
::-webkit-scrollbar-thumb {
    background: #1e1b4b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b0764;
}

/* Product cards */
.card-recommendation {
    border: 2px solid rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.2), 0 0 40px rgba(168, 85, 247, 0.1), inset 0 0 15px rgba(168, 85, 247, 0.05);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.25) 0%, rgba(109, 40, 217, 0.15) 25%, rgba(88, 28, 135, 0.1) 50%, rgba(30, 10, 60, 0.05) 75%, rgba(4, 7, 20, 0.7) 100%);
}
.card-recommendation:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.3), 0 0 60px rgba(168, 85, 247, 0.15), inset 0 0 20px rgba(168, 85, 247, 0.08);
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.35) 0%, rgba(109, 40, 217, 0.22) 25%, rgba(88, 28, 135, 0.14) 50%, rgba(30, 10, 60, 0.07) 75%, rgba(4, 7, 20, 0.7) 100%);
}

/* Product card micro-interaction (hover only after GSAP reveal completes) */
.product-card.gsap-done {
    transition: transform 0.2s ease-out;
}
.product-card.gsap-done:hover {
    transform: scale(1.01);
}

/* Ecosystem grid anchor for SVG lines */
#product-grid-container {
    position: relative;
}

/* ============================================
   Section 3 Products - Card Alignment
   ============================================ */

/* Base desktop (>=1280px): MDPI / 1366px baseline */
@media (min-width: 1280px) {
    #product-grid-container {
        align-items: stretch !important;
    }
    #product-grid-container .product-card {
        min-height: 320px !important;
        height: 100% !important;
    }
    #product-grid-container .product-card .product-img {
        height: 8rem !important;
    }
}

/* XL (>=1537px): 1536px viewport */
@media (min-width: 1537px) {
    #product-grid-container .product-card {
        min-height: auto !important;
        height: 100% !important;
    }
    #product-grid-container .product-card .product-img {
        height: 10rem !important;
    }
    #product-grid-container .product-card h3 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
}

/* 2XL (>=1920px): HiDPI baseline - full size */
@media (min-width: 1920px) {
    #product-grid-container .product-card {
        min-height: auto !important;
        height: 100% !important;
    }
    #product-grid-container .product-card .product-img {
        height: 12rem !important;
    }
    #product-grid-container .product-card h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }
}

/* ============================================
   Section 4 Benefits - Card Alignment
   ============================================ */

/* Base desktop (>=1280px): covers up through 1920px (identical rules) */
@media (min-width: 1280px) {
    #benefits-grid-container {
        align-items: stretch !important;
    }
    #benefits-grid-container > div {
        min-height: auto !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }
}
/* 1537px and 1920px blocks removed — identical to 1280px, cascade handles it */

/* ============================================
   Section 2 Stats - Proportional Scaling
   ============================================ */

/* Base desktop (>=1280px): MDPI / 1366px baseline */
@media (min-width: 1280px) {
    #stats-section .stats-grid-main {
        gap: 1.5rem !important;
    }
    #stats-section .stats-left h2 {
        font-size: 1.25rem !important;
        letter-spacing: 0.05em !important;
    }
    #stats-section .stats-left p {
        font-size: 0.875rem !important;
    }
    #stats-section .stats-grid {
        border-radius: 0.75rem !important;
    }
    #stats-section .stat-item {
        padding: 1rem 0.5rem !important;
        gap: 0.5rem !important;
    }
    #stats-section .stat-number {
        font-size: 1.25rem !important;
    }
    #stats-section .stat-label {
        font-size: 10px !important;
    }
    #stats-section .stat-icon {
        width: 4rem !important;
        height: 4rem !important;
    }
}

/* XL (>=1537px): 1536px viewport */
@media (min-width: 1537px) {
    #stats-section .stats-grid-main {
        gap: 2rem !important;
    }
    #stats-section .stats-left h2 {
        font-size: 1.5rem !important;
        letter-spacing: 0.12em !important;
    }
    #stats-section .stats-left p {
        font-size: 1rem !important;
    }
    #stats-section .stats-grid {
        border-radius: 1rem !important;
    }
    #stats-section .stat-item {
        padding: 2rem 0.75rem !important;
        gap: 0.75rem !important;
    }
    #stats-section .stat-number {
        font-size: 1.5rem !important;
    }
    #stats-section .stat-label {
        font-size: 11px !important;
    }
    #stats-section .stat-icon {
        width: 5rem !important;
        height: 5rem !important;
    }
}

/* 2XL (>=1920px): HiDPI baseline - full size */
@media (min-width: 1920px) {
    #stats-section .stats-grid-main {
        gap: 3rem !important;
    }
    #stats-section .stats-left h2 {
        font-size: 1.5rem !important;
        letter-spacing: 0.15em !important;
    }
    #stats-section .stats-left p {
        font-size: 1.125rem !important;
    }
    #stats-section .stats-grid {
        border-radius: 1.5rem !important;
    }
    #stats-section .stat-item {
        padding: 1rem 1rem !important;
        gap: 1rem !important;
    }
    #stats-section .stat-number {
        font-size: 1.875rem !important;
    }
    #stats-section .stat-label {
        font-size: 0.75rem !important;
    }
    #stats-section .stat-icon {
        width: 6rem !important;
        height: 6rem !important;
    }
}

/* ============================================
   Mobile Overrides (< 768px)
   ============================================ */
@media (max-width: 767px) {
    /* Sect 3 - Product Cards */
    #product-grid-container .product-card {
        min-height: auto !important;
        padding: 0 !important;
    }
    #product-grid-container .product-card .product-img {
        height: 8rem !important;
    }
    #product-grid-container .product-card a {
        font-size: 0.875rem !important;
        font-weight: 700 !important;
        padding: 0.75rem 1rem !important;
    }
    #product-grid-container .card-recommendation .absolute {
        left: 1rem !important;
        top: -0.75rem !important;
        padding: 0.25rem 0.75rem !important;
    }
    #product-grid-container .card-recommendation .absolute span {
        font-size: 0.625rem !important;
    }

    /* Sect 4 - Benefit Cards */
    #benefits-grid-container > div {
        min-height: auto !important;
        aspect-ratio: auto !important;
        height: auto !important;
    }
    /* Sect 4 - CTA Buttons: stack vertically on mobile */
    .cta-container {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
}

/* CTA Buttons — Premium Hover Effects */
.cta-container .group a {
    background-size: 200% 100% !important;
    background-position: 0% 0% !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    overflow: hidden;
}

.cta-container .group:hover a {
    background-position: 100% 0 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.3), 0 12px 30px rgba(0, 0, 0, 0.4) !important;
}

.cta-container .group:hover a span {
    background: rgba(5, 11, 20, 0.5) !important;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.12) !important;
}

/* Tablet CTA — gradient scale + lift */
.cta-container.max-w-xl .group > div:first-child {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-container.max-w-xl .group:hover > div:first-child {
    transform: scale(1.05);
}

.cta-container.max-w-xl .group > div:first-child + a {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-container.max-w-xl .group:hover > div:first-child + a {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3), 0 8px 20px rgba(0, 0, 0, 0.4);
    background: rgba(12, 15, 26, 0.7) !important;
}
