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

:root {
    --primary: #2D3E50;
    --primary-dark: #1E2A36;
    --primary-light: #3D5166;
    --accent: #E8A87C;
    --accent-dark: #D4956A;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #F8F6F3;
    --bg-warm: #FDF9F5;
    --border: #e5e7eb;
    --success: #4A9B7F;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero */
.hero {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-subtitle {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
    border: none;
    cursor: pointer;
}

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

.btn-accent {
    background: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn--spaced {
    margin-top: 1rem;
}

.btn--secondary {
    margin-left: 1rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* Products/Games Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(45, 62, 80, 0.12);
    transform: translateY(-3px);
}

.product-image {
    height: 140px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
}

.product-image img {
    max-height: 100px;
    width: auto;
}

.product-content {
    padding: 1.25rem;
}

.product-badge {
    display: inline-block;
    background: var(--bg-alt);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-badge.digital {
    background: #E3F2FD;
    color: #1976D2;
}

.product-badge.physical {
    background: #E8F5E9;
    color: #388E3C;
}

.product-badge.both {
    background: #FFF3E0;
    color: #E65100;
}

.product-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.product-btn {
    width: 100%;
    margin-top: 0.75rem;
    text-align: center;
}

.product-image--dark {
    background: #000;
}

.products-grid--single {
    max-width: 400px;
    margin: 0 auto;
}

.products-grid--medium {
    max-width: 800px;
    margin: 0 auto;
}

/* Compact Game Tiles */
.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.game-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.game-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(45, 62, 80, 0.1);
}

.game-tile__icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.game-tile__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-tile__name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Game List Layout */
.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}

.game-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.game-item__icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 12px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-item__info {
    flex: 1;
}

.game-item__info h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.game-item__info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.game-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.game-item__meta span {
    background: var(--bg-alt);
    color: var(--text-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.game-item__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.game-item__actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Services Grid (used for features) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, transform 0.2s;
}

.service-card:hover {
    box-shadow: 0 10px 40px rgba(45, 62, 80, 0.1);
    transform: translateY(-3px);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 16px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
}

.about-image--dark {
    background: #000;
}

.about-image__logo {
    max-width: 80%;
    height: auto;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.value-card p {
    color: var(--text-light);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member .avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 600;
}

.team-member h3 {
    margin-bottom: 0.25rem;
}

.team-member p {
    color: var(--text-light);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.contact-details strong {
    color: var(--text);
}

.contact-form {
    background: var(--bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: block;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.footer-legal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer-legal a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: white;
}

/* Legal Pages */
.legal-content {
    padding: 3rem 0;
}

.legal-content h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-content ul {
    margin: 0 0 1rem 1.5rem;
    color: var(--text);
    line-height: 1.7;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
}

.legal-content a:hover {
    text-decoration: underline;
}

/* Simple footer alternative */
footer.simple {
    text-align: center;
}

footer.simple p {
    color: rgba(255,255,255,0.7);
}

/* Page Header */
.page-header {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-warm) 0%, #ffffff 100%);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.page-header p {
    color: var(--text-light);
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.cta-section .btn {
    background: var(--accent);
}

.cta-section .btn:hover {
    background: var(--accent-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    nav {
        position: relative;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .btn--secondary {
        margin-left: 0;
        margin-top: 0.75rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        display: flex;
        flex-direction: row;
    }

    .product-image {
        width: 100px;
        min-width: 100px;
        height: auto;
        min-height: 100px;
    }

    .product-image img {
        max-height: 60px;
    }

    .product-content {
        padding: 1rem;
        flex: 1;
    }

    .product-card h3 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-meta {
        padding-top: 0.5rem;
        gap: 0.5rem;
    }

    .product-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .products-grid--single,
    .products-grid--medium {
        max-width: none;
    }

    .game-item {
        flex-direction: column;
        text-align: center;
    }

    .game-item__meta {
        justify-content: center;
    }

    .game-item__actions {
        flex-direction: row;
        width: 100%;
    }

    .game-item__actions .btn {
        flex: 1;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 200px;
        order: -1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header {
        padding: 2.5rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    nav {
        padding: 0.75rem 0;
    }

    .nav-links {
        gap: 0.5rem;
        font-size: 0.8rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo img {
        height: 28px;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

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

    .hero-subtitle {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-image {
        width: 80px;
        min-width: 80px;
    }

    .product-image img {
        max-height: 50px;
    }

    .product-meta span {
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    footer {
        padding: 2rem 0;
    }
}
