/* HeyTech site styles
   Shape system: cards 28px, large panels and hero art 32px, media inside cards 20px, inputs 14px,
   buttons and chips full pill.
   Colour: one UI accent (brand cyan). Each game brings its own "world" colours (--w1/--w2),
   used only for the soft glows behind its art. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

@property --w1 { syntax: "<color>"; inherits: true; initial-value: #009bde; }
@property --w2 { syntax: "<color>"; inherits: true; initial-value: #6fc9f2; }

:root {
  color-scheme: light;
  --brand: #009bde;
  --ink: #08263b;
  --flag: #ff6a3d;

  --bg: #f4f8fb;
  --bg-tint: #e8f4fc;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --text: #08263b;
  --text-soft: #4a6577;
  --line: #dbe6ed;
  --link: #00628f;
  --accent-text: #0077ac;
  --focus: #0077ac;
  --btn: #009bde;
  --btn-text: #08263b;
  --btn-edge: #0077ac;
  --quiet-bg: #ffffff;
  --quiet-text: #08263b;
  --quiet-edge: #c9dae5;
  --error: #b42318;
  --shadow-rgb: 8 38 59;
  --card-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .06), 0 22px 44px -28px rgb(var(--shadow-rgb) / .4);
  --glow-strength: 34%;

  --wrap: 1240px;
  --header-h: 68px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #061a29;
    --bg-tint: #082337;
    --surface: #0c2a3f;
    --surface-2: #11344d;
    --text: #eaf5fc;
    --text-soft: #9db8ca;
    --line: #1a4562;
    --link: #6fc9f2;
    --accent-text: #6fc9f2;
    --focus: #6fc9f2;
    --btn-edge: #005a83;
    --quiet-bg: #11344d;
    --quiet-text: #eaf5fc;
    --quiet-edge: #04121d;
    --error: #ff8f8f;
    --shadow-rgb: 0 5 10;
    --card-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 48px -28px rgb(0 0 0 / .7);
    --glow-strength: 46%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061a29;
  --bg-tint: #082337;
  --surface: #0c2a3f;
  --surface-2: #11344d;
  --text: #eaf5fc;
  --text-soft: #9db8ca;
  --line: #1a4562;
  --link: #6fc9f2;
  --accent-text: #6fc9f2;
  --focus: #6fc9f2;
  --btn-edge: #005a83;
  --quiet-bg: #11344d;
  --quiet-text: #eaf5fc;
  --quiet-edge: #04121d;
  --error: #ff8f8f;
  --shadow-rgb: 0 5 10;
  --card-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 48px -28px rgb(0 0 0 / .7);
  --glow-strength: 46%;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, legend, .btn { font-family: "Outfit", system-ui, sans-serif; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-tight { padding-block: clamp(28px, 4vw, 52px); }
.hero + .section { padding-top: clamp(16px, 2vw, 32px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--btn); color: var(--btn-text); font-weight: 700; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Buttons and links */
.btn {
  --_bg: var(--btn); --_fg: var(--btn-text); --_edge: var(--btn-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--_bg); color: var(--_fg);
  font-weight: 700; font-size: 1.0625rem; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 5px 0 var(--_edge);
  transition: transform .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--_edge); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--_edge); }
