/* ===== FEATURES — PREMIUM SPLIT LAYOUT ===== */

.feat-section {
    padding: 120px 0;
    position: relative;
    background: rgba(10, 10, 10, 0.88);
    overflow: hidden;
    border-radius: 0;
    margin-top: 0;
}

/* Ambient background gradient */
.feat-bg-gradient {
    position: absolute;
    top: 30%;
    left: 20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center,
            rgba(0, 240, 255, 0.03) 0%,
            rgba(124, 58, 237, 0.02) 40%,
            transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}

/* Inner container */
.feat-inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Split layout: orb space (left) + content (right) */
.feat-layout {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 40px;
    align-items: start;
    min-height: 700px;
}

/* Left side — space reserved for orb */
.feat-orb-space {
    min-height: 500px;
    position: relative;
}

/* Right side — all content */
.feat-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* --- Header --- */
.feat-header {
    text-align: left;
}

.feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.feat-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
    animation: feat-pulse 2s ease-in-out infinite;
}

@keyframes feat-pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}

.feat-title {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -2px;
    line-height: 1.1;
}

.feat-title-gradient {
    background: linear-gradient(135deg, #fff 0%, #fff 60%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat-subtitle {
    color: #666;
    font-size: 1.15rem;
    margin: 0;
    letter-spacing: 0.3px;
}

/* --- Stats Row --- */
.feat-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    position: relative;
}

.feat-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent);
}

.feat-stats-divider {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.feat-stat {
    text-align: center;
    padding: 8px 16px;
}

.feat-stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
    text-shadow: 0 0 15px currentColor;
    opacity: 0.85;
    font-variant-numeric: tabular-nums;
    /* Prevents jitter within numbers */
    min-width: 140px;
    /* Reserves space so the container doesn't expand */
    display: inline-block;
    /* Required for min-width */
}

.feat-stat-label {
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Feature Cards --- */
.feat-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feat-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
    transition: border-color 0.4s ease, transform 0.3s ease;
}

.feat-card:hover {
    border-color: var(--card-accent, rgba(255, 255, 255, 0.12));
    transform: translateX(4px);
}

/* Mouse-tracking spotlight */
.feat-card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.04) 0%,
            transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feat-card:hover .feat-card-spotlight {
    opacity: 1;
}

/* Card content */
.feat-card-content {
    position: relative;
    z-index: 1;
    padding: 20px 24px 18px;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 20px;
    align-items: start;
}

.feat-card-icon {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid;
    transition: all 0.3s ease;
    align-self: center;
}

.feat-card-num {
    position: absolute;
    top: 16px;
    right: 24px;
    font-family: 'Inter', monospace;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.feat-card-title {
    font-size: 1.2rem;
    font-weight: 650;
    color: #fff;
    margin: 0;
    letter-spacing: -0.3px;
    align-self: end;
}

.feat-card-desc {
    color: #777;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    grid-column: 2;
}

.feat-card-divider {
    display: none;
}

.feat-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    grid-column: 2;
    margin-top: 4px;
}

.feat-card-list li {
    display: flex;
    align-items: center;
    color: #aaa;
    font-size: 0.82rem;
    font-weight: 400;
}

.feat-bullet {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

/* Bottom accent bar */
.feat-card-accent-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.feat-card:hover .feat-card-accent-bar {
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .feat-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feat-left-col {
        display: none;
        /* Hide placeholder/stats combo on tablet if tight, or move stats? */
    }

    /* Move stats to bottom/middle on tablet/mobile */
    .feat-stats {
        display: flex;
        flex-direction: row;
        margin-top: 40px;
        justify-content: center;
        width: 100%;
        order: 3;
        /* Ensure it comes after header if flex */
        z-index: 5;
    }

    .feat-content {
        display: flex;
        flex-direction: column;
    }

    .feat-stats-divider {
        display: block;
        height: 40px;
        width: 1px;
        background: rgba(255, 255, 255, 0.1);
    }

    .feat-stat-value {
        font-size: 2.5rem;
    }

    .feat-title {
        font-size: 2.6rem;
    }
}

@media (max-width: 768px) {
    .feat-section {
        padding: 80px 0 60px;
    }

    .feat-inner {
        padding: 0 20px;
    }

    .feat-layout {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Re-enable left col but just for the stats if we want, 
       but easier to hide left col and let stats be handled by the .feat-stats rule above 
       which needs to be physically present. 
       Wait, if we hide .feat-left-col, the stats inside it are hidden!
       We need to UNHIDE .feat-left-col but maybe hide the orb spacer?
    */
    .feat-left-col {
        display: flex;
        height: auto;
    }

    .feat-orb-space {
        display: none;
        /* Hide the orb spacer, we have a gap in margin */
    }

    .feat-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .feat-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .feat-subtitle {
        font-size: 1rem;
    }

    /* Mobile Stats positioning */
    .feat-stats {
        flex-direction: row;
        flex-wrap: wrap;
        margin-top: 280px;
        /* Space for ScrollOrb to land */
        margin-bottom: 40px;
        order: -1;
        /* Put stats BEFORE content? No, orb lands in the gap. */
    }

    /* Actually we need stats to be *somewhere*. 
       If they are in .feat-left-col, and that is first child of .feat-layout grid...
       On mobile flex col: left-col is first.
       So stats will be at top. 
       We want space for Orb (280px).
       So stats should have margin-top 280px?
       Yes.
    */

    .feat-stats-divider {
        display: none;
    }

    .feat-stat-value {
        font-size: 2rem;
    }

    .feat-card-content {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }

    .feat-card-icon {
        grid-row: auto;
    }

    .feat-card-desc,
    .feat-card-list {
        grid-column: 1;
    }

    .feat-card-list {
        flex-direction: column;
        gap: 8px;
    }
}