:root {
    --bg-dark: #050505;
    --text-main: #e0e0e0;
    --text-muted: #888;
    --accent-primary: #7000ff; /* Фиолетовый */
    --accent-secondary: #00d4ff; /* Циан */
    --accent-success: #00ff80; /* Зеленый */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- MATRIX BACKGROUND --- */
#matrixCanvas {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.07; pointer-events: none;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 40px; position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-family: var(--font-display); font-weight: bold; font-size: 1.5rem; letter-spacing: 2px; color: #fff; }
.logo span { color: var(--accent-primary); }
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: #bbb; font-size: 0.85rem; text-transform: uppercase; transition: 0.3s; font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-secondary); text-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
.mobile-menu-btn { display: none; cursor: pointer; color: #fff; font-size: 1.5rem; }

/* --- TYPOGRAPHY & LAYOUT --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: #fff; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; position: relative; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; text-transform: uppercase; }
.section-title span { color: var(--accent-primary); border-bottom: 2px solid var(--accent-primary); }

/* --- HERO SECTION (INDEX) --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; width: 100%; }
.hero h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero .outline { -webkit-text-stroke: 1px rgba(255,255,255,0.3); color: transparent; }
.hero .glow { text-shadow: 0 0 20px rgba(112, 0, 255, 0.5); }

/* --- 3D CARD & CYBER ELEMENTS --- */
.perspective-container { perspective: 1000px; }
.cyber-card {
    background: rgba(10, 10, 10, 0.85); border: 1px solid #333; border-radius: 12px;
    padding: 0; position: relative; overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.8); backdrop-filter: blur(20px);
    transition: transform 0.1s ease-out;
}
.cyber-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
    animation: scanline 3s infinite linear;
}
@keyframes scanline { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.cc-header { padding: 15px 25px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.02); }
.cc-status { font-family: monospace; color: var(--accent-success); font-size: 0.8rem; display: flex; align-items: center; gap: 8px; }
.cc-body { padding: 30px; text-align: center; }
.onion-address {
    font-family: 'Space Grotesk', monospace; font-size: 1.2rem; color: #fff; letter-spacing: 1px;
    background: rgba(0,0,0,0.5); padding: 20px; border: 1px dashed #444; border-radius: 8px; margin: 20px 0; word-break: break-all;
}

/* --- BUTTONS --- */
.btn { padding: 12px 30px; border-radius: 4px; text-transform: uppercase; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; cursor: pointer; border: none; font-size: 0.9rem; }
.btn-primary { background: var(--accent-primary); color: #fff; box-shadow: 0 0 20px rgba(112, 0, 255, 0.3); }
.btn-primary:hover { background: #8a2be2; box-shadow: 0 0 30px rgba(112, 0, 255, 0.5); }

.btn-cyber { padding: 15px; font-family: var(--font-display); text-transform: uppercase; font-weight: bold; cursor: pointer; transition: all 0.3s; border: none; font-size: 0.9rem; width: 100%; }
.btn-cyber.copy { background: #1a1a1a; color: #aaa; border: 1px solid #333; }
.btn-cyber.copy:hover { color: #fff; border-color: #fff; }
.btn-cyber.go { background: var(--accent-primary); color: #fff; }
.btn-cyber.go:hover { background: #8a2be2; }
.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* --- BENTO GRID --- */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, minmax(250px, auto)); gap: 20px; padding: 20px 0; }
.bento-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.9), rgba(10, 10, 10, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 24px; padding: 30px;
    position: relative; overflow: hidden; transition: all 0.4s;
    display: flex; flex-direction: column; justify-content: space-between;
}
.bento-card:hover { transform: translateY(-5px); border-color: rgba(112, 0, 255, 0.3); }
.span-2 { grid-column: span 2; }
.span-row-2 { grid-row: span 2; }
.bento-bg-icon { position: absolute; bottom: -20px; right: -20px; font-size: 8rem; opacity: 0.05; pointer-events: none; }

/* --- TABLES & STATUS --- */
.mirror-table-container { background: rgba(10, 10, 10, 0.6); border: 1px solid #333; border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
.mirror-row { display: grid; grid-template-columns: 0.5fr 2fr 1fr 1fr; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; }
.status-ok { color: var(--accent-success); font-weight: bold; font-size: 0.8rem; }
.btn-connect-sm { border: 1px solid var(--accent-secondary); color: var(--accent-secondary); padding: 5px 10px; text-decoration: none; font-size: 0.8rem; text-transform: uppercase; }
.btn-connect-sm:hover { background: var(--accent-secondary); color: #000; }

/* --- CONTENT PAGES STYLES --- */
.text-content p { margin-bottom: 20px; text-align: justify; }
.text-content ul { margin-left: 20px; margin-bottom: 20px; }
.highlight-box { background: rgba(112, 0, 255, 0.05); border: 1px solid rgba(112, 0, 255, 0.2); padding: 20px; border-radius: 8px; margin: 30px 0; }

/* --- FAQ & ACCORDION --- */
.faq-item { margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 20px; }
.faq-question { font-size: 1.2rem; color: #fff; cursor: pointer; display: flex; justify-content: space-between; font-weight: bold; }
.faq-answer { margin-top: 15px; color: #aaa; display: none; }
.faq-item:hover .faq-question { color: var(--accent-secondary); }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- FOOTER --- */
footer { border-top: 1px solid #222; margin-top: 80px; padding: 50px 0; text-align: center; color: #555; }
.footer-links a { color: #777; margin: 0 10px; text-decoration: none; }
.footer-links a:hover { color: #fff; }

@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile menu toggle logic needed if implementing JS menu */
    .mobile-menu-btn { display: block; }
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .bento-grid { grid-template-columns: 1fr; }
    .mirror-row { grid-template-columns: 1fr; gap: 10px; text-align: center; }
    .span-2 { grid-column: span 1; }
}

