/* --------------------------------------------------------
   AKS Section — Combined definition + capabilities
   Visual theme: nodes connected by edges, mirroring
   the particle network used in the hero and background mesh.
-------------------------------------------------------- */

.aks-section {    
    padding: var(--space-16) var(--space-10);
    position: relative;
    overflow: hidden;
}

.aks-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--texture-dot-grid);
    background-size: var(--texture-dot-grid-size);
    pointer-events: none;
}

/* ---- Header ---- */
.aks-header {
    max-width: 720px;
    margin: 0 auto var(--space-14);
    text-align: center;
    position: relative;
    z-index: 1;
}

.aks-title {
    font-size: var(--text-h2);
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 var(--space-4);
}

.aks-definition {
    font-size: var(--text-body);
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
    margin: 0 0 var(--space-8);
}

/* ---- Stats row (proof points, bottom of section) ---- */
.aks-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
    max-width: 820px;
    margin: var(--space-10) auto 0;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-dark);
    position: relative;
    z-index: 1;
}

.aks-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.aks-stat-value {
    font-size: 20px;
    font-weight: 500;
}

.aks-stat-label {
    font-size: var(--text-label);
    color: rgba(255, 255, 255, 0.60);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* ---- Node + Edge layout ---- */
.aks-nodes {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto var(--space-14);
    position: relative;
    z-index: 1;
}

.aks-node {
    flex: 1;
    max-width: 340px;
    background: var(--color-bg-surface-dark);
    border: 1px solid var(--color-border-dark);
    padding: var(--space-6);
    position: relative;
}

.aks-node-dot {
    width: 10px;
    height: 10px;
    margin-bottom: var(--space-4);
    position: relative;
}

.aks-node-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 16px;
    height: 16px;
    border: 1px solid;
    border-color: inherit;
    opacity: 0.3;
}

.aks-node-violet .aks-node-dot {
    background: var(--accent-violet-400);
    border-color: var(--accent-violet-400);
}

.aks-node-violet .aks-node-dot::after {
    border-color: var(--accent-violet-400);
}

.aks-node-blue .aks-node-dot {
    background: var(--accent-blue-400);
    border-color: var(--accent-blue-400);
}

.aks-node-blue .aks-node-dot::after {
    border-color: var(--accent-blue-400);
}

.aks-node-teal .aks-node-dot {
    background: var(--accent-teal-400);
    border-color: var(--accent-teal-400);
}

.aks-node-teal .aks-node-dot::after {
    border-color: var(--accent-teal-400);
}

.aks-node h3 {
    font-size: var(--text-h3);
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 var(--space-3);
}

.aks-node-kpi {
    display: block;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: var(--space-2);
}

.aks-node p {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* Edge connector between nodes */
.aks-edge {
    width: 32px;
    min-width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.aks-edge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.18) 50%,
            rgba(255, 255, 255, 0.06) 100%);
}

.aks-edge::after {
    content: '';
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 1;
}

/* ---- Capabilities (two-column) ---- */
.aks-capabilities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.aks-capability {
    background: var(--color-bg-surface-dark);
    border: 1px solid var(--color-border-dark);
    padding: var(--space-5);
}

.aks-cap-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.aks-cap-dot {
    width: 6px;
    height: 6px;
}

.aks-cap-dot-blue {
    background: var(--accent-blue-400);
}

.aks-cap-dot-violet {
    background: var(--accent-violet-400);
}

.aks-cap-label {
    font-size: var(--text-label);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.70);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.aks-capability h3 {
    font-size: var(--text-h3);
    font-weight: 500;
    color: #FFFFFF;
    margin: 0 0 var(--space-2);
}

.aks-capability p {
    font-size: var(--text-small);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .aks-section {
        padding: var(--space-14) var(--space-4);
    }

    .aks-nodes {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .aks-node {
        max-width: 100%;
        width: 100%;
    }

    .aks-edge {
        width: 1px;
        min-width: unset;
        height: 32px;
        min-height: 32px;
    }

    .aks-edge::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: unset;
        width: 1px;
        height: 100%;
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.06) 0%,
                rgba(255, 255, 255, 0.18) 50%,
                rgba(255, 255, 255, 0.06) 100%);
    }

    .aks-edge::after {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .aks-capabilities {
        grid-template-columns: 1fr;
    }
}
