@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
    --primary: #00D9FF; /* Electric Blue */
    --primary-glow: rgba(0, 217, 255, 0.5);
    --secondary: #9D50FF; /* Vibrant Purple */
    --bg-dark: #1A1D2E; /* CodeRush Background */
    --bg-darker: #0F111A; /* Deeper Background */
    --text-primary: #FAFAFA;
    --text-secondary: #D1D5DB;
    --glass: rgba(26, 29, 46, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-gold: #FFD600; /* Warm Yellow */
    --neon-pink: #FF2E93;
    --neon-green: #00FF9D;
    --font-main: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 217, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(157, 80, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 29, 46, 1) 0%, var(--bg-darker) 100%);
    z-index: -1;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Glassmorphism utility */
.glass {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 1.5rem;
}

/* Section styling */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3), 0 4px 15px rgba(157, 80, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 217, 255, 0.4), 0 8px 25px rgba(157, 80, 255, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.logo img {
    height: 40px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hamburger Active State */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.3s ease;
        z-index: 1000;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-btn {
        display: none;
    }

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

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

.hero-text h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.hero-text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.95;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--neon-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-img {
    width: 100%;
    border-radius: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(2deg);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-img:hover {
    transform: rotateY(-5deg) rotateX(2deg) rotateZ(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8);
}

/* Narrative Section */
.narrative-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.narrative-card {
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.narrative-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 217, 255, 0.15);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.narrative-card h3 {
    margin-bottom: 1.25rem;
    color: var(--primary);
    font-size: 1.75rem;
}

/* Features Showcase */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

.game-screen {
    width: 100%;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-screen:hover {
    transform: scale(1.08) translateY(-25px);
    box-shadow: 0 40px 80px rgba(0, 217, 255, 0.3);
    border-color: var(--primary);
}

/* Ranks Section */
.rank-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.rank-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.rank-score {
    width: 70px;
    height: 70px;
    background: var(--glass);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.rank-name {
    font-weight: 700;
    font-size: 1.75rem;
    min-width: 250px;
}

.rank-item.active {
    background: rgba(0, 217, 255, 0.08);
    border-color: var(--primary);
    box-shadow: inset 0 0 30px rgba(0, 217, 255, 0.05);
}

.rank-item.highlight {
    background: linear-gradient(to right, rgba(255, 214, 0, 0.08), transparent);
}

.rank-item.highlight .rank-score {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(255, 214, 0, 0.2);
}

/* Support Section */
.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.support-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info {
    margin-top: 3rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item span {
    font-size: 1.5rem;
}

.support-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.support-form input, .support-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.support-form input:focus, .support-form textarea:focus {
    border-color: var(--primary);
}

.contact-link {
    display: inline-block;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-link .info-item:hover {
    color: var(--primary);
    transform: translateX(10px);
}

.contact-link.whatsapp .info-item:hover {
    color: #25D366;
}

.contact-link.discord .info-item:hover {
    color: #5865F2;
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .hero-content, .support-content, .narrative-grid {
        grid-template-columns: 1fr;
    }
    
    .screens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        height: auto;
        padding: 8rem 0 4rem;
    }
    
    .hero-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text p {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-img {
        transform: none;
    }

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

    .rank-name {
        min-width: auto;
    }

    .support-content {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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