.btn--quiet { --_bg: var(--quiet-bg); --_fg: var(--quiet-text); --_edge: var(--quiet-edge); }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .9375rem; box-shadow: 0 4px 0 var(--_edge); }
.btn--small:hover { box-shadow: 0 6px 0 var(--_edge); }
.btn--wa { --_bg: #0b7d3e; --_fg: #fff; --_edge: #065a2b; }
.btn--ink { --_bg: #08263b; --_fg: #fff; --_edge: #020d16; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 1rem "Outfit", sans-serif; color: var(--link);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in oklab, currentColor 35%, transparent);
}
.text-link:hover { text-decoration-color: currentColor; }
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-soft);
  font: 600 .8125rem/1.4 "Outfit", sans-serif; letter-spacing: 0; vertical-align: middle;
}
.flag {
  display: inline-block; margin-bottom: 18px; padding: 6px 13px; border-radius: 999px;
  background: var(--flag); color: var(--ink);
  font: 700 .8125rem/1.3 "Outfit", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { flex: none; border-radius: 8px; }
.brand img { height: 44px; width: auto; }
.site-nav { margin-inline: auto; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 9px 15px; border-radius: 999px;
  color: var(--text); text-decoration: none; font: 600 1rem "Outfit", sans-serif;
}
.site-nav a:hover { background: var(--surface); }
.site-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.site-nav + .site-header__actions { margin-left: 0; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon--sun, .icon--close, .menu-btn { display: none; }
:root[data-theme="dark"] .icon--sun { display: block; }
:root[data-theme="dark"] .icon--moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon--sun { display: block; }
  :root:not([data-theme="light"]) .icon--moon { display: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(28px, 4vw, 56px) clamp(56px, 7vw, 96px); transition: --w1 1.4s ease, --w2 1.4s ease; }
.hero__glow {
  position: absolute; z-index: -1; inset: -10% -15% 0 35%; pointer-events: none;
  background:
    radial-gradient(closest-side at 55% 42%, color-mix(in oklab, var(--w2) var(--glow-strength), transparent), transparent),
    radial-gradient(closest-side at 78% 72%, color-mix(in oklab, var(--w1) var(--glow-strength), transparent), transparent);
  filter: blur(36px);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(2.9rem, 1rem + 4.6vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.hero__title em { font-style: normal; color: var(--accent-text); }
.hero__lede { margin-top: 22px; max-width: 34ch; color: var(--text-soft); font-size: clamp(1.125rem, 1rem + .45vw, 1.35rem); line-height: 1.5; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; padding-bottom: 6px; }

.showcase { position: relative; container-type: inline-size; }
.showcase__stage { display: grid; }
.showcase__slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility 0s linear .8s;
}
.showcase__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; }
.showcase__art {
  display: block; aspect-ratio: 7 / 4; overflow: hidden; border-radius: 28px;
  background: var(--surface-2);
  box-shadow: 0 40px 70px -40px rgb(var(--shadow-rgb) / .7), 0 0 0 1px rgb(var(--shadow-rgb) / .06);
}
.showcase__art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.showcase__slide.is-active .showcase__art img { transform: scale(1); }
.showcase__caption { padding: 54px 8px 0; }
.showcase__name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font: 700 1.5rem "Outfit", sans-serif; letter-spacing: -.02em; }
.showcase__name a { color: var(--text); text-decoration: none; }
.showcase__name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.showcase__tagline { margin-top: 4px; color: var(--text-soft); }
.showcase__dock {
  --dock-icon: 52px;
  position: absolute; left: 50%; top: calc(100cqw * 4 / 7); transform: translate(-50%, -50%);
  /* left: 50% would otherwise cap the dock at half the carousel width and squash the icons */
  width: max-content; max-width: calc(100% - 16px);
  display: flex; align-items: center; gap: 4px; padding: 7px;
  border-radius: 24px; background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -18px rgb(var(--shadow-rgb) / .55), 0 0 0 1px rgb(var(--shadow-rgb) / .06);
}
.showcase__tabs { display: flex; gap: 4px; min-width: 0; }
.dock-btn {
  position: relative; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 15px;
  transition: transform .25s var(--ease-out);
}
.dock-btn__icon { width: var(--dock-icon); height: auto; aspect-ratio: 1; border-radius: 14px; transform: scale(.86); transition: transform .25s var(--ease-out), filter .25s; filter: saturate(.8); }
.dock-btn:hover .dock-btn__icon { transform: scale(.94); filter: none; }
.dock-btn[aria-selected="true"] .dock-btn__icon { transform: scale(1); filter: none; }
.dock-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -5px; height: 3px; border-radius: 3px;
  background: var(--btn); transform: scaleX(0); transform-origin: left;
}
.dock-btn[aria-selected="true"]::after { transform: scaleX(1); }
.is-playing .dock-btn[aria-selected="true"]::after { animation: dock-progress var(--slide-ms, 6000ms) linear both; }
@keyframes dock-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dock-pause {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 2px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--text); cursor: pointer;
}
.dock-pause .icon { width: 18px; height: 18px; }
.dock-pause .icon--play { display: none; }
.is-paused .dock-pause .icon--play { display: block; }
.is-paused .dock-pause .icon--pause { display: none; }

