
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #050814;
    --bg2: #0b1126;
    --glass: rgba(255,255,255,0.075);
    --glass2: rgba(255,255,255,0.12);
    --line: rgba(255,255,255,0.14);
    --text: #eef4ff;
    --muted: #aebbd6;
    --cyan: #62dcff;
    --purple: #9b78ff;
    --pink: #ff78c8;
    --gold: #ffd56f;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    width: 100%;
    display: block;
}

.container {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cursor-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98,220,255,0.12), transparent 65%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.glass-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055));
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 80px rgba(0,0,0,0.30);
}

.floating-deco {
    position: fixed;
    width: 74px;
    height: 74px;
    z-index: 1;
    opacity: .42;
    filter: drop-shadow(0 18px 30px rgba(98,220,255,.16));
    animation: floatDeco 8s ease-in-out infinite;
    pointer-events: none;
}

.deco-a {
    top: 22%;
    left: 3%;
}

.deco-b {
    top: 58%;
    right: 4%;
    animation-delay: 1.5s;
}

.deco-c {
    bottom: 10%;
    left: 8%;
    animation-delay: 3s;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 8, 20, 0.72);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 24px;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #06101f;
    box-shadow: 0 18px 42px rgba(98,220,255,.26);
}

.brand-text strong {
    display: block;
    max-width: 360px;
    font-size: 13px;
    line-height: 1.2;
}

.brand-text small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 12px;
    color: #e4edff;
    font-size: 14px;
    transition: .25s ease;
}

.main-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
}

.header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    color: #08101f;
    background: #fff;
    box-shadow: 0 14px 38px rgba(255,255,255,.12);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    border-radius: 999px;
    margin: 5px auto;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5,8,20,.96) 0%, rgba(5,8,20,.68) 54%, rgba(5,8,20,.38) 100%),
        url("../../images/bg-hero.jpg") center/cover no-repeat;
    z-index: 0;
}

.hero-layout {
    min-height: calc(100vh - 82px);
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 46px;
    padding: 54px 0 130px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.eyebrow:before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan);
}

.hero-copy h1 {
    margin-top: 20px;
    font-size: clamp(50px, 7vw, 104px);
    line-height: .92;
    letter-spacing: -.07em;
    max-width: 760px;
}

.hero-copy h1 span {
    color: #7fb0ff;
}

.hero-copy p {
    margin-top: 24px;
    max-width: 680px;
    color: #d7e4fa;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 15px;
    font-weight: 900;
    transition: .25s ease;
}

.btn-primary {
    color: #08101f;
    background: #fff;
    box-shadow: 0 18px 42px rgba(255,255,255,.14);
}

.btn-primary:hover,
.btn-ghost:hover,
.play-btn:hover,
.header-btn:hover {
    transform: translateY(-3px);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.065);
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.metric {
    min-width: 148px;
    padding: 16px 18px;
    border-radius: 22px;
}

.metric strong {
    display: block;
    font-size: 24px;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.hero-visual {
    position: relative;
    min-height: 650px;
}

.visual-card {
    position: absolute;
    top: 60px;
    right: 0;
    width: min(620px, 100%);
    border-radius: 30px;
    overflow: hidden;
}

.floating-panel {
    position: absolute;
    border-radius: 24px;
    padding: 22px;
    animation: floatPanel 6s ease-in-out infinite;
}

.panel-one {
    top: 28px;
    left: 4px;
    width: 270px;
}

.panel-one span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.panel-one strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.2;
}

.panel-two {
    right: 20px;
    bottom: 20px;
    width: 330px;
    animation-delay: 1.4s;
}

.panel-two h3 {
    font-size: 24px;
}

.panel-two p {
    margin-top: 8px;
    color: var(--muted);
}

.wave-layer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    z-index: 1;
    opacity: .95;
}

/* Studio */
.studio-section {
    padding: 110px 0;
    background: linear-gradient(180deg, #060a16, #0a1021);
}

.section-head {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head h2 {
    margin-top: 14px;
    font-size: clamp(36px, 4.5vw, 66px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.section-head p {
    margin-top: 16px;
    color: var(--muted);
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.studio-card {
    position: relative;
    min-height: 280px;
    padding: 30px;
    border-radius: 30px;
    overflow: hidden;
}

.studio-card:before {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(98,220,255,.22), transparent 70%);
}

.studio-index {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #09111e;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
}

.studio-card h3 {
    margin-top: 26px;
    font-size: 26px;
    line-height: 1.1;
}

.studio-card p {
    margin-top: 14px;
    color: var(--muted);
}

/* Games - keeps user's provided structure */
#games {
    position: relative;
    padding: 112px 0;
    overflow: hidden;
}

.games-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(5,8,20,.72), rgba(5,8,20,.90)),
        url("../../images/bg-games.jpg") center/cover no-repeat;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.game-card {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    transition: .35s ease;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(98,220,255,.38);
}

.game-card:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,.06), transparent);
    opacity: 0;
    transition: .35s ease;
}

.game-card:hover:after {
    opacity: 1;
}

.game-img {
    aspect-ratio: 1.15 / 1;
    overflow: hidden;
}

.game-img img {
    height: 100%;
    object-fit: cover;
    transition: .45s ease;
}

.game-card:hover .game-img img {
    transform: scale(1.08);
}

.game-content {
    padding: 22px;
}

.game-content h3 {
    font-size: 22px;
    line-height: 1.12;
}

