:root {
    --brand: #5841dc;
    --brand-hover: #4a36c2;
    --brand-soft: #eeeafc;
    --brand-softer: #f7f5ff;
    --text: #0f0e1a;
    --text-muted: #5a5870;
    --bg: #ffffff;
    --bg-soft: #f7f6fc;
    --border: #eceaf4;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgba(17, 16, 34, 0.04), 0 2px 8px rgba(17, 16, 34, 0.04);
    --shadow-md: 0 4px 12px rgba(88, 65, 220, 0.08), 0 12px 32px rgba(88, 65, 220, 0.08);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.2rem, 1.2rem + 3vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-muted); }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: clamp(20px, 4vw, 40px);
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand); color: #fff; padding: 8px 12px;
}
.skip-link:focus { left: 10px; top: 10px; z-index: 999; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 0.95rem;
    transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
    text-decoration: none; border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}
.btn--primary { background: var(--brand); color: #fff !important; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn--ghost:hover { background: var(--bg-soft); }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--brand); margin-bottom: 14px;
}

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 72px; gap: 24px;
}
.site-header__logo img { height: 28px; width: auto; }
.site-header__logo .logo--light { display: none; }

.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav__link {
    padding: 8px 14px; border-radius: 10px;
    color: var(--text); font-weight: 500;
}
.site-nav__link:hover { background: var(--bg-soft); color: var(--text); }
.site-nav__link--cta {
    background: var(--brand); color: #fff;
    padding: 10px 18px;
}
.site-nav__link--cta:hover { background: var(--brand-hover); color: #fff; }

.nav-toggle {
    display: none; background: transparent; border: 0; cursor: pointer;
    width: 40px; height: 40px; padding: 8px;
}
.nav-toggle span {
    display: block; width: 100%; height: 2px; background: var(--text);
    margin: 5px 0; border-radius: 2px; transition: transform .2s ease;
}

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 16px; gap: 4px;
        display: none;
    }
    .site-nav--open { display: flex; }
    .site-nav__link { padding: 14px 16px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1200px 600px at 10% -10%, var(--brand-soft) 0%, transparent 60%),
        radial-gradient(900px 500px at 110% 30%, var(--brand-softer) 0%, transparent 60%),
        var(--bg);
    padding: clamp(60px, 9vw, 120px) 0;
}
.hero__backdrop {
    position: absolute; inset: 0; z-index: 0;
    pointer-events: none;
}
.hero__backdrop img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.42;
    mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, #000 20%, transparent 95%);
}
.hero__inner {
    display: grid; grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
    position: relative; z-index: 1;
}
.hero__title { margin-bottom: 20px; }
.hero__title .accent {
    background: linear-gradient(120deg, var(--brand) 0%, #8573ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: 1.15rem; color: var(--text-muted); max-width: 52ch; margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__art img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
    width: 100%; height: auto;
}

/* Characters-as-hero variant */
.hero--cast { padding-bottom: clamp(40px, 6vw, 80px); }
.hero__stage {
    position: relative;
    display: flex; justify-content: center; align-items: flex-end;
    min-height: 320px;
}
.hero__stage::before {
    content: "";
    position: absolute; inset: auto 0 -10px 0;
    height: 60px;
    background: radial-gradient(ellipse at center, rgba(88,65,220,0.22) 0%, transparent 70%);
    filter: blur(8px);
    z-index: 0;
}
.hero__stage img {
    position: relative; z-index: 1;
    width: 100%; max-width: 640px; height: auto;
    filter: drop-shadow(0 24px 36px rgba(88, 65, 220, 0.28));
    animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 820px) {
    .hero__inner { grid-template-columns: 1fr; text-align: center; }
    .hero__inner .hero__copy { display: flex; flex-direction: column; align-items: center; }
    .hero__cta { justify-content: center; }
    .hero__art { order: -1; }
    .hero__art img { max-width: 480px; margin: 0 auto; }
    .hero__stage { order: -1; min-height: 0; }
    .hero__stage img { max-width: 420px; }
}

/* ---------- Pillars ---------- */
.pillars {
    padding: clamp(56px, 8vw, 96px) 0;
    background:
        radial-gradient(700px 340px at 10% 100%, var(--brand-softer) 0%, transparent 70%),
        var(--bg);
}
.pillars__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.pillar {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 28px 32px;
    transition: box-shadow .2s ease, transform .2s ease;
    display: flex; flex-direction: column;
}
.pillar:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pillar__art {
    width: 100%; aspect-ratio: 1 / 1; max-width: 180px;
    margin: 0 auto 12px;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(160deg, var(--brand-softer), var(--brand-soft));
}
.pillar__art img {
    width: 100%; height: 100%; object-fit: cover;
    mix-blend-mode: multiply;
}
.pillar h3 {
    margin: 4px 0 6px;
    font-size: 1.35rem; text-align: center;
}
.pillar__lead {
    color: var(--brand); font-weight: 600;
    margin: 0 0 14px; font-size: 0.98rem;
    text-align: center;
}
.pillar__list {
    list-style: none; padding: 0; margin: 0;
    border-top: 1px solid var(--border); padding-top: 14px;
}
.pillar__list li {
    position: relative; padding: 8px 0 8px 24px;
    color: var(--text); font-size: 0.95rem;
    line-height: 1.45;
}
.pillar__list li::before {
    content: "";
    position: absolute; left: 0; top: 14px;
    width: 14px; height: 14px; border-radius: 4px;
    background: linear-gradient(135deg, var(--brand), #8573ff);
    box-shadow: 0 2px 6px rgba(88,65,220,0.25);
}

@media (max-width: 820px) {
    .pillars__grid { grid-template-columns: 1fr; }
}

/* ---------- Showcase / Game grid ---------- */
.showcase { padding: clamp(48px, 8vw, 96px) 0; background: var(--bg-soft); }
.showcase--full { background: var(--bg); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { margin: 0; }
.section-cta { text-align: center; margin-top: 32px; }

.empty-state {
    text-align: center; padding: 48px 24px;
    background: var(--bg); border: 1px dashed var(--border);
    border-radius: var(--radius-lg); color: var(--text-muted);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.game-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px;
    display: flex; flex-direction: column; gap: 14px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.game-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.game-card__icon {
    width: 88px; height: 88px; border-radius: 20px; overflow: hidden;
    background: var(--brand-soft); flex-shrink: 0;
}
.game-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-card__title { margin: 0; font-size: 1.15rem; }
.game-card__desc {
    margin: 0; color: var(--text-muted); font-size: 0.95rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.game-card__link {
    margin-top: auto; font-weight: 600; font-size: 0.92rem;
}

.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: var(--brand-soft); color: var(--brand);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.02em; text-transform: capitalize;
    align-self: flex-start;
}
.badge--android { background: #e6f4ea; color: #1e7c3a; }
.badge--ios { background: #e9eefb; color: #2b59c2; }
.badge--web { background: var(--brand-soft); color: var(--brand); }

.game-grid--full .game-card { padding: 24px; }

/* ---------- Upcoming (in-development strip) ---------- */
.upcoming {
    padding: clamp(56px, 8vw, 96px) 0;
    background:
        radial-gradient(700px 360px at 90% 10%, var(--brand-soft) 0%, transparent 70%),
        var(--bg);
}
.upcoming__grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.upcoming-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.upcoming-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.upcoming-card__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.upcoming-card__art img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.upcoming-card:hover .upcoming-card__art img { transform: scale(1.04); }
.upcoming-card__tag {
    position: absolute; top: 14px; left: 14px;
    background: rgba(15, 14, 26, 0.72); color: #fff;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
    backdrop-filter: blur(6px);
}
.upcoming-card__body { padding: 24px 28px 28px; }
.upcoming-card__body h3 { font-size: 1.4rem; margin-bottom: 4px; }
.upcoming-card__tagline {
    color: var(--brand); font-weight: 600; margin: 0 0 10px;
    font-size: 0.95rem;
}
.upcoming-card__body p { margin: 0; }

@media (max-width: 820px) {
    .upcoming__grid { grid-template-columns: 1fr; }
}

.page-hero--with-cast { padding-bottom: clamp(48px, 7vw, 80px); }
.page-hero__cast {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.page-hero__cast img {
    max-width: 820px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(88, 65, 220, 0.18));
}

/* ---------- Coming more (games page teaser) ---------- */
.coming-more { padding: clamp(40px, 7vw, 80px) 0 clamp(64px, 9vw, 120px); }
.coming-more__inner {
    background: linear-gradient(135deg, var(--brand-softer), var(--brand-soft));
    border-radius: var(--radius-lg);
    padding: clamp(32px, 5vw, 56px);
    text-align: center;
}
.coming-more__inner h2 { margin-bottom: 10px; }
.coming-more__inner p {
    margin: 0 auto; max-width: 56ch;
    color: var(--text);
}

/* ---------- Stats ---------- */
.stats { padding: clamp(48px, 7vw, 80px) 0; }
.stats__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; text-align: center;
}
.stat {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px 20px;
}
.stat strong {
    display: block; font-size: clamp(2rem, 1rem + 2vw, 2.8rem);
    font-weight: 800; color: var(--brand); letter-spacing: -0.02em;
}
.stat span { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 720px) {
    .stats__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA strip ---------- */
.cta-strip {
    padding: clamp(40px, 6vw, 72px) 0;
    background: linear-gradient(120deg, var(--brand) 0%, #7a66ff 100%);
    color: #fff;
}
.cta-strip h2 { color: #fff; margin: 0 0 8px; }
.cta-strip p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-strip__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
}
.cta-strip .btn--primary {
    background: #fff; color: var(--brand) !important;
}
.cta-strip .btn--primary:hover { background: #f2efff; color: var(--brand-hover) !important; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background:
        radial-gradient(1000px 400px at 10% 0%, var(--brand-soft) 0%, transparent 60%),
        var(--bg);
    padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px);
    text-align: center;
}
.page-hero .lead { margin-inline: auto; }

/* ---------- About ---------- */
.about-split { padding: clamp(48px, 8vw, 96px) 0; }
.about-split__grid {
    display: grid; grid-template-columns: 1fr 1.1fr;
    gap: clamp(32px, 5vw, 72px); align-items: center;
}
.about-split__art img {
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.values { padding: clamp(48px, 8vw, 96px) 0; background: var(--bg-soft); }
.values__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.value {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px;
}
.value h3 { color: var(--brand); margin-bottom: 8px; }
.value p { margin: 0; }

@media (max-width: 820px) {
    .about-split__grid { grid-template-columns: 1fr; }
    .values__grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 96px); }
.contact__grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 20px; max-width: 820px; margin: 0 auto;
}
.contact__card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    display: flex; flex-direction: column; gap: 12px;
    align-items: flex-start;
}
.contact__card h2 { font-size: 1.25rem; margin: 0; }
.contact__card p { margin: 0; }

@media (max-width: 820px) {
    .contact__grid { grid-template-columns: 1fr; }
}

/* ---------- Legal ---------- */
.legal { padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 8vw, 96px); }
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.35rem; margin-top: 40px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.admonition {
    background: #fff6e6; border: 1px solid #f3d48a;
    color: #6a4a00; padding: 14px 18px;
    border-radius: var(--radius); margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #0f0e1a; color: #c6c3dc; margin-top: 40px;
    padding: 64px 0 32px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; }
.site-footer a { color: #c6c3dc; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px; padding-bottom: 40px;
}
.site-footer__brand img { height: 28px; width: auto; margin-bottom: 12px; }
.site-footer__brand p { color: #a9a6c3; max-width: 40ch; }
.site-footer__bottom {
    padding-top: 24px; border-top: 1px solid #2a2640;
    color: #8986a8; font-size: 0.9rem;
}
.site-footer__bottom p { color: inherit; margin: 0; }

@media (max-width: 820px) {
    .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}
