body { cursor: default; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #6600a1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8a2be2; }

@media (pointer: fine) {
    body { cursor: none; }
    a, button, input, textarea, .cursor-pointer, .vim-toggle { cursor: none; }
}

.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    display: none;
}
.cursor-dot {
    width: 8px; height: 8px;
    background-color: #8a2be2;
    box-shadow: 0 0 10px #6600a1;
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1.5px solid rgba(138, 43, 226, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}
body.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(102, 0, 161, 0.15);
    border-color: #8a2be2;
    backdrop-filter: blur(2px);
}

.glitch { position: relative; }
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.glitch::before {
    left: 2px; text-shadow: -1px 0 #ff00c1; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitch::after {
    left: -2px; text-shadow: -1px 0 #00fff9; clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
    0% { clip: rect(33px, 9999px, 11px, 0); }
    100% { clip: rect(56px, 9999px, 32px, 0); }
}
@keyframes glitch-anim2 {
    0% { clip: rect(15px, 9999px, 91px, 0); }
    100% { clip: rect(25px, 9999px, 66px, 0); }
}

.neon-text { text-shadow: 0 0 10px rgba(102,0,161,0.8), 0 0 20px rgba(102,0,161,0.5); }
.card-hover { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.card-hover:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 10px 30px -10px rgba(102, 0, 161, 0.5);
    border-color: #8a2be2;
}
.scanlines {
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.2));
    background-size: 100% 4px;
}
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }
.typing-cursor::after { content: '|'; animation: blink 1s step-start infinite; }
@keyframes blink { 50% { opacity: 0; } }

.gutter-container {
    position: absolute;
    top: 0; left: 0;
    width: 50px;
    min-height: 100vh;
    height: 100%;
    background: #0a0a0a;
    color: #444;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-align: right;
    padding-right: 10px;
    z-index: 30;
    overflow: hidden;
    user-select: none;
    border-right: 1px solid #222;
    display: none;
}
.gutter-container div { height: 20px; line-height: 20px; }
body.vim-active .gutter-container { display: block; }
body.vim-active { padding-left: 50px; padding-bottom: 40px; }

.vim-status-bar {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 30px;
    background: #1c1c1c;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    display: none;
    z-index: 100;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
body.vim-active .vim-status-bar { display: flex; }

.vim-mode-block {
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    transition: background-color 0.2s;
}
.vim-info-block {
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    background: #333;
    color: #bbb;
}
.mode-normal { background-color: #6600a1; }
.mode-insert { background-color: #22c55e; color: black; }
.mode-visual { background-color: #eab308; color: black; }
.mode-command { background-color: #3b82f6; color: black; }

.command-input-area {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%; height: 30px;
    background: #1c1c1c;
    display: none;
    align-items: center;
    padding-left: 10px;
    z-index: 101;
    border-top: 1px solid #444;
}
.command-input {
    background: transparent;
    border: none;
    color: white;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    width: 100%;
    outline: none;
    margin-left: 5px;
}
.visual-highlight {
    background-color: rgba(234, 179, 8, 0.2);
    box-shadow: 0 0 0 2px #eab308;
    border-radius: 4px;
    transition: all 0.1s ease;
}