/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0f0c1a;
    --bg-alt: #16122a;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --text: #f4f1ff;
    --text-muted: #a89bc8;
    --border: rgba(232, 121, 249, 0.18);
    --accent: #e879f9;
    --accent-2: #22d3ee;
    --accent-soft: rgba(232, 121, 249, 0.12);
    --glow: 0 0 40px rgba(232, 121, 249, 0.15);
    --radius: 14px;
    --radius-sm: 10px;
    --font-sans: "Outfit", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 100% -20%, rgba(232, 121, 249, 0.18), transparent 50%),
        radial-gradient(ellipse 80% 60% at -10% 60%, rgba(34, 211, 238, 0.12), transparent 45%),
        radial-gradient(ellipse 50% 40% at 80% 100%, rgba(99, 102, 241, 0.1), transparent 40%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.65;
    font-size: 16px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 28px;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 12, 26, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    padding: 18px 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.15rem;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo:hover {
    -webkit-text-fill-color: var(--accent-2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--accent-2);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* Hero */
.hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 88px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 15%;
    right: 5%;
    width: min(420px, 55vw);
    height: min(420px, 55vw);
    background: conic-gradient(from 210deg at 50% 50%, rgba(232, 121, 249, 0.15), rgba(34, 211, 238, 0.1), rgba(99, 102, 241, 0.12), rgba(232, 121, 249, 0.15));
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.5vw, 3.25rem);
    font-weight: 700;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    margin-bottom: 36px;
    font-size: 1.05rem;
    max-width: 36em;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #c026d3 50%, var(--accent-2) 100%);
    background-size: 200% auto;
    color: #0f0c1a;
    box-shadow: var(--glow), 0 8px 24px rgba(232, 121, 249, 0.35);
}

.btn-primary:hover {
    background-position: right center;
    box-shadow: 0 0 48px rgba(34, 211, 238, 0.25), 0 12px 32px rgba(232, 121, 249, 0.4);
}

/* Sections */
section {
    padding: 88px 0;
}

.section-header {
    margin-bottom: 52px;
}

.section-intro {
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 1.02rem;
    max-width: 580px;
    line-height: 1.65;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards / products */
.games-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.games-grid {
    display: grid;
    gap: 40px;
}

.game-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    border-radius: var(--radius);
    padding: 28px;
    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: 0 20px 50px rgba(0, 0, 0, 0.35), var(--glow);
}

.game-image {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.game-placeholder {
    width: 100%;
    height: 100%;
}

.game-1 {
    background: linear-gradient(145deg, #2d1f4e 0%, #1e3a5f 40%, #0f766e 100%);
}

.game-2 {
    background: linear-gradient(145deg, #4c1d95 0%, #831843 50%, #9d174d 100%);
}

.game-3 {
    background: linear-gradient(145deg, #134e4a 0%, #1e3a8a 45%, #6b21a8 100%);
}

.game-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text);
}

.game-description {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin-bottom: 16px;
}

.game-link {
    color: var(--accent-2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.game-link:hover {
    color: var(--accent);
}

/* 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: 18px;
    font-size: 1.02rem;
    line-height: 1.55;
}

.about-description {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.98rem;
}

.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: 14px 22px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.stat-number {
    font-weight: 700;
    color: var(--accent-2);
}

/* 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: 22px 26px;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.position-item:hover {
    border-color: rgba(232, 121, 249, 0.45);
    transform: translateX(4px);
}

.position-item h4 {
    font-size: 1rem;
    font-weight: 600;
    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(--accent-2);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-block-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.contact-address {
    margin-bottom: 22px;
    color: var(--text);
    line-height: 1.65;
}

.contact-info p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--accent-2);
    text-decoration: underline;
}

.contact-note {
    margin-top: 26px;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.form-intro {
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

/* Footer */
.footer {
    padding: 72px 0 28px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 48px;
}

.footer-logo {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-description {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.footer-links {
    list-style: none;
    display: flex;
    gap: 26px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-2);
}

.newsletter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.newsletter-form input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    width: 200px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-2);
}

.newsletter-form .btn {
    padding: 12px 18px;
}

.footer-bottom {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 12, 26, 0.97);
        backdrop-filter: blur(12px);
        padding: 28px;
        gap: 18px;
        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;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
    }

    .stats-row {
        flex-direction: column;
        gap: 16px;
    }
}
