/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF7B3A;
    --secondary-orange: #FF9F6B;
    --primary-blue: #1B4F9C;
    --secondary-blue: #2563EB;
    --dark-blue: #0F2654;
    --light-blue: #E0F2FE;
    --very-light-blue: #F0F9FF;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --medium-gray: #64748B;
    --dark-gray: #334155;
    --text-dark: #1E293B;
    --gold: #FFD700;
    --shadow-light: 0 4px 15px rgba(255, 123, 58, 0.15);
    --shadow-medium: 0 8px 25px rgba(255, 123, 58, 0.25);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--light-blue) 50%, var(--white) 100%);
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 38, 84, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 123, 58, 0.2);
    box-shadow: var(--shadow-light);
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.cta-button {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.cta-button::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: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 123, 58, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--gold), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 123, 58, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 123, 58, 0.3);
    border-color: rgba(255, 123, 58, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, var(--gold), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem 2.5rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 123, 58, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 58, 0.1), transparent);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 123, 58, 0.25);
    border-color: rgba(255, 123, 58, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-orange);
    display: block;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-orange);
    font-weight: 700;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ELO Section */
.elo-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
}

.elo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.elo-text h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--primary-blue), var(--primary-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.elo-text p {
    color: var(--medium-gray);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.elo-ranks {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    border-left: 5px solid;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.rank-item:hover {
    transform: translateX(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.rank-diamond { border-left-color: var(--primary-orange); }
.rank-gold { border-left-color: #fbbf24; }
.rank-silver { border-left-color: #9ca3af; }
.rank-bronze { border-left-color: #d97706; }

.rank-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    width: 50px;
    display: flex;
    justify-content: center;
}

.rank-diamond .rank-icon { color: var(--primary-orange); }
.rank-gold .rank-icon { color: #fbbf24; }
.rank-silver .rank-icon { color: #9ca3af; }
.rank-bronze .rank-icon { color: #d97706; }

.rank-item h4 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.rank-item p {
    color: var(--medium-gray);
    font-size: 1rem;
    margin: 0;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::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"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    z-index: 2;
}

.cta-section p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-white {
    background: var(--white);
    color: var(--primary-orange);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: var(--light-gray);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    padding: 60px 0 30px;
    color: var(--white);
}

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

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p, .footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.8rem;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.6;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 123, 58, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-orange), var(--secondary-orange));
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 123, 58, 0.4);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #FFFFFF, #E0F2FE);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    max-width: 450px;
    border: 1px solid rgba(255, 123, 58, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
    position: relative;
}

.modal-close-x {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #FF7B3A, #FF9F6B);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    border: none;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FF7B3A;
}

.modal-title {
    color: #FF7B3A;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-text {
    color: #64748B;
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.email-input-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.email-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FF7B3A;
}

.email-input {
    width: 100%;
    padding: 1rem 1rem 1rem 45px;
    border: 2px solid rgba(255, 123, 58, 0.3);
    border-radius: 15px;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #FF7B3A;
    box-shadow: 0 0 0 3px rgba(255, 123, 58, 0.1);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-close-btn {
    padding: 1rem 2rem;
    border: 2px solid #FF7B3A;
    background: transparent;
    color: #FF7B3A;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-close-btn:hover {
    background: #FF7B3A;
    color: white;
    transform: translateY(-2px);
}

.modal-submit-btn {
    padding: 1rem 2rem;
    border: none;
    background: linear-gradient(45deg, #FF7B3A, #FF9F6B);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 123, 58, 0.3);
}

.modal-close-x:hover {
    transform: scale(1.1) rotate(90deg);
}

.error-message {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 15px;
    z-index: 10001;
    animation: toastSlideIn 0.3s ease-out;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
}

@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

@keyframes confettiFall {
    0% { 
        transform: translateY(0) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(100vh) rotate(720deg); 
        opacity: 0; 
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 38, 84, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-heavy);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .logo-image {
        height: 32px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

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

    .elo-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .elo-text h2 {
        font-size: 2.2rem;
    }

    .cta-section h2 {
        font-size: 2.2rem;
    }

    .modal-content {
        margin: 1rem;
        padding: 2rem;
    }

    .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-image {
        height: 28px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    .rank-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .rank-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .features-grid .feature-card {
        min-width: unset;
    }
}