﻿:root {
    color-scheme: dark;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background-color: #030711;
    color: #eef2ff;
}

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

/* Pulse Background Animation */
@keyframes fallPulse {
    0% {
        transform: translateY(-100px);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(79, 209, 197, 0.8), 0 0 40px rgba(79, 209, 197, 0.4);
    }
    50% {
        box-shadow: 0 0 10px rgba(79, 209, 197, 0.4), 0 0 20px rgba(79, 209, 197, 0.2);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.pulse-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pulse-item {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    pointer-events: none;
    animation: fallPulse linear infinite;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(79, 209, 197, 0.35), transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(255, 209, 102, 0.25), transparent 40%),
        #030711;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero {
    padding: 2rem clamp(1rem, 4vw, 4rem) 3rem;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    position: relative;
    z-index: 10;
}

/* Hero Wrapper - Content Left, Logo Right */
.hero-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Floating Logo */
.floating-logo {
    flex-shrink: 0;
    width: clamp(120px, 20vw, 200px);
    height: clamp(120px, 20vw, 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    animation: blink 2.5s ease-in-out infinite, pulse-glow 2.5s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(79, 209, 197, 0.8), 0 0 60px rgba(79, 209, 197, 0.4);
    filter: drop-shadow(0 0 20px rgba(79, 209, 197, 0.6));
}

@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .floating-logo {
        width: 150px;
        height: 150px;
    }
    
    .logo-glow {
        border-radius: 20px;
    }
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.logo {
    font-weight: 700;
    letter-spacing: 0.2em;
}

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

.nav-links a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.lang-switch {
    display: flex;
    gap: 0.4rem;
}

.lang-switch .lang {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-weight: 600;
    color: inherit;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease, border 0.2s ease;
}

.lang-switch .lang.active {
    background: rgba(79, 209, 197, 0.25);
    border-color: rgba(79, 209, 197, 0.7);
}

.cta {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.45rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
    cursor: pointer;
    background: transparent;
    color: inherit;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.08);
}

.play-store-btn {
    display: inline-block;
}

.hero-content {
    max-width: 600px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.8rem, 4vw, 4rem);
    margin-bottom: 1rem;
    text-align: left;
}

.hero p {
    line-height: 1.6;
    color: rgba(239, 242, 255, 0.85);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: rgba(79, 209, 197, 0.9);
}

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

button {
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
}

.primary {
    background: linear-gradient(120deg, #4fd1c5, #ffd166);
    color: #030711;
}

.ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #eef2ff;
}

.stats {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

main {
    flex: 1;
    padding: clamp(1.25rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: rgba(4, 7, 17, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card p {
    color: rgba(239, 242, 255, 0.75);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

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

.grid h2 {
    grid-column: 1 / -1;
    margin-bottom: 0.5rem;
}

.grid article {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid article h3 {
    margin-bottom: 0.75rem;
}

.card ul {
    list-style: disc;
    margin-left: 1.25rem;
    color: rgba(239, 242, 255, 0.8);
}

.card ul li {
    margin-bottom: 0.35rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-details strong {
    display: block;
    color: #4fd1c5;
    margin-bottom: 0.25rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    color: rgba(239, 242, 255, 0.6);
    position: relative;
    z-index: 10;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

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

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.1), rgba(255, 209, 102, 0.05));
    border: 2px solid rgba(79, 209, 197, 0.5);
    padding: 2.5rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 0 60px rgba(79, 209, 197, 0.3), 0 0 120px rgba(255, 209, 102, 0.1);
}

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

.modal-content h2 {
    color: #4fd1c5;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.modal-content p {
    color: rgba(239, 242, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(239, 242, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #4fd1c5;
}

#modalClose {
    background: linear-gradient(120deg, #4fd1c5, #ffd166);
    color: #030711;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 0.8rem;
        padding-left: 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

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

.logo-wrap {
    margin-bottom: 1.5rem;
}

.hero-logo {
    width: clamp(80px, 12vw, 140px);
    height: auto;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.3), 0 0 80px rgba(255, 234, 0, 0.15);
}

.howtoplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.howtoplay-block h3 {
    color: #00ffff;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.howtoplay-block ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.howtoplay-block ul li {
    color: rgba(239, 242, 255, 0.8);
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.howtoplay-block ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ffea00;
}

.howtoplay-block ul li strong {
    color: #00ffff;
}
