:root {
    --page: #f6f9fc;
    --surface: #ffffff;
    --surface-soft: #eef6fb;
    --surface-blue: #e7f4ff;
    --ink: #172033;
    --muted: #5d6a7f;
    --line: #d9e3ee;
    --line-strong: #bfd3e6;
    --blue: #0078d4;
    --blue-strong: #005a9e;
    --blue-deep: #073b72;
    --green: #00a83b;
    --orange: #ff6b1a;
    --indigo: #4f46e5;
    --shadow: 0 20px 50px rgba(14, 54, 91, 0.12);
    --shadow-soft: 0 12px 28px rgba(14, 54, 91, 0.09);
    --radius: 8px;
    --radius-sm: 6px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        linear-gradient(180deg, #ffffff 0%, var(--page) 46%, #ffffff 100%);
    color: var(--ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 120, 212, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 212, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 78%, transparent 100%);
}

img,
svg {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 10px;
    z-index: 30;
    transform: translateY(-140%);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--blue);
    color: #fff;
    font-weight: 800;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 24px rgba(13, 38, 62, 0.06);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: min(1240px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    min-width: 112px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.brand-mark {
    position: relative;
    display: inline-block;
    color: var(--blue-deep);
    font-size: 1.72rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: 0;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--orange), var(--indigo));
}

.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 26px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #243048;
    font-weight: 800;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.is-active,
.has-dropdown.is-open .nav-dropdown-toggle {
    background: var(--surface-blue);
    color: var(--blue-strong);
    outline: none;
}

.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    width: 320px;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.is-open .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: #33435e;
    font-size: 0.92rem;
    font-weight: 750;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-feature {
    background: var(--surface-blue);
    color: var(--blue-strong);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--blue-deep);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
    outline: none;
}

.button-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 120, 212, 0.24);
}

.button-primary:hover,
.button-primary:focus {
    background: var(--blue-strong);
    box-shadow: 0 16px 28px rgba(0, 90, 158, 0.26);
}

.button-secondary {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--blue-deep);
}

.button-secondary:hover,
.button-secondary:focus {
    border-color: var(--blue);
    background: var(--surface-blue);
}

.dark-band {
    background:
        radial-gradient(circle at 84% 20%, rgba(0, 120, 212, 0.16), transparent 28%),
        radial-gradient(circle at 8% 86%, rgba(0, 168, 59, 0.12), transparent 24%),
        linear-gradient(135deg, #ffffff 0%, #f1f8fe 52%, #edf7f1 100%);
    color: var(--ink);
}

.dark-band p {
    color: var(--muted);
}

.hero,
.page-hero,
.game-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 58px;
}

.hero::before,
.page-hero::before,
.game-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.1)),
        linear-gradient(rgba(0, 120, 212, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 120, 212, 0.055) 1px, transparent 1px);
    background-size: auto, 42px 42px, 42px 42px;
}

.hero-grid,
.page-hero-grid,
.game-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: 46px;
    align-items: center;
}

.hero-copy,
.page-hero-copy,
.game-hero-copy {
    max-width: 640px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--blue-strong);
    font-size: 0.78rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--green));
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: #101a2d;
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: 0;
}

.hero h1 {
    margin-bottom: 22px;
    font-size: 4.35rem;
    max-width: 780px;
}

.page-hero h1,
.game-hero h1 {
    margin-bottom: 22px;
    font-size: 3.45rem;
}

.hero-subhead,
.page-hero-copy p:not(.eyebrow),
.game-hero-copy p:not(.eyebrow) {
    max-width: 640px;
    margin-bottom: 28px;
    color: #4a5a72;
    font-size: 1.12rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    color: var(--blue-strong);
    font-weight: 900;
}

.text-link:hover,
.text-link:focus {
    color: var(--blue-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.hero-photo-visual,
.hero-media-card,
.game-showcase {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border: 1px solid #b7d7ef;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.hero-photo-visual img,
.hero-media-card img,
.game-showcase img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.hero-photo-visual::after,
.hero-media-card::after,
.game-showcase::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.22));
}

.hero-visual-badge,
.visual-readout {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.82);
    color: #123052;
    box-shadow: 0 12px 24px rgba(12, 48, 83, 0.16);
    backdrop-filter: blur(12px);
}

.hero-visual-badge {
    top: 22px;
    left: 22px;
}

.visual-readout {
    right: 22px;
    bottom: 22px;
}

.hero-visual-badge span,
.visual-readout span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 850;
}

