:root {
    --bg-base: #080a0f;
    --accent-primary: #3b82f6;
    --accent-cyan: #06b6d4;
    --border-dim: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(255, 255, 255, 0.14);
    --text-primary: #f0f4ff;
    --text-secondary: #8892a4;
    --text-dim: #4a5568;
}

/* DOT GRID BACKGROUND */
body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
    min-height: 100vh;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-base) 90%);
    pointer-events: none;
    z-index: -1;
}

/* Hero should not have dots or vignette - assuming sections have backgrounds to cover or we use z-index */
.hero-section {
    position: relative;
    z-index: 1;
    background: #0b0f19;
    /* Solid background for hero to hide generic body background */
}

/* GLASS PANEL UPGRADE */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%) !important;
    border: 1px solid var(--border-dim) !important;
    backdrop-filter: blur(20px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), rgba(6, 182, 212, 0.5), transparent);
    z-index: 2;
    pointer-events: none;
}

/* ZANIA-STYLE CAPABILITY GRID */
.key-capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 !important;
    border: 1px solid var(--border-dim);
    border-radius: 8px;
    overflow: hidden;
    background: transparent !important;
}

.cap-item {
    border: none !important;
    border-right: 1px solid var(--border-dim) !important;
    border-bottom: 1px solid var(--border-dim) !important;
    padding: 24px !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
    height: 100%;
}

.cap-item:nth-child(3n) {
    border-right: none !important;
}

.cap-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

.cap-item:hover::after {
    opacity: 1;
}

.cap-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(6, 182, 212, 0.1)) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.cap-item:hover .cap-icon {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    border-color: var(--accent-primary) !important;
    transform: scale(1.05);
}

.cap-item div {
    position: relative;
    z-index: 1;
}

/* TRUST BANNER ANIMATED BORDER */
.trust-banner {
    border: 1px solid transparent !important;
    position: relative;
    background: rgba(8, 10, 15, 0.4) !important;
}

.trust-banner::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(90deg, var(--border-dim), var(--accent-primary), var(--accent-cyan), var(--border-dim));
    background-size: 300% 100%;
    z-index: -1;
    border-radius: 8px;
    animation: border-sweep 4s linear infinite;
}

@keyframes border-sweep {
    from {
        background-position: 200% 0%;
    }

    to {
        background-position: -200% 0%;
    }
}

.trust-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* SCORE BAR ANIMATION */
.score-fill {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-banner.in-view .score-fill {
    transform: scaleX(1);
}

/* SECTION LABEL BADGE */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 30px;
    width: fit-content;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    70% {
        transform: scale(1.5);
        opacity: 0;
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* ANIMATED SECTION DIVIDERS */
.section-glass+.section-glass {
    position: relative;
}

.section-glass+.section-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-dim), transparent);
}

/* CURSOR LIGHT */
#cursor-light {
    position: fixed;
    width: 300px;
    height: 300px;
    pointer-events: none;
    z-index: 0;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    mix-blend-mode: screen;
    transition: background 0.5s ease;
}

/* STAGGERED CAP-ITEM ENTRANCE */
.cap-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base styles for existing components to ensure consistency */
.prose {
    color: var(--text-secondary) !important;
}

.btn-primary {
    background: var(--accent-primary) !important;
    border-color: var(--accent-primary) !important;
    color: #fff !important;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .key-capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cap-item:nth-child(2n) {
        border-right: none !important;
    }

    .cap-item:nth-child(2n+1) {
        border-right: 1px solid var(--border-dim) !important;
    }
}

@media (max-width: 768px) {
    .key-capabilities-grid {
        grid-template-columns: 1fr;
    }

    .cap-item {
        border-right: none !important;
    }

    .split-grid {
        grid-template-columns: 1fr;
    }

    .score-grid {
        grid-template-columns: 1fr;
    }

    .trust-banner,
    .cta-strip {
        padding: 30px 20px !important;
    }
}