/* Section heads */
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; }
.section-head p:not(.flag) { margin-top: 14px; max-width: 54ch; color: var(--text-soft); font-size: 1.125rem; }
.section-label { margin-bottom: 18px; font-size: 1.5rem; font-weight: 700; }

/* Games */
.game-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.game-card--wide { grid-column: span 7; }
.game-card--narrow { grid-column: span 5; }
.game-card--full { grid-column: 1 / -1; }
.game-card {
  position: relative; display: flex; flex-direction: column; padding: 10px;
  border-radius: 28px; background: var(--surface); box-shadow: var(--card-shadow);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .06), 0 34px 60px -30px color-mix(in oklab, var(--w1) 75%, transparent); }
.game-card:has(.game-card__link:focus-visible) { outline: 3px solid var(--focus); outline-offset: 4px; }
.game-card__art { height: clamp(220px, 24vw, 330px); overflow: hidden; border-radius: 20px; background: var(--surface-2); }
.game-card__art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.game-card:hover .game-card__art img { transform: scale(1.05); }
.game-card__body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 14px 16px; padding: 0 12px 12px; }
.game-card__icon { width: 72px; height: 72px; margin-top: -30px; border-radius: 18px; border: 4px solid var(--surface); box-shadow: 0 10px 20px -10px rgb(var(--shadow-rgb) / .5); position: relative; z-index: 1; }
.game-card__text { padding-top: 14px; }
.game-card__genre { color: var(--text-soft); font: 600 .875rem/1.3 "Outfit", sans-serif; }
.game-card__name { margin-top: 2px; font-size: 1.5rem; font-weight: 700; }
.game-card__link { color: var(--text); text-decoration: none; }
.game-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 28px; z-index: 1; }
.game-card__link:focus-visible { outline: none; }
.game-card__tagline { grid-column: 1 / -1; margin-top: -4px; color: var(--text-soft); font-size: 1rem; line-height: 1.5; }
.store-link {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin-top: 22px;
  padding: 9px 14px; border-radius: 999px; background: var(--surface-2); color: var(--link);
  font: 600 .875rem/1 "Outfit", sans-serif; text-decoration: none; white-space: nowrap;
}
.store-link:hover { background: var(--bg-tint); }
.store-link .icon { width: 16px; height: 16px; }

