* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    font-family: 'Times New Roman', serif;
    color: #e0e0e0;
    overflow-x: hidden;
    line-height: 1.6;
}

.matrix-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: radial-gradient(ellipse at center, #181a20 0%, #000000 70%);
}

.terminal-interface {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 1rem;
    background: #23252e;
}

.crt-effect {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.crt-effect::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.3;
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    z-index: 11;
    pointer-events: none;
    animation: scanline 2s linear infinite;
}

.flicker {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.03);
    z-index: 12;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes flicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.nexus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid #2a2d38;
    margin-bottom: 1rem;
}

.hologram-logo {
    position: relative;
}

.particle-field {
    position: relative;
    padding: 1rem 2rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: bold;
    color: transparent;
    background: linear-gradient(45deg, #8b6bff, #6be2ff, #ff6b6b);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 30px rgba(139, 107, 255, 0.5);
    animation: hologram 3s ease-in-out infinite;
}

.quantum-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.quantum-dots::before,
.quantum-dots::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6be2ff;
    border-radius: 50%;
    animation: quantumFloat 4s infinite;
}

.quantum-dots::before {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.quantum-dots::after {
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes hologram {
    0%, 100% { opacity: 0.8; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-5px); }
}

@keyframes quantumFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(10px, -10px); }
    50% { transform: translate(-5px, 5px); }
    75% { transform: translate(-10px, -5px); }
}

.encryption-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6be2ff;
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: #6be2ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #6be2ff; }
    50% { opacity: 0.5; box-shadow: 0 0 20px #6be2ff; }
}

.dimensional-nav {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.nav-portal {
    position: relative;
    padding: 0.8rem 1.2rem;
    border: 1px solid #2a2d38;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(24, 26, 32, 0.5);
    text-align: center;
    min-width: 120px;
    font-size: 0.85rem;
}

.nav-portal.active {
    border-color: #8b6bff;
    background: rgba(139, 107, 255, 0.1);
}

.portal-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(139, 107, 255, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-portal.active .portal-glow {
    opacity: 1;
}

.nav-portal:hover {
    transform: translateY(-2px);
    border-color: #6be2ff;
}

.sector-container {
    position: relative;
    min-height: 600px;
    margin-bottom: 2rem;
}

.sector {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sector.active {
    display: block;
    opacity: 1;
}

.data-stream {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    overflow: hidden;
}

.stream-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b6bff, transparent);
    margin-bottom: 4px;
    animation: dataFlow 3s infinite;
}

.stream-line:nth-child(2) { animation-delay: 1s; }
.stream-line:nth-child(3) { animation-delay: 2s; }

@keyframes dataFlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.quantum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.grid-cell {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.7);
    position: relative;
    overflow: hidden;
}

.grid-cell.anomaly::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #8b6bff, #6be2ff, #ff6b6b, #8b6bff);
    border-radius: 10px;
    z-index: -1;
    opacity: 0;
    animation: anomalyBorder 4s linear infinite;
}

.grid-cell.anomaly:hover::before {
    opacity: 1;
}

@keyframes anomalyBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content-block {
    margin-bottom: 1rem;
}

.content-block p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.5);
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #8b6bff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #6be2ff;
}

.security-matrix {
    padding: 1.5rem;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.security-layer {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.7);
}

.security-layer h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.security-layer p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.security-visual {
    height: 60px;
    position: relative;
    margin-top: 1rem;
}

.key-rotation, .multisig-animation, .encryption-flow, .distribution-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid #2a2d38;
    border-radius: 4px;
}

.key-rotation::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #8b6bff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 4s linear infinite;
}

.multisig-animation::before,
.multisig-animation::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 15px;
    background: #6be2ff;
    border-radius: 50%;
    animation: multisig 3s infinite;
}

.multisig-animation::before {
    top: 20px;
    left: 30%;
}

.multisig-animation::after {
    bottom: 20px;
    right: 30%;
}

.encryption-flow::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, #ff6b6b, transparent);
    animation: flow 2s infinite;
}

