@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    scrollbar-width: thin;
    scrollbar-color: #00abff33 transparent;
}

*::-webkit-scrollbar {
    width: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: #00abff33;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #00abff66;
}

::selection {
    background: #00abff40;
    color: #fff;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background-color: #0a0a0f;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://static.crunchyroll.com/cr-acquisition/assets/img/start/hero/us-global/background-desktop.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(10, 10, 15, 0.3) 0%, 
        rgba(10, 10, 15, 0.5) 40%, 
        rgba(10, 10, 15, 0.85) 65%, 
        rgba(10, 10, 15, 1) 85%
    );
    z-index: 1;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, #00abff12 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.ambient-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at center, #00abff08 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.ambient-glow.visible {
    opacity: 1;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, #00abff0a 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
    opacity: 0;
}

.animation-delay-100 {
    animation-delay: 100ms;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-300 {
    animation-delay: 300ms;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

#navbar {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#navbar:not(.scrolled) .nav-text-shadow {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

#navbar:not(.scrolled) img {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: background 0.3s ease;
    pointer-events: none;
}

.feature-card:hover::before {
    background: linear-gradient(135deg, #00abff33, transparent, #00abff11);
}

@media (max-width: 768px) {
    .hero-background {
        background-image: url('https://static.crunchyroll.com/cr-acquisition/assets/img/start/hero/us-global/background-desktop.jpg');
        background-position: center top;
    }
}
