/* Global Vars & Reset */
:root {
    --bg-color: #0b0b0f;
    /* Slightly lighter deep blue/gray */
    --card-bg: #16161f;
    --card-hover: #1f1f2e;
    --primary-color: #7c3aed;
    /* Brighter Purple */
    --accent-color: #22d3ee;
    /* Brighter Cyan */
    --secondary-color: #f472b6;
    /* Lighter Pink */
    --gold: #fbbf24;
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    /* Lighter gray for better contrast */
    --font-stack: 'Inter', sans-serif;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #f472b6 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    --shadow-soft: 0 20px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(124, 58, 237, 0.4);
    --radius-lg: 24px;
    --container-max: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.08) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 1.75rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }

    h2 {
        font-size: 3.5rem;
    }
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.brand-color {
    color: var(--secondary-color);
}

.gold-text {
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-store {
    background: #000;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 16px;
    gap: 12px;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.btn-store i {
    font-size: 2rem;
    color: white;
}

.btn-store div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-store span {
    font-size: 0.75rem;
    color: #a3a3a3;
    margin-bottom: 2px;
}

.btn-store strong {
    font-size: 1.1rem;
    color: white;
    font-weight: 600;
}

.btn-store:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
    transform: translateY(-3px);
}

.btn-store.lg {
    padding: 16px 32px;
    min-width: 220px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.nav-links a:not(.btn):hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
    opacity: 0.35;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(11, 11, 15, 0.85), rgba(11, 11, 15, 0.7));
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Sections General */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
}

/* What is Blap Live */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.floating-img {
    animation: float 6s ease-in-out infinite;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.floating-img::after {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: inherit;
    background: var(--gradient-glow);
    z-index: -1;
    opacity: 0.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover {
    background: var(--card-hover);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.feature-card:hover::before {
    opacity: 1;
}

.icon-box {
    width: 65px;
    height: 65px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--accent-color);
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--accent-color);
    color: #000;
    transform: rotateY(180deg);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02) 50%, transparent);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    text-align: center;
    flex: 1;
    z-index: 2;
    position: relative;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--text-main);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto 30px;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
    color: var(--primary-color);
    transition: 0.3s;
}

.step-card:hover .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.connector {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    position: relative;
}

.connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    transition: width 1s ease;
}

.how-it-works:hover .connector::after {
    width: 100%;
}

/* Monetization */
.monetization {
    position: relative;
    overflow: hidden;
}

.monetization-visual {
    position: relative;
}

.monetization-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: var(--gold);
    filter: blur(100px);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.floating-img-delayed {
    animation: float 7s ease-in-out infinite 1s;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border-top: 3px solid var(--gold);
    transition: 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.stat-number,
.stat-symbol {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Fan Experience */
.glass-card {
    background: rgba(22, 22, 31, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    pointer-events: none;
}

.feature-list {
    margin-top: 40px;
}

.feature-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
    color: var(--text-main);
}

.feature-list i {
    color: var(--accent-color);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.tilt-img {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    border-radius: 24px;
    box-shadow: -30px 30px 60px rgba(0, 0, 0, 0.5);
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.tilt-img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* CTA Final */
.cta-final {
    position: relative;
    padding: 150px 0;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(20, 20, 30, 1) 20%, #050505 100%);
}

.cta-final::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.cta-final .container {
    position: relative;
    z-index: 2;
}

.cta-final h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-final p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 50px;
}

.scale-pulse {
    animation: pulse 3s infinite;
}

/* Footer */
footer {
    background: #050505;
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 140px;
    margin-bottom: 25px;
}

.footer-col h4 {
    margin-bottom: 25px;
    color: white;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #888;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: white;
}

.social-links a:hover {
    background: var(--gradient-main);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #555;
    font-size: 0.9rem;
}

/* Animations Variables */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Reveal Classes */
.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.fade-in-up {
    opacity: 0;
    transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up {
    transform: translateY(50px);
}

.scroll-reveal-left {
    transform: translateX(-50px);
}

.scroll-reveal-right {
    transform: translateX(50px);
}

.scroll-reveal {
    transform: translateY(40px);
}

.active.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

.active.scroll-reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.active.scroll-reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.active.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}


/* Responsiveness */
@media (max-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .about-text,
    .fan-text {
        text-align: center;
    }

    .feature-list {
        display: inline-block;
        text-align: left;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    .glass-card {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
        /* Ensure base font size is readable */
    }

    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 120px 20px 60px;
        /* Reduced padding */
        min-height: auto;
        /* Allow content to dictate height on mobile if needed */
    }

    .hero-video {
        display: none;
    }

    .hero-content h1 {
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
        margin: 10px 0;
        flex: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        /* Changed from absolute to fixed for better mobile menu */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(11, 11, 15, 0.98);
        /* Added solid background */
        backdrop-filter: blur(20px);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        gap: 30px;
        font-size: 1.5rem;
    }

    .hamburger {
        z-index: 2001;
    }

    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-store {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Stack features on mobile */
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .glass-card {
        padding: 30px 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }
}