/* ==========================================================================
   WELCOME PAGE - Figma Design Implementation
   ========================================================================== */

/* Container - uses global vault-atmosphere background */
.welcome-container {
    --hero-opacity: 1;
    --hero-scale: 1;
    --hero-translate: 0px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   VIDEO BACKGROUND (Scroll-Driven)
   ========================================================================== */
.welcome-video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

/* Gradient overlay for text readability */
.welcome-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.6) 0%,
            rgba(5, 5, 5, 0.3) 50%,
            rgba(5, 5, 5, 0.7) 100%);
    z-index: -1;
    pointer-events: none;
}

.welcome-container>* {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   FLOATING CS2 ITEMS - REMOVED (Replaced with video background)
   ========================================================================== */
/* Floating items have been removed in favor of scroll-driven video background.
   CSS below is commented out for reference:

.floating-items { ... }
.floating-item { ... }
.floating-item.item-agent { ... }
etc.
*/


/* ==========================================================================
   STICKY HERO WRAPPER
   ========================================================================== */
.sticky-hero-wrapper {
    position: relative;
    /* Total scroll height = hero view + extra scroll distance */
    height: 180vh;
}

.hero-scroll-spacer {
    /* Creates scroll distance for the sticky effect */
    height: 80vh;
    pointer-events: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    min-height: 100vh;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
    /* Scroll-based transforms via CSS custom properties */
    opacity: var(--hero-opacity, 1);
    transform: scale(var(--hero-scale, 1)) translateY(var(--hero-translate, 0));
    will-change: opacity, transform;
    transition: none;
    /* No transition - JS controls smoothness */
}

/* Hero Icon (Logo-like) */
.hero-icon {
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: none;
    perspective: 1000px;
    /* For 3D tilt effect */
}

#hero-logo-img {
    width: 180px;
    /* Larger size for the main logo */
    height: auto;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4));
    transition: transform 0.1s ease-out;
    /* Smooth movement */
    will-change: transform;
}

/* Removed icon font style */

/* Hero Title */
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 0, 0, 0.6);
    /* Readability */
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.1rem;
    color: #9CA3AF;
    margin-bottom: 2.5rem;
    max-width: 650px;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    /* Readability */
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Gradient Primary Button */
.btn-gradient {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dim) 100%);
    border: none;
    color: #000;
    /* Dark text on gold for contrast */
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(212, 175, 55, 0.5);
    color: #000;
}

.btn-gradient i {
    font-size: 0.85rem;
}

/* Secondary Button */
.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.trust-stars {
    color: #FACC15;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.trust-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.trust-text {
    font-size: 0.85rem;
    color: #6B7280;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 2rem;
    animation: bounce 2s infinite;
}

.mouse-icon {
    width: 28px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes scroll-wheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(8px);
    }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */
