/* PopCast Landing Page Styles - Optimized for Performance */

/* CSS Variables */
:root {
    --purple: #8B5CF6;
    --blue: #3B82F6;
    --pink: #EC4899;
    --indigo: #6366F1;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --primary: #8B5CF6;
    --secondary: #3B82F6;
    --accent: #EC4899;
    --sf-pro-rounded: 'Quicksand', 'Nunito', -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', system-ui, sans-serif;
    --clash-font: 'Clash Display', sans-serif;
    --inter-font: 'Inter', sans-serif;
}

/* Critical Above-the-fold CSS */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: var(--inter-font);
    background: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

/* Floating Emojis Background - Hero Section Only */
.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-emoji {
    position: absolute;
    font-size: 20px;
    opacity: 0.3;
    animation: float 12s infinite ease-in-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(-40px) rotate(-5deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(20px);
    padding: 24px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="header-grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23header-grid)"/></svg>');
    opacity: 0.3;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header.scrolled .header-cta {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
}

.header.scrolled .header-cta:hover {
    background: var(--secondary);
    border: 1px solid var(--secondary);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.header-nav a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Compact header for subpages */
.header-compact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-compact .logo-icon {
    width: 48px;
    height: 48px;
}

.header-compact .header-nav a {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.header-compact .header-nav a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

/* Adjust main content for compact header */
.header-compact + main {
    margin-top: 80px;
}

/* Subpage content styling */
.subpage-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.subpage-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    text-align: center;
}

.subpage-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 2rem 0 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.subpage-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--gray-700);
}

.subpage-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.subpage-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Help page specific styles */
.help-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 2rem;
}

.help-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.help-card h2 {
    font-size: 1.25rem;
    margin: 0 0 12px 0;
    color: var(--gray-900);
}

.help-card p {
    color: var(--gray-600);
    margin: 0 0 12px 0;
}

.help-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.help-card a:hover {
    text-decoration: underline;
}

.help-list {
    padding-left: 18px;
    color: var(--gray-700);
}

.help-list li {
    margin: 8px 0;
}

/* Community Guidelines specific styles */
.guidelines-toc {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 16px;
    margin: 24px 0;
}

.guidelines-toc a {
    color: var(--primary);
    text-decoration: none;
    margin-right: 16px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.guidelines-toc a:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* Responsive grid */
@media (min-width: 768px) {
    .help-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.logo-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon img {
    filter: brightness(0) invert(1);
}

.header.scrolled .logo-icon img {
    filter: none;
}

.header-cta {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--sf-pro-rounded);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
}

.download-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 180px 0 160px;
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    color: var(--white);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 600px;
    width: 100%;
    max-width: 100%;
}

.hero-left {
    text-align: left;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 8px 16px rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.app-preview {
    color: white;
    text-align: center;
    padding: 0;
    font-family: var(--clash-font);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gif-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 28px;
}

.demo-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 28px;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
    opacity: 0; /* hidden by default to avoid flash/blank */
}

.demo-gif.active {
    opacity: 1;
}

.app-preview h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.app-preview p {
    font-size: 16px;
    opacity: 0.9;
}

.preview-emoji {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="white" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-title {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(1.8rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 32px;
    color: var(--white);
    position: relative;
    z-index: 2;
    text-align: left !important;
    word-wrap: break-word;
    hyphens: auto;
}

/* Ensure desktop alignment */
@media (min-width: 1024px) {
    .hero-title {
        text-align: left !important;
    }
    
    .hero-left {
        text-align: left;
    }
}

.hero-tagline {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--white);
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 500;
    opacity: 0.95;
    margin-bottom: 48px;
    max-width: 700px;
    position: relative;
    z-index: 2;
    line-height: 1.4;
    color: var(--white);
}

.app-store-button {
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    margin-bottom: 24px;
}

.app-store-button:hover {
    transform: translateY(-4px) scale(1.05);
    filter: brightness(1.1);
}

.app-store-button img {
    height: 64px;
    width: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 8px rgba(255, 255, 255, 0.1));
}

.social-proof-text {
    font-family: var(--sf-pro-rounded);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
    text-align: left;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-content {
        gap: 20px;
        padding: 0;
    }
    
    .app-store-button {
        margin-bottom: 16px;
        transform: scale(0.9);
    }
    
    .app-store-button img {
        height: 48px;
    }
    
    .social-proof-text {
        font-size: 14px;
        text-align: left;
        margin-top: 12px;
    }
}

