/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f6f1e7;
    --surface: #fbf7ef;
    --ink: #2f2a25;
    --muted: #746a5e;
    --line: #d9c8ab;
    --red: #9e1f22;
    --red-deep: #7d171a;
    --gold: #b88a44;
    --gold-soft: rgba(184, 138, 68, 0.18);
    --radius: 8px;
    --font-serif: "Noto Serif SC", serif;
    --font-sans: "Inter", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(circle at 1px 1px, rgba(184, 138, 68, 0.08) 1px, transparent 0),
        linear-gradient(180deg, #f8f3ea 0%, #f3ecdf 100%);
    background-size: 22px 22px, auto;
    line-height: 1.7;
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 243, 234, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 0.02em;
}

.logo::before,
.logo::after {
    content: "·";
    color: var(--gold);
    margin: 0 8px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--red);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: var(--red);
}

/* Hero */
.hero {
    min-height: 88vh;
    padding-top: 92px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 120px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.hero-content {
    max-width: 720px;
    padding: 36px 30px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(251, 247, 239, 0.82));
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(122, 90, 50, 0.08);
}

.hero-eyebrow {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mono-tag {
    font-size: 0.72rem;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    background: rgba(184, 138, 68, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.25;
    color: var(--red-deep);
    margin-bottom: 16px;
}

.hero-subtitle {
    color: var(--muted);
    margin-bottom: 28px;
    font-size: 1rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-primary {
    padding: 12px 22px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-deep) 100%);
    color: #fff4e5;
    border: 1px solid rgba(184, 138, 68, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(125, 23, 26, 0.25);
}

/* Sections */
section {
    padding: 84px 0;
}

.section-header {
    margin-bottom: 38px;
}

.section-title {
    font-family: var(--font-serif);
    color: var(--red);
    font-size: 1.45rem;
    margin-bottom: 10px;
    position: relative;
    padding-left: 16px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 1.1em;
    background: linear-gradient(var(--gold), var(--red));
    border-radius: 4px;
}

.section-intro {
    color: var(--muted);
    max-width: 760px;
}

/* Service cards */
.games-section {
    background: rgba(255, 251, 243, 0.6);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.games-grid {
    display: grid;
    gap: 20px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-image {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(184, 138, 68, 0.3);
    aspect-ratio: 16 / 10;
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background: linear-gradient(135deg, #ecd7c0 0%, #d8b48a 100%);
}

.game-2 {
    background: linear-gradient(135deg, #eac9c0 0%, #c68d82 100%);
}

.game-3 {
    background: linear-gradient(135deg, #eadfb9 0%, #d3b06a 100%);
}

.game-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--red-deep);
    margin-bottom: 8px;
}

.game-description {
    color: var(--muted);
}

/* About */
.about-content {
    max-width: 860px;
}

.about-lead {
    color: var(--ink);
    margin-bottom: 14px;
}

.about-description {
    color: var(--muted);
}

/* Careers */
.careers-intro {
    color: var(--muted);
    margin-bottom: 18px;
}

.positions-list {
    display: flex;
    flex-direction: column;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
}

.position-item:last-child {
    border-bottom: 1px solid var(--line);
}

.position-item h4 {
    flex: 1;
    font-family: var(--font-serif);
    color: var(--red-deep);
}

.position-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.position-link {
    color: var(--red);
    text-decoration: none;
}

.position-link:hover {
    text-decoration: underline;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.contact-info {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.contact-block-title {
    color: var(--red);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.contact-address,
.contact-info p {
    color: var(--muted);
    margin-bottom: 10px;
}

.contact-link {
    color: var(--red);
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-note {
    margin-top: 16px;
}

.contact-form {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-intro {
    color: var(--muted);
    font-size: 0.92rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #fffdfa;
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 138, 68, 0.18);
}

/* Footer */
.footer {
    padding: 52px 0 24px;
    border-top: 1px solid var(--line);
    background: rgba(251, 247, 239, 0.9);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.footer-logo {
    font-family: var(--font-serif);
    color: var(--red);
    font-size: 1.05rem;
}

.footer-description {
    color: var(--muted);
    margin-top: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--red);
}

.newsletter-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #fffdfa;
}

.footer-bottom {
    color: var(--muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #f8f2e8;
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 12px;
        padding: 18px 24px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .game-card,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-image {
        order: 0;
    }

    .footer-content {
        flex-direction: column;
    }
}
