:root {
    --cap-dark: #0b1120;
    --cap-indigo: #4f46e5;
    --cap-purple: #7c3aed;
    --cap-surface: rgba(15, 23, 42, 0.75);
}

.capabilities-showcase {
    position: relative;
    padding: clamp(96px, 12vw, 140px) 0 clamp(72px, 10vw, 120px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(8, 12, 24, 0.98) 100%);
    overflow: hidden;
}

.capabilities-showcase::before,
.capabilities-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.22), transparent 55%);
}

.capabilities-showcase::after {
    background: radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.18), transparent 60%);
    mix-blend-mode: screen;
}

.capabilities-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(48px, 6vw, 72px);
    color: #e2e8f0;
}

.capabilities-headline h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    letter-spacing: -0.03em;
    margin: 0;
    max-width: 720px;
}

.capabilities-headline p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(226, 232, 240, 0.65);
    max-width: 420px;
    margin: 0;
}

.capabilities-headline .cta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

.capabilities-headline .cta-pill i {
    font-size: 0.85rem;
}

.capabilities-headline .cta-pill:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.65);
    box-shadow: 0 24px 40px -28px rgba(99, 102, 241, 0.75);
}

.capabilities-layout {
    display: flex;
    flex-direction: column;
    gap: clamp(1.6rem, 3vw, 2.2rem);
}

.cap-row {
    display: grid;
    gap: clamp(1.2rem, 2vw, 1.8rem);
}

.cap-row--top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
}

.cap-row--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cap-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 260px;
    color: #f8fafc;
    isolation: isolate;
    transform-style: preserve-3d;
    background: var(--cap-surface);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 35px 50px -40px rgba(15, 23, 42, 0.65);
}

.cap-card--primary {
    min-height: clamp(320px, 42vw, 420px);
}

.cap-card--compact {
    min-height: clamp(280px, 34vw, 360px);
}

.cap-card--mid {
    min-height: clamp(260px, 32vw, 320px);
}

.cap-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    filter: brightness(0.6) saturate(1.05);
    transition: transform 0.6s ease;
    z-index: -2;
}

.cap-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.85) 75%);
    z-index: -1;
    transition: opacity 0.5s ease;
}

.cap-card__content {
    position: relative;
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 1rem;
    height: 100%;
}

.cap-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: rgba(224, 231, 255, 0.9);
}

.cap-card__title {
    font-size: 1.55rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.cap-card__meta {
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.6;
    margin: 0;
}

.cap-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(148, 163, 184, 0.85);
}

.cap-card__footer span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.cap-card__footer i {
    font-size: 0.85rem;
}

.cap-card:hover img {
    transform: scale(1.12);
}

.cap-card:hover::after {
    opacity: 0.9;
}

.cap-card.tilt-active {
    transform: translateY(-8px);
    box-shadow: 0 45px 60px -40px rgba(79, 70, 229, 0.6);
}

.capabilities-fallback .cap-row {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.capabilities-fallback .cap-row.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .cap-row--top,
    .cap-row--bottom {
        grid-template-columns: 1fr;
    }

    .cap-card {
        min-height: 240px;
    }

    .cap-card--primary {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .capabilities-headline {
        flex-direction: column;
        align-items: flex-start;
    }

    .cap-card {
        min-height: 220px;
    }
}