.features-section {
    padding: 6rem 4rem;
    overflow: hidden;
    /* Clip sliding cards during animation */
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    /* Only transition background and border, not transform (handled by scroll-animate) */
    transition: background 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Add hover lift only when visible (so it doesn't conflict with slide-in) */
.feature-card.visible:hover {
    transform: translateY(-3px) !important;
    background: rgba(0, 0, 0, 0.6);
    /* Slightly brighter hover state */
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--gold-primary);
}

.feature-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.feature-card p {
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: #fff;
}

.section-subtitle {
    font-size: 1rem;
    color: #9CA3AF;
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-section {
    padding: 5rem 4rem;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.3) 0%,
            rgba(20, 15, 5, 0.5) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
}

.faq-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-item h3 i {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.faq-item p {
    font-size: 0.9rem;
    color: #9CA3AF;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */
.comparison-section {
    padding: 5rem 4rem;
    background: radial-gradient(ellipse at center,
            rgba(212, 175, 55, 0.05) 0%,
            transparent 70%);
    position: relative;
}

.comparison-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.comparison-table {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 1rem 1.5rem;
}

.comparison-header {
    background: rgba(212, 175, 55, 0.1);
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.comparison-feature {
    color: #E5E7EB;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.comparison-us,
.comparison-others {
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.comparison-us i.fa-check {
    color: var(--gold-primary);
}

.comparison-others i.fa-check {
    color: #6B7280;
}

.comparison-us i.fa-times,
.comparison-others i.fa-times {
    color: #6B7280;
}

/* ==========================================================================
   MARKETPLACES SECTION
   ========================================================================== */
/* ==========================================================================
   FOOTER RESOURCES SECTION
   ========================================================================== */
.footer-resources-section {
    padding: 5rem 4rem 3rem;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(15, 20, 25, 0.8) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.resources-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-column {
    display: flex;
    flex-direction: column;
}

.resource-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.resource-title::before {
    content: '';
    width: 3px;
    height: 18px;
    background: var(--gold-primary);
    border-radius: 2px;
}

/* Marketplaces Mini Grid */
.marketplaces-mini-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.marketplace-mini-item {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: help;
}

.marketplace-mini-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.marketplace-mini-item i {
    font-size: 1.5rem;
    color: #9CA3AF;
    transition: color 0.3s ease;
}

.marketplace-mini-item:hover i {
    color: var(--gold-primary);
}

.marketplace-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.5;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.marketplace-mini-item:hover .marketplace-icon-img {
    opacity: 1;
    filter: grayscale(0%) sepia(100%) hue-rotate(5deg) saturate(500%);
    /* Attempt to gold-ify */
}

/* Community Mini Actions */
.community-mini-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.community-mini-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #E5E7EB;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.community-mini-btn i {
    font-size: 1.2rem;
}

.community-mini-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
    color: #fff;
}

.discord-btn:hover i {
    color: #5865F2;
}

.twitter-btn:hover i {
    color: #1DA1F2;
}

/* Support Links List */
.support-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.support-links-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.support-links-list li a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.support-links-list li a i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* Copyright Text */
.footer-copyright {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright p {
    font-size: 0.9rem;
    color: #6B7280;
}

/* ==========================================================================
   SCROLL ANIMATIONS - Slide from sides
   ========================================================================== */
.scroll-animate {
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 
   Feature Cards Grid Logic (3 Columns)
   Col 1: Slide from Left
   Col 2: Slide from Bottom (Anchor)
   Col 3: Slide from Right
   This prevents horizontal overlap in the grid gaps
*/
.feature-card.scroll-animate:nth-child(3n+1) {
    transform: translateX(-60px);
}

/* Reduced vertical offset for middle column (was 60px) */
.feature-card.scroll-animate:nth-child(3n+2) {
    transform: translateY(30px);
}

.feature-card.scroll-animate:nth-child(3n) {
    transform: translateX(60px);
}

/* Full Width Sections - Alternate Sides */
.faq-section.scroll-animate {
    transform: translateX(-80px);
}

.comparison-section.scroll-animate {
    transform: translateX(80px);
}

.footer-resources-section.scroll-animate {
    transform: translateX(-80px);
}

/* Visible state - Restore positions */
.scroll-animate.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays for feature cards */
.feature-card.scroll-animate:nth-child(1) {
    transition-delay: 0s;
}

.feature-card.scroll-animate:nth-child(2) {
    transition-delay: 0.1s;
}

.feature-card.scroll-animate:nth-child(3) {
    transition-delay: 0.2s;
}

.feature-card.scroll-animate:nth-child(4) {
    transition-delay: 0.1s;
}

/* Row 2 starts a bit quicker */
.feature-card.scroll-animate:nth-child(5) {
    transition-delay: 0.2s;
}

.feature-card.scroll-animate:nth-child(6) {
    transition-delay: 0.3s;
}

/* Responsive: 2 Columns on Tablet */
@media (max-width: 900px) {

    /* Reset to simple vertical slide for restricted width */
    .feature-card.scroll-animate:nth-child(n) {
        transform: translateY(40px);
    }

    .scroll-animate.visible {
        transform: translateY(0);
    }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 2rem;
    }

    .trust-indicators {
        flex-wrap: wrap;
        gap: 2rem;
    }

    .resources-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-resources-section {
        padding: 4rem 2rem;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-section,
    .comparison-section {
        padding: 4rem 2rem;
    }
}

@media (max-width: 600px) {
    .hero-section {
        padding: 5rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .comparison-header,
    .comparison-row {
        grid-template-columns: 1.5fr 1fr 1fr;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    /* Disable sticky hero on small screens for better behavior */
    .sticky-hero-wrapper {
        height: auto;
    }

    .hero-section {
        position: relative;
        top: auto;
    }

    .hero-scroll-spacer {
        display: none;
    }
}

/* ==========================================================================
   REDUCED MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-section {
        opacity: 1 !important;
        transform: none !important;
    }

    .floating-item {
        transition: none !important;
    }

    @keyframes float-slow {

        from,
        to {
            transform: none;
        }
    }

    @keyframes float-medium {

        from,
        to {
            transform: none;
        }
    }

    @keyframes float-fast {

        from,
        to {
            transform: none;
        }
    }


}

/* ==========================================================================
   LAPTOP & TABLET OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 1400px) {

    .features-section,
    .faq-section,
    .comparison-section,
    .footer-resources-section {
        padding: 4rem 2rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-item.item-5 {
        width: 450px;
    }

    .floating-item.item-6 {
        width: 300px;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .comparison-header,
    .comparison-row {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .resources-container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .resource-column:last-child {
        grid-column: span 2;
    }
}