/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070b12;
    --bg-elevated: #0d1320;
    --surface: rgba(148, 163, 184, 0.06);
    --surface-hover: rgba(148, 163, 184, 0.1);
    --border: rgba(56, 189, 248, 0.15);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-dim: rgba(34, 211, 238, 0.15);
    --violet: #a78bfa;
    --font-sans: "Sora", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
    --radius: 10px;
    --radius-lg: 16px;
    --glow: 0 0 60px rgba(34, 211, 238, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% -10%, rgba(167, 139, 250, 0.12), transparent 50%),
        radial-gradient(ellipse 60% 40% at 100% 20%, rgba(34, 211, 238, 0.08), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(7, 11, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.logo::before {
    content: "// ";
    color: var(--cyan);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cyan);
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 640px;
}

.hero-eyebrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--cyan);
    background: var(--cyan-dim);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.1rem, 5.5vw, 3.15rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 40%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1.05rem;
    max-width: 38em;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    color: #042f2e;
    box-shadow: var(--glow), 0 8px 24px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.25), 0 12px 32px rgba(6, 182, 212, 0.45);
}

/* Sections */
section {
    padding: 88px 0;
}

.section-header {
    margin-bottom: 48px;
}

.section-intro {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    line-height: 1.65;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--violet);
}

/* Cards */
.games-section {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.games-grid {
    display: grid;
    gap: 24px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.game-card:nth-child(even) .game-image {
    order: 2;
}

.game-card:hover {
    background: var(--surface-hover);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: var(--glow);
}

.game-image {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background: linear-gradient(145deg, #0c4a6e 0%, #164e63 50%, #155e75 100%);
}

.game-2 {
    background: linear-gradient(145deg, #312e81 0%, #1e3a8a 50%, #0e7490 100%);
}

.game-3 {
    background: linear-gradient(145deg, #134e4a 0%, #115e59 45%, #0f766e 100%);
}

.game-title {
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.game-description {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.game-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.game-link:hover {
    text-decoration: underline;
}

/* About */
.about-content {
    max-width: 720px;
}

.about-lead {
    color: var(--text);
    font-weight: 500;
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.55;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.96rem;
}

.stats-row {
    display: flex;
    gap: 40px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.stat-item {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 12px 18px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
}

.stat-number {
    font-weight: 600;
    color: var(--cyan);
}

/* Careers */
.careers-intro {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.positions-list {
    display: flex;
    flex-direction: column;
}

.position-item {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px 24px;
    margin-bottom: 8px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.position-item:hover {
    border-color: rgba(167, 139, 250, 0.4);
}

.position-item h4 {
    font-size: 0.98rem;
    font-weight: 600;
    flex: 1;
}

.position-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.position-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.position-link:hover {
    color: var(--violet);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
}

.contact-block-title {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan);
    margin-bottom: 8px;
}

.contact-address {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 10px;
    color: var(--text-muted);
}

.contact-link {
    color: var(--cyan);
    text-decoration: none;
    font-weight: 500;
    word-break: break-all;
}

.contact-link:hover {
    color: var(--violet);
    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: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--cyan-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 64px 0 28px;
    border-top: 1px solid var(--border);
    background: rgba(7, 11, 18, 0.95);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 44px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.05rem;
}

.footer-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
    font-family: var(--font-mono);
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--cyan);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    width: 220px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--cyan);
}

.newsletter-form .btn-primary {
    padding: 12px 18px;
}

.footer-bottom {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(7, 11, 18, 0.97);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s 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 {
        grid-template-columns: 1fr;
    }

    .game-card:nth-child(even) .game-image {
        order: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .stats-row {
        flex-direction: column;
        gap: 14px;
    }
}
