/* Modern Dark Theme - Reflex Game Landing Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-green: #00E676;
    --accent-red: #FF1744;
    --accent-purple: #651FFF;
    --gradient-hero: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3 {
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-green);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* --- Header --- */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent-green);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--accent-green);
}

.btn-primary {
    background: var(--accent-green);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 230, 118, 0.2);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
    margin-left: 10px;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero-bg-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 50%;
    transform: translateY(-50%);
    right: -100px;
    z-index: 1;
}

/* --- Features Section --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-green);
}

.icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.icon.speed {
    color: var(--accent-red);
}

.icon.multi {
    color: var(--accent-purple);
}

.icon.stats {
    color: var(--accent-green);
}

/* --- How to Play --- */
.steps-container {
    display: flex;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-num {
    font-size: 5rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
}

.step-visual {
    height: 150px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
}

.visual-red {
    background-color: var(--accent-red);
    box-shadow: 0 0 30px rgba(255, 23, 68, 0.3);
}

.visual-green {
    background-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
}

.visual-tap {
    background-color: #333;
    border: 2px dashed #666;
}

/* --- Footer --- */
footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
}

/* --- Mobile Navigation --- */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    z-index: 1001;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {

    /* Header & Nav */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: rgba(13, 13, 13, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hamburger {
        display: block;
    }

    /* Typography Overrides */
    h1 {
        font-size: 2.8rem;
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem;
    }

    p {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 140px 0 80px 0;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-bg-accent {
        width: 300px;
        height: 300px;
        right: -50px;
        top: 20%;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .cta-group .btn-secondary {
        margin-left: 0;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* How to Play */
    .steps-container {
        flex-direction: column;
        gap: 60px;
    }

    .step-num {
        top: -30px;
        font-size: 4rem;
    }

    /* General Spacing */
    section {
        padding: 60px 0;
    }
}

/* Small Phonose */
@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}