/* ============================================================
   YAIDEL HOME — FEATURES (REFINED BRAND VERSION)
   - Dark base uses brand dark: #202020
   - Primary accent: var(--yaidel-primary)
   - Reduced type scale to match newer sections
============================================================ */

.yaidel-features-section {
    --spot-x: 52%;
    --spot-y: 24%;

    position: relative;
    width: 100%;
    padding: 94px 24px 82px;
    overflow: hidden;
    color: var(--yaidel-white);

    background:
        radial-gradient(
            880px 460px at var(--spot-x) var(--spot-y),
            rgba(15, 179, 189, .12) 0%,
            rgba(15, 179, 189, .05) 34%,
            rgba(15, 179, 189, 0) 68%
        ),
        radial-gradient(
            640px 360px at 84% 84%,
            rgba(15, 179, 189, .08) 0%,
            rgba(15, 179, 189, 0) 70%
        ),
        linear-gradient(
            180deg,
            #232323 0%,
            #202020 45%,
            #1d1d1d 100%
        );
}

/* ============================================================
   BACKGROUND
============================================================ */

.yaidel-features-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.yaidel-features-glow { display: none; }

.yaidel-features-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: .028;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);

    background-size: 62px 62px;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 16%,
        #000 86%,
        transparent
    );
    mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 16%,
        #000 86%,
        transparent
    );
}

/* ============================================================
   CONTAINER
============================================================ */

.yaidel-features-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

/* ============================================================
   INTRO
============================================================ */

.yaidel-features-intro {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.yaidel-features-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px 13px 7px 8px;

    border: 1px solid rgba(15, 179, 189, .38);
    border-radius: 999px;

    background: rgba(15, 179, 189, .11);
    color: #8debf0;

    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.yaidel-features-eyebrow-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    border-radius: 50%;
    background: rgba(15, 179, 189, .20);
    color: var(--yaidel-primary);
    font-size: 9px;
}

.yaidel-features-title {
    margin: 0;
    color: var(--yaidel-white);
    font-size: clamp(30px, 3.7vw, 44px);
    line-height: 1.07;
    font-weight: 600;
    letter-spacing: -.035em;
}

.yaidel-features-title span {
    display: block;
    margin-top: 4px;
    color: var(--yaidel-primary);
}

.yaidel-features-description {
    max-width: 760px;
    margin: 16px auto 0;

    color: rgba(255, 255, 255, .78);
    font-size: clamp(13px, 1.15vw, 15px);
    line-height: 1.68;
    font-weight: 400;
}

/* ============================================================
   FEATURE GRID
============================================================ */

.yaidel-features-grid {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px 22px;
}

.yaidel-feature-card {
    position: relative;
    min-height: 210px;
    padding: 2px 14px 0 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(10px);

    transition:
        opacity 420ms ease,
        transform 420ms ease;
}

.yaidel-feature-card.yaidel-feature-visible {
    opacity: 1;
    transform: translateY(0);
}

/* vertical separators */
.yaidel-feature-card:not(:nth-child(4n))::after {
    content: "";
    position: absolute;
    top: 2px;
    right: -11px;
    width: 1px;
    height: calc(100% - 4px);
    background: rgba(255, 255, 255, .14);
}

/* hide old ornaments */
.yaidel-feature-number,
.yaidel-feature-arrow { display: none; }

.yaidel-feature-card-top { margin-bottom: 14px; }

.yaidel-feature-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--yaidel-primary);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    line-height: 1;

    transition: transform var(--yaidel-transition-fast), color var(--yaidel-transition-fast);
}

.yaidel-feature-content h3 {
    margin: 0 0 9px;
    color: var(--yaidel-white);
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.28;
    font-weight: 550;
    letter-spacing: -.015em;
}

.yaidel-feature-content p {
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(12px, 1.02vw, 14px);
    line-height: 1.62;
    font-weight: 400;
}

