/* ============== Theme knobs ============== */
:root {
    --benefit-bg: #211c42;
    /* lighter + purple */
    --card-bg: #201a46;
    /* keep tiles as-is */
    --edge-1: #423dfc;
    --edge-2: #7271fb;
    --edge-out: #433dfc98;
    --ink: #eaf1ff;
    --muted: #9fb0cf;
}

/* ============== Section shell ============== */
.section {
    padding: clamp(48px, 8vw, 96px) 0;
}

.benefits {
    background: none;
}

/* <-- no page-wide dark bg */

/* ============== Rounded neon panel ============== */
.panel {
    --radius: 36px;
    --pad: clamp(28px, 4vw, 64px);
    position: relative;
    border-radius: var(--radius);
    padding: var(--pad);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 20px 60px rgba(16, 24, 40, .25);
}

/* dark neon background only inside the panel */
.panel--neon {
    color: var(--ink);
    background:
        radial-gradient(60% 90% at 85% 20%, rgba(66, 77, 254, .25), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(15, 120, 255, .18), transparent 60%),
        var(--benefit-bg);
}

/* subtle inner glossy stroke */
.panel--neon::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, .06));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* soft fade to white at bottom so it blends with next section */
.panel--fade::after {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: -1px;
    height: clamp(40px, 8vw, 110px);
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
    pointer-events: none;
}

/* Glowing top border line */
.panel--neon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* thickness of the glow line */
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(114, 113, 251, 0.9) 40%,
            rgba(66, 61, 252, 1) 60%,
            transparent 100%);
    box-shadow: 0 0 18px rgba(114, 113, 251, 0.85),
        0 0 32px rgba(66, 61, 252, 0.75);
    z-index: 2;
    pointer-events: none;
}

/* ============== Head ============== */
.benefits__head .title {
    margin: 8px 0 6px;
}

.benefits__intro {
    color: var(--muted);
}

/* ============== Grid ============== */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 24px;
}

@media (max-width: 1200px) {
    .benefits__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .benefits__grid {
        grid-template-columns: 1fr;
    }
}

/* ============== Tile ============== */
.benefit {
    position: relative;
    border-radius: 20px;
    padding: 24px 22px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0)), var(--card-bg);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, .35),
        0 2px 0 rgba(255, 255, 255, .04) inset;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    isolation: isolate;
}

/* thin neon border using mask + a soft outer glow bloom */
.benefit__edge {
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, var(--edge-1), var(--edge-2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.benefit::after {
    content: "";
    position: absolute;
    inset: -24px;
    border-radius: 28px;
    background: radial-gradient(60% 40% at 20% 0%, var(--edge-out), transparent 70%);
    filter: blur(22px);
    z-index: -1;
}

.benefit:hover {
    transform: translateY(-4px);
    box-shadow:
        0 18px 48px rgba(30, 60, 255, .28),
        0 2px 0 rgba(255, 255, 255, .06) inset;
}

/* Icon tile */
.benefit__icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(0, 0, 0, .35);
}

.benefit__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    /* force icon white */
}

/* Text */
.benefit__title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    margin: 6px 0;
    color: var(--ink);
}

.benefit__text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .benefit {
        transition: none;
    }
}