/* ================================================================
   features.css — features page styles
   ================================================================ */

/* ── Hero ───────────────────────────────────────────────────────── */
.feat-hero {
    background: linear-gradient(160deg, #111214 0%, #1e2030 50%, #1a1a2e 100%);
    padding: 90px 20px 80px;
    text-align: center;
    border-bottom: 1px solid #2e3146;
}

.feat-hero-inner {
    max-width: 820px;
    margin: 0 auto;
}

.feat-hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
}


.feat-hero-sub {
    font-size: 20px;
    color: #b9bbbe;
    margin-bottom: 8px;
}

.feat-hero-tagline {
    font-size: 15px;
    color: #7289da;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.feat-pillars {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 18px 24px;
}

.feat-pillar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 20px;
    color: #dcddde;
    font-size: 15px;
    font-weight: 500;
}

.feat-pillar i {
    color: #7289da;
    font-size: 18px;
}

.feat-pillar-divider {
    width: 1px;
    height: 28px;
    background: rgba(255,255,255,0.15);
}

.feat-hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #7289da;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    background: #5b6eae;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(114,137,218,0.35);
}

.btn-hero-secondary {
    background: transparent;
    color: #dcddde;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.35);
}

/* ── Dev notice wrap ─────────────────────────────────────────────── */
.feat-devnotice-wrap {
    background: #1e1e1e;
    padding: 30px 20px;
}

/* ── Grid variants ──────────────────────────────────────────────── */
.features-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.features-grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ── Federation section ─────────────────────────────────────────── */
.feat-federation-section {
    background: linear-gradient(160deg, #1a1a2e 0%, #1e1e1e 100%);
    max-width: none;
    padding: 70px max(20px, calc((100% - 1160px) / 2));
}

.feat-federation-label {
    display: inline-block;
    background: rgba(114,137,218,0.15);
    color: #7289da;
    border: 1px solid rgba(114,137,218,0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.feat-item-highlight {
    border: 1px solid rgba(114,137,218,0.2);
    background: rgba(114,137,218,0.05) !important;
}

.feat-item-highlight:hover {
    border-color: rgba(114,137,218,0.45);
    box-shadow: 0 8px 20px rgba(114,137,218,0.15) !important;
}

/* ── Self-host banner ───────────────────────────────────────────── */
.feat-selfhost-section {
    background: #111214;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    padding: 70px max(20px, calc((100% - 1100px) / 2));
}

.feat-selfhost-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feat-selfhost-text h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
}

.feat-selfhost-text p {
    font-size: 16px;
    color: #8e9297;
    line-height: 1.7;
    margin-bottom: 28px;
}

.feat-selfhost-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-selfhost {
    background: #7289da;
    color: #fff;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-selfhost:hover {
    background: #5b6eae;
    transform: translateY(-1px);
}

.btn-selfhost-outline {
    background: transparent;
    color: #dcddde;
    padding: 11px 24px;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.2s;
}

.btn-selfhost-outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

.feat-selfhost-code {
    background: #1a1a1a;
    border: 1px solid #2e2e2e;
    border-radius: 10px;
    padding: 28px 28px 20px;
}

.feat-selfhost-code pre {
    margin: 0 0 12px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #a9dc76;
    line-height: 1.8;
    white-space: pre;
    overflow-x: auto;
}

.feat-selfhost-code-label {
    font-size: 12px;
    color: #72767d;
}

@media (max-width: 860px) {
    .feat-selfhost-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feat-pillar-divider {
        display: none;
    }

    .feat-pillars {
        gap: 8px;
    }

    .feat-pillar {
        padding: 4px 12px;
    }
}

.page-header {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
}

.page-header p {
    font-size: 20px;
    color: #8e9297;
    max-width: 700px;
    margin: 0 auto;
}

.features-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section.alt {
    background-color: #2a2a2a;
    max-width: none;
    padding: 60px max(20px, calc((100% - 1160px) / 2));
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: #7289da;
    font-weight: 600;
}

.section-subtitle {
    font-size: 18px;
    color: #8e9297;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    background-color: #36393f;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.features-section.alt .feature-item {
    background-color: #1a1a1a;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(114, 137, 218, 0.2);
}

.feature-item i {
    font-size: 32px;
    color: #7289da;
    margin-bottom: 15px;
    display: block;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.feature-item p {
    color: #8e9297;
    font-size: 15px;
    line-height: 1.6;
}

.feature-badge {
    display: inline-block;
    background-color: #7289da;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-badge.soon { background-color: #faa61a; }
.feature-badge.beta { background-color: #43b581; }

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.comparison-item {
    text-align: center;
}

.comparison-item .icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #7289da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.comparison-item .icon-wrapper i {
    font-size: 36px;
    color: white;
}

.comparison-item h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #ffffff;
}

.comparison-item p {
    color: #8e9297;
    font-size: 14px;
}

.cta-box {
    background: linear-gradient(135deg, #7289da 0%, #5b6eae 100%);
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    margin-top: 60px;
}

.cta-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #ffffff;
}

.cta-box p {
    font-size: 18px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-box .btn {
    background-color: white;
    color: #7289da;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.dev-notice {
    background: linear-gradient(135deg, #faa61a 0%, #f77d26 100%);
    padding: 20px;
    border-radius: 8px;
    margin: -40px auto 40px;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(250, 166, 26, 0.3);
}

.dev-notice h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.dev-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 36px;
    }

    .feat-hero h1 {
        font-size: 34px;
    }

    .section-title {
        font-size: 28px;
    }

    .features-grid,
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}
