@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&display=swap');

:root {
    --bg-color: #030303;
    --card-bg: rgba(14, 14, 14, 0.6);
    --accent-color: #00f2fe; /* Neon Cyan */
    --accent-color-alt: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--accent-color), var(--accent-color-alt)); border-radius: 10px; }

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Splash Screen */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--bg-color);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s;
}
.splash-logo {
    font-size: 4rem; font-weight: 900; letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, var(--accent-color) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: splashFadeIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
}
@keyframes splashFadeIn {
    0% { transform: scale(0.7); opacity: 0; filter: blur(20px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

#main-content {
    opacity: 0; transition: opacity 1s ease;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}
#main-content.visible { opacity: 1; }

/* Navbar */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1.2rem 8%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: rgba(3, 3, 3, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.4s ease;
}
.logo {
    font-size: 1.8rem; font-weight: 900; color: #fff;
    text-decoration: none; letter-spacing: -1px;
}
.logo span { color: var(--accent-color); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}
.nav-link:hover { color: #fff; }

.admin-btn {
    padding: 0.7rem 1.4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff; border-radius: 12px;
    text-decoration: none; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
}
.admin-btn:hover {
    background: var(--accent-color); color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
    border-color: var(--accent-color);
}

/* Background Blobs */
.bg-blob {
    position: absolute; border-radius: 50%; filter: blur(90px);
    z-index: -1; pointer-events: none; opacity: 0.4;
    animation: floatBlob 15s infinite alternate ease-in-out;
}
.bg-blob-1 { top: -10%; left: -10%; width: 600px; height: 600px; background: rgba(0, 242, 254, 0.15); }
.bg-blob-2 { bottom: 10%; right: -10%; width: 500px; height: 500px; background: rgba(58, 12, 163, 0.2); animation-delay: -5s; }

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 0 10%; text-align: center; position: relative;
    padding-top: 80px;
    overflow: hidden;
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none; z-index: -1;
}

.badge {
    padding: 8px 16px;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 0.85rem; font-weight: 700; font-family: 'Outfit', sans-serif;
    margin-bottom: 2rem;
    letter-spacing: 1px; text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.3rem, 10vw, 5rem);
    line-height: 1.15; margin-bottom: 1rem; letter-spacing: -1px; font-weight: 900;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-alt) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 680px; margin-bottom: 3rem; font-weight: 400;
}

.cta-group { display: flex; gap: 1rem; align-items: center; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    color: #000; border-radius: 50px;
    text-decoration: none; font-weight: 800; font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover {
    transform: translateY(-4px); box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-secondary {
    padding: 1rem 2rem;
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    color: #fff; border-radius: 50px;
    text-decoration: none; font-weight: 700; font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08); transform: translateY(-4px);
}

/* Floating Elements in Hero */
.hero-floaters {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.floater {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px; padding: 12px 20px;
    display: flex; align-items: center; gap: 10px;
    color: #fff; font-size: 0.9rem; font-weight: 600; font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s infinite ease-in-out alternate;
}
.floater-1 { top: 25%; left: 10%; animation-delay: 0s; }
.floater-2 { bottom: 30%; right: 12%; animation-delay: -3s; }
.floater i { color: var(--accent-color); font-size: 1.2rem; }

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(2deg); }
}

/* Features Section */
.features {
    padding: 120px 8%;
    background: #050505;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.02);
}
.section-title { text-align: center; margin-bottom: 5rem; }
.section-title h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; font-weight: 800; letter-spacing: -1px; }
.section-title p { font-size: 1.1rem; color: var(--text-secondary); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.feature-card {
    padding: 2.5rem 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0,242,254,0.1), transparent 50%);
    opacity: 0; transition: 0.5s; pointer-events: none;
}
.feature-card:hover {
    border-color: rgba(0,242,254,0.3); transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(0,242,254,0.1); display: flex; justify-content: center; align-items: center;
    font-size: 1.8rem; color: var(--accent-color); margin-bottom: 2rem;
    border: 1px solid rgba(0,242,254,0.2);
}
.feature-card h3 { margin-bottom: 1rem; font-size: 1.5rem; font-weight: 800; }
.feature-card p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }

