:root {
  --bg: #ffffff;
  --soft: #f4f6f8;
  --panel: #ffffff;
  --line: #e2e6eb;
  --fg: #12161c;
  --text: #3a424d;
  --muted: #6b7480;
  --cyan: #3fe0ff;
  --accent: var(--cyan);
  --ink: #0a87a8;
  --radius: 6px;
  color-scheme: light;
  font-family: "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; }
h1 em { font-style: normal; color: var(--ink); }
h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow { margin: 0 0 12px; color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.lede { font-size: 18px; color: var(--text); max-width: 640px; margin: 20px 0 0; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { border-radius: var(--radius); }
.brand b { color: #0a87a8; font-weight: 800; }
.top nav { display: flex; gap: 6px; }
.top nav a { text-decoration: none; padding: 8px 14px; border-radius: var(--radius); color: var(--muted); font-weight: 600; }
.top nav a:hover, .top nav a[aria-current] { color: var(--fg); background: var(--soft); }

.button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius); background: var(--accent); color: #0a0c10; font-weight: 700; text-decoration: none; }
.button.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.button:hover { filter: brightness(1.08); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Heroes stay dark: video or screenshot behind white text. */
.hero { color: #fff; }
.hero .eyebrow, .hero h1 em { color: var(--accent); }
.hero .lede { color: #e4e8ee; }

/* Studio hero: Living Room Blaster's gameplay video, darkened on the left and bottom for the text. */
.hero.studio { position: relative; display: flex; align-items: center; min-height: min(86vh, 800px); overflow: hidden; background: #1a0630; isolation: isolate; }
.hero-video { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; z-index: -1; inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 4, 28, .88) 0%, rgba(14, 4, 28, .6) 38%, rgba(14, 4, 28, .05) 70%),
    linear-gradient(0deg, rgba(14, 4, 28, .55) 0%, rgba(14, 4, 28, 0) 35%),
    linear-gradient(180deg, rgba(14, 4, 28, .55) 0%, rgba(14, 4, 28, 0) 22%);
}
.hero-copy { max-width: 640px; padding-block: 64px; }

section { margin-block: 88px; }
.hero { margin-top: 0; }
.head { margin-bottom: 28px; }

/* App cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 30px rgba(18, 22, 28, .08); }
.card-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; padding: 3px 9px; border-radius: 4px; background: rgba(10,12,16,.8); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card-body { padding: 20px 22px 22px; }
.card-body p { margin: 8px 0 0; color: var(--text); }
.card-body .kind { margin: 0 0 6px; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-body h3 { display: flex; align-items: center; gap: 10px; }
.card-body h3 img { border-radius: var(--radius); }
.card-body .platforms { color: var(--muted); font-size: 14px; }

/* The app list: one app per row, screenshot on the left. */
.cards.list { grid-template-columns: 1fr; }
.cards.list .card { flex-direction: row; align-items: stretch; }
.cards.list .card-img { flex: 0 0 44%; aspect-ratio: auto; min-height: 240px; }
.cards.list .card-body { align-self: center; padding: 28px 32px; }
.cards.list .card-body h3 { font-size: 26px; }
.cards.list .card-body p { font-size: 17px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid3 > div { padding: 24px; border-radius: var(--radius); background: var(--soft); border-top: 3px solid var(--ink); }
.grid3 p { color: var(--text); margin: 10px 0 0; }

.page-head { margin-top: 64px; }

/* App page */
.hero.app { position: relative; padding: 48px 0 72px; min-height: min(70vh, 620px); display: flex; align-items: flex-end; isolation: isolate; background: #000 var(--hero) center / cover no-repeat; }
.hero.app::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,12,16,.92) 0%, rgba(10,12,16,.65) 45%, rgba(10,12,16,.1) 80%), linear-gradient(0deg, rgba(10,12,16,.5) 0%, transparent 35%); }
.hero.app h1 { display: flex; align-items: center; gap: 18px; }
.hero.app h1 img { border-radius: 12px; flex: none; }
.back { display: inline-block; margin-bottom: 40px; color: #c9ced6; text-decoration: none; font-weight: 600; }
.back:hover { color: #fff; }
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prose p { font-size: 18px; color: var(--text); margin: 0 0 18px; }
.facts { padding: 26px; border-radius: var(--radius); background: var(--soft); border-top: 3px solid var(--accent); }
.facts h2 { font-size: 22px; }
.facts h3 { font-size: 14px; margin-top: 22px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.features { list-style: none; padding: 0; margin: 14px 0 0; }
.features li { padding: 8px 0 8px 22px; position: relative; border-bottom: 1px solid var(--line); }
.features li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 4px 12px; border-radius: 4px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 18px; }

@media (max-width: 860px) {
  .split, .cards, .cards.three, .grid3 { grid-template-columns: 1fr; }
  .cards.list .card { flex-direction: column; }
  .cards.list .card-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .cards.list .card-body { padding: 20px 22px 22px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  section { margin-block: 64px; }
  .hero.studio { align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(14, 4, 28, .92) 0%, rgba(14, 4, 28, .7) 45%, rgba(14, 4, 28, .1) 80%), linear-gradient(180deg, rgba(14, 4, 28, .55) 0%, rgba(14, 4, 28, 0) 22%); }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }
