/* ===== ОБЩИЕ СТИЛИ ДЛЯ ВСЕГО САЙТА ===== */
:root {
    --bg-primary: #0a0a14;
    --bg-card: rgba(255,255,255,0.04);
    --text-primary: #e8edf5;
    --text-secondary: #8896b0;
    --accent: #6c63ff;
    --accent-hover: #8a82ff;
    --border-glass: rgba(255,255,255,0.06);
    --radius: 16px;
    --transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    padding-top: 60px;
}

a { text-decoration: none; color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- ХЕДЕР ----- */
.main-header {
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #d4ff00, #ff3b3b, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo span {
    font-weight: 400;
    -webkit-text-fill-color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s, transform 0.2s;
}
.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

/* ----- ПОДВАЛ ----- */
.main-footer {
    border-top: 1px solid var(--border-glass);
    padding: 24px 0;
    margin-top: auto;
    background: rgba(10,10,20,0.5);
    backdrop-filter: blur(8px);
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.footer-flex a {
    color: var(--accent);
    transition: color 0.2s;
}
.footer-flex a:hover {
    color: var(--accent-hover);
}

/* ----- КНОПКИ, КАРТОЧКИ, ОБЩИЕ БЛОКИ ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108,99,255,0.3);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
    border-color: var(--accent);
    background: rgba(108,99,255,0.1);
}

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: all var(--transition);
}
.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(108,99,255,0.12);
}

/* ===== СТИЛИ ГЛАВНОЙ СТРАНИЦЫ ===== */
.hero-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 30px;
    text-align: center;
    background: radial-gradient(ellipse at 30% 20%, rgba(108,99,255,0.06) 0%, transparent 70%),
                radial-gradient(ellipse at 70% 80%, rgba(255,101,132,0.04) 0%, transparent 70%);
}
.hero-content { max-width: 700px; width: 100%; }
.hero-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}
.hero-title .highlight {
    color: var(--accent);
    background: rgba(108,99,255,0.12);
    padding: 0 10px;
    border-radius: 6px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.action-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.action-card {
    min-width: 140px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}
.action-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 12px 28px rgba(108,99,255,0.12);
}
.action-card i {
    font-size: 17px;
    transition: transform 0.3s;
}
.action-card:hover i {
    transform: scale(1.2) rotate(-4deg);
}
.action-card.about { border-color: rgba(255,101,132,0.25); }
.action-card.about:hover { border-color: #ff6584; box-shadow: 0 12px 28px rgba(255,101,132,0.15); }
.action-card.test { border-color: rgba(100,200,255,0.25); }
.action-card.test:hover { border-color: #64c8ff; box-shadow: 0 12px 28px rgba(100,200,255,0.15); }
.action-card.new {
    background: linear-gradient(135deg, rgba(108,99,255,0.12), rgba(118,75,162,0.12));
    border-color: var(--accent);
}
.action-card.new:hover {
    background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(118,75,162,0.2));
}
.action-card.rules {
    border-color: rgba(39, 201, 63, 0.3);
    color: #27c93f;
}
.action-card.rules:hover {
    border-color: #27c93f;
    box-shadow: 0 12px 28px rgba(39, 201, 63, 0.2);
    color: #e8edf5;
}
.hashtags {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin-bottom: 30px;
}
.hashtags span { color: var(--accent); font-weight: 700; }

/* ===== ТЕРМИНАЛ ===== */
.terminal-wrapper {
    max-width: 620px;
    margin: 0 auto 40px;
    background: #0e0e1a;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    transition: box-shadow 0.2s;
    position: relative;
    text-align: left;
}
.terminal-wrapper:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 0 1px var(--accent);
}
.terminal-header {
    background: rgba(255,255,255,0.03);
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    cursor: default;
}
.terminal-header .dots { display: flex; gap: 4px; }
.terminal-header .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-header .title {
    color: #8896b0;
    font-size: 11px;
    font-weight: 500;
    margin-left: 4px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.terminal-header .title i { color: #6c63ff; font-size: 14px; }
.terminal-header .actions {
    display: flex;
    gap: 6px;
}
.terminal-header .actions button {
    background: none;
    border: none;
    color: #8896b0;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}
.terminal-header .actions button:hover { color: #ff6584; }

.terminal-body {
    padding: 10px 14px 8px;
    overflow-y: auto;
    background: #0e0e1a;
    color: #b0e0a0;
    font-size: 13px;
    line-height: 1.5;
    max-height: 300px;
    min-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.terminal-body::-webkit-scrollbar { width: 3px; }
.terminal-body::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }
.terminal-body::-webkit-scrollbar-track { background: transparent; }

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 2px;
}
.terminal-prompt { color: #6c63ff; font-weight: 600; }
.terminal-command { color: #e8edf5; }
.terminal-output { color: #8896b0; }
.terminal-error { color: #ff6584; }
.terminal-success { color: #27c93f; }
.terminal-paschal { color: #ffbd2e; font-weight: bold; }

.terminal-input-line {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px 10px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 4px;
}
.terminal-input-line .prompt {
    color: #6c63ff;
    font-weight: 600;
    white-space: pre;
}
.terminal-input-line input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e8edf5;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    outline: none;
    caret-color: #b0e0a0;
    padding: 6px 0;
}
.terminal-input-line input::selection {
    background: rgba(108,99,255,0.3);
}

.terminal-resize-handle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    cursor: nw-resize;
    background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.08) 50%);
    border-bottom-right-radius: 10px;
    z-index: 10;
}
.terminal-resize-handle:hover {
    background: linear-gradient(135deg, transparent 50%, rgba(108,99,255,0.25) 50%);
}
.terminal-wrapper.resizable { resize: both; overflow: auto; }

@media (max-width: 600px) {
    .header-flex { flex-direction: column; align-items: center; }
    .nav-links { gap: 12px; }
    .footer-flex { flex-direction: column; text-align: center; }
    .glass-card { padding: 20px; }
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 16px; }
    .action-card { min-width: 140px; padding: 10px 16px; font-size: 13px; }
    body { padding-top: 80px; }
}