/* Apps */
.apps { background: var(--bg-tint); }
.app-explorer { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; }
.app-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 24px); }
.app-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px;
  border: 0; border-radius: 20px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color .2s, box-shadow .2s;
}
.app-tab img { width: 48px; height: 48px; border-radius: 13px; }
.app-tab__text strong { display: block; font: 700 1.0625rem/1.25 "Outfit", sans-serif; }
.app-tab__text small { display: block; color: var(--text-soft); font-size: .875rem; }
.app-tab:hover { background: color-mix(in oklab, var(--surface) 60%, transparent); }
.app-tab[aria-selected="true"] { background: var(--surface); box-shadow: inset 4px 0 0 var(--accent), var(--card-shadow); }
.app-panel {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: clamp(20px, 3vw, 36px); border-radius: 32px; background: var(--surface); box-shadow: var(--card-shadow);
}
.app-panels { display: grid; gap: 24px; }
.js .app-panel:not(.is-active) { display: none; }
.js .app-panel.is-active { animation: panel-in .5s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.app-panel__shots { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.app-panel__shots::before {
  content: ""; position: absolute; z-index: -1; inset: 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 45%, transparent), transparent);
  filter: blur(24px);
}
.phone { width: 36%; border-radius: 20px; border: 5px solid #0a1722; background: #0a1722; box-shadow: 0 26px 40px -22px rgb(0 0 0 / .6); }
.app-panel__shots .phone { width: 40%; }
.app-panel__shots .phone--1 { order: 1; width: 48%; z-index: 2; }
.app-panel__shots .phone--2 { order: 0; transform: translateX(30%) rotate(-7deg) scale(.9); }
.app-panel__shots .phone--3 { order: 2; transform: translateX(-30%) rotate(7deg) scale(.9); }
.app-panel__info h3 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.app-panel__tagline { margin-top: 6px; font: 600 1.2rem/1.35 "Outfit", sans-serif; }
.app-panel__info > p:not(.app-panel__tagline) { margin-top: 12px; color: var(--text-soft); }
.ticks { display: grid; gap: 10px; margin-top: 18px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { width: 22px; height: 22px; margin-top: 1px; color: var(--link); }
.app-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 26px; }

/* Studio */
.studio__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.studio__art img { width: 100%; border-radius: 32px; box-shadow: 0 40px 70px -40px rgb(var(--shadow-rgb) / .7); transform: rotate(-1.5deg); }
.studio__copy h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.studio__copy p { margin-top: 16px; max-width: 46ch; color: var(--text-soft); font-size: 1.125rem; }
.studio__copy .text-link { margin-top: 24px; }

/* Build with us */
.offer-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.offer { display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: var(--surface); box-shadow: var(--card-shadow); }
.offer--apps { grid-column: span 7; grid-row: span 2; }
.offer--web, .offer--games { grid-column: span 5; }
.offer__media { flex: 1; min-height: 200px; overflow: hidden; }
.offer__media img { width: 100%; height: 100%; object-fit: cover; }
.offer--apps .offer__media { min-height: 380px; }
.offer__body { padding: 22px 26px 26px; }
.offer__body h3 { font-size: 1.4rem; font-weight: 700; }
.offer__body p { margin-top: 8px; color: var(--text-soft); }
.offer--games { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; background: var(--btn); color: var(--ink); }
.offer--games .offer__body { align-self: center; padding-right: 8px; }
.offer--games .offer__body p { color: var(--ink); }
.offer__media--mascot { flex: none; min-height: 0; overflow: visible; padding: 18px 18px 0 0; }
.offer__media--mascot img { width: clamp(112px, 11vw, 160px); height: auto; object-fit: contain; margin-bottom: -4px; filter: drop-shadow(0 12px 16px rgb(8 38 59 / .3)); }

.process { margin-top: 24px; padding: clamp(24px, 3.5vw, 40px); border-radius: 32px; background: var(--surface); box-shadow: var(--card-shadow); }
.process__title { font-size: 1.5rem; font-weight: 700; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.steps:not(.steps--app)::before {
  content: ""; position: absolute; top: 9px; left: 10px; right: 10px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--btn), color-mix(in oklab, var(--btn) 30%, var(--line)));
}
.steps:not(.steps--app) li { position: relative; padding-top: 38px; }
.steps:not(.steps--app) li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 5px solid var(--btn);
}
.steps__when { color: var(--link); font: 700 .9375rem/1.3 "Outfit", sans-serif; }
.steps strong { display: block; margin-top: 2px; font: 800 1.6rem/1.2 "Outfit", sans-serif; letter-spacing: -.02em; }
.steps p { margin-top: 6px; color: var(--text-soft); }
.promises { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.promises li { display: inline-flex; align-items: center; gap: 10px; font: 600 1rem "Outfit", sans-serif; }
.promises .icon { color: var(--link); width: 22px; height: 22px; }
.process__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.process__cta p { color: var(--text-soft); font-size: .9375rem; }

/* Contact */
.contact { background: var(--bg-tint); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 72px); align-items: start; }
.contact__intro h2 { font-size: clamp(3rem, 1.8rem + 4.5vw, 5.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.contact__intro > p { margin-top: 16px; max-width: 36ch; color: var(--text-soft); font-size: 1.125rem; }
.contact__direct { display: grid; gap: 4px; margin-top: 28px; }
.contact__direct a, .contact__static { display: inline-flex; align-items: center; gap: 14px; padding: 8px 0; color: var(--text); text-decoration: none; }
.contact__direct a:hover strong + * , .contact__direct a:hover { color: var(--link); }
.contact__direct .icon { box-sizing: content-box; width: 22px; height: 22px; padding: 11px; border-radius: 999px; background: var(--surface); color: var(--link); }
.contact__direct span > strong { display: block; font: 700 .875rem/1.2 "Outfit", sans-serif; color: var(--text-soft); }
.contact__direct span { font: 600 1.0625rem/1.35 "Outfit", sans-serif; }
.contact__mascot { width: min(220px, 50%); margin-top: 28px; }

.contact-form { display: grid; gap: 20px; padding: clamp(22px, 3.5vw, 40px); border-radius: 32px; background: var(--surface); box-shadow: var(--card-shadow); }
.field { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; }
.field label, .field legend { font: 600 1rem/1.3 "Outfit", sans-serif; }
.field legend { margin-bottom: 10px; padding: 0; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--btn); box-shadow: 0 0 0 4px color-mix(in oklab, var(--btn) 28%, transparent); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__hint { color: var(--text-soft); font-size: .875rem; }
.field__error { color: var(--error); font-size: .875rem; font-weight: 600; }
.field__error:empty { display: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-block; padding: 10px 17px; border: 2px solid var(--line); border-radius: 999px;
  font: 600 .9375rem/1.2 "Outfit", sans-serif; transition: background-color .15s, border-color .15s;
}
.choice:hover span { border-color: var(--btn); }
.choice input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--ink); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-bottom: 5px; }
.form-note { color: var(--text-soft); font-size: .875rem; }
.form-status:empty { display: none; }
.form-status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--bg-tint); font-weight: 600; }
.form-status img { width: 64px; height: auto; flex: none; }
.form-status.is-error { background: color-mix(in oklab, var(--error) 14%, transparent); color: var(--error); }

