:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5d6b7f;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --line: #dfe7ec;
  --teal: #00a8a8;
  --coral: #ff6b5a;
  --gold: #f2b705;
  --navy: #06162f;
  --shadow: 0 16px 40px rgba(20, 33, 61, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 231, 236, 0.9);
  backdrop-filter: blur(16px);
}

.brand,
.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 68% 28%, #ffffff 0 10%, transparent 11%),
    linear-gradient(135deg, var(--teal), var(--gold) 52%, var(--coral));
  box-shadow: 0 8px 20px rgba(0, 168, 168, 0.25);
}

.nav-links {
  gap: clamp(10px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

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

.nav-links a[aria-current="page"],
.nav-links a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(82svh, 780px);
  padding: clamp(72px, 12vw, 142px) clamp(20px, 6vw, 80px) clamp(52px, 8vw, 96px);
  overflow: hidden;
  color: #ffffff;
  background-image:
    linear-gradient(90deg, rgba(6, 22, 47, 0.94) 0%, rgba(6, 22, 47, 0.68) 32%, rgba(6, 22, 47, 0.12) 64%),
    url("assets/hero-game.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  align-self: center;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #91fff5;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

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

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

.store-button {
  min-width: 150px;
  color: var(--navy);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.play-store {
  color: #ffffff;
  background: var(--teal);
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(20px, 6vw, 80px);
}

.compact-section {
  background: var(--soft);
}

.section-heading {
  max-width: 900px;
}

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

.feature-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.feature-card h3 {
  color: var(--ink);
}

.feature-card p,
.preview-copy p,
.document p,
.document li,
.site-footer {
  color: var(--muted);
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 1.22fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.preview-copy p {
  max-width: 560px;
}

.preview-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.preview-frame img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
}

.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--navy);
  color: #ffffff;
}

.info-band h2 {
  max-width: 680px;
}

.text-link {
  flex: 0 0 auto;
  color: var(--navy);
  background: #ffffff;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 16px;
}

.document-page {
  min-height: calc(100svh - 140px);
  padding: clamp(42px, 8vw, 86px) clamp(20px, 6vw, 80px);
  background:
    linear-gradient(180deg, var(--soft) 0, #ffffff 240px);
}

.document {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.document h1 {
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
}

.document h2 {
  margin-top: 36px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.document p,
.document ul,
.document ol {
  margin-top: 14px;
}

.document a {
  color: var(--teal);
  font-weight: 800;
}

.contact-panel {
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.contact-panel h2 {
  margin-top: 0;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .info-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 76svh;
    background-image:
      linear-gradient(180deg, rgba(6, 22, 47, 0.92) 0%, rgba(6, 22, 47, 0.58) 58%, rgba(6, 22, 47, 0.18) 100%),
      url("assets/hero-game.png");
    background-position: 62% center;
  }

  .feature-grid,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 140px;
  }
}

@media (max-width: 480px) {
  .store-actions,
  .store-button,
  .text-link {
    width: 100%;
  }

  .nav-links {
    font-size: 0.9rem;
  }

  .document {
    padding: 22px;
  }
}
