:root {
  color-scheme: light;
  --bg: #f7fbff;
  --surface: #ffffff;
  --ink: #14213d;
  --muted: #52616f;
  --line: #d9e7f5;
  --blue: #1b75d0;
  --blue-dark: #0f4f93;
  --green: #2fb36d;
  --shadow: 0 20px 60px rgba(20, 33, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #edf8ff 0%, var(--bg) 44%, #ffffff 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

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

.brand img {
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(27, 117, 208, 0.24);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--blue-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: 56px;
  min-height: calc(100vh - 96px);
  padding: 40px 0 76px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-size: 5.4rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.hero p,
.section > p,
.app-listing p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(27, 117, 208, 0.25);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--blue-dark);
}

.phone-preview {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(330px, 100%);
  aspect-ratio: 9 / 16;
  border: 12px solid #17223b;
  border-radius: 34px;
  background: #17223b;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7), transparent 24%),
    linear-gradient(180deg, #4fc3ff 0%, #1b75d0 58%, #13457f 100%);
}

.game-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 42px 42px;
}

.game-screen strong {
  position: absolute;
  right: 22px;
  bottom: 28px;
  left: 22px;
  color: #ffffff;
  font-size: 2.9rem;
  line-height: 1;
  text-shadow: 0 5px 18px rgba(12, 38, 70, 0.36);
}

.tile {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  min-height: 42px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue-dark);
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(11, 50, 88, 0.22);
}

.tile-a {
  top: 14%;
  left: 15%;
}

.tile-b {
  top: 27%;
  right: 13%;
  background: #e7fff1;
  color: #176f42;
}

.tile-c {
  top: 43%;
  left: 18%;
}

.tile-d {
  top: 56%;
  right: 15%;
  min-width: 96px;
  background: #fff8d8;
  color: #765a00;
}

.section {
  padding: 86px 0;
}

.app-listing {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 24px;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(20, 33, 61, 0.08);
}

.app-listing img {
  width: 112px;
  height: 112px;
  border-radius: 20px;
}

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

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
}

.compact {
  max-width: 760px;
  margin-inline: 0;
  padding-top: 24px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding-top: 32px;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .game-screen strong {
    font-size: 2.35rem;
  }

  .phone-frame {
    width: min(290px, 92vw);
  }

  .app-listing {
    grid-template-columns: 1fr;
  }

  dl {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
