* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f1f5f9;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: #0b1f33;
}

.page-wrapper {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.doc-content-c {
    max-width: 1100px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.doc-inner {
    padding: 48px 40px;
}

.doc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
}

.doc-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0b1f33;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

.badge-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.algorithm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #1e40af;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
}

.doc-subtitle {
    font-size: 1.2rem;
    color: #1e3a8a;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.intro-text {
    font-size: 1.2rem;
    color: #1e293b;
    line-height: 1.85;
    margin-bottom: 36px;
    background: #f8fafc;
    padding: 28px 32px;
    border-radius: 24px;
    border-left: 5px solid #2563eb;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.doc-section {
    margin-bottom: 48px;
}

    .doc-section h2 {
        font-size: 1.6rem;
        font-weight: 700;
        color: #0b1f33;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 2px solid #eef2ff;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .doc-section h2 i {
            color: #2563eb;
            font-size: 1.5rem;
        }

    .doc-section h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1e293b;
        margin: 28px 0 14px;
    }

    .doc-section p {
        color: #334155;
        line-height: 1.8;
        margin-bottom: 1.2rem;
    }

.highlight-box {
    background: linear-gradient(105deg, #f8fafc 0%, #ffffff 100%);
    border-left: 4px solid #2563eb;
    padding: 24px 28px;
    margin: 28px 0;
    border-radius: 20px;
    border: 1px solid #e2edff;
    border-left-width: 5px;
}

.encryption-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 8px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.security-card {
    background: white;
    padding: 24px 26px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    box-shadow: 0 4px 6px -2px rgba(0,0,0,0.02);
}

    .security-card:hover {
        border-color: #2563eb;
        box-shadow: 0 15px 30px -12px rgba(37, 99, 235, 0.12);
        transform: translateY(-2px);
    }

.security-card-icon {
    width: 52px;
    height: 52px;
    background: #eef2ff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

    .security-card-icon i {
        font-size: 1.8rem;
        color: #2563eb;
    }

.security-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0b1f33;
}

.code-block {
    background: #0f172a;
    border-radius: 20px;
    padding: 20px;
    margin: 22px 0;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

    .code-block pre {
        margin: 0;
        white-space: pre-wrap;
        word-break: break-word;
    }

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 0.8rem;
    color: #94a3b8;
    border-bottom: 1px solid #334155;
    padding-bottom: 8px;
}

.stats-banner {
    background: #f0f9ff;
    border-radius: 24px;
    padding: 24px 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 28px 0;
    gap: 18px;
    border: 1px solid #d9eafb;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #1e3a8a;
}

.footer-quote {
    text-align: center;
    margin-top: 48px;
    padding: 32px 24px;
    background: linear-gradient(115deg, #0b1f33 0%, #1e2f4a 100%);
    border-radius: 28px;
    color: white;
}

    .footer-quote p {
        font-size: 1.2rem;
        font-weight: 500;
        color: white;
    }

.test-output {
    background: #0f172a;
    border-radius: 16px;
    padding: 16px 20px;
    margin-top: 16px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #a5f3c3;
}

    .test-output .label {
        color: #94a3b8;
    }

    .test-output .value {
        color: #e2e8f0;
    }

    .test-output .pass {
        color: #4ade80;
        font-weight: bold;
    }

    .test-output .fail {
        color: #f87171;
        font-weight: bold;
    }

@media (max-width: 720px) {
    .doc-inner {
        padding: 28px 20px;
    }

    .doc-title {
        font-size: 1.8rem;
    }

    .intro-text {
        padding: 20px;
        font-size: 1rem;
    }

    .code-block {
        font-size: 0.75rem;
    }
}
