@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineReveal {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(3, 3, 3, 0.9), rgba(3, 3, 3, 0.8)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        url('../img/hero-bg.jpeg');
    background-size: cover, 40px 40px, 40px 40px, cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    padding: 0 var(--spacing-lg);
}

.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 40%);
    animation: pulseGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes pulseGlow {
    from {
        transform: translate(-25%, -25%) scale(1);
    }

    to {
        transform: translate(-20%, -20%) scale(1.1);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--color-bg) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1200px;
    animation: fadeIn 1s ease both;
}

.hero-title {
    font-size: clamp(2.5rem, 12vw, 8rem);
    font-weight: 800;
    margin-bottom: var(--spacing-xl);
    line-height: 0.95;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow:
        0 0 40px rgba(var(--color-primary-rgb), 0.15),
        0 0 80px rgba(var(--color-primary-rgb), 0.05);
}

.headline-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    filter: blur(10px);
    animation: wordReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes wordReveal {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.headline-word:nth-child(n+3) {
    background: var(--gradient-hero);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(var(--color-primary-rgb), 0.5));
    font-weight: 900;
    animation: gradientShift 8s linear infinite, wordReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero .cta-primary,
.hero .cta-secondary {
    padding: var(--spacing-lg) var(--spacing-3xl);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    transition: all var(--transition-base);
    border: 1px solid var(--color-primary);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font-mono);
    position: relative;
    z-index: 2;
}

.hero .cta-primary:hover {
    background: var(--color-primary);
    color: #000 !important;
}

.hero .cta-secondary {
    border-color: var(--color-text-secondary);
    color: var(--color-text-secondary);
}

.hero .cta-secondary:hover {
    background: var(--color-text);
    color: #000 !important;
    border-color: var(--color-text);
}

.hero-accent-line {
    width: 300px;
    max-width: 80vw;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--color-primary) 25%,
            var(--color-secondary) 75%,
            transparent);
    margin: var(--spacing-xl) auto;
    animation: lineReveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) 1s both;
    z-index: 2;
    position: relative;
}

.hero-accent-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    filter: blur(5px);
    opacity: 0.8;
}

.hero-accent-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 1px;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    opacity: 0.5;
}

.hero-subtitle {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-3xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.8;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 1s ease 1.2s both;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-ticker {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: var(--spacing-md) 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    z-index: 5;
    text-transform: uppercase;
}

.ticker-content {
    display: flex;
    gap: var(--spacing-2xl);
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    align-items: center;
    will-change: transform;
}

.ticker-content:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 var(--spacing-md);
}

.ticker-divider {
    opacity: 0.5;
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 0 var(--spacing-md);
        text-align: center;
    }

    .hero-title {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
        letter-spacing: -0.02em;
        line-height: 0.9;
        margin-bottom: var(--spacing-lg);
    }

    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
        padding: 0 var(--spacing-md);
        margin-bottom: var(--spacing-2xl);
    }

    .hero-ctas {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
        width: 100%;
    }

    .hero-ctas .cta-primary,
    .hero-ctas .cta-secondary {
        width: fit-content;
        min-width: 240px;
        text-align: center;
        padding: var(--spacing-md) var(--spacing-xl);
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3.25rem;
        line-height: 0.85;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hero-ctas .cta-primary,
    .hero-ctas .cta-secondary {
        min-width: 100%;
    }
}