.hero-visual-badge strong,
.visual-readout strong {
    color: var(--blue-deep);
    font-size: 0.95rem;
    font-weight: 950;
}

.section {
    padding: 60px 0;
}

.page-hero + .section,
.game-hero + .section,
.stats-strip + .section {
    padding-top: 48px;
}

.soft-band {
    background:
        linear-gradient(180deg, #f4f9fd 0%, #ffffff 100%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 820px;
    margin-bottom: 38px;
    text-align: center;
}

.section-heading-left {
    max-width: 560px;
    margin: 0;
    text-align: left;
}

.section-heading h2,
.lead-copy h2,
.contact-copy h2 {
    margin-bottom: 14px;
    font-size: 2.55rem;
}

.section-heading p:not(.eyebrow),
.lead-copy p,
.contact-copy p {
    color: var(--muted);
    font-size: 1.05rem;
}

.stats-strip {
    padding: 26px 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-item {
    min-height: 112px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, #f8fbfe);
}

.stat-item strong {
    display: block;
    color: var(--blue-strong);
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 950;
}

.stat-item span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card,
.capability-grid article,
.case-card,
.principles article,
.timeline article,
.tile-mechanic,
.game-card,
.lead-form-panel,
.contact-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.service-card {
    position: relative;
    min-height: 260px;
    padding: 24px;
    overflow: hidden;
}

.service-card::before,
.case-card::before,
.tile-mechanic::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--accent, var(--blue));
}

.service-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent, var(--blue)) 14%, #fff);
    color: var(--accent, var(--blue));
}

.service-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.service-card h3,
.service-card h2,
.case-card h3,
.case-card h2,
.capability-grid h3,
.principles h3,
.game-card h3,
.tile-mechanic h3 {
    margin-bottom: 8px;
    font-size: 1.28rem;
}

.service-card p,
.case-card p,
.capability-grid p,
.principles p,
.timeline p,
.game-card p,
.tile-mechanic p {
    color: var(--muted);
}

.service-tagline,
.case-client {
    margin-bottom: 8px;
    color: var(--accent, var(--blue)) !important;
    font-size: 0.92rem;
    font-weight: 950;
}

.service-card a {
    display: inline-flex;
    margin-top: 10px;
    color: var(--blue-strong);
    font-weight: 900;
}

.accent-blue {
    --accent: var(--blue);
}

.accent-green {
    --accent: var(--green);
}

.accent-orange {
    --accent: var(--orange);
}

.accent-navy {
    --accent: var(--indigo);
}

.service-grid-detailed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card-detailed {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    min-height: 184px;
    align-items: start;
}

.workflow-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 54px 0;
}

.workflow-grid,
.about-grid,
.proof-grid,
.contact-grid,
.lead-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: start;
}

.workflow-list {
    display: grid;
    gap: 12px;
}

.workflow-list article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.workflow-list article > span {
    grid-row: 1 / span 2;
}

.workflow-list span,
.timeline span {
    color: var(--blue);
    font-weight: 950;
}

.workflow-list h3 {
    grid-column: 2;
    margin-bottom: 6px;
    font-size: 1.16rem;
}

.workflow-list p {
    grid-column: 2;
    margin-bottom: 0;
    color: var(--muted);
}

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

.case-grid-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-card {
    position: relative;
    min-height: 300px;
    padding: 30px;
    overflow: hidden;
}

.case-metric {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.case-metric strong {
    color: var(--accent, var(--blue));
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 950;
}

.case-metric span {
    color: var(--muted);
    font-weight: 850;
}

.capability-grid,
.principles,
.timeline,
.tile-mechanics-grid,
.game-card-grid {
    display: grid;
    gap: 22px;
}

.capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.capability-grid article,
.principles article,
.timeline article,
.tile-mechanic,
.game-card {
    padding: 26px;
}

.principles,
.timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline h2 {
    margin: 8px 0;
    font-size: 1.34rem;
}

.proof-grid {
    align-items: center;
}

.proof-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proof-list li {
    position: relative;
    padding: 18px 20px 18px 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    font-weight: 750;
}

.proof-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
}

.lead-section {
    padding: 78px 0;
    border-top: 1px solid var(--line);
}

.lead-points,
.contact-methods,
.game-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.lead-points span,
.contact-methods span,
.contact-methods a,
.game-tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--blue-deep);
    font-size: 0.9rem;
    font-weight: 850;
}

.contact-section {
    background: #fff;
}

.contact-panel,
.lead-form-panel {
    padding: 28px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    color: #172033;
    font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd8e5;
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--ink);
    padding: 11px 13px;
    outline: none;
}

