/* === INNER PAGE LAYOUT (about / services / contact / games) === */

.content-wrapper.inner-style {
    margin-top: 64px;
    padding-top: 0;
}

.inner-shell {
    max-width: 1100px;
    margin: 32px auto 64px;
    padding: 24px 56px 80px;
    box-sizing: border-box;
    position: relative;
}

/* When the inner-shell IS the slab (single-slab pages: about, contact, games)
   it uses the .page-slab class. Per-section pages (services) keep the shell
   transparent and slab their sections individually. */
.inner-shell.page-slab .inner-hero { padding-top: 24px; }

.inner-shell:not(.page-slab) > * + * { margin-top: 24px; }
.inner-hero.page-slab { padding: 48px 56px 36px; max-width: none; }
.services-grid.page-slab { padding: 40px; }
.inner-section.page-slab { padding: 48px 56px; }

.cta-block .panel-eyebrow { margin-bottom: 14px; }
.cta-block h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw + 0.4rem, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: white;
    font-weight: 700;
    margin: 0 0 16px;
}
.cta-block p {
    font-size: 1.02rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.84);
    margin: 0 0 22px;
    max-width: 56ch;
}

@media (max-width: 760px) {
    .inner-shell:not(.page-slab) > * + * { margin-top: 16px; }
    .inner-hero.page-slab { padding: 28px 22px 24px; }
    .services-grid.page-slab { padding: 24px 20px; }
    .inner-section.page-slab { padding: 28px 22px; }
}

.inner-hero {
    padding: 64px 0 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 820px;
}

.inner-hero::before {
    content: "";
    position: absolute;
    inset: -10% -20% -20%;
    background:
        radial-gradient(50% 50% at 18% 25%, rgba(90, 100, 179, 0.45), transparent 60%),
        radial-gradient(40% 40% at 90% 80%, rgba(255, 184, 107, 0.22), transparent 70%),
        radial-gradient(36% 36% at 78% 12%, rgba(255, 93, 143, 0.18), transparent 70%);
    filter: blur(28px);
    z-index: -1;
    opacity: 0.9;
    pointer-events: none;
}

.inner-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 2.6vw + 0.55rem, 3.1rem);
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin: 8px 0 0;
    font-weight: 700;
    color: white;
    font-variation-settings: "wdth" 100, "opsz" 76;
}

.inner-hero h1 em {
    font-style: italic;
    font-weight: 500;
    background: linear-gradient(110deg, var(--color-accent-amber) 0%, var(--color-accent-gold) 50%, var(--color-accent-magenta) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.inner-hero .lede {
    font-size: clamp(1.05rem, 1vw + 0.75rem, 1.3rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.84);
    max-width: 720px;
    margin: 6px 0 0;
}

.inner-hero .hero-ctas {
    margin-top: 18px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.inner-section {
    margin: 36px 0 0;
}

/* === PANELS === */
.panel-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 24px 0 0;
}

.panel {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 38px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.panel:hover {
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.panel--brand {
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(255, 184, 107, 0.15), transparent 60%),
        linear-gradient(135deg, rgba(43, 50, 115, 0.50) 0%, rgba(66, 74, 142, 0.25) 60%, rgba(13, 14, 31, 0.4) 100%);
    border-color: var(--border-strong);
}

.panel--accent {
    background:
        linear-gradient(135deg, rgba(255, 184, 107, 0.20), rgba(255, 93, 143, 0.14)),
        rgba(13, 14, 31, 0.5);
    border-color: rgba(255, 184, 107, 0.30);
}

.panel-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    margin: 0 0 14px;
}

.panel h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw + 0.4rem, 2.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: white;
    font-weight: 700;
    margin: 0 0 16px;
}

.panel p {
    font-size: 1.02rem;
    line-height: 1.62;
    color: rgba(255, 255, 255, 0.84);
    margin: 0 0 14px;
}

.panel p:last-child { margin-bottom: 0; }

.panel ul {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel ul li {
    font-size: 0.98rem;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 26px;
    position: relative;
    line-height: 1.55;
}

.panel ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-gold);
    font-weight: 700;
}

