:root {
    --bg: #000000;
    --text: #ffffff;
    --glow: 0 0 20px rgba(255, 255, 255, 0.8);
    --font: 'Inter', 'Helvetica Neue', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.6;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { 
    background: var(--text); 
    box-shadow: var(--glow); 
}

#loader {
    position: fixed; inset: 0;
    background: #000000;
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

#loader.visible { opacity: 1; }

.loader-content {
    text-align: center;
    transition: var(--transition);
}

.loader-img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 22%; 
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.loader-info {
    margin-top: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s;
}

.loader-links {
    font-size: 11px;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 5px;
    text-transform: lowercase;
}

.loader-disclaimer {
    font-size: 9px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: lowercase;
}

.loader-disclaimer b { color: rgba(255, 255, 255, 0.6); }


.loader-content:hover .loader-img {
    transform: scale(1.02);
}

.loader-content:hover .loader-info {
    transform: translateY(15px);
    opacity: 0.8;
}

.dot {
    width: 12px; height: 12px;
    background: var(--text);
    border-radius: 50%;
    animation: dotWave 1.2s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotWave {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.3; }
    30% { transform: translateY(-20px); opacity: 1; box-shadow: var(--glow); }
}

.system-footer {
    margin-top: 15vh;
    padding: 60px 5vw;
    border-top: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 10;
    background: transparent !important;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-side { flex: 1; }
.footer-center { flex: 1; text-align: center; }
.footer-side.right { text-align: right; }

.f-label { font-size: 10px; letter-spacing: 5px; opacity: 0.3; margin-bottom: 10px; }

.status-wrap { display: flex; align-items: center; gap: 10px; }
.status-dot { 
    width: 6px; height: 6px; background: #ff0000; 
    border-radius: 50%; box-shadow: 0 0 10px #ff0000; 
    animation: blink 1.5s infinite; 
}
.status-title { font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.status-desc { font-size: 11px; opacity: 0.3; margin-top: 15px; max-width: 250px; }

#countdown { font-size: 32px; font-weight: 900; letter-spacing: -1px; font-family: monospace; }

.brand { font-size: 14px; font-weight: 900; }
.rights { font-size: 9px; opacity: 0.2; margin-top: 5px; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.edge-line {
    position: fixed;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    animation: edgeMove 8s infinite linear;
    z-index: 9000;
    pointer-events: none;
    mix-blend-mode: difference; 
}

@keyframes edgeMove {
    0% { top: 0; left: 0; width: 2px; height: 100%; }
    25% { top: 0; left: 0; width: 100%; height: 2px; }
    50% { top: 0; left: calc(100% - 2px); width: 2px; height: 100%; }
    75% { top: calc(100% - 2px); left: 0; width: 100%; height: 2px; }
    100% { top: 0; left: 0; width: 2px; height: 100%; }
}

.cursor-dot, .cursor-trace {
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2147483647 !important;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    background-color: #ffffff;
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--text);
    transition: width 0.3s, height 0.3s, background 0.3s;
}
.cursor-trace {
    width: 24px; height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s, height 0.3s, box-shadow 0.3s;
}
.cursor-hover .cursor-dot {
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--text);
    box-shadow: var(--glow);
}
.cursor-hover .cursor-trace { opacity: 0; }

.side-nav {
    position: fixed; right: 40px; top: 50%;
    transform: translateY(-50%);
    display: flex; flex-direction: column; gap: 30px;
    z-index: 1000;
}
.nav-item {
    width: 8px; height: 8px;
    background: var(--text);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}
.nav-item::before {
    content: attr(data-label);
    position: absolute; right: 25px; top: 50%;
    transform: translateY(-50%);
    color: var(--text); font-size: 10px; letter-spacing: 2px;
    opacity: 0; transition: var(--transition);
    text-transform: uppercase; white-space: nowrap;
    pointer-events: none;
}
.nav-item:hover { transform: scale(1.5); box-shadow: var(--glow); }
.nav-item:hover::before { opacity: 1; text-shadow: var(--glow); }

.glow-hover { transition: var(--transition); }
.glow-hover:hover {
    text-shadow: var(--glow);
    box-shadow: var(--glow);
    transform: scale(1.02);
}

.fade-up {
    opacity: 0; transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

#scroll-progress {
    position: fixed; top: 0; left: 0;
    height: 3px; background: var(--text);
    box-shadow: var(--glow); z-index: 10001; width: 0%;
}
#particles-bg { position: fixed; inset: 0; z-index: -1; }

#modal-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    color: #000000;
    z-index: 999999;
    display: flex; 
    visibility: hidden;
    pointer-events: none;
    justify-content: center;
    align-items: center;
    padding: 5vw;
    box-sizing: border-box;
    overflow-y: auto !important;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#modal-overlay.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

#modal-content {
    width: 100%;
    max-width: 1000px;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
}

#modal-overlay.active #modal-content {
    transform: translateY(0);
    opacity: 1;
}

#modal-close {
    position: absolute;
    top: -60px;
    right: 0;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 14px;
    cursor: pointer;
    color: #000;
    transition: 0.3s;
}
#modal-close:hover { letter-spacing: 8px; }

#modal-overlay.closing {
    opacity: 0;
}

#modal-overlay.closing #modal-content {
    transform: translateY(20px);
    opacity: 0;
}

