/* ================================
   FLUXX WAITLIST PAGE - CSS
   Dark Modern Theme with Gradients
   ================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Matching App Theme */
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --purple-400: #c084fc;
    --purple-500: #a855f7;
    --pink-500: #ec4899;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--cyan-400), var(--purple-500));
    --gradient-secondary: linear-gradient(135deg, var(--purple-500), var(--pink-500));
    --gradient-hover: linear-gradient(135deg, var(--cyan-500), var(--purple-400));
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--slate-900);
    color: var(--slate-300);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(34, 211, 238, 0.1) 0%,
        rgba(168, 85, 247, 0.05) 25%,
        transparent 50%
    );
    animation: rotateGradient 20s linear infinite;
    pointer-events: none;
    z-index: -2;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--slate-800) 1px, transparent 1px),
        linear-gradient(90deg, var(--slate-800) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    top: 60%;
    right: 10%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-primary);
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--gradient-secondary);
    top: 40%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(20px, -20px) scale(1.1); }
    50% { transform: translate(-20px, 20px) scale(0.9); }
    75% { transform: translate(20px, 20px) scale(1.05); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--slate-800);
    padding: 20px 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    color: white;
}

.logo i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--slate-300);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--cyan-400);
}

.btn-primary {
    background: var(--gradient-primary);
    padding: 10px 24px;
    border-radius: 12px;
    color: white !important;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--cyan-400);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    color: white;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--slate-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 60px;
}

.waitlist-form .form-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.waitlist-form input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    background: var(--slate-800);
    border: 2px solid var(--slate-700);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: white;
    padding: 18px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4);
}

.form-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--slate-400);
}

.form-note i {
    color: var(--cyan-400);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.stat h3 {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat p {
    color: var(--slate-400);
    font-size: 14px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--slate-800);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--slate-900);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.screen-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    top: 20%;
    left: 10%;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: var(--gradient-secondary);
    bottom: 20%;
    right: 10%;
    animation-delay: 2s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

/* Features Section */
.features {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--slate-400);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 1px solid var(--slate-700);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--cyan-400);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.2);
}

.feature-card:hover::before {
    opacity: 0.05;
}

.feature-card.featured {
    border-color: var(--purple-500);
    background: rgba(168, 85, 247, 0.1);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--slate-400);
    margin-bottom: 24px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-300);
    margin-bottom: 12px;
}

.feature-list i {
    color: var(--cyan-400);
    font-size: 16px;
}

/* Worlds Section */
.worlds {
    padding: var(--section-padding);
    position: relative;
}

.worlds-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.world-card {
    background: var(--slate-800);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.world-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.world-image {
    height: 250px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.world-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
}

.world-card:hover .world-gradient {
    transform: scale(1.1);
}

.world-ocean {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.world-dragon {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
}

.world-dino {
    background: linear-gradient(135deg, #16a34a 0%, #84cc16 100%);
}

.world-space {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.world-icon {
    font-size: 80px;
    color: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.world-info {
    padding: 24px;
}

.world-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.world-info p {
    color: var(--slate-400);
    font-size: 14px;
    line-height: 1.6;
}

/* Waitlist CTA Section */
.waitlist-cta {
    padding: var(--section-padding);
    position: relative;
}

.cta-content {
    text-align: center;
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border: 2px solid var(--slate-700);
    border-radius: 32px;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(34, 211, 238, 0.1) 0%,
        transparent 50%
    );
    animation: rotateGradient 15s linear infinite;
}

.cta-content h2 {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    position: relative;
}

.cta-content > p {
    font-size: 20px;
    color: var(--slate-400);
    margin-bottom: 40px;
    position: relative;
}

.waitlist-form-large {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 16px;
}

.waitlist-form-large input[type="email"] {
    flex: 1;
    padding: 20px 28px;
    background: var(--slate-800);
    border: 2px solid var(--slate-700);
    border-radius: 16px;
    color: white;
    font-size: 18px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.waitlist-form-large input[type="email"]:focus {
    outline: none;
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.1);
}

.btn-submit-large {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px 40px;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    white-space: nowrap;
}

.btn-submit-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(34, 211, 238, 0.4);
}

.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--slate-900);
    margin-left: -12px;
    background: var(--gradient-primary);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar:nth-child(2) {
    background: var(--gradient-secondary);
}

.avatar:nth-child(3) {
    background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
}

.avatar:nth-child(4) {
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
}

.avatar-count {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--slate-700);
    color: var(--cyan-400);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-left: -12px;
    border: 3px solid var(--slate-900);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--slate-800);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--slate-400);
    margin: 16px 0 24px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--slate-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-300);
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--slate-400);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--slate-800);
    color: var(--slate-400);
    font-size: 14px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--slate-800);
    border: 2px solid var(--slate-700);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 500px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 40px;
    color: white;
}

.modal-content h3 {
    font-size: 32px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.modal-content p {
    font-size: 18px;
    color: var(--slate-400);
    margin-bottom: 32px;
}

.btn-close {
    background: var(--gradient-primary);
    color: white;
    padding: 16px 48px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a:not(.btn-primary) {
        display: none;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .waitlist-form .form-group {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .worlds-carousel {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 36px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .cta-content {
        padding: 60px 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-content > p {
        font-size: 16px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
