/* ========================================
   NEURAL.FORM — Components
   ======================================== */

/* ----------------------------------------
   Custom Cursor
   ---------------------------------------- */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width var(--transition-fast), height var(--transition-fast), opacity var(--transition-fast);
    will-change: transform, left, top;
}

#cursor.hovered {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
}

/* Скрываем курсор на тач-устройствах */
@media (hover: none) or (pointer: coarse) {
    #cursor {
        display: none;
    }
}

/* ----------------------------------------
   Grid Lines (Background)
   ---------------------------------------- */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    pointer-events: none;
    z-index: 0;
}

.grid-line {
    border-right: 1px solid var(--grid-line);
    height: 100%;
}

@media (max-width: 1024px) {
    .grid-lines {
        display: none;
    }
}

/* ----------------------------------------
   Corner Marks
   ---------------------------------------- */
.corner-mark {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 1px solid var(--text-color);
    z-index: 100;
    pointer-events: none;
}

.corner-mark.tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.corner-mark.tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.corner-mark.bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.corner-mark.br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }

/* ----------------------------------------
   Header & Navigation
   ---------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    z-index: 100;
    mix-blend-mode: difference;
}

.brand {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.2rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    position: relative;
    text-decoration: none;
}

.brand::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-color);
    transition: width var(--transition-base);
}

.brand:hover::after {
    width: 100%;
}

.nav {
    display: flex;
    gap: 32px;
    background: transparent;
}

/* Desktop navigation */
.nav--desktop {
    display: flex;
}

/* Mobile navigation - hidden by default */
.nav--mobile {
    display: none;
}

@media (max-width: 768px) {
    .nav--desktop {
        display: none !important;
    }
    
    .nav--mobile {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #050505;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        z-index: 9998;
        display: none;
    }
    
    .nav--mobile.active {
        display: flex;
    }
    
    .nav__link {
        font-size: 1.5rem;
    }
}

/* Navigation links - base styles */
.nav__link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    position: relative;
    text-decoration: none;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--text-color);
    transition: width var(--transition-base);
}

.nav__link:hover::after {
    width: 100%;
}

/* Burger Menu Button */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 7px;
    z-index: 9999;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.burger__line {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #F2F2F2;
    transition: all var(--transition-base);
    transform-origin: center;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .burger {
        display: flex;
        mix-blend-mode: normal;
        position: fixed;
        top: 24px;
        right: 32px;
        width: 48px;
        height: 48px;
    }
    
    .burger.active {
        background: transparent;
    }
    
    .burger.active .burger__line {
        background: #F2F2F2;
    }
    
    .nav__link {
        font-size: 1.5rem;
    }
    
    .header {
        mix-blend-mode: difference;
        padding: 32px 40px;
    }
    
    .brand {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 28px 32px;
    }
}

/* ----------------------------------------
   Buttons
   ---------------------------------------- */
.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 32px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.btn--primary {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
}

.btn--primary:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn--inverse {
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--bg-color);
    padding: 20px 48px;
    font-size: 0.9rem;
}

.btn--inverse:hover {
    transform: translateY(-4px);
    background: transparent;
    color: var(--bg-color);
}

/* ----------------------------------------
   Section Headers
   ---------------------------------------- */
.section-header {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: 80px;
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-header__meta {
    font-family: var(--font-mono);
    font-size: 1rem;
    letter-spacing: 1px;
    color: #888;
}

@media (max-width: 768px) {
    .section-header {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
