:root {
    --bg-black: #050505;
    --bg-dark-green: #0a140a;
    --primary: #00ff41; /* Hacker Green */
    --primary-dim: rgba(0, 255, 65, 0.2);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(10, 20, 15, 0.6);
    --font-heading: 'Exo 2', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-black);
    color: #e0e0e0;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .section-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-highlight {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-dim);
}

.text-stroke {
    -webkit-text-stroke: 1px #fff;
    color: transparent;
}

/* Backgrounds */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJub2lzZSI+PHZlVHVyYnVsZW5jZSB0eXBlPSJmcmFjdGFsTm9pc2UiIGJhc2VGcmVxdWVuY3k9IjAuNjUiIG51bU9jdGF2ZXM9IjMiIHN0aXRjaFRpbGVzPSJzdGl0Y2giLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWx0ZXI9InVybCgjbm9pc2UpIiBvcGFjaXR5PSIwLjA1Ii8+PC9zdmc+');
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.hero-grid-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
}

.fog-container {
    position: absolute;
    width: 100%; height: 100vh;
    overflow: hidden;
    z-index: 0;
}

/* HERO SECTION UPDATES */
.hero-section {
    min-height: 100vh;
    padding-top: 80px;
    position: relative;
    background: radial-gradient(circle at center, #112211 0%, #000000 70%);
}

.cyber-hud {
    display: inline-flex;
    gap: 20px;
    padding: 10px 20px;
    border: 1px solid var(--primary-dim);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.hud-item {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: uppercase;
}

.hero-link-container {
    max-width: 700px;
    margin: 0 auto;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-panel-high-contrast {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
    border-radius: 4px; /* More angular/tech */
    backdrop-filter: blur(20px);
}

.btn-primary-glow {
    background: var(--primary);
    color: #000;
    font-weight: 800;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px var(--primary-dim);
    transition: all 0.3s;
}

.btn-primary-glow:hover {
    background: #fff;
    box-shadow: 0 0 40px var(--primary-dim);
    transform: translateY(-2px);
}

/* 3D Shapes */
.floating-shape {
    position: absolute;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}
.shape-1 { width: 300px; height: 300px; top: 20%; left: 10%; }
.shape-2 { width: 400px; height: 400px; bottom: 10%; right: 10%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* SECTION VISUALS */

/* Server Rack Visual */
.tech-card-visual {
    background: linear-gradient(135deg, rgba(20,20,20,0.9), rgba(10,10,10,0.95));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.server-rack-visual {
    width: 60px;
    height: 200px;
    border: 2px solid #333;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rack-slot {
    flex: 1;
    background: #111;
    border-radius: 2px;
    position: relative;
}

.rack-slot.active::after {
    content: '';
    position: absolute;
    right: 5px; top: 5px;
    width: 4px; height: 4px;
    background: var(--primary);
    box-shadow: 0 0 5px var(--primary);
    animation: blinker 0.5s infinite alternate;
}

/* Mirror Status Board */
.mirror-status-board {
    background: rgba(0,0,0,0.8);
    border: 1px solid #333;
    padding: 20px;
    font-family: var(--font-mono);
    border-radius: 5px;
}

.board-header {
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
}

.mirror-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #222;
}

.mirror-item.offline { color: #555; }

/* Terminal Window */
.terminal-window {
    background: #0f0f0f;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    border: 1px solid #333;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.title { margin-left: 10px; color: #888; font-size: 0.8rem; font-family: var(--font-mono); }

.terminal-body {
    padding: 20px;
    color: #ccc;
}

/* Onion Visual */
.onion-visual-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.layer {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--primary);
    opacity: 0.3;
}

.layer-1 { width: 100%; height: 100%; animation: spin 20s linear infinite; border-style: dashed; }
.layer-2 { width: 70%; height: 70%; animation: spin 15s linear infinite reverse; border-color: #fff; }
.layer-3 { width: 40%; height: 40%; animation: spin 10s linear infinite; border-width: 2px; }

.core-icon {
    font-size: 3rem;
    color: var(--primary);
    z-index: 2;
    text-shadow: 0 0 20px var(--primary);
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* General Utilities */
.section-padding { padding: 100px 0; z-index: 2; }
.relative { position: relative; }
.z-2 { z-index: 2; }
.bg-darker { background: rgba(0,0,0,0.3); }
.glass-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}
.glass-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05);
    border-color: var(--primary);
}
.icon-box {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Scroll Animations */
.reveal-on-scroll { opacity: 0; transform: translateY(50px); transition: all 0.8s ease; }
.reveal-on-scroll.active { opacity: 1; transform: translateY(0); }
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s forwards; }
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
/* --- Navigation Updates --- */
.navbar {
    transition: all 0.3s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    background: rgba(5, 10, 5, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--primary-dim);
    padding: 10px 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: #b0b0b0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 15px !important;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px var(--primary-dim);
}

.nav-link.text-highlight {
    color: var(--primary) !important;
}

/* Brand Animation */
.brand-logo-anim {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--primary);
    animation: pulseLogo 3s infinite;
}

@keyframes pulseLogo {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 65, 0); }
}

/* --- Section 6: Security Panel Visual --- */
.security-panel {
    background: #000;
    border: 1px solid #333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.panel-header {
    background: #111;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    color: #fff;
    font-family: var(--font-mono);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-body {
    padding: 0;
}

.check-item {
    padding: 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: background 0.3s;
}

.check-item:last-child { border-bottom: none; }

.check-item:hover { background: rgba(255,255,255,0.02); }

.check-item i { font-size: 1.2rem; }
.check-item.success i { color: var(--primary); }
.check-item.warning i { color: #ffbd2e; }
.check-item.pending i { color: #555; }

/* --- Section 7: Hex Icons & Glow --- */
.hex-icon {
    width: 80px; height: 80px;
    margin: 0 auto;
    background: url('data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTAwIDEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cG9seWdvbiBwb2ludHM9IjUwIDAgMTAwIDI1IDEwMCA3NSA1MCAxMDAgMCA3NSAwIDI1IiBmaWxsPSJub25lIiBzdHJva2U9IiMwMGZmNDEiIHN0cm9rZS13aWR0aD0iMSIvPjwvc3ZnPg==') no-repeat center center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.3s;
}

.hover-glow:hover .hex-icon {
    transform: scale(1.1) rotate(30deg);
    filter: drop-shadow(0 0 10px var(--primary));
}

.tech-line-vertical {
    position: absolute;
    top: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
}
.tech-line-vertical.left { left: 50px; }
/* --- Solid Navigation (No Transparency) --- */
.solid-nav {
    background-color: #020202; /* Абсолютно черный/технический фон */
    border-bottom: 1px solid rgba(0, 255, 65, 0.15); /* Тонкая зеленая линия */
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.9);
}

.navbar-toggler:focus {
    box-shadow: none;
}
/* --- Crypto Card Visual --- */
.crypto-card-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.crypto-card {
    width: 380px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(0, 0, 0, 1));
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 15px;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
    box-shadow: -20px 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.crypto-card:hover {
    transform: rotateY(0) rotateX(0);
}

.graph-line {
    height: 2px;
    width: 100%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    position: relative;
}

.graph-line::after {
    content: '';
    position: absolute;
    top: -4px; right: 0;
    width: 10px; height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px #fff;
    animation: moveGraph 2s infinite ease-in-out alternate;
}

@keyframes moveGraph {
    0% { right: 100%; opacity: 0; }
    50% { opacity: 1; }
    100% { right: 0; opacity: 0; }
}

/* --- Guide Steps Visual --- */
.step-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px 20px;
    border-radius: 4px;
    position: relative;
    height: 100%;
    transition: all 0.3s;
}

.step-card:hover {
    background: rgba(0, 255, 65, 0.05);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255,255,255,0.1);
    line-height: 1;
    position: absolute;
    top: 10px;
    right: 20px;
}

.step-number.active {
    color: rgba(0, 255, 65, 0.2);
}

/* --- Custom Accordion (FAQ) --- */
.custom-accordion .accordion-button {
    background: rgba(10, 10, 10, 0.8) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: none !important;
}

.custom-accordion .accordion-button:not(.collapsed) {
    background: rgba(0, 255, 65, 0.1) !important;
    border-color: var(--primary);
    color: var(--primary) !important;
}

.custom-accordion .accordion-button::after {
    filter: invert(1);
}

.custom-accordion .accordion-button:not(.collapsed)::after {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(90deg);
}
/* --- URL Anatomy Visual --- */
.url-breakdown-card {
    background: #0f0f0f;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
}

.url-string {
    font-size: 1.2rem;
    background: #000;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #222;
    display: block;
    word-break: break-all;
}

.exp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #aaa;
}

.tech-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.badge-label {
    font-size: 0.6rem;
    color: #666;
    letter-spacing: 1px;
}

.badge-value {
    font-size: 0.9rem;
    font-weight: bold;
    color: #fff;
}

/* --- Glass Table for Mirrors --- */
.glass-table-container {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.custom-table th {
    background: rgba(0, 0, 0, 0.8);
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding: 15px;
}

.custom-table td {
    vertical-align: middle;
    padding: 20px 15px;
    border-color: rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.highlight-row {
    background: rgba(0, 255, 65, 0.05);
    border-left: 3px solid var(--primary);
}

.highlight-row td {
    color: #fff;
}
