:root {
    /* Premium Dark Mode Core Colors */
    --bg-dark: #020617; /* Deep Midnight */
    --bg-secondary: #0f172a;
    
    /* The "Spark" Accents - Used sparingly for high impact */
    --primary: #ff3366; 
    --accent: #ff0055;
    --accent-gradient: linear-gradient(135deg, #ff3366 0%, #ff758c 100%);
    
    /* Typography Colors */
    --text-light: #f8fafc;
    --text-dim: #94a3b8;
    
    /* Refined Glassmorphism for Dark Mode */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --glass-blur: blur(16px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    /* Subtle, sophisticated ambient glowing background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(255, 51, 102, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.05), transparent 25%),
        radial-gradient(circle at 50% 100%, rgba(255, 0, 85, 0.08), transparent 40%);
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 140px;
}

/* Glass Utility Architecture Configuration */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 24px;
    transform: translateZ(0);
    will-change: transform, opacity;
}
/* Background Animations - Transformed from Hearts to Lightweight Glowing "Sparks" */
.bg-animations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    
    /* Replaced heavy blur and shadow with a highly optimized, flicker-free radial gradient */
    background: radial-gradient(circle, rgba(255, 51, 102, 1) 0%, rgba(255, 51, 102, 0.3) 50%, transparent 80%);
    
    /* Strict hardware acceleration to completely kill white screen flashing */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform, opacity;
    
    animation: floatUp 22s infinite linear;
}

.floating-heart::before,
.floating-heart::after {
    display: none; /* Disables the literal heart shapes */
}

@keyframes floatUp {
    0% { transform: translateY(105vh) scale(0.7) translateZ(0); opacity: 0; }
    15% { opacity: 0.85; } 
    85% { opacity: 0.85; } 
    100% { transform: translateY(-15vh) scale(1.3) translateZ(0); opacity: 0; }
}

.fh-1 { left: 10%; animation-duration: 20s; animation-delay: 0s; }
.fh-2 { left: 30%; animation-duration: 26s; animation-delay: 3s; transform: scale(0.6); }
.fh-3 { left: 50%; animation-duration: 18s; animation-delay: 1s; transform: scale(1.3); }
.fh-4 { left: 70%; animation-duration: 24s; animation-delay: 5s; }
.fh-5 { left: 90%; animation-duration: 22s; animation-delay: 2s; transform: scale(0.8); }


/* Sticky Platform Header Architecture */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    z-index: 100;
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.4); /* Slightly darker glass for header */
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    text-decoration: none;
}

.logo i {
    color: var(--primary); /* Keep the spark pink */
    animation: pulseHeart 2s infinite ease-in-out;
}

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

.desktop-nav {
    display: none;
    gap: 28px;
    align-items: center;
}

.desktop-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.desktop-nav a:hover { color: var(--primary); }

.login-btn {
    background: var(--text-light);
    color: var(--bg-dark) !important;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease !important;
}

.login-btn:hover {
    transform: scale(1.04);
    background: #e2e8f0;
}

.hamburger {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 105;
}

/* Side Navigation Drawer System */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 101;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active { right: 0; }

.close-btn {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 102;
    transition: transform 0.3s ease, color 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1) rotate(90deg);
    color: var(--text-light);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 80%;
    max-width: 320px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 16px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-login-accent {
    background: var(--accent-gradient) !important;
    border: none !important;
    justify-content: center;
}

/* Informational Main Core Styles */
main { padding-top: 130px; }

.hero {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.hero-badge i { color: var(--primary); }

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero h1 span { 
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin: 20px 0 32px 0;
    line-height: 1.65;
    max-width: 680px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-light);
    color: var(--bg-dark);
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.15);
}

/* Decorative Endless Text Marquee Layout */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    margin: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transform: skewY(-1.5deg);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 35px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.marquee-item i { color: var(--primary); }

@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Statistics Configuration Layout */
.stats-section {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.stat-card {
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 6px;
}

.stat-card p {
    color: var(--text-dim);
    font-weight: 500;
}

/* Feature Grid Area Setup */
.features {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.card {
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.card-icon {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary);
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 700;
}

.card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 1.02rem;
}

.heart-card {
    background: rgba(255, 51, 102, 0.05);
    border-radius: 24px;
    border: 1px solid rgba(255, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle glow behind the premium card */
.heart-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,51,102,0.1) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.heart-card > * { position: relative; z-index: 1; }

.heart-card .card-icon {
    background: none;
    color: var(--primary);
    font-size: 2.4rem;
    animation: pulseHeart 1.8s infinite ease-in-out;
}

/* Original Restored Floating Nav Architecture */
.floating-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 100px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    will-change: transform;
}

.floating-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
}

.floating-nav-item:hover, .floating-nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    transform: translateY(-5px);
}

.floating-nav-item i { font-size: 1.5rem; }

.floating-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Oversized Center Action Button */
.floating-nav-main {
    background: var(--accent-gradient);
    color: var(--text-light);
    width: 80px;
    height: 80px;
    margin-top: -20px;
    border: 4px solid var(--bg-dark);
    box-shadow: 0 10px 20px rgba(255, 51, 102, 0.3);
}

.floating-nav-main:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 51, 102, 0.4);
}

/* Tablet & Desktop Layout Escalations */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .desktop-nav { display: flex; }
    
    .hero h1 { font-size: 4.8rem; }
    .features { grid-template-columns: repeat(3, 1fr); }
    
    .floating-nav {
        gap: 20px;
        padding: 12px 24px;
        border-radius: 100px;
    }
    
    .floating-nav-item {
        flex-direction: row;
        width: auto;
        height: auto;
        padding: 12px 24px;
        border-radius: 100px;
        gap: 10px;
    }
    
    .floating-nav-item span { font-size: 0.9rem; }
    
    .floating-nav-main {
        width: auto;
        height: auto;
        margin-top: 0;
        border: none;
        padding: 12px 32px;
    }
}