/* ══════════════════════════════════════
   FEATURES PAGE
   Inherits all CSS variables from theme-dark.css / theme-light.css
   ══════════════════════════════════════ */

/* ── Hero ── */
.feat-hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.feat-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.feat-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--t3);
    margin-bottom: 28px;
}

.feat-hero .hero-badge span {
    color: var(--amber);
    font-weight: 600;
}

.feat-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 auto 20px;
    color: var(--t1);
}

.feat-hero h1 span {
    background: linear-gradient(135deg, var(--t1) 30%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feat-hero-sub {
    font-size: 1.12rem;
    color: var(--t3);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Sections ── */
.feat-section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.feat-alt {
    background: rgba(255, 255, 255, 0.015);
}

.feat-section .section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--amber);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.feat-section .section-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.2;
    color: var(--t1);
}

.feat-section .section-desc {
    font-size: 1.02rem;
    color: var(--t3);
    max-width: 560px;
    margin-bottom: 48px;
    line-height: 1.7;
}

/* ── Feature Cards ── */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feat-card {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    padding: 36px;
    transition: border-color 0.3s, transform 0.3s;
}

.feat-card:hover {
    border-color: var(--bdr-h);
    transform: translateY(-3px);
}

.feat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feat-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--t1);
}

.feat-card p {
    font-size: 0.92rem;
    color: var(--t3);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ── Before/After ── */
.feat-ba-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 48px;
}

.feat-ba-col {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    padding: 36px;
}

.feat-ba-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.feat-ba-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feat-ba-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--t1);
}

.feat-ba-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feat-ba-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--t3);
    line-height: 1.5;
    border-bottom: 1px solid var(--bdr);
}

.feat-ba-list li:last-child {
    border-bottom: none;
}

.feat-ba-bullet {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

/* ── Walkthrough ── */
.feat-wt-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.feat-wt-tab {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    flex: 1;
    min-width: 160px;
    text-align: center;
}

.feat-wt-tab:hover {
    border-color: var(--bdr-h);
}

.feat-wt-tab.active {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.06);
}

.feat-wt-tab .wt-num {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 4px;
}

.feat-wt-tab .wt-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--t1);
}

.feat-wt-tab .wt-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--t4);
    margin-top: 2px;
}

.feat-wt-content {
    background: var(--bg-card);
    border: 1px solid var(--bdr);
    border-radius: var(--card-r);
    padding: 40px;
    transition: opacity 0.15s;
}

.feat-wt-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 8px;
}

.feat-wt-content p {
    font-size: 0.95rem;
    color: var(--t3);
    margin-bottom: 24px;
}

.feat-wt-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.feat-wt-stat {
    background: var(--bg);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}

.feat-wt-stat .num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--t1);
}

.feat-wt-stat .label {
    font-size: 0.78rem;
    color: var(--t4);
}

.feat-wt-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--t3);
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    margin-top: 16px;
}

/* ── CTA ── */
.feat-cta {
    text-align: center;
    padding-bottom: 100px;
}

.feat-cta h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--t1);
    margin-bottom: 16px;
}

.feat-cta-sub {
    font-size: 1.05rem;
    color: var(--t3);
    max-width: 500px;
    margin: 0 auto 36px;
}

.feat-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.feat-cta-buttons .btn-outline {
    background: transparent;
    color: var(--t1);
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--bdr);
    transition: all 0.25s;
}

.feat-cta-buttons .btn-outline:hover {
    border-color: var(--bdr-h);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--t1);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .feat-grid {
        grid-template-columns: 1fr;
    }

    .feat-ba-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feat-hero {
        padding: 130px 0 60px;
    }

    .feat-hero h1 {
        font-size: 2.2rem;
    }

    .feat-section {
        padding: 60px 0;
    }

    .feat-section .section-title {
        font-size: 1.7rem;
    }

    .feat-wt-tabs {
        flex-direction: column;
    }

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

    .feat-cta h2 {
        font-size: 1.8rem;
    }

    .feat-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .feat-hero h1 {
        font-size: 1.9rem;
    }

    .feat-hero-sub {
        font-size: 1rem;
    }

    .feat-card {
        padding: 24px;
    }

    .feat-ba-col {
        padding: 24px;
    }

    .feat-wt-content {
        padding: 24px;
    }
}

/* ══════════════════════════════════════
   LIGHT THEME OVERRIDES
   ══════════════════════════════════════ */
body.light .feat-hero::before {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
}

body.light .feat-hero h1 span {
    background: linear-gradient(135deg, #0f172a 30%, var(--amber) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light .feat-alt {
    background: rgba(241, 245, 249, 0.5);
}

body.light .feat-card,
body.light .feat-ba-col,
body.light .feat-wt-content,
body.light .feat-wt-tab {
    background: rgba(255, 255, 255, 0.85);
    border-color: #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.light .feat-card:hover,
body.light .feat-wt-tab:hover {
    border-color: rgba(245, 158, 11, 0.3);
}

body.light .feat-wt-tab.active {
    border-color: var(--blue);
    background: rgba(59, 130, 246, 0.04);
}

body.light .feat-wt-stat {
    background: #f8fafc;
}
