/* Features page — aligned with home showcase & pricing */

body.features-page-body {
    background: #f8fafc;
}

.features-page {
    overflow-x: hidden;
}

/* Hero */
.features-hero {
    position: relative;
    padding: 100px 24px 80px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 50%, #dbeafe 100%);
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 45%);
    pointer-events: none;
}

.features-hero .container {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.features-hero .showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 24px;
}

.features-hero-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #0f172a;
    margin: 0 0 20px;
}

.features-hero-title .gradient-text {
    background: linear-gradient(135deg, #2563eb 0%, #6366f1 50%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #475569;
    line-height: 1.75;
    margin: 0 auto 40px;
    max-width: 640px;
}

.features-hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.features-hero-pill {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    backdrop-filter: blur(4px);
}

/* Feature grid */
.features-grid-section {
    padding: 0 24px 88px;
    margin-top: -24px;
    position: relative;
    z-index: 2;
}

.features-grid-section .container {
    max-width: 1180px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
    border-color: #bfdbfe;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.92rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0;
}

/* Deep-dive sections */
.features-deep {
    padding: 40px 24px 88px;
}

.features-deep .container {
    max-width: 1140px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 100px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row--reverse {
    direction: rtl;
}

.feature-row--reverse > * {
    direction: ltr;
}

.feature-row--dark {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 24px;
    padding: 64px 56px;
    margin-bottom: 100px;
    color: #f8fafc;
}

.feature-row--dark .feature-row-text .showcase-eyebrow {
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(147, 197, 253, 0.3);
}

.feature-row--dark .feature-row-title {
    color: #ffffff;
}

.feature-row--dark .feature-row-desc {
    color: #cbd5e1;
}

.feature-row--dark .feature-row-list li {
    color: #e2e8f0;
}

.feature-row--dark .feature-row-list svg {
    color: #60a5fa;
}

.feature-row-text .showcase-eyebrow {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    margin-bottom: 20px;
}

.feature-row-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #0f172a;
    margin: 0 0 18px;
}

.feature-row-title .gradient-text {
    background: linear-gradient(135deg, #2563eb, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-row--dark .feature-row-title .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-row-desc {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.75;
    margin: 0 0 24px;
}

.feature-row-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-row-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
}

.feature-row-list svg {
    width: 20px;
    height: 20px;
    color: #2563eb;
    flex-shrink: 0;
}

/* Mock UI */
.feature-mock {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.feature-mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.feature-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.feature-mock-dot:nth-child(1) { background: #f87171; }
.feature-mock-dot:nth-child(2) { background: #fbbf24; }
.feature-mock-dot:nth-child(3) { background: #34d399; }

.feature-mock-body {
    padding: 24px;
}

.feature-mock-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-mock-row:last-child {
    border-bottom: none;
}

.feature-mock-thumb {
    width: 52px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    flex-shrink: 0;
}

.feature-mock-lines {
    flex: 1;
}

.feature-mock-line {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-bottom: 8px;
}

.feature-mock-line:last-child {
    margin-bottom: 0;
    width: 60%;
}

.feature-mock-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #dcfce7;
    color: #15803d;
    flex-shrink: 0;
}

.feature-mock-badge--blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.feature-mock-badge--amber {
    background: #fef3c7;
    color: #b45309;
}

/* Stats mock (dark section) */
.feature-stats-mock {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-stat-box {
    text-align: center;
    padding: 24px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.feature-stat-box .num {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.feature-stat-box .lbl {
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 500;
}

/* CTA */
.features-cta {
    padding: 88px 24px;
    text-align: center;
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 45%, #1e40af 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.features-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
                      radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.05) 0%, transparent 35%);
    pointer-events: none;
}

.features-cta .container {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.features-cta h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #ffffff;
}

.features-cta p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px;
    line-height: 1.7;
}

.features-cta .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.features-cta .btn-primary {
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 700;
    padding: 16px 36px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.features-cta .btn-primary:hover {
    background: #f8fafc;
    color: #1d4ed8;
}

.features-cta .btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.features-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

.features-cta-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.features-reveal {
    opacity: 0;
    transform: translateY(28px);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-row--reverse {
        direction: ltr;
    }

    .feature-row--dark {
        padding: 40px 28px;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-stats-mock {
        grid-template-columns: 1fr;
    }

    .features-hero {
        padding: 88px 20px 64px;
    }
}
