:root {
    --bg-dark: #0F172A;
    --bg-surface: #1E293B;
    --primary: #3B82F6;
    --secondary: #10B981;
    --text-main: #FFFFFF;
    --text-muted: #94A3B8;
    --accent: #22D3EE;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 60px;
    background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.1), transparent 40%);
    display: flex;
    align-items: center;
}

.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 100%;
}

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

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    background: linear-gradient(to right, #22D3EE, #10B981);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-buttons {
    justify-content: flex-start;
}

.hero-game {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 400px;
}

.game-frame {
    width: 100%;
    aspect-ratio: 1/1.2;
    /* slightly tall like phone */
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.game-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-weight: 600;
}

#gameCanvas {
    width: 100%;
    height: calc(100% - 60px);
    /* header height approx */
    display: block;
}

.interaction-hint {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Media Queries */
@media (max-width: 968px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        margin: 0 auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-game {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        gap: 20px;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 140px;
        padding-bottom: 40px;
    }

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

    .hero-text p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 12px;
    }

    .hero-game {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }

    .game-frame {
        box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    }
}

/* Base Styles (Restored) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-surface);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features */
.features {
    padding: 100px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s;
}

.feature-card:hover {
    border-color: var(--primary);
}

.feature-icon {
    height: 48px;
    width: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Content Pages */
.page-content {
    padding: 120px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.page-content h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--secondary);
}

.page-content p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: 20px;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}