.role {
    font-size: 1rem;
    opacity: 0;
    transition: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    position: absolute;
    left: 50%;
}

.team-member:hover .role {
    opacity: 1;
    transform: translateX(40px);
}

.member-profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.member-avatar {
    width: 250px;
    height: 250px;
    background: #000;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2); 
    border: 1px solid #000;
    flex-shrink: 0;
}

.member-info h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 0.9;
    text-transform: uppercase;
}

.member-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 20px;
}

.team-member {
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    letter-spacing: -2px;
    font-weight: 900;
    transition: var(--transition);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
    width: fit-content;
}

.team-member span:first-child {
    font-size: 6vw;
    color: #ffffff;
    transition: all 0.4s ease;
    display: inline-block;
}

.role {
    font-size: 1rem;
    letter-spacing: 5px;
    font-weight: 400;
    color: #ffffff;
    opacity: 0;
    margin-left: -20px;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    white-space: nowrap;
    position: relative;
    top: -5px;
}

.team-member:hover { border-bottom: 1px solid #ffffff; }
.team-member:hover span:first-child { letter-spacing: 5px; text-shadow: 0 0 15px rgba(255, 255, 255, 0.8); }
.team-member:hover .role { opacity: 1; margin-left: 40px; color: #ffffff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }

.buy-button-modal {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 18px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.buy-button-modal:hover { background: #fff; color: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.buy-button-modal:active { transform: translateY(0); }

.clean-tg-link {
    display: inline-block;
    color: #000;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 4px;
}

.clean-tg-link .link-text { position: relative; z-index: 1; }
.clean-tg-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: #000;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    transform: translateX(-50%);
}
.clean-tg-link:hover::after { width: 100%; }
.clean-tg-link:hover { opacity: 0.7; }

.clickable, input, button, a { outline: none !important; -webkit-tap-highlight-color: transparent; }

.terminal-input-wrapper { position: relative; display: flex; align-items: center; gap: 15px; padding: 10px 0; }
.terminal-prefix { color: #fff; font-weight: 900; font-size: 1.5rem; opacity: 0.5; }

#contact-input {
    background: none; border: none; color: #fff;
    width: 100%; font-size: 1.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}
#contact-input::placeholder { color: rgba(255,255,255,0.1); }

.input-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 1px; background: rgba(255,255,255,0.1); transition: 0.4s; }
#contact-input:focus + .input-line { background: #fff; box-shadow: 0 0 15px rgba(255,255,255,0.5); }

#send-btn {
    background: #fff; color: #000; border: none;
    width: 100%; padding: 20px; margin-top: 20px;
    font-weight: 900; letter-spacing: 5px;
    transition: 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
#send-btn:hover { letter-spacing: 10px; background: #f0f0f0; }

#status-msg { margin-top: 20px; font-size: 10px; letter-spacing: 2px; height: 15px; text-align: center; opacity: 0.6; font-weight: 900; text-transform: uppercase; }

.social-container { margin-top: 10vh; display: flex; gap: 40px; align-items: center; }
.social-link {
    color: white; text-decoration: none;
    font-size: 11px; letter-spacing: 3px; font-weight: 900;
    position: relative; padding: 5px 0; opacity: 0.6; transition: 0.3s;
}
.social-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: #fff; transition: 0.3s; }
.social-link:hover { opacity: 1; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.social-link:hover::after { width: 100%; }

.free-dl-button {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-decoration: none;
    text-align: center;
    padding: 20px;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 1px solid #000;
}
.free-dl-button:hover { background: #fff; color: #000; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.free-dl-button:active { transform: translateY(0); }

.work-card { position: relative; overflow: hidden; transition: var(--transition); }
.work-card::after {
    content: '';
    position: absolute;
    top: 0; left: -150%; 
    width: 60%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: 2.5s cubic-bezier(0.30, 1, 0.5, 1);
    pointer-events: none;
    z-index: 3;
}
.work-card:hover::after { left: 150%; }
.work-card:hover { border-color: rgba(255, 255, 255, 0.5) !important; box-shadow: 0 0 30px rgba(255, 255, 255, 0.1); }
.work-card:hover .desc { opacity: 1 !important; transform: translateY(0) !important; }

@media (max-width: 768px) {
    * { cursor: auto !important; }
    .cursor-dot, .cursor-trace { display: none; }
    
    section {
        grid-template-columns: 1fr !important;
        padding: 15vh 20px 5vh 20px !important;
    }

    .member-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .member-avatar {
        width: 160px !important;
        height: 160px !important;
        border-radius: var(--ios-radius);
    }

    .side-nav {
        right: 0; top: auto; bottom: 0; left: 0;
        transform: none; flex-direction: row;
        justify-content: center; width: 100%;
        padding: 20px; gap: 25px;
        background: linear-gradient(to top, #000 70%, transparent);
        pointer-events: none;
    }
    .nav-item { pointer-events: auto; }
}

.terminal-input-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#contact-input {
    width: 100%;
    font-size: clamp(1rem, 4vw, 1.8rem);
    padding: 10px 0;
    background: transparent;
    border: none;
    color: #fff;
}

.buy-button-modal, .free-dl-button, #send-btn {
    width: 100%;
    display: block;
    padding: 18px;
    text-align: center;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 2px;
}

@supports (padding: env(safe-area-inset-bottom)) {
    .side-nav { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    #modal-content { padding-bottom: env(safe-area-inset-bottom); }
}
