/* Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.landing-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0e27;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #667eea;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4em;
    color: #a8b2d1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1em;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #0e1129;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: #667eea;
}

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

.feature-card {
    background: rgba(26, 31, 58, 0.5);
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #667eea;
}

.feature-card p {
    color: #a8b2d1;
    line-height: 1.8;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5em;
    font-weight: bold;
}

.step h3 {
    margin-bottom: 15px;
    color: #fff;
}

.step p {
    color: #a8b2d1;
}

/* Pricing Section */
.pricing {
    padding: 80px 0;
    background: #0e1129;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pricing-card {
    background: rgba(26, 31, 58, 0.5);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
    transition: all 0.3s;
}

.pricing-card.popular {
    border-color: #667eea;
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.pricing-card h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #667eea;
}

.price {
    font-size: 3em;
    font-weight: bold;
    margin: 20px 0;
}

.price-period {
    font-size: 0.3em;
    color: #a8b2d1;
}

.features-list {
    list-style: none;
    margin: 30px 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(168, 178, 209, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.checkmark {
    color: #20bf55;
    font-weight: bold;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    color: #a8b2d1;
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 40px 0 20px;
    background: #0a0e27;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #667eea;
}

.footer-section a {
    display: block;
    color: #a8b2d1;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    color: #a8b2d1;
}

/* How It Works Section */
.how-it-works h2 {
    margin-bottom: 60px;
    color: #667eea;
}

/* Leaderboard Section */
.leaderboard-preview {
    background: var(--card-bg);
    padding: 80px 0;
}

.leaderboard-preview h2 {
    text-align: center;
    margin-bottom: 50px;
}

.leaderboard-table {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 150px 150px;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(168, 178, 209, 0.1);
    font-weight: 600;
    color: var(--text-secondary);
}

.leaderboard-header > div:nth-child(3),
.leaderboard-header > div:nth-child(4) {
    text-align: right;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 150px 150px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(168, 178, 209, 0.1);
    align-items: center;
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    font-size: 1.5em;
}

.leaderboard-rank.rank-4 {
    font-size: 1.2em;
    color: var(--text-secondary);
}

.leaderboard-name {
    font-weight: 600;
}

.leaderboard-accuracy {
    text-align: right;
    color: var(--success-color);
    font-weight: 600;
}

.leaderboard-accuracy.normal {
    font-weight: normal;
}

.leaderboard-streak {
    text-align: right;
}

.leaderboard-disclaimer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
}

.leaderboard-center-actions {
    text-align: center;
    margin-top: 30px;
}

/* CTA Section Additional Styles */
.cta-subtitle {
    margin-top: 20px;
    font-size: 0.9em;
    color: #a8b2d1;
}

/* Footer Additional Styles */
.footer-social {
    margin-top: 10px;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Landing page specific body styles */
body.landing-page {
    background: #0a0e27;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    background: rgba(26, 31, 58, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo svg {
    width: 36px;
    height: 36px;
}

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

.nav-links a {
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: #667eea;
}

.btn {
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Hero Section */
.hero {
    margin-top: 100px;
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.hero p {
    font-size: 1.4em;
    color: #a8b2d1;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: rgba(26, 31, 58, 0.3);
}

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 60px;
    color: #667eea;
}

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

.feature-card {
    background: rgba(26, 31, 58, 0.8);
    padding: 40px;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.feature-card p {
    color: #a8b2d1;
    line-height: 1.8;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat-card {
    background: rgba(26, 31, 58, 0.5);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.stat-number {
    font-size: 3em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #a8b2d1;
    font-size: 1.1em;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    text-align: center;
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    color: #a8b2d1;
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: #a8b2d1;
    border-top: 1px solid rgba(168, 178, 209, 0.2);
}

footer a {
    color: #667eea;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.2em;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 20px;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .hero p {
        font-size: 1.1em;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid,
    .steps-container,
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.popular {
        transform: none;
    }
}