/* === SERVICE CARDS === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 24px 0 0;
}

.service-card {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 28px 30px;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.service-card .service-num {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    line-height: 1.1;
    margin: 4px 0 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.service-card p {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.service-card.is-feature {
    grid-column: span 2;
    background:
        radial-gradient(50% 60% at 90% 10%, rgba(66, 74, 142, 0.55), transparent 60%),
        linear-gradient(180deg, rgba(43, 50, 115, 0.32), rgba(13, 14, 31, 0.45));
    border-color: var(--border-strong);
}

.service-card.is-feature h3 {
    font-size: clamp(1.6rem, 2.2vw + 0.4rem, 2.2rem);
}

/* === CONTACT TILES === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0 0;
}

.contact-tile {
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 36px 38px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-tile:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    background: var(--surface-3);
}

.contact-tile::after {
    content: "";
    position: absolute;
    inset: -40% -40% auto auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(66, 74, 142, 0.22), transparent 70%);
    pointer-events: none;
}

.contact-tile .label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    font-weight: 700;
}

.contact-tile h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.1;
    margin: 0;
    color: white;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.contact-tile p {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.80);
    margin: 0;
}

.contact-tile a.email {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    padding: 14px 22px;
    background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-glow) 100%);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-brand);
    align-self: flex-start;
    transition: transform 0.2s ease, filter 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 1;
}

.contact-tile a.email:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: white;
    text-decoration: none;
    box-shadow: 0 24px 80px rgba(90, 100, 179, 0.55);
}

.contact-tile .arrow {
    transition: transform 0.25s ease;
    display: inline-block;
}

.contact-tile a.email:hover .arrow { transform: translateX(4px); }

/* === GAMES STAGE === */
.games-stage {
    margin-top: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-strong);
    background: var(--color-ink);
    aspect-ratio: 16 / 9;
    position: relative;
    isolation: isolate;
}

.games-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.games-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(13, 14, 31, 0.55) 100%);
    pointer-events: none;
}

.games-stage .stage-tag {
    position: absolute;
    bottom: 18px;
    left: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    border-radius: var(--radius-pill);
    background: rgba(13, 14, 31, 0.78);
    border: 1px solid var(--border-strong);
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: white;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.games-stage .stage-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 10px #4ade80;
    animation: stage-pulse 1.8s ease-in-out infinite;
}

@keyframes stage-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.4); }
}

.games-platforms {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.games-platforms li {
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 7px 13px;
    background: rgba(13, 14, 31, 0.45);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.85);
}

/* === REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .games-stage .stage-tag::before { animation: none; }
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .panel { padding: 30px 30px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card.is-feature { grid-column: span 1; }
    .contact-grid { grid-template-columns: 1fr; }
    .inner-hero { padding: 40px 0 24px; }
}

@media (max-width: 760px) {
    .inner-shell {
        padding: 16px 24px 56px;
        margin: 16px auto 32px;
    }
    /* Single-slab pages (about/games/contact/faq/careers/legal): the
       inner-shell IS the slab, so it needs explicit side margins to
       avoid running flush to the viewport edge. Per-section pages
       like services keep auto-centring because their wrapper just
       holds the per-section slabs. */
    .inner-shell.page-slab {
        margin: 16px 8px 32px;
        padding: 20px 18px 48px;
    }
}

/* === LEGAL PAGES (terms, privacy) === */
.legal-content {
    max-width: 72ch;
    margin: 8px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1rem;
    line-height: 1.7;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: white;
    margin: 44px 0 14px;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    font-variation-settings: "wdth" 110;
    scroll-margin-top: 92px;
}

.legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 24px; }

.legal-content h2 .num {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent-gold);
    display: block;
    margin-bottom: 6px;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 24px 0 10px;
    letter-spacing: -0.01em;
    font-variation-settings: "wdth" 110;
}

.legal-content p { margin: 0 0 16px; }

.legal-content strong {
    color: var(--color-accent-gold);
    font-weight: 700;
}