.yaidel-feature-card:hover .yaidel-feature-icon,
.yaidel-feature-card:focus-within .yaidel-feature-icon {
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
============================================================ */

.yaidel-features-footer {
    width: 100%;
    max-width: 1220px;
    margin: 50px auto 0;

    display: flex;
    align-items: center;
    gap: 18px;
}

.yaidel-features-footer-line {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, .20);
}

.yaidel-features-footer p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(13px, 1.02vw, 15px);
    line-height: 1.45;
    font-weight: 450;
    white-space: nowrap;
}

.yaidel-features-cta {
    min-height: 48px;
    padding: 0 8px 0 16px;

    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;

    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);

    color: var(--yaidel-white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;

    transition:
        border-color var(--yaidel-transition-fast),
        background-color var(--yaidel-transition-fast),
        transform var(--yaidel-transition-fast);
}

.yaidel-features-cta span {
    width: 31px;
    height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    border-radius: 50%;
    background: var(--yaidel-primary);
    color: var(--yaidel-white);
    font-size: 11px;

    transition: transform var(--yaidel-transition-fast), background-color var(--yaidel-transition-fast);
}

.yaidel-features-cta:hover,
.yaidel-features-cta:focus-visible {
    border-color: rgba(15, 179, 189, .48);
    background: rgba(255, 255, 255, .072);
    transform: translateY(-1px);
}
.yaidel-features-cta:hover span,
.yaidel-features-cta:focus-visible span {
    transform: translateX(2px);
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {
    .yaidel-features-section {
        padding: 84px 20px 78px;
    }

    .yaidel-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 22px;
    }

    .yaidel-feature-card {
        min-height: 190px;
    }

    .yaidel-feature-card::after { display: none; }

    .yaidel-feature-card:nth-child(odd)::after {
        content: "";
        display: block;
        position: absolute;
        top: 2px;
        right: -11px;
        width: 1px;
        height: calc(100% - 4px);
        background: rgba(255, 255, 255, .14);
    }

    .yaidel-features-footer {
        flex-wrap: wrap;
        gap: 14px;
    }
    .yaidel-features-footer-line {
        width: 100%;
        flex-basis: 100%;
    }
}

@media (max-width: 768px) {
    .yaidel-features-section {
        padding: 72px 16px 66px;
    }

    .yaidel-features-intro {
        margin-bottom: 38px;
    }

    .yaidel-features-title {
        font-size: clamp(27px, 8.3vw, 34px);
        line-height: 1.09;
    }

    .yaidel-features-description {
        font-size: 13px;
        line-height: 1.66;
    }

    .yaidel-features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .yaidel-feature-card {
        min-height: auto;
        padding-right: 0;
    }

    .yaidel-feature-card::after,
    .yaidel-feature-card:nth-child(odd)::after {
        display: none;
    }

    .yaidel-feature-card-top {
        margin-bottom: 11px;
    }

    .yaidel-feature-icon {
        width: 32px;
        height: 32px;
    }

    .yaidel-feature-content h3 {
        margin-bottom: 7px;
        font-size: 17px;
    }

    .yaidel-feature-content p {
        font-size: 13px;
        line-height: 1.62;
        max-width: 640px;
    }

    .yaidel-features-footer {
        margin-top: 36px;
    }

    .yaidel-features-footer p {
        white-space: normal;
        font-size: 13px;
    }

    .yaidel-features-cta {
        min-height: 44px;
        font-size: 12px;
    }

    .yaidel-features-cta span {
        width: 29px;
        height: 29px;
        font-size: 10px;
    }
}

@media (max-width: 420px) {
    .yaidel-features-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .yaidel-features-title {
        font-size: 29px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .yaidel-feature-card,
    .yaidel-feature-icon,
    .yaidel-features-cta,
    .yaidel-features-cta span {
        transition: none;
    }

    .yaidel-feature-card,
    .yaidel-feature-card.yaidel-feature-visible {
        opacity: 1;
        transform: none;
    }

    .yaidel-features-cta:hover,
    .yaidel-features-cta:focus-visible,
    .yaidel-features-cta:hover span,
    .yaidel-features-cta:focus-visible span {
        transform: none;
    }
}

/* Lucide icon tuning */
.yaidel-feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    display: block;
}