/* Screenshots Section */
.screenshots {
    padding: 120px 0;
    background: var(--gray-50);
}

.screenshots-title {
    font-family: var(--clash-font);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    color: var(--gray-900);
}

.screenshots-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 80px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.screenshot-placeholder {
    background: var(--white);
    border-radius: 24px;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.screenshot-placeholder:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.screenshot-mock {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 0;
    padding: 48px 32px;
    color: var(--white);
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.screenshot-mock::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.mock-header {
    font-family: var(--clash-font);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}

.mock-content {
    font-size: 16px;
    opacity: 0.9;
    text-align: center;
    position: relative;
    z-index: 2;
    line-height: 1.5;
}

.screenshot-info {
    padding: 32px;
}

.screenshot-info h3 {
    font-family: var(--clash-font);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.screenshot-info p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--white);
}

.features-header {
    text-align: center;
    margin-bottom: 80px;
}

.features-title {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.features-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: left;
    padding: 48px 40px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 32px;
    display: block;
    line-height: 1;
}

.feature-title {
    font-family: var(--sf-pro-rounded);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.feature-description {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Social Proof */
.social-proof {
    text-align: center;
    padding: 120px 0;
    background: var(--white);
}

.social-title {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--gray-900);
}

.social-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: nowrap;
    max-width: 900px;
    margin: 0 auto 32px auto;
}

.stat {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary);
}

.stat-number {
    font-family: var(--clash-font);
    font-size: 64px;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 18px;
    color: var(--gray-600);
    font-weight: 600;
}

/* Content Categories */
.categories {
    padding: 120px 0;
    background: var(--gray-50);
}

.categories-title {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 24px;
    text-align: center;
    color: var(--gray-900);
}

.categories-subtitle {
    font-size: 20px;
    color: var(--gray-600);
    margin-bottom: 80px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.category-tag {
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--gray-900);
    padding: 16px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.category-tag:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

/* Enhanced Feature Cards */
.hype-card {
    position: relative;
    overflow: visible;
}

.feature-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
    text-align: center;
    width: 100%;
}

.feature-icon {
    font-size: 48px;
    position: relative;
    z-index: 2;
    display: inline-block;
    text-align: center;
    line-height: 1;
    transform: translateY(12px);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 100%);
    border-radius: 50%;
    z-index: 1;
    animation: pulse-glow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

.feature-badges {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

/* Enhanced Categories */
.category-tag.trending {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
    color: white;
    font-weight: 700;
    animation: trending-pulse 2s ease-in-out infinite;
}

.category-tag.hot {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-weight: 700;
    animation: hot-glow 1.5s ease-in-out infinite;
}

@keyframes trending-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes hot-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.8); }
}

.live-badge {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    animation: live-pulse 1s ease-in-out infinite;
}

.viewer-count {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 8px;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Unified Social Proof & Creator Carousel */
.unified-social-proof {
    text-align: center;
    padding: 120px 0;
    background: var(--white);
}

.unified-title {
    font-family: var(--sf-pro-rounded);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 48px;
    color: var(--gray-900);
}

/* Inline Countries */
.launch-countries-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.countries-text {
    font-family: var(--sf-pro-rounded);
    font-size: 20px;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.country-flags-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flag-emoji {
    font-size: 32px;
    animation: flag-wave 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.1s);
    transition: all 0.3s ease;
}

.flag-emoji:nth-child(1) { animation-delay: 0s; }
.flag-emoji:nth-child(2) { animation-delay: 0.1s; }
.flag-emoji:nth-child(3) { animation-delay: 0.2s; }
.flag-emoji:nth-child(4) { animation-delay: 0.3s; }
.flag-emoji:nth-child(5) { animation-delay: 0.4s; }
.flag-emoji:nth-child(6) { animation-delay: 0.5s; }
.flag-emoji:nth-child(7) { animation-delay: 0.6s; }
.flag-emoji:nth-child(8) { animation-delay: 0.7s; }
.flag-emoji:nth-child(9) { animation-delay: 0.8s; }
.flag-emoji:nth-child(10) { animation-delay: 0.9s; }

.flag-emoji:hover {
    transform: scale(1.2);
}

@keyframes flag-wave {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.05); }
    50% { transform: rotate(0deg) scale(1); }
    75% { transform: rotate(-5deg) scale(1.05); }
}

