/* --------- Design Tokens --------- */
:root {
    --bg: #f7f8fc;
    --text: #151725;
    --muted: #5a6074;
    --card: #ffffff;
    --border: #e5e7ef;
    --brand: #7c3aed;
    --brand-2: #a78bfa;
    --accent: #22d3ee;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(17, 24, 39, .12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c0f17;
        --text: #e9ecf1;
        --muted: #9aa3b2;
        --card: #121622;
        --border: #242a3b;
        --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    }
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--text);
    background:
        radial-gradient(900px 600px at 120% -10%, rgba(124, 58, 237, .2), transparent 60%),
        radial-gradient(700px 500px at -20% 0%, rgba(34, 211, 238, .15), transparent 50%),
        var(--bg);
    background-repeat: no-repeat;
    line-height: 1.6;
}

/* --------- Generic --------- */
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px
}

h1 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    margin: .2em 0 .3em
}

h2 {
    font-size: clamp(24px, 3.2vw, 36px);
    margin: 0 0 12px
}

h3 {
    margin: 0 0 6px
}

p {
    margin: .5em 0 1em
}

a {
    color: var(--text);
    text-decoration: none
}

a:hover {
    text-decoration: underline
}

.muted {
    color: var(--muted)
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--muted)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    box-shadow: var(--shadow)
}

.btn.ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text)
}

.tag {
    font-size: 12px;
    color: var(--muted);
    border: 1px dashed var(--border);
    padding: 6px 10px;
    border-radius: 999px
}

.grid {
    display: grid;
    gap: 18px
}

.section {
    padding: 56px 0
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: all .6s ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.skip {
    position: absolute;
    left: -999px;
    top: auto
}

.skip:focus {
    left: 10px;
    top: 10px;
    background: var(--card);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border)
}

/* --------- Header --------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 18px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px
}

.brand-logo {
    border-radius: 12px;
    box-shadow: var(--shadow);
    object-fit: cover
}

.brand-name {
    white-space: nowrap
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px
}

.menu {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0
}

.menu a {
    padding: 10px 12px;
    border-radius: 10px
}

.cta {
    display: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px
}

.burger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: #fff;
}

/* --------- Hero --------- */
.hero {
    position: relative;
    padding: 84px 0 56px;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.hero::before {
    background: radial-gradient(600px 400px at 15% 10%, rgba(124, 58, 237, .25), transparent 60%);
}

.hero::after {
    background: radial-gradient(700px 500px at 85% 0%, rgba(34, 211, 238, .12), transparent 60%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 26px;
    align-items: center;
}

.hero-copy .pill {
    margin-bottom: 10px
}

.hero-copy em {
    color: var(--brand)
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 14px 0
}

.hero-points {
    display: flex;
    gap: 16px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    color: var(--muted)
}

.hero-art {
    position: relative
}

.device {
    background: linear-gradient(135deg, #f0efff, #fff);
    border: 1px solid var(--border);
    border-radius: 28px;
    height: 360px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow)
}

.logo-hero {
    width: min(220px, 40vw);
    border-radius: 18px;
    box-shadow: var(--shadow)
}

.float-card {
    position: absolute;
    right: -8px;
    bottom: -14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 14px
}

.glass {
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .6));
    border: 1px solid var(--border);
    box-shadow: var(--shadow)
}

/* --------- Features --------- */
.feats {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
}

.feat {
    padding: 18px
}

.ico {
    font-size: 22px;
    width: 32px;
    height: 32px
}

/* --------- Games --------- */
.gamegrid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.game .thumb {
    aspect-ratio: 16/10;
    border-bottom: 1px solid var(--border);
    border-radius: 16px 16px 0 0
}

.game h3 {
    margin: 12px 14px 6px
}

.game p {
    margin: 0 14px 12px;
    color: var(--muted)
}

.game .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 14px 16px
}

.game .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    background: #0009;
    color: #fff;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid #fff3
}

.gradient1 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa)
}

.gradient2 {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed)
}

.gradient3 {
    background: linear-gradient(135deg, #4338ca, #06b6d4)
}

/* --------- About --------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
    align-items: start
}

.about-text {
    padding: 20px
}

.check {
    padding-left: 18px
}

.check li {
    margin: 6px 0
}

.timeline {
    padding: 18px
}

.timeline ol {
    margin: 0;
    padding-left: 18px
}

.timeline li {
    margin: 8px 0
}

.timeline span {
    color: var(--muted);
    margin-right: 6px
}

/* --------- Team --------- */
.teamgrid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr))
}

.person {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 14px;
    padding: 16px
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #7c3aed, #4c1d95)
}

.avatar.alt {
    background: linear-gradient(135deg, #22d3ee, #7c3aed)
}

.avatar.alt2 {
    background: linear-gradient(135deg, #f59e0b, #7c3aed)
}

/* --------- Contact --------- */
.form {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.form label {
    display: grid;
    gap: 6px;
    font-size: 14px
}

.form input,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text)
}

.form textarea {
    min-height: 120px;
    resize: vertical
}

.form .full {
    grid-column: 1/-1
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    grid-column: 1/-1
}

.note {
    color: var(--muted);
    font-size: 14px
}

/* Footer layout */
.site-footer {
    padding: 18px 0 22px;
    background: rgba(12, 15, 23, .7);
    border-top: 1px solid var(--border);
}

.foot-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.foot-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.foot-col.left .copy {
    font-weight: 600;
    opacity: .9;
}

.powered {
    color: var(--muted);
    font-size: 13px;
}

.foot-col.right {
    text-align: right;
}

.tagline {
    font-weight: 600;
    opacity: .9;
}

.address {
    color: var(--muted);
    font-size: 14px;
}

.tinylogo {
    border-radius: 12px;
    vertical-align: middle;
    margin-right: 8px
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: rgba(12, 15, 23, .6)
    }

    .glass {
        background: linear-gradient(180deg, rgba(18, 22, 34, .8), rgba(18, 22, 34, .6))
    }
}

@media (max-width:900px) {
    .about-wrap {
        grid-template-columns: 1fr
    }

    .hero-grid {
        grid-template-columns: 1fr
    }

    .device {
        height: 300px
    }
}

@media (max-width:860px) {
    .cta {
        display: inline-flex
    }

    .menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, .9);
        backdrop-filter: blur(8px);
        border-bottom: 1px solid var(--border);
        padding: 12px;
    }

    @media (prefers-color-scheme: dark) {
        .menu {
            background: rgba(12, 15, 23, .95);
        }
    }

    .menu.open {
        display: grid;
        text-align: center;
    }

    .burger {
        display: block;
    }
}

@media (max-width: 700px) {
    .foot-col.right,
    .foot-col.left {
        text-align: left;
        width: 100%;
    }
}

@media (max-width:640px) {
    .right {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
}