/* Modern Cyberpunk Architecture Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: #0b0d0f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji";
    background-color: #0b0d0f;
    color: #e2e8f0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 60px;
}

/* Monospace Helpers for Technical Data */
code, .sec-tag, .meta-label, .block-index, .node-number, .footer-alert, .comms-tag, .anti-bot-mask, .security-note {
    font-family: ui-monospace, SFMono-Regular, SF Pro Mono, Menlo, Monaco, Consolas, monospace;
}

.container {
    width: 90%;
    max-width: 940px;
    margin: 0 auto;
}

/* Minimalist Tactical Header */
.site-header {
    background-color: #0e1115;
    border-bottom: 1px solid #1f242c;
    padding: 30px 0;
}

.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.brand .sec-tag {
    display: block;
    font-size: 0.7rem;
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.brand h1 {
    font-size: 1.5rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-item {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #2e3746;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
    border-color: #ffffff;
    background-color: #171d25;
}

/* Main Layout Grid */
.page-layout {
    margin-top: 50px;
}

/* Stark Danger Banner Box */
.alert-banner {
    background-color: #11141a;
    border-left: 4px solid #ef4444;
    padding: 35px;
    margin-bottom: 50px;
}

.alert-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
}

.meta-label {
    font-size: 0.75rem;
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 1px;
}

.alert-banner h2 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

.alert-banner p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 780px;
}

/* Documentation Content Panels */
.doc-block {
    background-color: #0e1115;
    border: 1px solid #1f242c;
    padding: 40px;
    margin-bottom: 40px;
}

.block-header {
    border-bottom: 1px solid #1f242c;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.block-index {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
}

.block-title {
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.block-intro {
    font-size: 1.05rem;
    color: #94a3b8;
    margin-bottom: 40px;
    max-width: 720px;
}

/* Grid Topology Specs */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.spec-node {
    background-color: #13171e;
    border: 1px solid #1f242c;
    padding: 25px;
}

.node-number {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: bold;
    margin-bottom: 12px;
}

.spec-node h4 {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 10px;
}

.spec-node p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Secure Communications Interface Elements */
.secure-panel {
    border-left: 4px solid #38bdf8;
}

.contact-box {
    display: flex;
    align-items: center;
    background-color: #11141a;
    border: 1px dashed #2e3746;
    padding: 20px;
    max-width: 500px;
    margin-bottom: 15px;
}

.comms-tag {
    font-size: 0.8rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 1px;
    margin-right: 15px;
}

/* ANTI-BOT CSS DEFENSE ENGINE */
.protected-email {
    display: inline-block;
}

.anti-bot-mask {
    unicode-bidi: bidi-override;
    direction: rtl;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.security-note {
    font-size: 0.75rem;
    color: #475569;
    max-width: 600px;
}

/* Technical Footer System */
.site-footer {
    margin-top: 80px;
    border-top: 1px solid #1f242c;
    padding: 40px 0;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-alert {
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 700;
    letter-spacing: 1px;
}

.copyright {
    font-size: 0.8rem;
    color: #475569;
}

/* Responsive Structural Refinement */
@media (max-width: 640px) {
    .header-layout, .footer-layout {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-links {
        width: 100%;
        flex-direction: column;
    }
    
    .alert-banner, .doc-block {
        padding: 25px;
    }
    
    .alert-banner h2 {
        font-size: 1.3rem;
    }
    
    .contact-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
