/* ===== Features Grid Section ===== */
    .features-grid-section {
        position: relative;
        padding: 6rem 0;
        overflow: hidden;
    }

    .features-grid-white {
        background: #ffffff;
    }

    .features-grid-gray {
        background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    }

    .dark .features-grid-white {
        background: var(--color-bg-secondary);
    }

    .dark .features-grid-gray {
        background: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    }

    /* ===== Background Pattern ===== */
    .features-grid-pattern {
        position: absolute;
        inset: 0;
        background-image:
            linear-gradient(var(--color-gray-200) 1px, transparent 1px),
            linear-gradient(90deg, var(--color-gray-200) 1px, transparent 1px);
        background-size: 50px 50px;
        opacity: 0.3;
        pointer-events: none;
    }

    .dark .features-grid-pattern {
        background-image:
            linear-gradient(var(--color-gray-800) 1px, transparent 1px),
            linear-gradient(90deg, var(--color-gray-800) 1px, transparent 1px);
        opacity: 0.2;
    }

    /* ===== Container ===== */
    .features-grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    /* ===== Item ===== */
    .features-grid-item {
        position: relative;
        background: white;
        padding: 2rem 1.5rem;
        border-radius: 1rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .features-grid-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.1);
    }

    .dark .features-grid-item {
        background: var(--color-card-bg);
    }

    .dark .features-grid-item:hover {
        box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
    }

    /* ===== Number Badge ===== */
    .features-grid-number {
        position: absolute;
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-primary-50);
        color: var(--color-primary-600);
        font-family: var(--font-heading);
        font-size: 0.875rem;
        font-weight: 700;
        border-radius: 0.5rem;
        transition: all 0.3s ease;
    }

    .features-grid-item:hover .features-grid-number {
        background: var(--color-primary-600);
        color: white;
        transform: scale(1.1);
    }

    .dark .features-grid-number {
        background: rgba(var(--color-primary-rgb, 37, 99, 235), 0.2);
        color: var(--color-primary-400);
    }

    .dark .features-grid-item:hover .features-grid-number {
        background: var(--color-primary-600);
        color: white;
    }

    /* ===== Icon ===== */
    .features-grid-icon-container {
        position: relative;
        display: inline-flex;
        margin-bottom: 1.5rem;
    }

    .features-grid-pulse {
        position: absolute;
        inset: -8px;
        background: var(--color-primary-200);
        border-radius: 50%;
        opacity: 0;
        animation: features-grid-pulse-anim 2s ease-out infinite;
    }

    .dark .features-grid-pulse {
        background: var(--color-primary-900);
    }

    @keyframes features-grid-pulse-anim {
        0% {
            transform: scale(1);
            opacity: 0.5;
        }
        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    .features-grid-icon {
        width: 3.5rem;
        height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, var(--color-primary-500), var(--color-secondary-500));
        color: white;
        border-radius: 50%;
        transition: all 0.4s ease;
        position: relative;
        z-index: 1;
    }

    .features-grid-item:hover .features-grid-icon {
        transform: scale(1.1) rotate(10deg);
    }

    /* ===== Content ===== */
    .features-grid-content {
        position: relative;
        z-index: 1;
    }

    .features-grid-title {
        font-family: var(--font-heading);
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-gray-900);
        margin-bottom: 0.5rem;
    }

    .dark .features-grid-title {
        color: var(--color-text-primary);
    }

    .features-grid-desc {
        font-size: 0.9375rem;
        color: var(--color-gray-600);
        line-height: 1.6;
    }

    .dark .features-grid-desc {
        color: var(--color-text-tertiary);
    }

    /* ===== Hover Border ===== */
    .features-grid-border {
        position: absolute;
        inset: 0;
        border: 2px solid var(--color-primary-500);
        border-radius: 1rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }

    .features-grid-item:hover .features-grid-border {
        opacity: 1;
    }

    /* ===== RTL Support ===== */
    [dir="rtl"] .features-grid-section {
        direction: rtl;
    }

    [dir="rtl"] .features-grid-number {
        right: auto;
        left: 1rem;
    }

    [dir="rtl"] .features-grid-content {
        text-align: right;
    }

    [dir="rtl"] .features-grid-item:hover .features-grid-icon {
        transform: scale(1.1) rotate(-10deg);
    }

    /* ===== Responsive ===== */
    @media (max-width: 640px) {
        .features-grid-section {
            padding: 4rem 0;
        }

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

        .features-grid-item {
            padding: 1.5rem 1.25rem;
        }
    }