/* =========================================================================
   VDPL Technologies Ecosystem v2.0
   Design: Luminous Engineering Blueprint (Light Mode)
   ========================================================================= */

/* --- HERO SECTION (LUMINOUS REFACTOR) --- */
.tech-hero {
    position: relative;
    padding: calc(var(--header-height) + 120px) 0 100px;
    background: #FFFFFF;
    overflow: hidden;
    color: var(--saas-text-body);
}

.tech-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    z-index: 20;
}

.tech-hero__node-sep {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    z-index: 30;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.tech-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.tech-hero__mesh {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    filter: blur(140px);
}

.tech-hero__blueprint-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(15, 17, 26, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 17, 26, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at center, black, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 90%);
    pointer-events: none;
    z-index: 2;
}

.tech-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tech-hero__title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--saas-text-headline);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.text-gradient-tech {
    background: linear-gradient(135deg, var(--color-primary) 0%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tech-hero__subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--saas-text-body);
    max-width: 640px;
    margin-bottom: 48px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* --- HERO BUTTONS (REFINED FOR LIGHT) --- */
.btn-primary.btn--glow {
    background: var(--gradient-primary);
    border: none;
    color: #FFFFFF;
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9375rem;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
    transition: all 0.4s var(--saas-ease);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.btn-primary.btn--glow:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.4);
}

.btn--glass {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--saas-text-headline);
    padding: 18px 36px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.4s var(--saas-ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.btn--glass:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* --- TECHNOLOGY CATEGORIES (LUMINOUS REFACTOR) --- */
.tech-stack-section {
    padding: 120px 0;
    background: #FFFFFF;
}

.tech-stack-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 80px;
}

.tech-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.tech-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.tech-nav__link {
    padding: 14px 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--saas-text-body);
    opacity: 0.6;
    border-radius: 16px;
    transition: all 0.3s var(--saas-ease);
    text-decoration: none;
}

.tech-nav__link:hover {
    opacity: 1;
    color: var(--color-primary);
    background: rgba(99, 102, 241, 0.04);
}

.tech-nav__link.active {
    background: var(--color-primary);
    color: #FFFFFF;
    opacity: 1;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

/* --- TECH GRID & ITEMS (LUMINOUS BENTO) --- */
.tech-category {
    margin-bottom: 120px;
}

.tech-category__header {
    margin-bottom: 48px;
}

.tech-category__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--saas-text-headline);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.tech-category__desc {
    font-size: 1.125rem;
    color: var(--saas-text-body);
    opacity: 0.7;
    max-width: 640px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.tech-item {
    position: relative;
    padding: 40px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 32px;
    transition: all 0.5s var(--saas-ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 40px 80px rgba(99, 102, 241, 0.08);
}

.tech-item__glow {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    filter: blur(50px);
    opacity: 0.1;
    transition: opacity 0.5s ease;
}

.tech-item:hover .tech-item__glow {
    opacity: 0.3;
}

.tech-item__header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
}

.tech-item__icon-wrapper {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.tech-item:hover .tech-item__icon-wrapper {
    transform: scale(1.1);
    border-color: currentColor;
}

.tech-item__name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--saas-text-headline);
    margin-bottom: 4px;
}

.tech-item__version {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1;
}

.tech-item__desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--saas-text-body);
    opacity: 0.8;
    margin-bottom: 32px;
    flex-grow: 1;
}

.tech-item__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.footer-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--saas-text-headline);
    opacity: 0.4;
    transition: all 0.3s ease;
}

.tech-item:hover .footer-link {
    opacity: 1;
    color: var(--color-primary);
}

.footer-arrow {
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--saas-ease);
}

.tech-item:hover .footer-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --- INFRASTRUCTURE DASHBOARD (LUMINOUS REFACTOR) --- */
.tech-scale-section {
    padding: 120px 0;
    background: #F8F9FA;
    position: relative;
    overflow: hidden;
}

.tech-scale-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.tech-scale__visual {
    position: relative;
    height: 520px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.tech-scale__grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

.tech-scale__title {
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--saas-text-headline);
}

.tech-scale__desc {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--saas-text-body);
    opacity: 0.8;
    margin-bottom: 48px;
}

.tech-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tech-stat-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 32px;
    border-radius: 24px;
    transition: all 0.4s var(--saas-ease);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.tech-stat-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.08);
}

.tech-stat-card__num {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.tech-stat-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--saas-text-body);
    opacity: 0.6;
}

/* --- INFRA NODES (LUMINOUS) --- */
.infra-node {
    position: absolute;
    width: 140px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    z-index: 10;
    animation: infraFloat 6s ease-in-out infinite;
}

.infra-node__status { display: flex; align-items: center; gap: 8px; color: #10B981; font-size: 0.7rem; font-weight: 600; }
.infra-pulse { width: 8px; height: 8px; background: #10B981; border-radius: 50%; box-shadow: 0 0 10px #10B981; }
.infra-node__data { font-family: 'Inter', monospace; font-size: 0.65rem; color: var(--saas-text-body); opacity: 0.6; margin-top: 4px; }

/* --- FINAL CTA BANNER --- */
.tech-cta-section {
    padding: 120px 0 160px;
    background: #FFFFFF;
}

.tech-cta-banner {
    position: relative;
    padding: 100px 80px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 48px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.03);
}

.tech-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.tech-cta-banner__title {
    font-size: 36px;
    font-weight: 600;
    color: var(--saas-text-headline);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.tech-cta-banner__subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--saas-text-body);
    opacity: 0.8;
    max-width: 640px;
    margin: 0 auto 48px;
}

@media (max-width: 1024px) {
    .tech-hero {
        padding: calc(var(--header-height) + 40px) 0 60px !important;
        text-align: center;
    }
    .tech-hero__title {
        font-size: 1.5rem !important;
        line-height: 1.25 !important;
    }
    .tech-hero__subtitle {
        font-size: 0.9375rem !important;
        margin-bottom: 32px !important;
    }
    .tech-hero__actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }
    .tech-hero__actions .btn {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
    }

    .tech-stack-section {
        padding: 60px 0 !important;
    }
    .tech-stack-layout { 
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .tech-sidebar { display: none !important; }
    
    .tech-category {
        margin-bottom: 60px !important;
    }
    .tech-category__title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }
    .tech-category__desc {
        font-size: 0.9375rem !important;
    }

    .tech-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px !important;
    }
    .tech-item {
        padding: 32px 24px !important;
    }
    .tech-item__name {
        font-size: 1.125rem !important;
    }

    .tech-scale-section {
        padding: 60px 0 !important;
    }
    .tech-scale-layout { 
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .tech-scale__visual {
        height: 320px !important;
    }
    .tech-scale__title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }
    .tech-scale__desc {
        font-size: 0.9375rem !important;
        margin-bottom: 32px !important;
    }

    .tech-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .tech-cta-section {
        padding: 60px 0 100px !important;
    }
    .tech-cta-banner {
        padding: 60px 24px !important;
        border-radius: 24px !important;
    }
    .tech-cta-banner__title {
        font-size: 1.4rem !important;
        line-height: 1.25 !important;
    }
    .tech-cta-banner__subtitle {
        font-size: 0.9375rem !important;
    }
    .tech-cta-banner__actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        align-items: center !important;
    }
    .tech-cta-banner__actions .btn {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
    }
}