/* Features page — SaaS-style extensions */

/* Category tabs */
.ld-feat-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.ld-feat-tab {
    padding: 10px 22px;
    border: 1.5px solid var(--ld-border);
    border-radius: 100px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--ld-font);
}

.ld-feat-tab:hover {
    border-color: var(--ld-brand);
    color: var(--ld-brand);
}

.ld-feat-tab.active {
    background: var(--ld-brand);
    border-color: var(--ld-brand);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 175, 240, 0.35);
}

.ld-feat-panel {
    display: none;
    animation: ld-feat-fade 0.4s ease;
}

.ld-feat-panel.active {
    display: block;
}

@keyframes ld-feat-fade {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Enhanced feature cards */
.ld-feat-card {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 28px 24px;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.ld-feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ld-brand), var(--ld-brand-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.ld-feat-card:hover {
    border-color: var(--ld-brand);
    box-shadow: var(--ld-shadow-lg);
    transform: translateY(-6px);
}

.ld-feat-card:hover::before {
    transform: scaleX(1);
}

.ld-feat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.ld-feat-card:hover .ld-feat-card-icon {
    transform: scale(1.08);
}

.ld-feat-card-icon--blue   { background: #e8f7fd; color: #00aff0; }
.ld-feat-card-icon--green  { background: #dcfce7; color: #16a34a; }
.ld-feat-card-icon--purple { background: #ede9fe; color: #7c3aed; }
.ld-feat-card-icon--orange { background: #ffedd5; color: #ea580c; }

.ld-feat-card h5 {
    font-size: 17px;
    font-weight: 700;
    color: var(--ld-dark);
    margin: 0 0 10px;
}

.ld-feat-card p {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.65;
    margin: 0 0 14px;
}

.ld-feat-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ld-feat-card-tags span {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    background: #f1f5f9;
    color: #64748b;
}

.ld-feat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Highlights strip */
.ld-feat-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -48px;
    position: relative;
    z-index: 10;
}

.ld-feat-highlight {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--ld-shadow-lg);
    transition: transform 0.3s ease;
}

.ld-feat-highlight:hover {
    transform: translateY(-4px);
}

.ld-feat-highlight i {
    font-size: 24px;
    color: var(--ld-brand);
    margin-bottom: 10px;
}

.ld-feat-highlight strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ld-dark);
    margin-bottom: 4px;
}

.ld-feat-highlight span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ld-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Showcase block */
.ld-feat-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.ld-feat-showcase-img {
    position: relative;
}

.ld-feat-showcase-img img {
    width: 100%;
    border-radius: var(--ld-radius);
    box-shadow: var(--ld-shadow-lg);
}

.ld-feat-showcase-img::after {
    content: '';
    position: absolute;
    inset: -10px -10px 10px 10px;
    border: 2px solid var(--ld-brand);
    border-radius: var(--ld-radius);
    z-index: -1;
    opacity: 0.25;
}

.ld-feat-showcase-content h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--ld-dark);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.ld-feat-showcase-content h3 span {
    color: var(--ld-brand);
}

.ld-feat-showcase-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.ld-feat-showcase-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: 14px;
    color: var(--ld-text);
    font-weight: 500;
}

.ld-feat-showcase-list li i {
    color: var(--ld-brand);
    margin-top: 3px;
}

/* Benefits */
.ld-feat-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ld-feat-benefit {
    padding: 32px 28px;
    border-radius: var(--ld-radius);
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid var(--ld-border);
    transition: all 0.3s ease;
}

.ld-feat-benefit:hover {
    box-shadow: var(--ld-shadow-lg);
    border-color: var(--ld-brand-light);
}

.ld-feat-benefit-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ld-brand-light);
    line-height: 1;
    margin-bottom: 12px;
    -webkit-text-stroke: 1px var(--ld-brand);
    color: transparent;
}

.ld-feat-benefit h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-dark);
    margin: 0 0 8px;
}

.ld-feat-benefit p {
    font-size: 14px;
    color: var(--ld-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* Comparison table */
.ld-feat-compare {
    background: #fff;
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    overflow: hidden;
    box-shadow: var(--ld-shadow);
}

.ld-feat-compare table {
    width: 100%;
    border-collapse: collapse;
}

.ld-feat-compare thead th {
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    background: #f8fafc;
    border-bottom: 1px solid var(--ld-border);
}

.ld-feat-compare thead th:last-child {
    background: var(--ld-brand-light);
    color: var(--ld-brand-dark);
}

.ld-feat-compare tbody td {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--ld-text);
    border-bottom: 1px solid #f1f5f9;
}

.ld-feat-compare tbody tr:last-child td {
    border-bottom: none;
}

.ld-feat-compare tbody td:first-child {
    font-weight: 600;
    color: var(--ld-dark);
}

.ld-feat-compare .yes {
    color: #16a34a;
    font-weight: 700;
}

.ld-feat-compare .no {
    color: #ef4444;
    font-weight: 600;
}

.ld-feat-compare tbody td:last-child {
    background: rgba(0, 175, 240, 0.04);
}

@media (max-width: 991px) {
    .ld-feat-highlights {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 0;
    }

    .ld-feat-grid,
    .ld-feat-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .ld-feat-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .ld-feat-highlights,
    .ld-feat-grid,
    .ld-feat-benefits {
        grid-template-columns: 1fr;
    }

    .ld-feat-compare {
        overflow-x: auto;
    }

    .ld-feat-compare table {
        min-width: 520px;
    }

    .ld-feat-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ld-feat-panel { animation: none; }
    .ld-feat-card:hover { transform: none; }
}
