.features-page {
    text-align: center;
    padding-top: 150px;
    padding-bottom: 120px;
    min-height: 100vh;
}

.features-hero h2 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.features-hero .tagline {
    color: #9bb1d4;
    font-size: 1.2rem;
    margin-bottom: 60px;
}

/* MAIN ACCORDION */
.accordion {
    width: 65%;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.accordion-header {
    width: 100%;
    text-align: left;
    font-weight: 700;
    color: #fff;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.02);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, color 0.3s ease;
}

.accordion-header:hover {
    background: rgba(30,144,255,0.08);
    color: #4ea3ff;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(15,20,30,0.8);
    transition: max-height 0.3s ease;
}

/* Expanded accordion */
.accordion-item.active .accordion-content {
    max-height: 800px;
}

/* SUB ACCORDION */
.sub-item {
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sub-header {
    width: 100%;
    background: rgba(255,255,255,0.01);
    color: #c9d7f2;
    text-align: left;
    font-size: 1rem;
    padding: 14px 35px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sub-header:hover {
    background: rgba(255,255,255,0.03);
    color: #4ea3ff;
}

.sub-header.active {
    color: #4ea3ff;
    font-weight: 600;
}

/* Sub content container */
.sub-content {
    max-height: 0;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    transition: max-height 0.35s ease;
    padding: 0 40px;
}

/* Expanded sub-content */
.sub-item.active .sub-content {
    max-height: 800px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Sub-content text */
.sub-content p,
.sub-content li {
    color: #d3def5;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: left;
}

/* Nested list fix (keeps same contrast as Detection Runner) */
.sub-content li {
    list-style-type: disc;
    margin-left: 18px;
}

/* SUB-SUB ACCORDION (nested details) */
.sub-subaccordion {
    padding-left: 25px;
    border-left: 1px solid rgba(255,255,255,0.08);
    margin-top: 5px;
    margin-bottom: 10px;
}

.sub-subheader {
    background: transparent;
    border: none;
    color: #b8c8eb;
    cursor: pointer;
    padding: 6px 0;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
    transition: color 0.3s ease;
}

.sub-subheader:hover {
    color: #4ea3ff;
}

.sub-subheader.active {
    color: #4ea3ff;
    font-weight: 600;
}

.sub-subcontent {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    background: rgba(255,255,255,0.015);
    border-left: 2px solid rgba(30,144,255,0.3);
    margin: 6px 0;
    padding-left: 15px;
}

.sub-subitem.active .sub-subcontent {
    max-height: 300px;
    padding-top: 6px;
    padding-bottom: 10px;
}

.sub-subcontent p {
    color: #c9d8f7;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* FIX — make nested layers match Detection Runner contrast */
.accordion-content,
.sub-content,
.sub-subcontent {
    background: rgba(255,255,255,0.02);
}

/* Text contrast fix */
.accordion-header,
.sub-header,
.sub-subheader {
    color: #fff;
}

.accordion-content p,
.sub-content p,
.sub-subcontent p,
.accordion-content li {
    color: #d6d6d6;
}

/* Focus states */
.accordion-header:focus,
.sub-header:focus,
.sub-subheader:focus {
    outline: none;
    color: #4ea3ff;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .accordion {
        width: 90%;
    }

    .accordion-header {
        font-size: 1rem;
    }

    .sub-header {
        font-size: 0.95rem;
        padding: 12px 25px;
    }

    .sub-content {
        padding: 0 25px;
    }
}