/* Footer */
.site-footer { padding-block: 56px 28px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__brand img { width: 92px; height: auto; }
.site-footer__brand p { margin-top: 14px; max-width: 30ch; color: var(--text-soft); }
.site-footer h2 { margin-bottom: 12px; font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer li a { color: var(--text-soft); text-decoration: none; }
.site-footer li a:hover { color: var(--text); text-decoration: underline; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-soft); font-size: .875rem; }

/* Detail pages */
.detail { position: relative; isolation: isolate; padding-top: 18px; }
.detail__glow {
  position: absolute; z-index: -1; inset: -120px 0 auto; height: 640px; pointer-events: none;
  background:
    radial-gradient(50% 60% at 25% 30%, color-mix(in oklab, var(--w2) var(--glow-strength), transparent), transparent 70%),
    radial-gradient(45% 55% at 80% 20%, color-mix(in oklab, var(--w1) var(--glow-strength), transparent), transparent 70%);
  filter: blur(30px);
}
.back-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 2px; color: var(--link); font: 700 1rem "Outfit", sans-serif; text-decoration: none; }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-hero { margin-top: 10px; }
.detail-hero__art { aspect-ratio: 21 / 9; max-height: 56vh; width: 100%; overflow: hidden; border-radius: 32px; box-shadow: 0 40px 70px -40px rgb(var(--shadow-rgb) / .7); }
.detail-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.detail-hero__info { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 clamp(8px, 2vw, 32px); }
.detail-hero__icon { width: 112px; height: 112px; margin-top: -40px; border: 6px solid var(--bg); border-radius: 30px; box-shadow: 0 16px 30px -16px rgb(var(--shadow-rgb) / .6); align-self: start; }
.detail-hero__text { padding-top: 22px; }
.detail-hero__genre { color: var(--text-soft); font: 600 1rem "Outfit", sans-serif; }
.detail h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.detail-hero__tagline { margin-top: 8px; font: 600 clamp(1.125rem, 1rem + .5vw, 1.4rem)/1.35 "Outfit", sans-serif; }
.gp-badge { display: block; flex: none; margin: 12px -10px 0; border-radius: 12px; }
.gp-badge img { width: auto; height: 78px; }

