/* Glintworks: small games that shine. No external requests: the font is self-hosted. */
@font-face {
  font-family: 'Rubik';
  src: url('fonts/rubik-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --bg: #060917;
  --bg-2: #0b1030;
  --card: rgba(16, 22, 56, 0.72);
  --stroke: rgba(140, 170, 255, 0.16);
  --ink: #eef3ff;
  --muted: #9aa6d2;
  --cyan: #4fe3ff;
  --violet: #8a5cff;
  --pink: #ff6bd6;
  --gold: #ffd24a;
  --radius: 22px;
  --wrap: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ the sky */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgba(138, 92, 255, 0.22), transparent 70%),
    radial-gradient(50vmax 35vmax at -10% 30%, rgba(79, 227, 255, 0.12), transparent 70%),
    radial-gradient(45vmax 30vmax at 70% 110%, rgba(255, 107, 214, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg) 100%);
}

.sky::before,
.sky::after {
  content: '';
  position: absolute;
  inset: -50%;
  background-repeat: repeat;
  animation: drift 240s linear infinite;
}

/* Two star layers at different sizes and speeds, like the game's sky. */
.sky::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(220, 230, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(220, 230, 255, 0.6), transparent 60%),
    radial-gradient(1.2px 1.2px at 80px 160px, rgba(220, 230, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 190px 200px, rgba(220, 230, 255, 0.5), transparent 60%);
  background-size: 220px 220px;
}

.sky::after {
  background-image:
    radial-gradient(1.6px 1.6px at 60px 80px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(2px 2px at 300px 260px, rgba(180, 230, 255, 0.8), transparent 60%),
    radial-gradient(1.4px 1.4px at 220px 40px, rgba(255, 210, 250, 0.8), transparent 60%);
  background-size: 380px 380px;
  animation-duration: 160s;
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sky::before,
  .sky::after {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------------ layout */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 20px;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 23, 0.6);
  border-bottom: 1px solid rgba(140, 170, 255, 0.08);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 210, 74, 0.55));
}

nav.links {
  display: flex;
  gap: 22px;
  font-weight: 600;
  font-size: 15px;
}

nav.links a {
  color: var(--muted);
  text-decoration: none;
}

nav.links a:hover,
nav.links a[aria-current='page'] {
  color: var(--ink);
}

section {
  padding-block: 72px;
  /* The fanned phones are tilted; keep their corners from widening the page. */
  overflow-x: clip;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 20px);
  max-width: 34em;
  margin: 18px 0 0;
}

/* ------------------------------------------------------------------ studio hero */

.studio {
  padding-top: 88px;
  padding-bottom: 24px;
  text-align: center;
}

.studio h1 {
  font-size: clamp(42px, 8vw, 84px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 14px;
}

.studio h1 .shine {
  background: linear-gradient(100deg, #fff 20%, var(--gold) 45%, #fff 60%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0%,
  35% {
    background-position: 100% 0;
  }
  65%,
  100% {
    background-position: 0% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio h1 .shine {
    animation: none;
    background-position: 50% 0;
  }
}

.studio .lead {
  margin-inline: auto;
}

/* ------------------------------------------------------------------ the game */

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

@media (min-width: 900px) {
  .game {
    grid-template-columns: 1.05fr 1fr;
  }
}


.game-info {
  min-width: 0;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.app-row img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(79, 227, 255, 0.25);
}

.app-row .meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.app-row .meta b {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

/* The game's own logo treatment. */
.logo {
  display: flex;
  flex-direction: column;
  font-weight: 800;
  font-size: clamp(56px, 10vw, 96px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin: 6px 0 0;
}

.logo span {
  background: linear-gradient(180deg, #ffffff 10%, #9fe6ff 55%, #7c6bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(79, 227, 255, 0.35));
  width: fit-content;
}

.logo span + span {
  background-image: linear-gradient(180deg, #ffd0f4 0%, #ff6bd6 50%, #a35cff 100%);
  filter: drop-shadow(0 4px 24px rgba(255, 107, 214, 0.35));
}

.tagline {
  margin: 14px 0 0;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.game-info p.copy {
  margin: 22px 0 0;
  max-width: 36em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(79, 227, 255, 0.16), rgba(138, 92, 255, 0.2));
  border: 1px solid rgba(79, 227, 255, 0.35);
  font-weight: 700;
  line-height: 1.2;
}

.soon svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.soon small {
  display: block;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}

.fine {
  color: var(--muted);
  font-size: 14px;
}

/* Phones: a fanned stack of three screenshots. */
.phones {
  position: relative;
  height: clamp(420px, 62vw, 600px);
  max-width: 520px;
  width: 100%;
  margin-inline: auto;
}

.phone {
  position: absolute;
  top: 0;
  width: 46%;
  aspect-ratio: 720 / 1559;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(160, 180, 255, 0.28);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(10, 14, 40, 0.9);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phones .phone:nth-child(1) {
  left: 0;
  top: 8%;
  transform: rotate(-8deg);
}

.phones .phone:nth-child(2) {
  left: 27%;
  z-index: 2;
}

.phones .phone:nth-child(3) {
  right: 0;
  top: 8%;
  transform: rotate(8deg);
}

/* ------------------------------------------------------------------ features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 40px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(79, 227, 255, 0.12);
  color: var(--cyan);
}

.feature:nth-child(3n + 2) .icon {
  background: rgba(255, 107, 214, 0.12);
  color: var(--pink);
}

.feature:nth-child(3n + 3) .icon {
  background: rgba(255, 210, 74, 0.12);
  color: var(--gold);
}

.feature .icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  font-size: 19px;
  font-weight: 700;
}

.feature p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ------------------------------------------------------------------ screenshot strip */

.strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 22px;
  margin-top: 36px;
  scrollbar-width: thin;
}

.strip figure {
  flex: 0 0 min(62vw, 240px);
  margin: 0;
  scroll-snap-align: center;
}

.strip .phone {
  position: relative;
  width: 100%;
}

.strip figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ prose (privacy) */

.prose {
  max-width: 68ch;
  padding-block: 64px 80px;
}

.prose h1 {
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 800;
}

.prose .updated {
  color: var(--muted);
  margin-top: 10px;
}

.prose h2 {
  font-size: 22px;
  margin-top: 40px;
}

.prose p,
.prose li {
  color: #d6ddf5;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.prose .summary {
  margin-top: 28px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--stroke);
}

.prose .summary p {
  margin: 0;
}

/* ------------------------------------------------------------------ footer */

footer {
  border-top: 1px solid rgba(140, 170, 255, 0.08);
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--ink);
}

/* Wide screens: all five screenshots in one row, no scrolling. */
@media (min-width: 1000px) {
  .strip {
    overflow: visible;
  }
  .strip figure {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Very narrow phones: a tighter header so the wordmark and links fit. */
@media (max-width: 380px) {
  .wrap {
    padding-inline: 16px;
  }
  .brand {
    font-size: 18px;
    gap: 8px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  nav.links {
    gap: 14px;
    font-size: 14px;
  }
}