.form-field textarea {
    min-height: 132px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.12);
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}

.field-error {
    margin: 0;
    color: #b42318;
    font-size: 0.88rem;
    font-weight: 850;
}

.form-alert {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-weight: 850;
}

.form-alert--success {
    border: 1px solid rgba(0, 168, 59, 0.32);
    background: #eaf8ef;
    color: #08602a;
}

.form-alert--error {
    border: 1px solid rgba(180, 35, 24, 0.28);
    background: #fff1f0;
    color: #9f1d15;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox-stack {
    display: grid;
    gap: 12px;
}

.checkbox-field {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--muted);
    font-weight: 750;
}

.form-submit {
    width: fit-content;
}

.game-showcase {
    min-height: 510px;
}

.game-photo-showcase > img {
    opacity: 0.94;
}

.tiles-app-icon {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 54px);
    gap: 7px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(9, 45, 85, 0.18);
    backdrop-filter: blur(14px);
}

.tiles-app-icon-large {
    grid-template-columns: repeat(3, 66px);
}

.tile {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border-radius: var(--radius-sm);
    color: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.tiles-app-icon-large .tile {
    width: 66px;
    height: 66px;
}

.fire {
    background: linear-gradient(135deg, #ffefe3, var(--orange));
}

.stone {
    background: linear-gradient(135deg, #f5f7fa, #73839b);
}

.ice {
    background: linear-gradient(135deg, #ecfbff, #3fb7ff);
}

.crystal {
    background: linear-gradient(135deg, #e7fcff, #00b6d9);
}

.leaf {
    background: linear-gradient(135deg, #efffed, var(--green));
}

.bomb {
    background: linear-gradient(135deg, #f0edff, var(--indigo));
}

.tiles-mini-board {
    display: grid;
    grid-template-columns: repeat(2, 54px);
    gap: 8px;
}

.mini-tile {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
}

.mini-fire {
    background: linear-gradient(135deg, #ffefe3, var(--orange));
}

.mini-stone {
    background: linear-gradient(135deg, #f5f7fa, #73839b);
}

.mini-ice {
    background: linear-gradient(135deg, #ecfbff, #3fb7ff);
}

.mini-leaf {
    background: linear-gradient(135deg, #efffed, var(--green));
}

.game-card-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.launch-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 28px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.launch-cta > div {
    max-width: 760px;
}

.launch-cta h2 {
    margin-bottom: 8px;
    font-size: 2rem;
}

.launch-cta p:not(.eyebrow) {
    margin-bottom: 0;
    color: var(--muted);
}

.game-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
}

.muted-game-card {
    display: block;
    background: linear-gradient(180deg, #fff, #f3f8fc);
}

.tile-mechanics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-mechanic {
    position: relative;
    overflow: hidden;
}

.fire-card {
    --accent: var(--orange);
}

.ice-card,
.crystal-card {
    --accent: var(--blue);
}

.leaf-card {
    --accent: var(--green);
}

.bomb-card {
    --accent: var(--indigo);
}

.coin-card {
    --accent: #d59700;
}

.mechanic-icon {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 950;
}

.legal-hero {
    padding: 68px 0 52px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(circle at 85% 20%, rgba(0, 120, 212, 0.14), transparent 26%),
        linear-gradient(135deg, #ffffff, #eef7fd);
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
    gap: 48px;
    align-items: end;
}

.legal-hero h1 {
    margin-bottom: 16px;
    font-size: 4rem;
}

.legal-hero p:not(.eyebrow) {
    max-width: 720px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.legal-meta {
    display: grid;
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow-soft);
}

.legal-meta div {
    padding: 16px 18px;
    background: #fff;
}

.legal-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-meta dd {
    margin: 3px 0 0;
    color: var(--ink);
    font-weight: 850;
    overflow-wrap: anywhere;
}

.legal-meta a,
.legal-shell a {
    color: var(--blue-strong);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page {
    background: #fff;
}

.legal-shell {
    max-width: 940px;
}

.legal-intro {
    margin-bottom: 42px;
    padding: 22px 24px;
    border-left: 4px solid var(--blue);
    background: var(--surface-blue);
    color: #33435e;
    font-size: 1.08rem;
}

.legal-shell section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.legal-shell section:first-of-type {
    border-top: 0;
}

.legal-shell h2 {
    margin-bottom: 18px;
    font-size: 2rem;
}

.legal-shell h3 {
    margin: 28px 0 12px;
    font-size: 1.25rem;
}

.legal-shell h3[id] {
    scroll-margin-top: 110px;
}

.legal-shell h4 {
    margin: 24px 0 10px;
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1.3;
}

.legal-shell p,
.legal-shell li {
    color: #43516a;
}

.legal-shell ul,
.legal-shell ol {
    display: grid;
    gap: 9px;
    padding-left: 24px;
}

.legal-shell code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--page);
    color: var(--blue-deep);
    font-size: 0.92em;
}

.legal-table-wrap {
    margin: 18px 0 22px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.legal-table-wrap table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    background: #fff;
}

.legal-table-wrap th,
.legal-table-wrap td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-table-wrap tr:last-child th,
.legal-table-wrap tr:last-child td {
    border-bottom: 0;
}

.legal-table-wrap thead th {
    background: var(--surface-soft);
    color: var(--blue-deep);
    font-size: 0.84rem;
    text-transform: uppercase;
}

.legal-table-wrap tbody th {
    width: 28%;
    color: var(--ink);
    font-weight: 900;
}

.legal-contact {
    font-size: 1.2rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.legal-notice {
    margin: 20px 0 24px;
    padding: 20px 22px;
    border: 1px solid #f1c67a;
    border-left: 4px solid var(--orange);
    border-radius: var(--radius-sm);
    background: #fff8eb;
}

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

.legal-back {
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.site-footer {
    padding: 60px 0 28px;
    background: #0b2542;
    color: #d9e7f4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.site-footer .brand-mark {
    color: #fff;
}

.site-footer p,
.site-footer span {
    color: #c0d3e5;
}

.site-footer h2 {
    margin-bottom: 14px;
    color: #fff;
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    color: #eaf5ff;
    font-weight: 800;
}

.footer-cta {
    color: #8bd6ff !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 1100px) {
    .hero-grid,
    .page-hero-grid,
    .game-hero-grid,
    .legal-hero-grid,
    .workflow-grid,
    .about-grid,
    .proof-grid,
    .contact-grid,
    .lead-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .page-hero h1,
    .game-hero h1 {
        font-size: 3.4rem;
    }

    .service-grid,
    .case-grid,
    .capability-grid,
    .tile-mechanics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-shell {
        min-height: 72px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        left: 24px;
        right: 24px;
        top: calc(100% + 10px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-links {
        display: grid;
        gap: 4px;
    }

    .nav-link,
    .nav-dropdown-toggle,
    .nav-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
    }

    .hero,
    .page-hero,
    .game-hero,
    .section {
        padding: 64px 0;
    }

    .hero-photo-visual,
    .hero-media-card,
    .game-showcase {
        min-height: 360px;
    }

    .stats-grid,
    .service-grid,
    .case-grid,
    .capability-grid,
    .principles,
    .timeline,
    .tile-mechanics-grid,
    .game-card-grid {
        grid-template-columns: 1fr;
    }

    .game-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container,
    .nav-shell {
        width: min(100% - 32px, var(--max));
    }

    .brand {
        min-width: 112px;
    }

    .brand-mark {
        font-size: 1.44rem;
    }

    .hero h1 {
        font-size: 2.72rem;
    }

    .page-hero h1,
    .game-hero h1,
    .legal-hero h1,
    .section-heading h2,
    .lead-copy h2,
    .contact-copy h2 {
        font-size: 2.2rem;
    }

    .hero-subhead,
    .page-hero-copy p:not(.eyebrow),
    .game-hero-copy p:not(.eyebrow) {
        font-size: 1rem;
    }

    .hero-actions,
    .hero-actions .button,
    .form-submit {
        width: 100%;
    }

    .hero-photo-visual,
    .hero-media-card,
    .game-showcase {
        min-height: 300px;
    }

    .hero-visual-badge,
    .visual-readout {
        position: static;
        margin: 12px;
    }

    .hero-photo-visual img {
        min-height: 220px;
    }

    .service-card-detailed,
    .workflow-list article,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .service-card,
    .case-card,
    .capability-grid article,
    .principles article,
    .timeline article,
    .tile-mechanic,
    .game-card,
    .lead-form-panel,
    .contact-panel {
        padding: 22px;
    }

    .field-meta,
    .footer-bottom,
    .launch-cta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .tiles-app-icon {
        position: static;
        width: fit-content;
        margin: 12px;
    }

    .legal-hero {
        padding: 52px 0 40px;
    }

    .legal-shell h2 {
        font-size: 1.65rem;
    }

    .legal-table-wrap table {
        min-width: 560px;
    }
}
