.features-section {
    position: relative;
    overflow: hidden;
    padding: 140px 0;
    border-top: 1px solid var(--border);
    background:
        linear-gradient(
            180deg,
            rgba(4, 9, 18, 0.96),
            rgba(7, 17, 31, 0.72)
        );
}

.features-glow {
    position: absolute;
    top: 20%;
    right: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.08);
    filter: blur(130px);
    pointer-events: none;
}

.features-heading {
    position: relative;
    margin-bottom: 62px;
}

.features-heading-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: end;
    gap: 60px;
}

.features-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.7rem);
    line-height: 0.98;
    letter-spacing: -0.058em;
}

.features-heading h2 span {
    display: block;
    background:
        linear-gradient(
            90deg,
            #ffffff,
            #5eead4 62%
        );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.features-heading p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.features-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.feature-card {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            150deg,
            rgba(15, 27, 46, 0.85),
            rgba(5, 13, 25, 0.9)
        );
    box-shadow:
        0 24px 65px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.feature-card:hover {
    transform: translateY(-7px);
    border-color: var(--border-bright);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.32),
        0 0 50px rgba(20, 184, 166, 0.06);
}

.feature-card-large {
    grid-column: span 2;
}

.feature-card-wide {
    grid-column: span 3;
    min-height: auto;
}

.feature-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.feature-number {
    color: var(--text-soft);
    font-family: var(--font-display);
    font-size: 0.77rem;
    font-weight: 700;
}

.feature-tag {
    padding: 6px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--accent);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.feature-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin: 34px 0 28px;
    border: 1px solid var(--border-bright);
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            rgba(20, 184, 166, 0.14),
            rgba(37, 99, 235, 0.18)
        );
    font-size: 1.35rem;
}

.feature-card h3 {
    margin: auto 0 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: -0.025em;
}

.feature-card p {
    margin: 16px 0 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.feature-visual {
    margin: 28px 0 30px;
}

.feature-visual-detection {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: rgba(2, 8, 23, 0.52);
}

.detection-device {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.detection-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.85);
}

.detection-device small,
.detection-device span {
    display: block;
}

.detection-device small {
    color: var(--text-soft);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.detection-device strong {
    display: block;
    margin-top: 6px;
}

.detection-device span {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.7rem;
}

.detection-device b {
    color: var(--accent);
    font-size: 0.8rem;
}

.feature-wide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 60px;
    margin-top: 34px;
}

.feature-wide-layout h3 {
    margin: 0;
}

.feature-wide-layout p {
    max-width: 720px;
}

.status-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.status-badge {
    padding: 11px 15px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.status-safe {
    border: 1px solid rgba(52, 211, 153, 0.28);
    background: rgba(6, 78, 59, 0.24);
    color: #6ee7b7;
}

.status-review {
    border: 1px solid rgba(250, 204, 21, 0.28);
    background: rgba(113, 63, 18, 0.22);
    color: #fde68a;
}

.status-danger {
    border: 1px solid rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.22);
    color: #fca5a5;
}

@media (max-width: 920px) {
    .features-heading-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

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

    .feature-card-large,
    .feature-card-wide {
        grid-column: span 1;
    }

    .feature-wide-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .status-preview {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .features-section {
        padding: 95px 0;
    }

    .features-heading {
        margin-bottom: 42px;
    }

    .feature-card {
        min-height: auto;
        padding: 24px;
    }

    .detection-device {
        grid-template-columns: auto 1fr;
    }

    .detection-device b {
        grid-column: 2;
    }
}

/* =======================================================
   FEATURES RESPONSIVE POLISH
======================================================= */

@media (max-width: 640px) {
    .features-heading h2 {
        font-size: clamp(2.8rem, 13vw, 4.2rem);
    }

    .feature-card-top {
        align-items: flex-start;
    }

    .feature-tag {
        font-size: 0.57rem;
    }

    .status-preview {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .status-badge {
        text-align: center;
        padding-inline: 8px;
    }
}
