/* Falling stars */
.star {
    position: absolute;
    border-radius: 50%;
    background: #fff;
    animation: fall linear infinite;
    opacity: 0;
}

@keyframes fall {
    0% { opacity: 0; transform: translateY(0) translateX(0); }
    10% { opacity: var(--max-opacity, 0.6); }
    90% { opacity: var(--max-opacity, 0.6); }
    100% { opacity: 0; transform: translateY(100vh) translateX(calc(var(--drift, 0) * 1px)); }
}

/* Moon glow */
.moon-glow {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(145, 200, 245, 0.08), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: moonPulse 8s ease-in-out infinite alternate;
}

@keyframes moonPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* Hero entrance */
.hero-fade-in {
    animation: heroFade 0.8s ease forwards;
    opacity: 0;
}

@keyframes heroFade {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-fade-in:nth-child(1) { animation-delay: 0.05s; }
.hero-fade-in:nth-child(2) { animation-delay: 0.15s; }
.hero-fade-in:nth-child(3) { animation-delay: 0.3s; }
.hero-fade-in:nth-child(4) { animation-delay: 0.45s; }

/* Section entrance */
.section-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-enter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature cards */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(145, 200, 245, 0.04);
    border-color: rgba(145, 200, 245, 0.15);
    transform: translateY(-3px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(145, 200, 245, 0.1);
    border-radius: 10px;
    margin-bottom: 16px;
}

/* Nav shrink */
.nav-scrolled {
    background: rgba(5, 5, 18, 0.95) !important;
}

/* FAQ */
.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    text-align: left;
    font-family: inherit;
}

.faq-q:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-a {
    max-height: 300px;
    padding: 0 22px 18px;
}

.faq-a p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.7;
}

/* Selection */
::selection {
    background: rgba(145, 200, 245, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(145, 200, 245, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(145, 200, 245, 0.25);
}