/* Creator Carousel */
.creator-carousel {
    margin-top: 64px;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0 40px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.creator-card {
    flex: 0 0 280px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.creator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.creator-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.creator-card:hover::before {
    opacity: 1;
}

.creator-avatar {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.avatar-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.creator-card:hover .avatar-image {
    transform: scale(1.05);
    border-color: rgba(139, 92, 246, 0.4);
}

/* Keep placeholder styles as fallback */
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sf-pro-rounded);
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.superfan-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    animation: badge-pulse 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.creator-info {
    position: relative;
    z-index: 2;
}

.creator-handle {
    font-family: var(--sf-pro-rounded);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0 0 8px 0;
}

.creator-streams {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin: 0 0 16px 0;
}

.creator-quote {
    font-family: var(--sf-pro-rounded);
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    line-height: 1.5;
    margin: 0;
    font-style: italic;
}

/* Minimal Footer */
.footer {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.copyright {
    font-family: var(--sf-pro-rounded);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    opacity: 0.9;
}

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

.footer-link {
    font-family: var(--sf-pro-rounded);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    opacity: 0.7;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
    transform: translateY(-1px);
}

/* Responsive Design */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 32px;
    }
    
    .hero {
        padding: 200px 0 200px;
    }
    
    .hero-content {
        gap: 100px;
    }
    
    .iphone-mockup {
        width: 350px;
        height: 700px;
    }
    
    .features, .categories {
        padding: 140px 0;
    }

    .unified-social-proof {
        padding: 120px 0;
    }
    
    .features-grid {
        gap: 60px;
    }
    
    .feature-card {
        padding: 56px 48px;
    }
    
    .stats {
        gap: 80px;
        max-width: 1000px;
    }
    
    .stat {
        padding: 48px 32px;
        min-width: 240px;
        max-width: 320px;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 24px;
    }
    
    .hero-content {
        gap: 80px;
    }
    
    .iphone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .stats {
        gap: 50px;
    }
    
    .features-grid {
        gap: 40px;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 140px 0 140px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-left {
        text-align: left;
    }

    .iphone-mockup {
        width: 260px;
        height: 520px;
    }

    .features {
        padding: 100px 0;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 36px;
    }

    .feature-card {
        padding: 40px 32px;
        text-align: center;
    }

    .feature-icon-wrapper {
        text-align: center;
    }

    .feature-title {
        text-align: center;
    }

    .feature-description {
        text-align: center;
    }

    .feature-badges {
        justify-content: center;
    }

    .categories {
        padding: 100px 0;
    }

    .category-tags {
        gap: 14px;
        justify-content: center;
    }

    .category-tag {
        padding: 14px 22px;
        font-size: 15px;
    }

    .unified-social-proof {
        padding: 80px 0;
    }

    .stats {
        gap: 24px;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .stat {
        flex: 1;
        min-width: 160px;
        max-width: 200px;
    }

    .creator-carousel {
        margin-top: 60px;
    }

    .carousel-container {
        gap: 20px;
        padding: 24px 0 40px;
    }

    .creator-card {
        flex: 0 0 260px;
    }
}

/* Mobile Large (481px to 767px) */
@media (max-width: 767px) and (min-width: 481px) {
    .container {
        padding: 0 18px;
    }

    .header-content {
        padding: 0 18px;
        justify-content: space-between;
    }

    .header-cta {
        padding: 8px 16px;
        font-size: 13px;
    }

    .logo-icon {
        width: 88px;
        height: 88px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
        min-height: auto;
        padding: 0;
    }

    .hero-left {
        text-align: left;
        width: 100%;
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .hero-title {
        text-align: left;
    }

    .iphone-mockup {
        width: 240px;
        height: 480px;
    }

    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-card {
        padding: 32px 24px;
        text-align: center;
    }

    .feature-icon-wrapper {
        text-align: center;
    }

    .feature-title {
        text-align: center;
    }

    .feature-description {
        text-align: center;
    }

    .feature-badges {
        justify-content: center;
    }

    .categories {
        padding: 80px 0;
    }

    .category-tags {
        gap: 12px;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .category-tags::-webkit-scrollbar {
        display: none;
    }

    .category-tag {
        padding: 12px 20px;
        font-size: 14px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    .live-badge, .viewer-count {
        font-size: 9px;
        padding: 2px 6px;
    }

    .unified-social-proof {
        padding: 80px 0;
    }

    .unified-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 60px;
    }

    .stats {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 280px;
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 48px;
    }

    .launch-countries-inline {
        flex-direction: column;
        gap: 16px;
        margin: 32px 0;
        text-align: center;
    }

    .countries-text {
        font-size: 18px;
    }

    .country-flags-inline {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .flag-emoji {
        font-size: 28px;
    }

    .creator-carousel {
        margin-top: 60px;
    }

    .carousel-container {
        gap: 16px;
        padding: 20px 16px 40px 18px;
        scroll-snap-type: x mandatory;
        padding-left: 18px;
        padding-right: 18px;
    }

    .creator-card {
        flex: 0 0 260px;
        padding: 24px 20px;
        scroll-snap-align: start;
    }

    .creator-handle {
        font-size: 18px;
    }

    .creator-streams {
        font-size: 13px;
    }

    .creator-quote {
        font-size: 15px;
    }

    .avatar-image, .avatar-placeholder {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .superfan-badge {
        width: 28px;
        height: 28px;
        font-size: 14px;
        top: -6px;
        right: -6px;
    }

    .footer {
        padding: 24px 0;
    }

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

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .copyright, .footer-link {
        font-size: 13px;
    }

    .feature-card {
        padding: 32px 24px;
        text-align: center;
    }

    .feature-icon-wrapper {
        text-align: center;
    }

    .feature-icon {
        font-size: 40px;
        margin-bottom: 20px;
        transform: translateY(10px);
    }

    .icon-glow {
        width: 60px;
        height: 60px;
    }

    .feature-title {
        font-size: 24px;
        margin-bottom: 12px;
        text-align: center;
    }

    .feature-description {
        font-size: 15px;
        text-align: center;
    }

    .feature-badges {
        justify-content: center;
    }

    .social-proof-text {
        text-align: left;
    }
}

/* Mobile Standard (375px to 480px) */
@media (max-width: 480px) and (min-width: 375px) {
    .container {
        padding: 0 16px;
    }

    .header-content {
        padding: 0 16px;
        justify-content: space-between;
    }

    .header-cta {
        padding: 6px 14px;
        font-size: 12px;
        border-radius: 16px;
    }

    .logo-icon {
        width: 80px;
        height: 80px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        margin-bottom: 16px;
        text-align: left;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.2rem);
        margin-bottom: 24px;
        line-height: 1.4;
        padding: 0 8px;
    }

    .iphone-mockup {
        width: 200px;
        height: 400px;
        margin: 0 auto;
    }

    .app-preview h3 {
        font-size: 20px;
    }

    .app-preview p {
        font-size: 14px;
    }

    .features {
        padding: 60px 0;
    }

    .features-title {
        margin-bottom: 16px;
    }

    .features-subtitle {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .categories {
        padding: 60px 0;
    }

    .categories-title {
        margin-bottom: 16px;
    }

    .categories-subtitle {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .category-tags {
        gap: 8px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-left: 16px;
        padding-right: 16px;
        margin: 0 -16px;
        padding-bottom: 12px;
    }

    .category-tag {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 24px;
        flex-shrink: 0;
    }

    .feature-card {
        padding: 24px 20px;
        border-radius: 20px;
        text-align: center;
    }

    .feature-icon-wrapper {
        text-align: center;
    }

    .feature-title {
        text-align: center;
    }

    .feature-description {
        text-align: center;
    }

    .feature-badges {
        justify-content: center;
    }

    .feature-icon {
        font-size: 40px;
        margin-bottom: 20px;
        transform: translateY(10px);
    }

    .icon-glow {
        width: 60px;
        height: 60px;
    }

    .feature-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .feature-description {
        font-size: 15px;
    }

    .stats {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 300px;
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

    .unified-social-proof {
        padding: 60px 0;
    }

    .unified-title {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
        margin-bottom: 48px;
    }

    .launch-countries-inline {
        margin: 24px 0;
        gap: 12px;
    }

    .countries-text {
        font-size: 16px;
    }

    .country-flags-inline {
        gap: 6px;
    }

    .flag-emoji {
        font-size: 24px;
    }

    .creator-carousel {
        margin-top: 48px;
    }

    .carousel-container {
        gap: 12px;
        padding: 16px 12px 32px;
        margin: 0 4px;
    }

    .creator-card {
        flex: 0 0 240px;
        padding: 20px 16px;
        border-radius: 20px;
    }

    .creator-handle {
        font-size: 16px;
    }

    .creator-streams {
        font-size: 12px;
    }

    .creator-quote {
        font-size: 14px;
    }

    .avatar-image, .avatar-placeholder {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .superfan-badge {
        width: 24px;
        height: 24px;
        font-size: 12px;
        top: -4px;
        right: -4px;
    }

    .footer {
        padding: 20px 0;
    }

    .footer-content {
        gap: 12px;
    }

    .footer-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .copyright, .footer-link {
        font-size: 12px;
    }

    .social-proof-text {
        text-align: left;
    }
}

/* Mobile Small (below 375px) */
@media (max-width: 374px) {
    .container {
        padding: 0 12px;
        min-width: 0;
        overflow-x: hidden;
    }

    .header-content {
        padding: 0 12px;
        justify-content: space-between;
    }

    .header-cta {
        padding: 4px 12px;
        font-size: 11px;
        border-radius: 14px;
    }

    .logo-icon {
        width: 72px;
        height: 72px;
    }

    .hero {
        padding: 90px 0 30px;
    }

    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
        margin-bottom: 16px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        margin-bottom: 20px;
        line-height: 1.3;
        padding: 0 4px;
    }

    .iphone-mockup {
        width: 180px;
        height: 360px;
        margin: 0 auto;
    }

    .app-preview h3 {
        font-size: 18px;
    }

    .app-preview p {
        font-size: 13px;
    }

    .preview-emoji {
        font-size: 40px;
    }

    .features, .categories, .unified-social-proof {
        padding: 50px 0;
    }

    .features-title, .categories-title, .unified-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        margin-bottom: 12px;
    }

    .features-subtitle, .categories-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .category-tags {
        gap: 6px;
        padding-left: 12px;
        padding-right: 12px;
        margin: 0 -12px;
    }

    .category-tag {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
    }

    .live-badge, .viewer-count {
        font-size: 8px;
        padding: 1px 4px;
        margin-left: 4px;
    }

    .feature-card {
        padding: 20px 16px;
        border-radius: 16px;
        text-align: center;
    }

    .feature-icon-wrapper {
        text-align: center;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 16px;
        transform: translateY(8px);
    }

    .icon-glow {
        width: 55px;
        height: 55px;
    }

    .feature-title {
        font-size: 20px;
        margin-bottom: 10px;
        text-align: center;
    }

    .feature-description {
        font-size: 14px;
        text-align: center;
    }

    .feature-badges {
        justify-content: center;
    }

    .stats {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .stat {
        width: 100%;
        max-width: 260px;
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    .launch-countries-inline {
        margin: 20px 0;
        gap: 10px;
    }

    .countries-text {
        font-size: 14px;
    }

    .country-flags-inline {
        gap: 4px;
    }

    .flag-emoji {
        font-size: 20px;
    }

    .creator-carousel {
        margin-top: 40px;
    }

    .carousel-container {
        gap: 10px;
        padding: 12px 8px 24px;
        margin: 0 4px;
    }

    .creator-card {
        flex: 0 0 220px;
        padding: 16px 12px;
        border-radius: 16px;
    }

    .creator-handle {
        font-size: 14px;
    }

    .creator-streams {
        font-size: 11px;
    }

    .creator-quote {
        font-size: 13px;
    }

    .avatar-image, .avatar-placeholder {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .superfan-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .footer {
        padding: 16px 0;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-links {
        gap: 12px;
    }

    .copyright, .footer-link {
        font-size: 11px;
    }

    .social-proof-text {
        text-align: left;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 1;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-left {
    opacity: 1;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-right {
    opacity: 1;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.gradient-text {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Critical font loading */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
}