/* ─── Scrollbar ────────────────────────────────────────────── */
* {
    scrollbar-width: thin;
    scrollbar-color: #27272a #0a0a0b;
}
*::-webkit-scrollbar { width: 6px; }
*::-webkit-scrollbar-track { background: #0a0a0b; }
*::-webkit-scrollbar-thumb { background-color: #27272a; border-radius: 3px; }

/* ─── Typography ───────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 50%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 0.1em;
}

.gradient-text-accent {
    background: linear-gradient(135deg, #ffffff 0%, #e5e5e5 50%, #a3a3a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-glow {
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

/* ─── Navigation ───────────────────────────────────────────── */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ─── Buttons ──────────────────────────────────────────────── */
.btn-primary {
    background: #ffffff;
    color: #000000;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ─── Cards ────────────────────────────────────────────────── */
.glow-box {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 40px -10px rgba(255, 255, 255, 0.15),
        inset 0 0 60px -30px rgba(255, 255, 255, 0.05);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 20px 40px -20px rgba(255, 255, 255, 0.1);
}

/* ─── Backgrounds ──────────────────────────────────────────── */
.grid-pattern {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.radial-fade {
    background: radial-gradient(ellipse at center, transparent 0%, #000000 70%);
}

.code-block {
    background: linear-gradient(135deg, #0f0f10 0%, #0a0a0b 100%);
    border: 1px solid #1a1a1c;
}

/* ─── Scroll reveal ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Fade-in animations ───────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up { animation: fadeInUp 0.8s ease-out forwards; }
.animate-delay-100  { animation-delay: 100ms; }
.animate-delay-200  { animation-delay: 200ms; }
.animate-delay-300  { animation-delay: 300ms; }
.animate-delay-400  { animation-delay: 400ms; }
.animate-delay-500  { animation-delay: 500ms; }

/* ─── Marquee ──────────────────────────────────────────────── */
.marquee-container {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── Typing cursor ────────────────────────────────────────── */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: #a0a0a0;
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
