/* Custom Core Design System Tokens */
:root {
    --btc-orange: #F7931A;
    --teal-petroleo: #1E6B5A;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --bg-gradient: linear-gradient(135deg, #020617 0%, #0f172a 50%, #0d2d26 100%);
}

/* Base Styles */
body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    font-family: 'Outfit', 'Inter', sans-serif;
    color: #f1f5f9;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Glassmorphism Effect */
.glass {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-light {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Background Elements */
.bg-grid {
    position: fixed;
    inset: 0;
    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: 80px 80px;
    z-index: -1;
}

.aurora {
    position: fixed;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--teal-petroleo) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.2;
    z-index: -2;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

@keyframes move {
    from {
        transform: translate(-10%, -10%);
    }

    to {
        transform: translate(30%, 20%);
    }
}

/* Typography */
.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: white;
}

/* Buttons */
.btn-primary {
    background: var(--btc-orange);
    color: white;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -10px rgba(247, 147, 26, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(247, 147, 26, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--btc-orange);
}

/* Cards & Hover */
.card-glass {
    transition: all 0.4s ease;
}

/* Marquee Animation */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .glass {
        border-radius: 1.5rem !important;
    }

    header {
        padding: 1rem !important;
    }

    #btc-price {
        font-size: 2.5rem !important;
        line-height: 1;
    }

    .platform-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .platform-grid>div {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Draggable Carousel Implementation */
.carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 20px 0;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.carousel-container.active {
    cursor: grabbing;
    transform: scale(0.99);
}

.carousel-track {
    display: inline-flex;
    gap: 1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    pointer-events: none;
}

.carousel-track>* {
    pointer-events: auto;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    padding: 120px 40px;
    gap: 32px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 110;
}

#mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

#mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

#mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}