/* ============================================================
   7. Security — bento grid with 3D tilt + spotlight
   ============================================================ */

.security { background: linear-gradient(180deg, #ffffff 0%, #f4f8fd 60%, #ffffff 100%); }
.security__head { text-align: center; }
.security__head .section__lead { margin-inline: auto; }

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
@media (min-width: 768px) {
    .bento {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, minmax(170px, auto));
    }
    .bento__slot--tall { grid-column: 1; grid-row: 1 / span 3; }
    .bento__slot--stat { grid-column: 2; grid-row: 1; }
    .bento__slot--small { grid-column: 3; grid-row: 1; }
    .bento__slot--wide1 { grid-column: 2 / span 2; grid-row: 2; }
    .bento__slot--wide2 { grid-column: 2 / span 2; grid-row: 3; }
}

.bcard {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 1.7rem 1.7rem 1.6rem;
    border-radius: var(--r-card);
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.35s var(--ease-smooth), box-shadow 0.4s ease;
    will-change: transform;
}
.bcard:hover { box-shadow: 0 18px 44px rgba(15, 23, 42, 0.13); }

.bcard__spotlight {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%),
        rgba(31, 122, 224, 0.1), transparent 65%);
    transition: opacity 0.4s ease;
}
.bcard:hover .bcard__spotlight { opacity: 1; }

.bcard__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border-radius: 13px;
    background: rgba(31, 122, 224, 0.1);
    color: var(--accent);
}
.bcard__icon svg { width: 24px; height: 24px; }

.bcard h3 {
    margin: 0.3rem 0 0;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}
.bcard p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--muted-2);
}

/* tall variant — dark accent panel */
.bcard--tall {
    justify-content: flex-end;
    background:
        radial-gradient(circle at 20% 12%, rgba(58, 142, 229, 0.35), transparent 55%),
        linear-gradient(165deg, #14263f 0%, #0b1220 70%);
    border-color: rgba(255, 255, 255, 0.08);
}
.bcard--tall h3 { color: #ffffff; font-size: 1.35rem; }
.bcard--tall p { color: rgba(255, 255, 255, 0.75); }
.bcard--tall .bcard__icon { background: rgba(255, 255, 255, 0.12); color: #9cc5f2; }
.bcard--tall .bcard__spotlight {
    background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 50%),
        rgba(156, 197, 242, 0.14), transparent 65%);
}

/* stat variant — big number over dotted background */
.bcard--stat {
    background-image: radial-gradient(rgba(31, 122, 224, 0.14) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
}
.bcard__num {
    font-size: clamp(2.6rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
    -webkit-background-clip: text;
            background-clip: text;
    color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .bcard { transform: none !important; transition: none; }
    .bcard__spotlight { display: none; }
}
