/* CSS Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 100%);
    --neon-gradient: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #3a86ff 100%);
    
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff006e;
    --success-color: #00f2fe;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --surface-light: rgba(255, 255, 255, 0.1);
    
    --shadow-glow: 0 20px 60px rgba(102, 126, 234, 0.4);
    --shadow-neon: 0 0 30px rgba(255, 0, 110, 0.5);
    --shadow-depth: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
    
    --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--dark-gradient);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(131, 56, 236, 0.2) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundPulse 15s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.container {
    width: min(90%, 1400px);
    margin: 0 auto;
    padding: 0 24px;
}

/* Launch Banner */
.launch-banner {
    background: var(--neon-gradient);
    color: var(--text-primary);
    text-align: center;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    z-index: 1001;
}

.launch-content {
    position: relative;
    z-index: 2;
}

.launch-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: neonPulse 2s infinite alternate;
}

.launch-subtitle {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
    opacity: 0.9;
}

@keyframes neonPulse {
    from { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
    to { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor; }
}

.launch-icon {
    display: inline-block;
    margin: 0 12px;
    animation: rocket 2s infinite;
}

@keyframes rocket {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-8px) rotate(-5deg); }
    75% { transform: translateY(-4px) rotate(5deg); }
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: var(--transition-smooth);
    margin-top: 80px;
}

header.scrolled {
    margin-top: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    box-shadow: var(--shadow-depth);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
}

.nav-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-fast);
    z-index: -1;
}

.nav-links a:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px currentColor;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.hamburger:hover {
    background: var(--surface-light);
}

.hamburger .line {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.hamburger.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    border: none;
    outline: none;
}

.btn:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-fast);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neon-gradient);
    border-radius: var(--border-radius-md);
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
    z-index: -1;
}

.btn-secondary:hover {
    background: var(--surface-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-neon);
}

.btn-download {
    background: var(--success-gradient);
    color: var(--text-primary);
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-depth);
    animation: downloadPulse 3s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.btn-download:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 242, 254, 0.4);
}

/* Hero Section */
.hero-section {
    padding-top: 220px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    display: block;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.8);
    margin: 20px 0;
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.05);
        filter: brightness(1.3);
    }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 32px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out 0.6s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Phone Frame */
.phone-frame {
    position: relative;
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #000 0%, #1a1a2e 100%);
    border-radius: 48px;
    padding: 8px;
    box-shadow: 
        var(--shadow-depth),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 60px rgba(102, 126, 234, 0.3);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow: 
        var(--shadow-depth),
        0 0 100px rgba(102, 126, 234, 0.5);
}

.app-screenshot-container {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #2d1b69 0%, #1a0933 100%);
    border-radius: 40px;
    padding: 20px;
    color: white;
    font-size: 14px;
    overflow-y: auto;
    position: relative;
    backdrop-filter: blur(10px);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 4px;
}

.status-left, .status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contest-time {
    text-align: center;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.time-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 6px;
}

.time-value {
    font-size: 18px;
    font-weight: 700;
    color: #ff4081;
    text-shadow: 0 0 10px currentColor;
    animation: timePulse 2s ease-in-out infinite;
}

@keyframes timePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.quiz-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 0 10px currentColor;
}

.contest-card {
    background: var(--glass-bg);
    border-radius: var(--border-radius-md);
    padding: 20px;
    margin-bottom: 28px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.contest-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.contest-number {
    font-size: 15px;
    font-weight: 600;
}

.prize-amount {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    margin-bottom: 12px;
    text-shadow: 0 0 20px currentColor;
}

.question {
    font-size: 15px;
    margin-bottom: 20px;
    opacity: 0.95;
    line-height: 1.4;
}

.opinion-input {
    width: 100%;
    padding: 16px;
    background: var(--glass-bg);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 14px;
    margin-bottom: 20px;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.opinion-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    outline: none;
}

.opinion-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.join-btn {
    width: 100%;
    padding: 16px;
    background: var(--success-gradient);
    border: none;
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.prize-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-sm);
}

