:root[data-theme="dark"] {
    --bg-color: #0b0c10;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(26, 27, 36, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --primary-gradient: linear-gradient(135deg, #FF3B7C 0%, #FF9A44 100%);
    --primary-color: #FF3B7C;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --nav-height: 80px;
    --blob-blur: 100px;
    --btn-hover: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(0, 0, 0, 0.2);
}

:root[data-theme="light"] {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --primary-gradient: linear-gradient(135deg, #FF3B7C 0%, #FF9A44 100%);
    --primary-color: #FF3B7C;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    --nav-height: 80px;
    --blob-blur: 80px;
    --btn-hover: rgba(0, 0, 0, 0.05);
    --input-bg: rgba(255, 255, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(var(--blob-blur));
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

:root[data-theme="light"] .blob {
    opacity: 0.3;
}

.blob-1 {
    top: -200px;
    left: -200px;
    background: #FF3B7C;
}

.blob-2 {
    bottom: 20%;
    right: -200px;
    background: #FF9A44;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
}

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

.fw-bold {
    font-weight: 800;
}

.muted {
    color: var(--text-muted);
    font-size: 0.8em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 59, 124, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 59, 124, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-icon:hover {
    background: var(--btn-hover);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1200px;
    border-radius: 100px;
    z-index: 100;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    /* Soften the edges */
    object-fit: contain;
    transition: opacity 0.3s ease;
}

:root[data-theme="dark"] .logo-img-light {
    display: none;
}

:root[data-theme="dark"] .logo-img-dark {
    display: block;
    mix-blend-mode: screen;
    /* Blend black backgrounds into dark mode */
    opacity: 0.95;
}

:root[data-theme="light"] .logo-img-dark {
    display: none;
}

:root[data-theme="light"] .logo-img-light {
    display: block;
    mix-blend-mode: multiply;
    /* Blend white backgrounds into light mode */
    opacity: 0.95;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-links a:not(.btn) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    flex: 1;
    border-radius: 30px;
    padding: 32px;
    position: relative;
    max-width: 500px;
}

/* Mockup elements */
.mockup {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

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

.player {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player:nth-child(3) {
    flex-direction: row-reverse;
    text-align: right;
}

.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
}

.bg-blue {
    background: #3B82F6;
}

.bg-orange {
    background: #F97316;
}

.score {
    font-size: 1.5rem;
    font-weight: 800;
}

.vs {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-muted);
    background: var(--btn-hover);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.progress-track {
    height: 8px;
    background: var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-track.right .progress-fill {
    float: right;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
}

.progress-fill.blue {
    background: #3B82F6;
}

.progress-fill.orange {
    background: #F97316;
}

.stat-bar {
    margin-bottom: 24px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 24px;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    background: var(--btn-hover);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Stats Section */
.stats-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px;
    border-radius: 30px;
}

.stats-info {
    flex: 1;
}

.stats-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.stats-info>p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.stat-icon {
    font-size: 1.8rem;
    background: var(--btn-hover);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stats-list strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.stats-list span:not(.stat-icon) {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.stats-image {
    flex: 1;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    padding: 24px;
    border-radius: 20px;
    width: 100%;
    max-width: 350px;
    animation: float 6s ease-in-out infinite;
}

.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    border-radius: 12px;
    margin-top: 12px;
    background: var(--btn-hover);
}

.leaderboard-item.active {
    background: rgba(255, 59, 124, 0.1);
    border: 1px solid rgba(255, 59, 124, 0.2);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* CTA Section */
.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 1.1rem;
}

.waitlist-form {
    display: flex;
    gap: 12px;
    max-width: 450px;
    margin: 0 auto;
}

.glass-input {
    flex: 1;
    padding: 14px 24px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.glass-input:focus {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 60px 24px;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    /* Could add hamburger in real app */
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
        width: 100%;
    }

    .stats-showcase {
        flex-direction: column;
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .waitlist-form {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}