/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4efe8;
    --surface: #fffaf3;
    --ink: #3d3a36;
    --muted: #7c746d;
    --line: #d8ccc0;
    --peach: #e8b79a;
    --coral: #d78874;
    --olive: #8f9b7a;
    --shadow: 0 10px 22px rgba(132, 104, 85, 0.14);
    --radius: 14px;
    --font-head: "Zen Maru Gothic", sans-serif;
    --font-body: "M PLUS 1p", system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at 22% 12%, rgba(232, 183, 154, 0.45), transparent 42%),
        radial-gradient(circle at 80% 18%, rgba(143, 155, 122, 0.25), transparent 34%),
        linear-gradient(180deg, #f8f3ec 0%, #f2ece5 100%);
    line-height: 1.75;
}

.container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(252, 247, 240, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: #60584f;
    letter-spacing: 0.03em;
}

.logo::before,
.logo::after {
    content: "●";
    color: var(--coral);
    margin: 0 6px;
    font-size: 0.62rem;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #8e5649;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 20px;
    height: 2px;
    background: #8e5649;
}

/* Hero */
.hero {
    min-height: 86vh;
    padding-top: 92px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 122px 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--coral), transparent);
}

.hero-content {
    max-width: 740px;
    padding: 38px 34px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 18% 25%, rgba(232, 183, 154, 0.28), transparent 35%),
        radial-gradient(circle at 75% 20%, rgba(143, 155, 122, 0.18), transparent 30%),
        linear-gradient(155deg, #fffaf4 0%, #f6eee6 100%);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-eyebrow {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.mono-tag {
    font-size: 0.7rem;
    color: #7d6458;
    border: 1px solid rgba(215, 136, 116, 0.35);
    background: rgba(232, 183, 154, 0.3);
    padding: 4px 9px;
    border-radius: 999px;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4.8vw, 3rem);
    line-height: 1.25;
    color: #5f534a;
    margin-bottom: 16px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.65);
}

.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, #d88974 0%, #c47663 100%);
    color: #fff8f2;
    border: 1px solid rgba(145, 86, 70, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(145, 86, 70, 0.25);
}

/* Sections */
section {
    padding: 84px 0;
}

.section-header {
    margin-bottom: 38px;
}

.section-title {
    font-family: var(--font-head);
    color: #7f5a4d;
    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(--olive), var(--coral));
    border-radius: 4px;
}

.section-intro {
    color: var(--muted);
    max-width: 760px;
}

/* Service cards */
.games-section {
    background: rgba(255, 250, 243, 0.78);
    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);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover {
    transform: translateY(-3px) rotate(-0.2deg);
    box-shadow: 0 12px 24px rgba(129, 97, 77, 0.18);
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-image {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(143, 155, 122, 0.35);
    aspect-ratio: 16 / 10;
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background: linear-gradient(145deg, #f3d2bf 0%, #dca48c 45%, #c5a57d 100%);
}

.game-2 {
    background: linear-gradient(145deg, #f1d7c9 0%, #cf9e8f 50%, #9aa983 100%);
}

.game-3 {
    background: linear-gradient(145deg, #f3e1c7 0%, #d9ba92 45%, #b7a786 100%);
}

.game-title {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: #6d5a4f;
    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-head);
    color: #6d5a4f;
}

.position-meta {
    color: var(--muted);
    font-size: 0.85rem;
}

.position-link {
    color: #b16e5d;
    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: #8b5f53;
    font-family: var(--font-head);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.contact-address,
.contact-info p {
    color: var(--muted);
    margin-bottom: 10px;
}

.contact-link {
    color: #b16e5d;
    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: #d39481;
    box-shadow: 0 0 0 3px rgba(215, 136, 116, 0.2);
}

/* 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-head);
    color: #78584d;
    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: #a66857;
}

.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: #fbf6ef;
        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;
    }
}
