@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;600;800&family=Press+Start+2P&display=swap');

:root {
    --bg-dark: #050505;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.4);
    --secondary: #10b981;
    --accent: #f59e0b;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-pixel: 'Press Start 2P', cursive;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
}

.landing-page-root {
    transition: opacity 1s;
}

.landing-page-root.hide {
    opacity: 0;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 5, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 80%);
}

.hero-content {
    max-width: 700px;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--secondary);
    font-family: var(--font-pixel);
    font-size: 10px;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 92px);
    line-height: 1.0;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -3px;
    color: #ffffff;
    text-transform: uppercase;
}

.hero h1 span {
    background: linear-gradient(90deg, #3b82f6, #10b981, #f59e0b, #3b82f6);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prismaticFlow 5s linear infinite;
    text-shadow: 0 10px 50px rgba(59, 130, 246, 0.4);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

@keyframes prismaticFlow {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}

.art-text {
    background: linear-gradient(to bottom, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.live-text {
    color: #10b981;
    letter-spacing: 2px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    position: relative;
}

.live-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.hero p {
    font-size: 18px;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 1px solid var(--text-dim);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-dim);
    border-radius: 50%;
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

.arrow span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-dim);
    border-right: 2px solid var(--text-dim);
    transform: rotate(45deg);
    margin: -5px;
    animation: arrowScroll 1.5s infinite;
}

.arrow span:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes arrowScroll {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

.btn-primary {
    background: var(--primary);
    color: white;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    padding: 16px 36px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: white !important;
    transform: translateY(-2px);
}

/* --- Features Section --- */
.section {
    padding: 120px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 48px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.feature-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-dim);
}

/* --- Statistics Section --- */
.stats {
    background: linear-gradient(to bottom, var(--bg-dark), #101012, var(--bg-dark));
    padding: 100px 5%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-family: var(--font-pixel);
    font-size: 9px;
    color: var(--text-dim);
    letter-spacing: 2px;
}

/* --- Showcase Section --- */
.showcase {
    position: relative;
    padding: 120px 0;
}

.canvas-preview {
    width: 90%;
    height: 500px;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.canvas-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.preview-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
}

.preview-overlay h2 {
    font-family: var(--font-pixel);
    font-size: 20px;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Footer --- */
footer {
    padding: 80px 5% 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 20px;
    transition: var(--transition);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    transform: rotate(15deg);
}

.copyright {
    color: var(--text-dim);
    font-size: 14px;
}

/* --- Modal Overlays --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.auth-modal-overlay {
    display: flex;
    /* Default for auth unless closed */
}

/* Onboarding is special high priority */
#onboarding-screen {
    z-index: 9999 !important;
}

.close-auth {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-auth:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.welcome-container {
    max-width: 900px !important;
    border-radius: 24px !important;
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-btns {
        flex-direction: column;
    }
}

/* --- Onboarding --- */
.onboarding-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    max-width: 800px !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Bio & Onboarding Visibility --- */
#onboarding-bio,
#profile-bio {
    background: transparent !important;
    color: #1f2937 !important;
    font-family: inherit;
    caret-color: var(--primary) !important;
}

.onboarding-fields .input-wrapper input {
    color: white !important;
}

/* --- WhatsApp Style Profile --- */
.wa-profile-card {
    position: fixed;
    /* Fixed to side */
    right: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: #111b21;
    color: #e9edef;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
    font-family: 'Inter', sans-serif;
    z-index: 10001;
    /* Above everything */
}

.onboarding-content {
    padding: 60px;
    text-align: center;
}

.onboarding-title {
    font-family: var(--font-heading);
    font-size: 32px;
    margin-bottom: 20px;
}

.onboarding-title span {
    color: var(--primary);
}

.onboarding-desc {
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 14px;
}

.onboarding-form {
    display: flex;
    gap: 40px;
    text-align: left;
}

.onboarding-avatar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.main-avatar-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: relative;
    border: 4px solid var(--primary);
    padding: 5px;
    background: var(--surface);
}

.main-avatar-preview img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.onboarding-suggestions {
    width: 100%;
}

.avatar-options {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.avatar-opt {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    background: var(--surface);
    border: 2px solid transparent;
    transition: 0.2s;
}

.onboarding-secondary-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-dim);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 10px;
    font-family: var(--font-pixel);
    margin-top: 10px;
    width: 100%;
    transition: 0.2s;
}

.onboarding-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.view-controls button#logout-btn:hover {
    color: #ef4444 !important;
}

.avatar-opt:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

.onboarding-suggestions p {
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 15px;
    text-align: center;
    font-family: var(--font-pixel);
}

.onboarding-fields {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-wrapper {
    height: 120px !important;
    align-items: flex-start !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 16px !important;
}

.bio-wrapper textarea {
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    color: #1f2937 !important;
    font-family: inherit;
    resize: none !important;
    outline: none !important;
    padding-top: 5px;
    font-size: 14px;
}

.bio-wrapper i {
    color: #3b82f6 !important;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .onboarding-form {
        flex-direction: column;
        gap: 20px;
    }

    .onboarding-content {
        padding: 30px;
    }
}