/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --torzon-red: #dc3545;
    --bg-black: #000000;
    --bg-dark: #111111;
    --text-gray: #aaaaaa;
    --neon-glow: 0 0 10px rgba(220, 53, 69, 0.5);
}

body {
    background-color: var(--bg-black);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6, 
.font-head, .main-title, .h2-huge, .h2-tech, .h2-center {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    transition: all 0.2s ease;
}

/* =========================================
   2. UNIFIED HEADER & FOOTER (ALL PAGES)
   ========================================= */
.navbar {
    background-color: rgba(0, 0, 0, 0.95) !important;
    border-bottom: 1px solid #222;
    padding: 12px 0;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1.5px;
    color: #fff !important;
}

.nav-link {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: #bbb !important;
    margin-left: 15px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.6);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--torzon-red);
    bottom: -5px;
    left: 0;
}

.btn-outline-danger {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    border: 1px solid var(--torzon-red);
    color: var(--torzon-red);
}

.btn-outline-danger:hover {
    background-color: var(--torzon-red);
    color: #fff;
    box-shadow: 0 0 15px var(--torzon-red);
}

/* Footer Utils */
.hover-white:hover { color: #fff !important; }
.hover-red:hover { color: var(--torzon-red) !important; }

/* =========================================
   3. INDEX PAGE: BACKGROUNDS & HERO
   ========================================= */
.noise-overlay {
    position: fixed;
    top: 0;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ZW50SUQ9InhtcC5kaWQ6NjhDRkUyRjgxMkU2MTFFNEEzN0U4QzczMzI5MjIxREEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4NvSWrAAAAHklEQVR42mJ89+7dfwYkYGRkpFA9qhgYGP7///8DAH5EEncX4Vl8AAAAAElFTkSuQmCC');
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

.bg-gradient-mesh {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a0505 0%, #000000 70%);
    z-index: -2;
}

.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #0f0;
    margin-bottom: 20px;
    background: rgba(0,255,0,0.05);
}

.status-dot {
    width: 8px; height: 8px;
    background: #0f0;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #0f0;
}

.main-title {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-outline {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

.hero-desc {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 500px;
    margin-bottom: 40px;
}

/* Custom Buttons */
.btn-primary-custom {
    display: inline-block;
    background: var(--torzon-red);
    color: #fff;
    padding: 12px 30px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: #c82333;
    color: #fff;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.btn-secondary-custom {
    display: inline-block;
    color: #fff;
    padding: 12px 30px;
    margin-left: 15px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    border-bottom: 1px solid var(--torzon-red);
}

.btn-secondary-custom:hover {
    color: var(--torzon-red);
}

/* Terminal Card (Link Block) */
.link-terminal-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

.terminal-header {
    background: #111;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.terminal-title {
    margin-left: auto;
    font-size: 0.7rem;
    color: #666;
    letter-spacing: 1px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-body {
    padding: 30px;
    text-align: center;
}

.terminal-h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.url-display-box {
    background: #000;
    border: 1px solid #333;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.url-display-box code {
    color: var(--torzon-red);
    font-family: 'Courier New', monospace;
}

.btn-copy-icon {
    background: none; border: none; color: #666; cursor: pointer;
}
.btn-copy-icon:hover { color: #fff; }

.btn-full-access {
    display: block;
    width: 100%;
    padding: 10px;
    border: 1px solid #333;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    margin-top: 15px;
    transition: 0.3s;
}
.btn-full-access:hover { background: #fff; color: #000; }

/* =========================================
   4. INDEX PAGE: SECTIONS & VISUALS
   ========================================= */
.section-stripe {
    padding: 80px 0;
    border-bottom: 1px solid #222;
}

.stripe-dark { background: #080808; }
.stripe-black { background: #000000; }
.stripe-mesh { 
    background-image: linear-gradient(#111 1px, transparent 1px), linear-gradient(90deg, #111 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 3D Cube Animation */
.css-3d-wrapper {
    perspective: 1000px;
    width: 150px; height: 150px;
    margin: 0 auto;
}

.css-3d-cube {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: spin 10s infinite linear;
}

.face {
    position: absolute; width: 150px; height: 150px;
    border: 2px solid var(--torzon-red);
    background: rgba(220, 53, 69, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-family: 'Rajdhani'; font-size: 1.2rem;
    color: #fff;
}

.front  { transform: rotateY(0deg) translateZ(75px); }
.back   { transform: rotateY(180deg) translateZ(75px); }
.right  { transform: rotateY(90deg) translateZ(75px); }
.left   { transform: rotateY(-90deg) translateZ(75px); }
.top    { transform: rotateX(90deg) translateZ(75px); }
.bottom { transform: rotateX(-90deg) translateZ(75px); }

@keyframes spin {
    from { transform: rotateX(0deg) rotateY(0deg); }
    to { transform: rotateX(360deg) rotateY(360deg); }
}

/* Server Grid */
.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.server-card {
    background: #111;
    border: 1px solid #333;
    padding: 15px;
    position: relative;
}

.server-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 10px;
    color: #888;
}

.server-load-bar {
    height: 4px;
    background: #222;
    width: 100%;
}
.server-load-bar div {
    height: 100%;
    background: var(--torzon-red);
}

.led-green { width: 8px; height: 8px; background: #0f0; border-radius: 50%; box-shadow: 0 0 5px #0f0; margin-bottom: 10px;}
.led-red { width: 8px; height: 8px; background: #f00; border-radius: 50%; margin-bottom: 10px;}

/* PGP Scanner UI */
.pgp-scanner-window {
    background: #000;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    padding: 20px;
}
.scanner-header { border-bottom: 1px solid #333; padding-bottom: 10px; margin-bottom: 15px; color: #888; font-size: 0.9rem; }
.code-block { font-size: 0.85rem; line-height: 1.4; color: #666; }
.text-highlight { color: var(--torzon-red); font-weight: bold; }
.status-badge-success { color: #28a745; border: 1px solid #28a745; padding: 5px 10px; display: inline-block; margin-top: 15px; font-size: 0.8rem; }
.tech-spec-box { margin-top: 20px; border-top: 1px solid #333; padding-top: 15px; }
.spec-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #888; }

/* Network Map */
.network-map-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 50px auto;
    position: relative;
}

.net-node {
    text-align: center;
    z-index: 2;
    background: #000;
    padding: 0 10px;
}

.node-icon {
    width: 50px; height: 50px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: #111;
    margin: 0 auto 10px;
}

.node-label { font-size: 0.7rem; color: #666; letter-spacing: 1px; }

.net-line {
    flex-grow: 1;
    height: 1px;
    background: #333;
    position: relative;
    margin: 0 5px;
    top: -15px;
}

.data-packet {
    width: 6px; height: 6px; background: #fff; border-radius: 50%;
    position: absolute; top: -3px; left: 0;
    animation: transmit 2s infinite linear;
}
.delay-1 { animation-delay: 0.5s; }
.delay-2 { animation-delay: 1s; }

@keyframes transmit {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Timeline (Guide on Index) */
.timeline-wrapper { position: relative; padding-left: 30px; border-left: 1px solid #333; margin-top: 40px; }
.timeline-item { margin-bottom: 40px; position: relative; }
.timeline-marker {
    position: absolute; left: -45px; top: 0;
    width: 30px; height: 30px;
    background: #111; border: 1px solid var(--torzon-red);
    color: #fff; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: bold;
}
.seo-text { color: #aaa; font-size: 0.95rem; }

/* Features Matrix */
.border-grid .border-grid-item { border: 1px solid #222; margin-top: -1px; margin-left: -1px; transition: 0.3s; }
.border-grid-item:hover { background: #111; z-index: 2; border-color: #333; }
.seo-text-sm { color: #888; font-size: 0.85rem; margin-top: 10px; }

/* =========================================
   5. GUIDE PAGE SPECIFIC STYLES
   ========================================= */
.doc-hero {
    margin-top: 76px;
    padding: 80px 0 60px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-bottom: 1px solid #222;
}

.h1-doc {
    font-size: 3rem;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.2);
}

.toc-box {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 20px;
    border-left: 3px solid var(--torzon-red);
}

.toc-list { list-style: none; padding-left: 0; margin-bottom: 0; }
.toc-list li { margin-bottom: 10px; }
.toc-list a { color: #888; font-size: 0.95rem; display: block; padding: 3px 0; }
.toc-list a:hover { color: #fff; transform: translateX(5px); }

.doc-content p { font-size: 1.05rem; line-height: 1.7; color: #dcdcdc; margin-bottom: 1.5rem; }
.doc-divider { border-color: #222; margin: 40px 0; opacity: 0.5; }

.alert-box-tech {
    display: flex;
    background: #1a0505;
    border: 1px solid #4a0f0f;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert-icon { font-size: 24px; color: var(--torzon-red); margin-right: 20px; }

.tech-list { list-style: none; padding-left: 0; }
.tech-list li { margin-bottom: 12px; padding-left: 25px; position: relative; color: #aaa; }
.tech-list i { position: absolute; left: 0; top: 4px; }

/* Guide Accordion */
.custom-accordion .accordion-item { background: transparent; border: 1px solid #333; margin-bottom: 10px; }
.custom-accordion .accordion-button { background: #0a0a0a; color: #fff; font-family: 'Rajdhani', sans-serif; box-shadow: none; }
.custom-accordion .accordion-button:not(.collapsed) { background: #1a0505; color: var(--torzon-red); }
.custom-accordion .accordion-body { background: #000; color: #ccc; }

/* Code / Terminal in Guide */
.terminal-block {
    background: #0f0f0f;
    border: 1px solid #333;
    font-family: 'Courier New', monospace;
    padding: 0; margin: 20px 0;
    border-radius: 5px; overflow: hidden;
}
.term-header { background: #222; padding: 5px 15px; font-size: 0.8rem; color: #aaa; }
.term-body { padding: 15px; }
.cmd { color: #fff; margin-bottom: 5px; }
.cmd::before { content: "$ "; color: var(--torzon-red); }
.success { color: #28a745; margin-bottom: 0; }
.info { color: #17a2b8; margin-bottom: 0; }