.shot-rail {
  display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 6px max(16px, calc((100% - var(--wrap)) / 2)) 22px; scroll-padding-inline: max(16px, calc((100% - var(--wrap)) / 2));
  scrollbar-width: thin;
}
.shot-rail img { flex: none; width: auto; height: clamp(380px, 56vh, 540px); border-radius: 22px; scroll-snap-align: start; box-shadow: 0 20px 40px -26px rgb(var(--shadow-rgb) / .6); }
.shot-rail--landscape img { height: clamp(220px, 36vh, 360px); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.prose h2 { margin-bottom: 14px; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; }
.prose p { max-width: 60ch; color: var(--text-soft); }
.prose p + p { margin-top: 14px; }
.prose .lead { color: var(--text); font-size: 1.25rem; line-height: 1.5; }
.feature-groups { display: grid; gap: 14px; }
.feature-group { padding: 22px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); }
.feature-group h3 { font-size: 1.15rem; font-weight: 700; }
.feature-group ul { display: grid; gap: 6px; margin-top: 10px; }
.feature-group li { position: relative; padding-left: 20px; color: var(--text-soft); }
.feature-group li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 3px; background: var(--btn); }

.kit { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding: clamp(22px, 3vw, 32px); border-radius: 28px; background: var(--surface); box-shadow: var(--card-shadow); }
.kit h2 { font-size: 1.5rem; font-weight: 700; }
.kit p { margin-top: 6px; max-width: 52ch; color: var(--text-soft); }
.kit .btn { margin-bottom: 5px; }

.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mini-card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface); box-shadow: var(--card-shadow); color: var(--text); text-decoration: none; transition: transform .25s var(--ease-out); }
.mini-card:hover { transform: translateY(-3px); }
.mini-card img { width: 56px; height: 56px; border-radius: 15px; }
.mini-card strong { display: block; font: 700 1.0625rem/1.25 "Outfit", sans-serif; }
.mini-card small { color: var(--text-soft); font-size: .875rem; }

.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 32px; padding: clamp(24px, 4vw, 40px); border-radius: 32px; background: var(--btn); color: var(--ink); }
.cta-band p { max-width: 30ch; font: 800 clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem)/1.1 "Outfit", sans-serif; letter-spacing: -.03em; }
.cta-band .btn { --_bg: #08263b; --_fg: #fff; --_edge: #020d16; margin-bottom: 5px; }

.app-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: 18px 24px; }
.app-hero .detail-hero__icon { margin: 0 0 18px; border-color: var(--surface); }
.app-hero__summary { margin-top: 14px; max-width: 46ch; color: var(--text-soft); font-size: 1.125rem; }
.app-hero .gp-badge { margin-top: 18px; width: fit-content; }
.app-hero__phones { position: relative; isolation: isolate; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.app-hero__phones::before {
  content: ""; position: absolute; z-index: -1; inset: 6% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 50%, transparent), transparent); filter: blur(26px);
}
.app-hero__phones .phone { width: 40%; }
.app-hero__phones .phone--1 { z-index: 2; transform: rotate(-4deg) translateX(8%); }
.app-hero__phones .phone--2 { transform: rotate(5deg) translate(-8%, 6%) scale(.94); }
.steps--app { margin-top: 0; }
.steps--app li { padding: 22px 24px; border-radius: 24px; background: var(--surface); box-shadow: var(--card-shadow); }
.ticks--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin-top: 26px; }
.fineprint { margin-top: 18px; color: var(--text-soft); font-size: .875rem; }

.not-found__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 820px; }
.not-found h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; }
.not-found p { margin-top: 12px; color: var(--text-soft); font-size: 1.125rem; }

