@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;600;700&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: #000; /* Глобально темный, но переопределим локально */
}

.font-display {
    font-family: 'Space Grotesk', sans-serif;
}

/* === ГЛОБАЛЬНЫЙ СКРОЛЛБАР === */
::-webkit-scrollbar {
    width: 8px; 
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050505; 
}
::-webkit-scrollbar-thumb {
    background: #333; 
    border-radius: 4px; 
    transition: background 0.3s ease;
}
::-webkit-scrollbar-thumb:hover {
    background: #fff; 
}
::-webkit-scrollbar-corner {
    background: #000;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #333 #050505;
    scroll-behavior: smooth;
}

/* === НОВЫЙ КЛАСС ДЛЯ БЛОКОВ (чтобы убрать серый скролл в регистрации) === */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px; 
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; 
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #e5e7eb; 
    border-radius: 10px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af; 
}
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}


/* === АНИМАЦИИ === */
.animate-fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === HERO SECTION (DARK) === */
.hero-radical-bg {
    background: radial-gradient(circle at center, #1f1f1f 0%, #0a0a0a 40%, #000000 80%);
    position: relative;
    perspective: 1500px; 
    overflow: hidden;
}

.hero-grid {
    background-size: 50px 50px;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* === ФОН ДЛЯ СВЕТЛОЙ ТЕМЫ (ТЕХ.РАБОТЫ) === */
.bg-grid-light {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.hero-float-text {
    transition: transform 0.1s ease-out; 
    will-change: transform;
    display: block;
}

/* === SEQUENCE PARALLAX === */
.sequence-container {
    position: relative;
    height: 500vh; 
    background-color: #000;
}

.sticky-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.seq-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s ease;
    transform: scale(1.05);
    filter: brightness(0.5);
}

.seq-img.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.content-layer {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

*:focus { outline: none; }