:root {
    --bg-primary: #121729;
    --bg-secondary: #161a2a;
    --bg-alt: #1c2236;
    --text-primary: #ffffff;
    --text-secondary: #b8c8e0;
    --accent: #ffd140;
    --accent-dark: #e6b800;
    --secondary: #35a9bf;
    --card-bg: #222b45;
    --container-width: 1100px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Avenir Next', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 800;
}

.accent {
    color: var(--accent);
}

/* Header & Nav */
header {
    background-color: rgba(18, 23, 41, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    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-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo img {
    height: 40px;
    animation: hop 2s infinite ease-in-out;
}

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

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

.btn-download {
    background-color: var(--accent);
    color: #301e05;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
}

.btn-download:hover {
    background-color: var(--accent-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent);
    color: #301e05;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(255, 209, 64, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--accent-dark);
}

.hero-image img {
    border-radius: 40px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    transform: rotate(2deg);
    border: 8px solid var(--card-bg);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

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

/* Characters Section */
.characters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 24px;
}

.character-card {
    background-color: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
}

.char-preview {
    width: 60px;
    height: 80px;
    margin: 0 auto 16px;
    border-radius: 10px;
    border: 3px solid;
    position: relative;
}

.char-preview::before,
.char-preview::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    top: 20px;
}

.char-preview::before { left: 12px; }
.char-preview::after { right: 12px; }

/* Character Specific Styles */
.classic { background: #ffd140; border-color: #e68d26; }
.ninja { background: #14171f; border-color: #6b758f; }
.ninja::before, .ninja::after { background: #b8c8e0; }
.robot { background: #859eb8; border-color: #384d66; border-radius: 5px; }
.robot::before, .robot::after { background: #b2e6ff; }
.astronaut { background: #ebf0fa; border-color: #758fb2; }
.astronaut::before, .astronaut::after { background: #b2e6ff; }
.dragon { background: #29b357; border-color: #0d612e; }
.dog { background: #bc783d; border-color: #5c331a; border-radius: 18px; }

.character-card h3 {
    font-size: 1rem;
    font-weight: 700;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-grid img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.footer-logo img {
    height: 32px;
}

/* Animations */
@keyframes hop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img {
        max-width: 300px;
        margin: 0 auto;
    }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}
