/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #fafbfc;
    --bg-alt: #fff;
    --text: #1a202c;
    --text-muted: #4a5568;
    --border: #e8eaed;
    --accent: #1e4d6b;
    --accent-soft: #e8f2f7;
    --slate: #4a5568;
    --slate-soft: #edf2f7;
    --warm: #d4c4a8;
    --warm-soft: #f5f0e8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 251, 252, 0.98);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 240, 232, 0.4) 0%, transparent 40%),
                linear-gradient(180deg, transparent 60%, rgba(232, 242, 247, 0.3) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    color: var(--text);
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 1px 3px rgba(30, 77, 107, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 2px 8px rgba(30, 77, 107, 0.3);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-intro {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.6;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* Games */
.games-section {
    background: var(--bg-alt);
}

.games-grid {
    display: grid;
    gap: 48px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-image {
    aspect-ratio: 16/10;
    border-radius: 6px;
    overflow: hidden;
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 { background: linear-gradient(135deg, #e8f2f7 0%, #d4e4ed 50%, #b8d4e3 100%); }
.game-2 { background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d4 50%, #d4c8b8 100%); }
.game-3 { background: linear-gradient(135deg, #edf2f7 0%, #e0e8ed 50%, #c8d4dc 100%); }

.game-card {
    border-radius: 6px;
    padding: 24px;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(45, 55, 72, 0.06);
}

.game-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.game-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.game-link:hover {
    color: var(--text);
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-lead {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.stats-row {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 12px 20px;
    background: var(--accent-soft);
    border-radius: 8px;
}

.stat-number {
    font-weight: 700;
    color: var(--accent);
}

/* Careers */
.careers-intro {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.positions-list {
    display: flex;
    flex-direction: column;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 24px;
    margin-bottom: 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.position-item:hover {
    background: var(--slate-soft);
    border-color: rgba(74, 85, 104, 0.2);
}

.position-item h4 {
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
}

.position-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.position-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.position-link:hover {
    color: var(--text);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-block-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.contact-address {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-intro {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-logo {
    font-weight: 600;
}

.footer-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
}

.newsletter-form input {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    font-family: inherit;
    font-size: 0.9rem;
    width: 200px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.newsletter-form .btn {
    padding: 10px 16px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 61px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(250, 251, 252, 0.98);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(4px, 4px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .game-card {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-image {
        order: 0;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .stats-row {
        flex-direction: column;
        gap: 16px;
    }
}