.first-prize {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.win-chance {
    font-size: 13px;
    color: #4CAF50;
    font-weight: 600;
    text-shadow: 0 0 10px currentColor;
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.feature-card:hover::before {
    opacity: 0.1;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-card i {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    position: relative;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-glow);
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Download Section */
.download-section {
    text-align: center;
    position: relative;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.app-info {
    margin-top: 40px;
    display: inline-block;
    text-align: left;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.app-info:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.app-info p {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.app-info strong {
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
footer {
    background: var(--dark-gradient);
    padding: 80px 0 40px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-gradient);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 900;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-gradient);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .launch-banner {
        padding: 15px 0;
    }

    .hero-section {
        padding-top: 200px;
    }

    header {
        margin-top: 60px;
    }

    .hero-section .container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-image {
        order: 2;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
        transform: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(30px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .launch-banner {
        padding: 12px 0;
    }

    .hero-section {
        padding-top: 170px;
    }

    header {
        margin-top: 50px;
    }

    .launch-title {
        font-size: clamp(0.8rem, 4vw, 1rem);
        letter-spacing: 1px;
        margin-bottom: 2px;
    }

    .launch-subtitle {
        font-size: clamp(0.7rem, 3.5vw, 0.85rem);
    }

    .launch-icon {
        margin: 0 8px;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple animation for buttons */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===== POPUP / MODAL STYLES ===== */

/* Ensure popup is fixed, above all content */
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: none !important;
    z-index: 99999 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0,0,0,0.65) !important;
    backdrop-filter: blur(6px) !important;
    padding: 24px !important;
    transition: opacity 240ms ease, visibility 240ms ease !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.popup-overlay.visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Popup content box (centered) */
.popup-content {
    width: min(920px, 96%) !important;
    max-width: 900px !important;
    background: linear-gradient(180deg, rgba(20,20,28,0.95), rgba(12,12,16,0.9)) !important;
    border-radius: 28px !important;
    padding: 28px 34px !important;
    box-shadow: 0 30px 90px rgba(0,0,0,0.65), 0 0 40px rgba(255,0,110,0.06) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    position: relative !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    transform: translateY(0) !important;
    will-change: transform, opacity !important;
}

/* Neon outline */
.popup-content::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 32px;
    background: linear-gradient(90deg, rgba(255,0,110,0.12), rgba(131,56,236,0.08), rgba(58,134,255,0.06));
    z-index: -1;
    filter: blur(14px);
    opacity: 0.95;
}

.popup-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    margin-bottom: 6px;
    background: linear-gradient(90deg,#b52bd6,#7c5afc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    display: inline-block;
}

.popup-body p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 18px 0 26px;
    line-height: 1.6;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.popup-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.popup-actions .btn {
    padding: 12px 28px;
    border-radius: 22px;
    font-weight: 700;
    font-size: 1rem;
}

.popup-actions .btn.btn-primary {
    background: linear-gradient(90deg,#7c5afc,#a36bff);
    color: white;
    box-shadow: 0 10px 30px rgba(124,90,252,0.18);
}

/* Entrance animation */
@keyframes popupIn {
  0% { transform: translateY(10px) scale(0.98); opacity: 0; }
  60% { transform: translateY(-6px) scale(1.02); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.popup-overlay.visible .popup-content {
  animation: popupIn 360ms cubic-bezier(.2,.9,.2,1);
}

/* Responsive adjustments */
@media (max-width: 680px) {
    .popup-content {
        padding: 18px 18px !important;
        border-radius: 18px !important;
    }
    .popup-header h2 {
        font-size: 1.15rem;
    }
    .popup-body p {
        font-size: 0.98rem;
    }
    .popup-actions .btn {
        width: 100%;
        max-width: 340px;
    }
}