/* Features Showcase Section with TOC */
.features-showcase {
    padding: 5rem 0;
    background: #fafafa;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    position: relative;
}

/* Table of Contents Sidebar */
.features-toc {
    position: relative;
}

.toc-sticky {
    position: sticky;
    top: 100px;
    background: white;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.toc-sticky h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s;
    position: relative;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.toc-link:hover {
    background: #f9f9f9;
    color: #333;
}

.toc-link.active {
    background: #fff7ed;
    color: #333;
}

.toc-link.active::before {
    opacity: 1;
}

.toc-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.toc-link.active .toc-number {
    background: var(--accent-gradient);
    color: white;
}

.toc-title {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Features Content */
.features-main {
    min-width: 0;
}

.features-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.features-header .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.features-header p {
    font-size: 1.25rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Feature Items - All Vertical Layout */
.feature-item {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.feature-item.reverse {
    flex-direction: column;
}

.feature-item.reverse .feature-visual {
    order: unset;
}

.feature-item.reverse .feature-description {
    order: unset;
}

/* Feature Visual */
.feature-visual {
    position: relative;
    top: 0;
}

.feature-visual img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-visual img:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

/* Feature Description */
.feature-description {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff7ed;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-label {
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-description h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.feature-intro {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Feature Points */
.feature-points {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-points li {
    display: flex;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fafafa;
    border-radius: 8px;
    transition: background 0.3s;
}

.feature-points li:hover {
    background: #f5f5f5;
}

.point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.feature-points li > div {
    flex: 1;
}

.feature-points strong {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.feature-points span {
    color: #666;
    line-height: 1.5;
}

/* Edit Context Image Box */
.edit-context-image-box {
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
}

.edit-context-image-box h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #333;
}

.edit-context-image-box > p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.edit-context-image-box .image-container {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.edit-context-image-box .image-container img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* Context Importance Section */
.context-importance {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #e5e5e5;
}

.context-importance h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.context-importance > p {
    font-size: 1.05rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.context-example {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-left: 4px solid;
    border-image: var(--accent-gradient) 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.example-label {
    font-size: 0.875rem;
    color: #999;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.context-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: #fff7ed;
    border-radius: 6px;
}

.context-explanation {
    color: #666;
    line-height: 1.6;
    margin-top: 1rem;
}

.context-explanation em {
    color: #E67E5C;
    font-style: normal;
    font-weight: 600;
}

.context-benefit {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fff7ed 0%, #ffe9d5 100%);
    border-radius: 8px;
    text-align: center;
}

/* Feature Tip */
.feature-tip {
    background: linear-gradient(135deg, #fff7ed 0%, #ffe9d5 100%);
    border-left: 4px solid;
    border-image: var(--accent-gradient) 1;
    padding: 1.25rem;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: start;
    gap: 1rem;
}

.tip-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.feature-tip p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.feature-tip strong {
    color: #333;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Features CTA */
.features-cta {
    background: var(--accent-gradient);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-top: 4rem;
    box-shadow: 0 10px 40px rgba(230, 126, 92, 0.3);
}

.features-cta h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.features-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.features-cta .cta-button {
    background: white;
    color: #E67E5C;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.features-cta .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    background: #f5f5f5;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .features-container {
        grid-template-columns: 240px 1fr;
        gap: 3rem;
    }

    .toc-sticky {
        padding: 1.5rem 1rem;
    }

    .feature-item {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-toc {
        display: none;
    }

    .feature-item,
    .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-item.reverse .feature-visual,
    .feature-item.reverse .feature-description {
        order: unset;
    }

    .feature-visual {
        position: relative;
        top: 0;
    }

    .features-header h2 {
        font-size: 2.25rem;
    }

    .feature-description h3 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .features-showcase {
        padding: 3rem 0;
    }

    .features-header {
        margin-bottom: 3rem;
    }

    .features-header h2 {
        font-size: 2rem;
    }

    .features-header p {
        font-size: 1rem;
    }

    .feature-item {
        margin-bottom: 4rem;
    }

    .feature-description {
        padding: 2rem 1.5rem;
    }

    .feature-description h3 {
        font-size: 1.5rem;
    }

    .feature-intro {
        font-size: 1rem;
    }

    .feature-points li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features-cta {
        padding: 2rem 1.5rem;
    }

    .features-cta h3 {
        font-size: 1.5rem;
    }

    .features-cta p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .features-showcase {
        padding: 2rem 0;
    }

    .feature-description {
        padding: 1.5rem;
    }

    .feature-points li {
        padding: 0.75rem;
    }

    .point-icon,
    .tip-icon {
        font-size: 1.25rem;
    }
}