.game-content p {
    min-height: 154px;
    margin: 14px 0 20px;
    color: var(--muted);
    font-size: 14px;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    color: #07111f;
    font-size: 14px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, #dbe8ff);
    box-shadow: 0 14px 34px rgba(255,255,255,.12);
    transition: .25s ease;
}

/* Qualification */
.qualification-section {
    padding: 112px 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(155,120,255,.16), transparent 27%),
        radial-gradient(circle at 84% 22%, rgba(98,220,255,.12), transparent 30%),
        linear-gradient(180deg, #0a1021, #070b17);
}

.qualification-layout {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 38px;
    align-items: center;
}

.qualification-copy h2 {
    margin-top: 14px;
    font-size: clamp(36px, 4.5vw, 64px);
    line-height: 1.03;
    letter-spacing: -.05em;
}

.qualification-copy p {
    margin-top: 16px;
    color: var(--muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.pill-row span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: #e1eaff;
    font-size: 13px;
}

.qualification-card {
    padding: 24px;
    border-radius: 30px;
}

.info-row {
    padding: 18px;
    border-radius: 20px;
    background: rgba(5,8,20,.42);
    border: 1px solid rgba(255,255,255,.08);
}

.info-row + .info-row {
    margin-top: 12px;
}

.info-row span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.info-row strong {
    display: block;
    word-break: break-word;
    line-height: 1.35;
}

.info-row a {
    color: var(--cyan);
}

/* Legal */
.legal-section {
    padding: 0 0 112px;
    background: linear-gradient(180deg, #070b17, #050814);
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.legal-card {
    min-height: 240px;
    padding: 34px;
    border-radius: 30px;
    transition: .3s ease;
}

.legal-card:hover {
    transform: translateY(-8px);
    border-color: rgba(98,220,255,.34);
}

.legal-card span {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.legal-card h3 {
    margin-top: 14px;
    font-size: 34px;
}

.legal-card p {
    margin-top: 12px;
    color: var(--muted);
}

/* Footer */
.site-footer {
    padding: 42px 0 26px;
    background: #040713;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.footer-layout p {
    margin-top: 8px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #dfe8ff;
    padding: 8px 10px;
}

.copyright {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #7f8ea9;
    font-size: 13px;
}

/* Doc pages */
.doc-body {
    background: #f4f7fb;
    color: #172033;
}

.doc-header {
    background: rgba(255,255,255,.88);
    border-bottom: 1px solid rgba(17,24,39,.08);
}

.doc-header .brand-text strong,
.doc-header .main-nav a {
    color: #172033;
}

.doc-header .brand-text small {
    color: #64748b;
}

.doc-header .main-nav {
    background: rgba(15,23,42,.03);
    border-color: rgba(15,23,42,.08);
}

.static-nav {
    justify-self: end;
}

.doc-hero {
    position: relative;
    padding: 84px 0 52px;
    overflow: hidden;
}

.doc-hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255,255,255,.78), rgba(255,255,255,.94)),
        url("../../images/bg-doc.jpg") center/cover no-repeat;
}

.doc-hero h1 {
    margin-top: 14px;
    color: #101828;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1;
    letter-spacing: -.05em;
}

.doc-hero p {
    margin-top: 12px;
    color: #64748b;
}

.doc-content {
    padding: 48px 0 90px;
}

.doc-card {
    max-width: 960px;
    padding: 42px;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15,23,42,.08);
    border: 1px solid rgba(15,23,42,.08);
}

.doc-card p {
    margin-bottom: 12px;
    color: #334155;
    font-size: 15px;
}

.doc-card h2 {
    margin-top: 34px;
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 24px;
}

.doc-card a {
    color: #2563eb;
    font-weight: 700;
}

/* Animation */
.reveal {
    opacity: 0;
    transform: translateY(46px);
    filter: blur(6px);
    transition: opacity .9s ease, transform .9s ease, filter .9s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.delay-1 {
    transition-delay: .12s;
}

.delay-2 {
    transition-delay: .24s;
}

@keyframes floatPanel {
    0% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
    100% { transform: translateY(0); }
}

@keyframes floatDeco {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@media (max-width: 1120px) {
    .nav-wrap {
        grid-template-columns: auto 1fr auto;
    }

    .header-btn {
        display: none;
    }

    .hero-layout,
    .qualification-layout {
        grid-template-columns: 1fr;
    }

    .hero-layout {
        min-height: auto;
    }

    .hero-visual {
        min-height: 640px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .studio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(100% - 28px, 1220px);
    }

    .menu-toggle {
        display: block;
    }

    .nav-wrap {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .main-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(5,8,20,.97);
        border-radius: 20px;
        padding: 12px;
        box-shadow: 0 24px 70px rgba(0,0,0,.35);
    }

    .main-nav.open {
        display: flex;
    }

    .doc-header .main-nav {
        background: #fff;
    }

    .static-nav {
        position: static;
        display: flex;
        flex-direction: row;
        background: transparent;
        box-shadow: none;
    }

    .hero-copy h1 {
        font-size: 52px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 560px;
    }

    .visual-card {
        width: 100%;
        right: auto;
    }

    .panel-one {
        left: 0;
        top: 440px;
    }

    .panel-two {
        right: 0;
        bottom: 0;
        width: 280px;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .brand-text strong {
        max-width: 220px;
        font-size: 11px;
    }

    .hero-layout {
        padding-bottom: 90px;
    }

    .hero-visual {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .visual-card,
    .floating-panel {
        position: relative;
        inset: auto;
        width: 100%;
    }

    .hero-metrics,
    .games-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .game-content p {
        min-height: auto;
    }

    .doc-card {
        padding: 26px 20px;
    }
}