.distribution-map::before,
.distribution-map::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: #8b6bff;
    border-radius: 50%;
}

.distribution-map::before {
    top: 15px;
    left: 25%;
    animation: pulse 2s infinite;
}

.distribution-map::after {
    bottom: 15px;
    right: 25%;
    animation: pulse 2s infinite 1s;
}

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes multisig {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

@keyframes flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.features-terminal {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
    margin: 1.5rem;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid #2a2d38;
}

.signal-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6be2ff;
}

.signal-dot {
    width: 8px;
    height: 8px;
    background: #6be2ff;
    border-radius: 50%;
    animation: signalPulse 1.5s infinite;
}

@keyframes signalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.features-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
}

.feature-card h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.feature-card p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.knowledge-nexus {
    padding: 1.5rem;
}

.academy-terminal {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
}

.course-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.course-module {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
}

.course-module h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.module-content {
    margin-bottom: 1rem;
}

.module-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.module-content ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.module-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.module-content li::before {
    content: "⟩";
    position: absolute;
    left: 0;
    color: #6be2ff;
}

.vendor-network {
    padding: 1.5rem;
}

.network-terminal {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
}

.vendor-protocols {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.protocol-section {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
}

.protocol-section h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.protocol-content {
    margin-bottom: 1rem;
}

.protocol-content p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.protocol-content ul {
    list-style: none;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.protocol-content li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.protocol-content li::before {
    content: "◈";
    position: absolute;
    left: 0;
    color: #6be2ff;
}

.products-matrix {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
    margin: 1.5rem;
}

.categories-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.category-card {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
}

.category-card h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.category-card p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.technical-specs {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
    margin: 1.5rem;
}

.specs-grid {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.spec-item {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
}

.spec-item h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #2a2d38;
    padding-bottom: 0.5rem;
}

.spec-item p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.7;
}

.gateway-terminal {
    border: 1px solid #2a2d38;
    border-radius: 8px;
    background: rgba(24, 26, 32, 0.8);
    overflow: hidden;
    margin: 1.5rem;
}

.links-grid {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gateway-link {
    padding: 1.5rem;
    border: 1px solid #2a2d38;
    border-radius: 6px;
    background: rgba(35, 37, 46, 0.6);
    transition: all 0.3s ease;
}

.gateway-link:hover {
    border-color: #8b6bff;
    background: rgba(139, 107, 255, 0.1);
    transform: translateX(10px);
}

.link-prefix {
    font-size: 0.8rem;
    color: #8b6bff;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.mirror-url {
    color: #6be2ff;
    text-decoration: none;
    font-family: monospace;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    word-break: break-all;
}

.mirror-url:hover {
    color: #8b6bff;
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6be2ff;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: #6be2ff;
    border-radius: 50%;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nexus-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #2a2d38;
    background: rgba(24, 26, 32, 0.8);
}

.security-protocol {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.protocol-badge {
    position: relative;
    padding: 0.5rem 1rem;
    border: 1px solid #6be2ff;
    border-radius: 4px;
    background: rgba(107, 226, 255, 0.1);
    font-size: 0.8rem;
    color: #6be2ff;
}

.badge-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(107, 226, 255, 0.3);
    animation: badgeGlow 3s infinite;
}

@keyframes badgeGlow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.timestamp {
    font-size: 0.8rem;
    color: #8b6bff;
    font-family: monospace;
}

.disclaimer {
    padding: 1rem;
    border: 1px solid #2a2d38;
    border-radius: 4px;
    background: rgba(255, 107, 107, 0.1);
    font-size: 0.8rem;
    color: #ff6b6b;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    line-height: 1.4;
}

h3, h4 {
    color: #8b6bff;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

ul {
    list-style: none;
}

@media (max-width: 768px) {
    .dimensional-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-portal {
        width: 100%;
        max-width: 200px;
    }
    
    .quantum-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
    }
    
    .nexus-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .security-protocol {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .terminal-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}