/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.logo img {
    width: 36px;
    height: 36px;
}

.nav a {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 32px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: #fff;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: #fff;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, 2%) rotate(3deg); }
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

/* Section common */
section {
    padding: 100px 0;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #0f172a;
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-top: -36px;
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* About */
.about {
    background: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image img {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    display: block;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    margin-top: 24px;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: #475569;
    font-size: 1rem;
}

/* Games */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.game-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.game-card img {
    width: 100%;
    max-width: 280px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.game-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.game-card p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Contact */
.contact {
    background: #f8fafc;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    text-align: center;
}

.contact-item img {
    margin-bottom: 16px;
}

.contact-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.contact-item p,
.contact-item a {
    color: #475569;
    font-size: 1rem;
}

.contact-item a {
    color: #6366f1;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: #a855f7;
}

/* Footer */
.footer {
    background: #0f172a;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 32px 24px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav a {
        margin-left: 20px;
        font-size: 0.85rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-image {
        order: -1;
    }

    .games-grid,
    .contact-info {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    section {
        padding: 64px 0;
    }
}