/* Scroll reveal (only when JS runs and motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .showcase__art img, .showcase__slide.is-active .showcase__art img { transform: none; }
}

/* Tablet */
@media (max-width: 1023px) {
  .site-nav a { padding: 9px 11px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__lede { max-width: 46ch; }
  .game-card--wide, .game-card--narrow { grid-column: span 6; }
  .app-explorer { grid-template-columns: 1fr; }
  .app-tabs { position: static; flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .app-tabs::-webkit-scrollbar { display: none; }
  .app-tab { flex: none; width: auto; scroll-snap-align: start; padding: 10px 16px 10px 10px; }
  .app-tab[aria-selected="true"] { box-shadow: inset 0 -4px 0 var(--accent), var(--card-shadow); }
  .studio__grid, .contact__grid, .about-grid { grid-template-columns: 1fr; }
  .offer--apps, .offer--web, .offer--games { grid-column: span 12; grid-row: auto; }
  .offer--apps .offer__media { min-height: 0; aspect-ratio: 4 / 3; }
  .offer--web .offer__media { aspect-ratio: 16 / 9; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .app-hero { grid-template-columns: 1fr; }
  .ticks--wide { grid-template-columns: 1fr; }
}

/* Menu collapses before the nav runs out of room */
@media (max-width: 899px) {
  .menu-btn { display: grid; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; display: none; margin: 0;
    padding: 8px 16px 18px; background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(var(--shadow-rgb) / .45);
  }
  .nav-open .site-nav { display: block; }
  .nav-open .menu-btn .icon--open { display: none; }
  .nav-open .menu-btn .icon--close { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 14px 12px; border-radius: 14px; font-size: 1.25rem; }
  .site-nav + .site-header__actions { margin-left: auto; }
}

/* Phone */
@media (max-width: 767px) {
  .brand img { height: 38px; }
  .site-header__actions .btn--small { padding: 0 14px; }
  .hero { padding-top: 20px; }
  .showcase__dock { --dock-icon: 40px; gap: 2px; padding: 5px; border-radius: 18px; }
  .showcase__tabs { gap: 2px; }
  .dock-btn__icon { border-radius: 11px; }
  .dock-pause { width: 34px; height: 34px; }
  .showcase__art { border-radius: 22px; }
  .showcase__caption { padding-top: 44px; }
  .game-grid { gap: 18px; }
  .game-card--wide, .game-card--narrow { grid-column: span 12; }
  .game-card__art { height: auto; aspect-ratio: 16 / 9; }
  .game-card__body { grid-template-columns: auto minmax(0, 1fr); }
  .store-link { grid-column: 1 / -1; justify-self: start; margin-top: 0; order: 1; }
  .app-panel { grid-template-columns: 1fr; }
  .app-panel__shots { min-height: 0; padding-block: 8px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps:not(.steps--app)::before { top: 10px; bottom: 10px; left: 9px; right: auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--btn), color-mix(in oklab, var(--btn) 30%, var(--line))); }
  .steps:not(.steps--app) li { padding: 0 0 22px 40px; }
  .steps--app { gap: 12px; }
  .offer__media--mascot img { width: 104px; }
  .detail-hero__art { aspect-ratio: 16 / 10; border-radius: 24px; }
  .detail-hero__info { grid-template-columns: auto minmax(0, 1fr); padding: 0 6px; gap: 16px; }
  .detail-hero__icon { width: 88px; height: 88px; margin-top: -30px; border-radius: 24px; }
  .detail-hero__info .gp-badge { grid-column: 1 / -1; }
  .detail-hero__text { padding-top: 12px; }
  .shot-rail img { height: min(70vh, 460px); }
  .shot-rail--landscape img { height: auto; width: 86vw; }
  .app-hero__phones { min-height: 380px; }
  .not-found__grid { grid-template-columns: 1fr; }
  .not-found__grid img { width: 160px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 349px) {
  .site-header__actions .btn--small { display: none; }
}