/* Pricing Section */
.pricing-card {
    padding: 3.5rem 3rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    transition: var(--transition);
    display: flex; flex-direction: column;
}
.pricing-card.popular {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(0,242,254,0.05) 0%, rgba(14,14,14,0.6) 100%);
    transform: scale(1.05);
    position: relative;
}
.pricing-card.popular::after {
    content: 'Most Popular';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    color: #000; padding: 6px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800; font-family: 'Outfit';
}
.pricing-card h3 { font-size: 1.6rem; color: #fff; margin-bottom: 0.5rem; }
.pricing-card .price { font-size: 3rem; font-weight: 900; color: #fff; margin: 1rem 0 2rem 0; font-family: 'Outfit'; }
.pricing-card .price span { font-size: 1rem; color: var(--text-secondary); font-weight: 400; }
.pricing-list { list-style: none; margin-bottom: 3rem; flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.pricing-list li { display: flex; align-items: center; gap: 12px; color: #ccc; font-size: 0.95rem; }
.pricing-list i { color: var(--accent-color); font-size: 1.1rem; }

/* Responsive adjustments */
.mobile-menu-btn { display: none; font-size: 1.6rem; color: #fff; cursor: pointer; z-index: 1001; }
.mobile-cta-bar { display: none; } /* Hidden on desktop */

@media (max-width: 900px) {
    .pricing-card.popular { transform: none; }
    .floater { display: none; }
    .bg-blob-1 { width: 300px; height: 300px; }
    .bg-blob-2 { width: 250px; height: 250px; }
}

/* ══════════════════ MOBILE LAYOUT ══════════════════ */
@media (max-width: 768px) {

    /* ── Navbar ── */
    nav {
        padding: 1rem 5%;
        background: rgba(3,3,3,0.9);
        backdrop-filter: blur(20px);
    }
    .mobile-menu-btn { display: block; z-index: 1002; position: relative; }
    .nav-links {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100vh;
        background: rgba(5,5,5,0.97);
        flex-direction: column;
        justify-content: center; align-items: center;
        gap: 28px; padding: 0 10%;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1000; display: flex !important;
        opacity: 0; visibility: hidden; right: 0;
    }
    .nav-links.active { opacity: 1; visibility: visible; }
    .nav-links .nav-link {
        font-size: 1.6rem; font-weight: 700; color: #fff;
        text-decoration: none; font-family: 'Outfit', sans-serif;
        letter-spacing: -0.5px; text-align: center;
    }
    .nav-links .admin-btn {
        width: 100%; text-align: center; padding: 1rem;
        font-size: 1rem; border-radius: 14px;
    }

    /* ── Hero Section (App-style) ── */
    .hero {
        min-height: 100svh;
        padding: 120px 6% 60px 6%;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        overflow: hidden;
        position: relative;
    }
    .hero-glow {
        width: 100vw; height: 100vw; max-width: 100vw; max-height: 100vw;
        top: 5%; left: 50%; transform: translateX(-50%);
        background: radial-gradient(circle, rgba(0,242,254,0.2) 0%, transparent 65%);
    }

    .badge {
        display: inline-flex; align-items: center; gap: 6px;
        margin-bottom: 1.2rem; font-size: 0.75rem; padding: 5px 12px;
        border-radius: 20px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.2rem);
        line-height: 1.08; letter-spacing: -2px;
        margin-bottom: 1.2rem; text-align: left; font-weight: 900;
    }
    .hero h1 br { display: block; }
    .hero p {
        font-size: 1.05rem; line-height: 1.65;
        color: rgba(255,255,255,0.55); max-width: 100%;
        text-align: left; margin-bottom: 2.5rem;
    }
    .cta-group {
        flex-direction: column; width: 100%; gap: 12px;
    }
    .cta-group a {
        width: 100%; text-align: center; padding: 1.15rem;
        border-radius: 16px; font-size: 1.05rem; font-weight: 800;
    }
    .cta-group .btn-primary { letter-spacing: 0.3px; }
    .cta-group .btn-secondary {
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.1);
    }

    /* ── Features Section ── */
    .features { padding: 70px 0 40px 0; }
    .section-title { padding: 0 6%; margin-bottom: 2rem; text-align: left; }
    .section-title h2 {
        font-size: 2rem; letter-spacing: -0.5px; line-height: 1.2;
    }
    .section-title p { font-size: 0.95rem; margin-top: 0.5rem; }

    /* Horizontal swipeable card row */
    .feature-grid {
        display: flex; flex-wrap: nowrap;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory; gap: 14px;
        padding: 12px 6% 24px 6%;
        align-items: stretch;
    }
    .feature-grid::-webkit-scrollbar { display: none; }
    .feature-card {
        flex: 0 0 78%; scroll-snap-align: start;
        padding: 2rem 1.6rem; border-radius: 22px;
        min-height: 240px;
    }
    .feature-card:hover { transform: none; } /* disable hover lift on touch */
    .feature-icon {
        width: 48px; height: 48px; border-radius: 14px;
        font-size: 1.4rem; margin-bottom: 1.5rem;
    }
    .feature-card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
    .feature-card p { font-size: 0.95rem; line-height: 1.6; }

    /* ── Pricing Section ── */
    #pricing .feature-grid {
        flex-direction: column; overflow-x: visible;
        scroll-snap-type: none; padding: 0 6%;
        gap: 20px;
    }
    #pricing .feature-grid .pricing-card {
        flex: 1 1 auto; width: 100%;
    }
    .pricing-card { padding: 2.2rem 1.6rem; border-radius: 22px; }
    .pricing-card .price { font-size: 2.5rem; }
    .pricing-card h3 { font-size: 1.4rem; }
}

/* Modals */
.auth-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(12px);
    z-index: 10000; display: flex; justify-content: center; align-items: center;
}
.auth-modal-box {
    background: #0e0e0e; border: 1px solid rgba(0,242,254,0.15); border-radius: 24px;
    padding: 35px; width: 92%; max-width: 380px; position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,242,254,0.05);
}
.auth-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #555; cursor: pointer; transition: 0.3s; }
.auth-close:hover { color: #fff; }
.auth-tabs { display: flex; margin-bottom: 25px; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 4px; gap: 4px; }
.auth-tab { flex: 1; background: none; border: none; padding: 11px; border-radius: 9px; color: #666; font-weight: 700; font-family: 'Inter'; cursor: pointer; transition: 0.3s; }
.auth-tab.active { background: #00f2fe; color: #000; }
.auth-form { display: flex; flex-direction: column; gap: 13px; }
.auth-input { width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); color: #fff; border-radius: 12px; font-size: 0.95rem; font-family: 'Inter'; outline: none; transition: 0.3s; }
.auth-input:focus { border-color: var(--accent-color); background: rgba(0,242,254,0.06); box-shadow: 0 0 0 3px rgba(0,242,254,0.08); }
