:root {
    --bg-color: #090a0f;
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: #a0aabf;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animations */
#grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    transform: perspective(600px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 15s linear infinite;
}

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

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: float 12s ease-in-out infinite alternate;
}

.orb-1 {
    top: -10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: var(--neon-blue);
}

.orb-2 {
    bottom: -20%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: var(--neon-purple);
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 80px) scale(1.1); }
}

/* Typography & Layout */
.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    background: linear-gradient(90deg, #fff, var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: conic-gradient(from 0deg, transparent 0 90deg, var(--neon-blue) 90deg 180deg, transparent 180deg 270deg, var(--neon-purple) 270deg 360deg);
    border-radius: 50%;
    animation: rotate 4s linear infinite;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--neon-blue);
    transition: width 0.3s ease;
}

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 1rem 3rem;
    position: relative;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
    background: linear-gradient(to right, #ffffff, #b0e0e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 600px;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.btn-primary {
    background: rgba(0, 240, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-primary::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 ease;
    z-index: -1;
}

.btn-primary:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.6), inset 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-3px);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Features Section */
.features-section {
    padding: 8rem 8%;
}

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

.glass-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.4);
}

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

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

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 600;
}

.glass-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

/* How to Play Section */
.how-to-play-section {
    padding: 8rem 8%;
    background: linear-gradient(to bottom, transparent, rgba(138, 43, 226, 0.05), transparent);
    position: relative;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    gap: 1rem;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    position: relative;
    padding: 2.5rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
    transform: scale(1.05);
    border-color: var(--neon-purple);
    z-index: 2;
}

.step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--neon-purple), #4b0082);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.6);
    transition: transform 0.3s;
    border: 2px solid rgba(255,255,255,0.2);
}

.step-card:hover .step-number {
    transform: scale(1.15) rotate(15deg);
}

.step-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.step-line {
    flex: 0.5;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
}

.step-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, transparent, var(--neon-blue), var(--neon-purple), transparent);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--neon-blue);
}

.steps-container:hover .step-line::after {
    width: 100%;
    animation: flowLine 2s infinite linear;
}

@keyframes flowLine {
    0% { transform: translateX(-100%); width: 0; }
    30% { width: 100%; }
    100% { transform: translateX(100%); width: 0; }
}

/* Footer */
.glass-footer {
    background: rgba(9, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 8%;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    transition: color 0.3s;
    font-size: 1.05rem;
}

.footer-links a:hover {
    color: var(--neon-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-line {
        width: 2px;
        height: 50px;
        flex: none;
    }
    
    .step-line::after {
        width: 100%;
        height: 0;
        background: linear-gradient(180deg, transparent, var(--neon-blue), transparent);
    }
    
    .steps-container:hover .step-line::after {
        height: 100%;
        animation: flowLineVertical 2s infinite linear;
    }
    
    @keyframes flowLineVertical {
        0% { transform: translateY(-100%); height: 0; }
        30% { height: 100%; }
        100% { transform: translateY(100%); height: 0; }
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }
}
