/* ServiceAlert.ai - Features Page */

/* Hero */
.features-hero {
    text-align: center;
    padding: 80px 0 48px;
}

.features-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.features-hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.stat-block {
    text-align: center;
}

.stat-block .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-block .stat-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Section layout */
.feature-section {
    padding: 72px 0;
}

.feature-section.alt {
    background: var(--bg-secondary);
}

.feature-section .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
}

.feature-section h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.feature-section .section-desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 560px;
    line-height: 1.6;
}

/* Split layout — text left, content right */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse > * {
    direction: ltr;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

/* Detail list with check icons */
.detail-list {
    list-style: none;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-list li {
    display: flex;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.detail-list .check {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.detail-list .check svg {
    width: 12px;
    height: 12px;
    color: #10B981;
}

/* Visual panel — the right side of splits */
.feature-visual {
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    overflow: hidden;
}

.alt .feature-visual {
    background: var(--bg-primary);
}

/* How it works flow */
.how-it-works {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    counter-reset: step;
}

.step-card {
    position: relative;
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    counter-increment: step;
}

.step-card::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 0.8125rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Monitoring demo panel */
.monitor-demo {
    padding: 24px;
}

.monitor-demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.monitor-demo-row:last-child {
    border-bottom: none;
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-dot.green { background: #10B981; }
.demo-dot.red { background: #EF4444; }
.demo-dot.yellow { background: #F59E0B; }

.demo-service {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
}

.demo-status {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.demo-status.ok {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
}

.demo-status.down {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
}

.demo-status.degraded {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
}

.demo-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    min-width: 48px;
    text-align: right;
}

/* Signals timeline */
.signals-timeline {
    padding: 24px;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-header .pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.timeline-event {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border-color);
}

.timeline-event:last-child {
    border-bottom: none;
}

.timeline-time {
    color: var(--text-tertiary);
    min-width: 52px;
    font-variant-numeric: tabular-nums;
}

.timeline-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.timeline-badge.reports {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.timeline-badge.reddit {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.timeline-badge.official {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.timeline-msg {
    color: var(--text-secondary);
    flex: 1;
}

/* Alert channels grid */
.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.channel-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: border-color 0.15s;
}

.channel-card:hover {
    border-color: var(--accent);
}

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

.channel-icon.email { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.channel-icon.slack { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.channel-icon.teams { background: rgba(99, 102, 241, 0.12); color: #6366F1; }
.channel-icon.gchat { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.channel-icon.discord { background: rgba(139, 92, 246, 0.12); color: #8B5CF6; }
.channel-icon.webhook { background: rgba(236, 72, 153, 0.12); color: #EC4899; }

.channel-name {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.channel-desc {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* Uptime monitoring section */
.monitor-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.monitor-type {
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.monitor-type-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.monitor-type h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.monitor-type p {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* CTA */
.features-cta {
    text-align: center;
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.features-cta h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.features-cta p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-split.reverse {
        direction: ltr;
    }

    .how-it-works {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .monitor-types {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-bar {
        gap: 24px;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .features-hero h1 {
        font-size: 2rem;
    }

    .feature-section h2 {
        font-size: 1.5rem;
    }

    .how-it-works {
        grid-template-columns: 1fr;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }

    .monitor-types {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        gap: 16px;
    }

    .stat-block .stat-num {
        font-size: 1.5rem;
    }

    .feature-section {
        padding: 48px 0;
    }
}