.legal-content ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-content ul li {
    padding-left: 22px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.legal-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent-gold);
    font-weight: 700;
}

.legal-content a {
    color: var(--color-accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.35);
    transition: border-color 0.2s ease;
}

.legal-content a:hover { border-bottom-color: var(--color-accent-gold); text-decoration: none; }

.legal-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-pill);
    background: var(--surface-1);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin: 18px 0 0;
}

.legal-meta::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    box-shadow: 0 0 10px var(--color-accent-gold);
}

.legal-address {
    margin: 26px 0 8px;
    padding: 22px 24px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-2);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.55;
    font-size: 0.95rem;
    max-width: 480px;
}

.legal-address strong {
    color: white;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}

.legal-address .label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-accent-gold);
    margin-bottom: 8px;
    font-weight: 700;
}

.legal-toc {
    margin: 24px 0 8px;
    padding: 18px 22px;
    border: 1px dashed var(--border-soft);
    border-radius: var(--radius-md);
}

.legal-toc-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 10px;
    display: block;
}

.legal-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.legal-toc-list li { margin: 0; padding: 0; }

.legal-toc-list a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.92rem;
    border-bottom: none;
    transition: color 0.2s ease;
}

.legal-toc-list a:hover { color: var(--color-accent-gold); }

.legal-foot {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.legal-foot a { color: var(--color-accent-gold); text-decoration: none; }
.legal-foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .legal-content { font-size: 0.98rem; line-height: 1.65; }
    .legal-content h2 { font-size: 1.2rem; margin-top: 36px; }
    .legal-address { padding: 18px 20px; }
}

/* === FAQ === */
.faq-content {
    max-width: 76ch;
    margin: 8px auto 0;
    color: rgba(255, 255, 255, 0.86);
}

.faq-section { margin-top: 24px; }

.faq-section + .faq-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border-soft);
}

.faq-section-head {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-section-head .eyebrow { align-self: flex-start; }

.faq-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.2vw + 0.4rem, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    color: white;
    margin: 0;
    font-variation-settings: "wdth" 110;
}

.faq-section-head p {
    font-size: 1rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
    max-width: 60ch;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border-soft);
    scroll-margin-top: 92px;
}

.faq-item:first-child { padding-top: 4px; }
.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.25;
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
    font-variation-settings: "wdth" 110;
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.faq-item h3::before {
    content: "Q.";
    color: var(--color-accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    transform: translateY(-1px);
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 10px;
    max-width: 64ch;
    padding-left: 26px;
}

.faq-item p:last-child { margin-bottom: 0; }

.faq-item strong {
    color: var(--color-accent-gold);
    font-weight: 700;
}

.faq-item a {
    color: var(--color-accent-gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 215, 0, 0.35);
    transition: border-color 0.2s ease;
}

.faq-item a:hover { border-bottom-color: var(--color-accent-gold); }

.faq-foot {
    margin-top: 56px;
    padding: 32px 28px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--surface-1);
    text-align: center;
}

.faq-foot h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.2;
    color: white;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
}

.faq-foot p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 18px;
}

.faq-foot .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-brand-deep) 0%, var(--color-brand-glow) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(43, 50, 115, 0.45);
    transition: transform 0.18s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.faq-foot .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.10);
    color: white;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(90, 100, 179, 0.55);
}

.faq-foot .btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.faq-foot .btn:hover .arrow { transform: translateX(3px); }

@media (max-width: 760px) {
    .faq-section + .faq-section { margin-top: 40px; padding-top: 28px; }
    .faq-foot { padding: 26px 20px; }
}

@media (max-width: 520px) {
    .inner-shell { padding: 16px 18px 56px; }
    .inner-shell.page-slab {
        margin: 12px 6px 24px;
        padding: 18px 14px 40px;
    }
    .inner-hero { padding: 28px 0 16px; }
    .panel { padding: 24px 22px; border-radius: var(--radius-md); }
    .contact-tile { padding: 26px 24px; border-radius: var(--radius-md); }
    .service-card { padding: 24px 22px; }
    .games-stage { aspect-ratio: 4 / 3; }
}
