/* static/css/pages/landing.css */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ——————————————————————————————————————————————
   SIMPLIFIED HERO SECTIONS
   —————————————————————————————————————————————— */
.hero-section {
    background: var(--neutral-950); /* Base background for all heroes */
    padding: var(--space-4) 0; /* Minimal vertical padding */
    position: relative;
    overflow: hidden;
}

/* Remove all gradient backgrounds and fancy effects */
.hero-section::before {
    display: none;
}

/* Remove alternating colors */
.hero-dark,
.hero-light {
    background: var(--neutral-950);
    border: none;
}

/* Minimal hero - just cards */
.hero-minimal {
    padding: var(--space-4) 0;
}

.hero-minimal .marketplace-container {
    max-width: 1400px; /* Same as marketplace page */
    margin: 0 auto;
    padding: 0 var(--space-4);
}


/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

/* Hero Content */
.hero-content {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    font-size: 0.875rem;
    color: var(--primary-400);
    margin-bottom: var(--space-4);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 var(--space-4);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-500) 0%, #8B5CF6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-400);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--space-2);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 1.125rem;
}

.btn-primary {
    background: var(--primary-600);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--neutral-100);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

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

.btn-ghost {
    background: transparent;
    color: var(--neutral-300);
}

.btn-ghost:hover {
    color: var(--neutral-100);
}

/* Hero Features List */
.hero-features {
    margin: var(--space-6) 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--neutral-200);
    font-size: 1rem;
}

.hero-flex {
    display: flex;
    gap: var(--space-8);
    align-items: center;
    width: 100%;
}

.hero-flex .hero-content {
    flex: 1;
    min-width: 0;  /* Prevent flex item from overflowing */
}

.hero-flex .hero-storage-preview {
    flex: 1.2;  /* Slightly wider for storage preview */
    min-width: 0;
}


.feature-icon {
    color: var(--primary-400);
    flex-shrink: 0;
}

/* Storage Preview Grid */
.hero-storage-preview {
    position: relative;
    margin: 3rem 0;
    overflow: hidden;
    border-radius: 1rem;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.storage-grid-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.storage-unit-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    cursor: default;
    transition: all 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.storage-unit-card:nth-child(2) { animation-delay: 0.5s; }
.storage-unit-card:nth-child(3) { animation-delay: 1s; }
.storage-unit-card:nth-child(4) { animation-delay: 1.5s; }
.storage-unit-card:nth-child(5) { animation-delay: 2s; }
.storage-unit-card:nth-child(6) { animation-delay: 2.5s; }

.storage-unit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.2);
}

.storage-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.storage-unit-card:hover .storage-glow {
    opacity: 1;
    animation: shimmer 2s linear infinite;
}

.storage-unit-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.storage-unit-card:hover img {
    transform: scale(1.05) rotate(5deg);
}

.storage-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-family: 'Industry', sans-serif;
}

.storage-items {
    font-size: 0.875rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.storage-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0f172a 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Features Section */
.features-section {
    padding: var(--space-16) 0;
    background: var(--neutral-950);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-3);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--neutral-400);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--neutral-800);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--space-3);
    padding: var(--space-6);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 var(--space-2);
}

.feature-card p {
    color: var(--neutral-400);
    line-height: 1.6;
    margin: 0;
}

/* Final CTA */
.final-cta {
    padding: var(--space-8) 0;
    background: var(--neutral-950);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 var(--space-3);
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--neutral-400);
    margin-bottom: var(--space-6);
}

.cta-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(59, 130, 246, 0.2);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-minimal .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .storage-grid-preview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .storage-unit-card:nth-child(5),
    .storage-unit-card:nth-child(6) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--space-3) 0;
    }
    
    .hero-minimal .items-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .storage-grid-preview {
        grid-template-columns: 1fr;
    }
    
    .storage-unit-card:nth-child(4),
    .storage-unit-card:nth-child(5),
    .storage-unit-card:nth-child(6) {
        display: none;
    }
    
    .storage-unit-card img {
        width: 60px;
        height: 60px;
    }
    
    .cta-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--space-4);
    }
    
    .cta-actions a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .storage-grid-preview {
        grid-template-columns: 1fr;
    }
    
    .storage-unit-card:nth-child(4),
    .storage-unit-card:nth-child(5),
    .storage-unit-card:nth-child(6) {
        display: none;
    }
}