/* styles.css – Updated for New Landing Page (Mobile-First) */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: 'Montserrat', system-ui, sans-serif;
    background: linear-gradient(135deg, #2a0077, #4a1b8a, #6b21a8);
    color: #f8f9fa;
    overflow-x: hidden;
}

/* Waterfall Background */
.waterfall-container {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
}

.waterfall-item {
    position: absolute;
    width: 80px;
    opacity: 0.75;
    animation: fall linear infinite;
}

/* HERO */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 20px 60px;
    text-align: center;
    background: rgba(0,0,0,0.4);
}

.hero .container {
    max-width: 620px;
    margin: 0 auto;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #e0bbff;
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: white;
}

.subtag {
    font-size: 1.1rem;
    color: #c4b5fd;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn.primary {
    background: #a855f7;
    color: white;
}

.btn.secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.4);
}

.mockup {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-top: 20px;
}

/* FEATURES SECTION */
.section {
    position: relative;
    z-index: 2;
    padding: 80px 20px;
    background: rgba(255,255,255,0.95);
    color: #1f2937;
}

.section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #4c1d95;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #e5e7eb;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin: 16px 0 12px;
    color: #4c1d95;
}

/* Legal Section */
.legal {
    background: #f8fafc;
    text-align: center;
    padding: 60px 20px;
}

/* Footer */
footer {
    background: #1e1b4b;
    color: #c4b5fd;
    text-align: center;
    padding: 40px 20px;
    font-size: 0.95rem;
    z-index: 2;
    position: relative;
}

.api-links a {
    color: #c4b5fd;
    margin: 0 12px;
    text-decoration: none;
}

/* Responsive */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 { font-size: 3.5rem; }
    .tagline { font-size: 1.8rem; }
}

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

/* Animation */
@keyframes fall {
    0%   { transform: translateY(-120vh) rotate(0deg); }
    100% { transform: translateY(120vh) rotate(360deg); }
}

/* Waterfall positioning */
.waterfall-item:nth-child(1) { left: 8%; animation-duration: 14s; }
.waterfall-item:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; }
.waterfall-item:nth-child(3) { left: 45%; animation-duration: 11s; animation-delay: 1s; }
.waterfall-item:nth-child(4) { left: 65%; animation-duration: 16s; animation-delay: 4s; }
.waterfall-item:nth-child(5) { left: 82%; animation-duration: 13s; animation-delay: 3s; }

/* APP MOCKUP - Mobile Friendly */
.app-mockup {
    margin: 40px auto 30px;
    max-width: 320px;
    width: 100%;
    display: block;
}

.mockup {
    width: 100%;
    height: auto;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 8px solid #111;
    display: block;
}

/* Make sure it works on small screens */
@media (max-width: 480px) {
    .app-mockup {
        max-width: 260px;
        margin: 30px auto 20px;
    }
    
    .hero {
        padding: 30px 16px 40px;
    }
    
    h1 {
        font-size: 2.4rem;
    }
}