/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0d0f14;
}
::-webkit-scrollbar-thumb {
    background: #1e2330;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f0c040;
}

/* Selection color */
::selection {
    background: #f0c04040;
    color: #f0c040;
}

/* ── Hero grid background ─────────────────────────────── */
.hero-grid {
    background-image:
        linear-gradient(rgba(240,192,64,0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240,192,64,0.15) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Floating orb animations ──────────────────────────── */
@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(20px, -15px); }
    66% { transform: translate(-15px, 10px); }
}
@keyframes float-slow-reverse {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-20px, 12px); }
    66% { transform: translate(15px, -18px); }
}
.animate-float-slow {
    animation: float-slow 20s ease-in-out infinite;
}
.animate-float-slow-reverse {
    animation: float-slow-reverse 25s ease-in-out infinite;
}

/* ── Hero entrance animations ─────────────────────────── */
@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-down {
    animation: fade-in-down 0.7s ease-out both;
}
.animate-fade-in {
    animation: fade-in 0.8s ease-out 0.15s both;
}
.animate-fade-in-up {
    animation: fade-in-up 0.7s ease-out 0.3s both;
}
.animate-fade-in-up-delay {
    animation: fade-in-up 0.7s ease-out 0.5s both;
}

/* ── Feature card scroll-reveal ───────────────────────── */
.feature-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stat items ───────────────────────────────────────── */
.stat-item {
    position: relative;
}
.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: #1e2330;
}
.stat-item:last-child::after {
    display: none;
}

/* ── Feature card hover glows (Tailwind CDN can't do arbitrary shadows) ── */
.feature-card-inner {
    box-shadow: 0 0 0 transparent;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feature-card.group:hover .feature-card-inner {
    transform: translateY(-2px);
}
.feature-card a.group:hover .feature-card-inner,
a.feature-card.group:hover .feature-card-inner {
    box-shadow: 0 0 30px rgba(240,192,64,0.07);
}
/* Purple glow for raids card */
.feature-card a[href="/raids"]:hover .feature-card-inner,
a.feature-card[href="/raids"]:hover .feature-card-inner {
    box-shadow: 0 0 30px rgba(160,96,240,0.07);
}

/* ── CTA button glow ─────────────────────────────────── */
.cta-btn {
    transition: box-shadow 0.3s, transform 0.3s;
}
.cta-btn:hover {
    box-shadow: 0 0 30px rgba(240,192,64,0.25);
    transform: scale(1.03);
}
