@import url('https://api.fontshare.com/v2/css?f[]=satoshi@700,500,400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=neue-montreal@700,500,400&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, #050507, #111115);
    color: #ffffff;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Neue Montreal', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0B0B0D;
}

::-webkit-scrollbar-thumb {
    background: #C1A2FF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #D4BAFF;
}

/* Unified Navigation (matches main site - smooth pill style) */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 12px 24px;
    border-radius: 48px;
    background: rgba(15, 15, 20, 0.6);
    backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(193, 162, 255, 0.1);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav:hover {
    box-shadow: 0 8px 32px rgba(193, 162, 255, 0.2);
    border-color: rgba(193, 162, 255, 0.3);
}

.nav-link {
    color: #EAEAEA;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #C1A2FF;
    transform: translateY(-2px);
}

.nav-link.active {
    color: #C1A2FF;
    background: rgba(193, 162, 255, 0.1);
}

/* Secondary Navigation for NeuroBlock internal pages */
.nav-secondary {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(5, 5, 7, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(193, 162, 255, 0.2);
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-secondary:hover {
    box-shadow: 0 4px 20px rgba(193, 162, 255, 0.15);
    border-color: rgba(193, 162, 255, 0.4);
}

.nav-secondary-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.nav-secondary-link:hover {
    background: rgba(193, 162, 255, 0.15);
    color: #C1A2FF;
    transform: translateY(-2px);
}

.nav-secondary-link.active {
    color: #C1A2FF;
    background: rgba(193, 162, 255, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 2rem 4rem; /* Extra space for both nav bars */
    overflow: hidden;
}

.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(193, 162, 255, 0.6) 0%, transparent 70%);
    box-shadow: 0 0 6px rgba(193, 162, 255, 0.5);
    animation: particleFloat 10s infinite ease-in-out;
}

@keyframes particleFloat {
    0%, 100% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-20px) scale(1.5);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(193, 162, 255, 0.4);
    margin-bottom: 2rem;
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #C1A2FF;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: #9ca3af;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #C1A2FF, #B38DFF);
    color: white;
    box-shadow: 0 4px 20px rgba(193, 162, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(193, 162, 255, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgba(193, 162, 255, 0.5);
    color: #d1d5db;
}

.btn-secondary:hover {
    border-color: #C1A2FF;
    background: rgba(193, 162, 255, 0.1);
    color: white;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Explore Section */
.explore-section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(to right, #C1A2FF, #B38DFF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #EAEAEA;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: rgba(193, 162, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(193, 162, 255, 0.1);
}

.search-input::placeholder {
    color: #6b7280;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    pointer-events: none;
}

/* Categories */
.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.3s;
}

.category-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: #d1d5db;
}

.category-btn.active {
    background: rgba(193, 162, 255, 0.2);
    border-color: #C1A2FF;
    color: #C1A2FF;
}

/* Blocks Grid */
.blocks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.block-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.block-card:hover {
    border-color: rgba(193, 162, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(193, 162, 255, 0.2);
}

.block-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #EAEAEA;
    margin-bottom: 0.5rem;
}

.block-card .block-creator {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.block-card .block-description {
    color: #9ca3af;
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.block-card .block-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.block-card .block-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C1A2FF;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #9ca3af;
}

.empty-state p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(to bottom, #111115, #050507);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #C1A2FF;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 10px 16px;
        gap: 12px;
        font-size: 12px;
    }
    
    .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .nav-secondary {
        top: 70px;
        padding: 6px 12px;
        gap: 8px;
    }
    
    .nav-secondary-link {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .hero-section {
        padding: 120px 2rem 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
    
    .blocks-grid {
        grid-template-columns: 1fr;
    }
}

