/* ═══════════════════════════════════════════════════════════════════════════
   CyberKavach Homepage — Premium Minimal Background System
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Base Layer ─────────────────────────────────────────────────────────── */
.ck-landing {
    background: #0A0A0A;
    position: relative;
}

/* ── Grid Background System ────────────────────────────────────────────── */
.ck-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;

    /* Single consistent grid pattern - increased opacity for more visible texture */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.17) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.17) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: center center;

    /* Gradient fade from top to bottom - strongest at hero, fades on scroll */
    mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.15) 75%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Ensure main content is above grid */
body.ck-landing > main {
    position: relative;
    z-index: 1;
}

/* Ensure navbar is above grid */
.navbar {
    position: sticky;
    z-index: 100;
}
