:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #5f6d69;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --line: #d8e0dd;
  --teal: #0f4a43;
  --teal-soft: #dcece7;
  --coral: #ff6862;
  --yellow: #ffc95f;
  --mint: #67cfb4;
  --blue: #3e6c9f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; letter-spacing: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  border-bottom: 1px solid rgba(216, 224, 221, .9);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
}

.nav-inner, .content, .footer-inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: #44534f; text-decoration: none; font-size: .9rem; font-weight: 650; }
.nav-links a:hover { color: var(--teal); }

.button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--coral);
  color: #201b1a;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.button:hover { background: #ff7a74; }
.button.secondary { border-color: #9eb1aa; background: transparent; color: #fff; }
.button.secondary:hover { border-color: #fff; }
.button.dark { background: var(--teal); color: #fff; }
.button.dark:hover { background: #176157; }

.hero {
  position: relative;
  min-height: min(720px, calc(100vh - 68px));
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #103f3b;
  color: #fff;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .32; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(8, 34, 31, .62); }
.hero-inner { position: relative; z-index: 1; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 70px; }
.kicker { margin: 0 0 16px; color: var(--mint); font-size: .78rem; font-weight: 850; text-transform: uppercase; }
.hero h1 { max-width: 720px; margin: 0; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: .98; letter-spacing: 0; }
.hero-copy { max-width: 620px; margin: 24px 0 0; color: #dce9e5; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin: 34px 0 0; padding: 0; list-style: none; color: #c9d9d5; font-size: .88rem; }

.band { padding: 86px 0; }
.band.white { background: var(--surface); }
.band.dark { background: #142523; color: #fff; }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2, .page-title h1 { margin: 0; color: inherit; font-size: 2.15rem; line-height: 1.12; }
.section-head p { margin: 14px 0 0; color: var(--muted); }
.dark .section-head p { color: #b9c8c4; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--teal); font-size: 2.4rem; line-height: 1; }
.stat span { display: block; margin-top: 10px; color: var(--muted); }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border: 1px solid #bcc9c5; border-radius: 8px; box-shadow: 0 16px 34px rgba(20, 37, 35, .12); }
.shot figcaption { margin-top: 11px; color: var(--muted); font-size: .84rem; }

.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #40514d; }
.game { min-height: 116px; padding: 22px 20px; border-bottom: 1px solid #40514d; }
.game:not(:nth-child(3n + 1)) { border-left: 1px solid #40514d; }
.game strong { display: block; font-size: 1rem; }
.game span { display: block; margin-top: 6px; color: #aebeba; font-size: .8rem; }
.game b { display: inline-block; width: 10px; height: 10px; margin-right: 9px; border-radius: 2px; background: var(--coral); }
.game:nth-child(4n + 2) b { background: var(--yellow); }
.game:nth-child(4n + 3) b { background: var(--mint); }
.game:nth-child(4n + 4) b { background: #6f91bb; }

.cta-band { padding: 70px 0; background: var(--yellow); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cta-inner h2 { margin: 0; font-size: 2rem; }
.cta-inner p { margin: 8px 0 0; color: #5b4b2c; }

.page-title { padding: 72px 0 44px; border-bottom: 1px solid var(--line); background: #fff; }
.page-title p { max-width: 720px; margin: 15px 0 0; color: var(--muted); }
.status-note { margin-top: 20px; padding: 14px 16px; border-left: 4px solid var(--yellow); background: #fff8e6; color: #5c4a27; }
.prose { width: min(780px, 100%); padding: 54px 0 86px; }
.prose h2 { margin: 42px 0 10px; color: var(--teal); font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #43514d; }
.prose a { color: var(--teal); font-weight: 700; }
.prose code { padding: 2px 5px; background: #e7eeeb; border-radius: 3px; }

.download-shell { min-height: calc(100vh - 68px); display: grid; align-items: center; padding: 64px 0; background: #f0f4f2; }
.download-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr); gap: 70px; align-items: center; }
.app-icon { width: 96px; height: 96px; border-radius: 8px; box-shadow: 0 12px 24px rgba(15, 74, 67, .2); }
.download-copy h1 { margin: 26px 0 0; font-size: 3.3rem; line-height: 1; }
.download-copy > p { margin: 18px 0 0; color: var(--muted); }
.release-box { margin-top: 28px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.release-box strong, .release-box span { display: block; }
.release-box span { margin-top: 5px; color: var(--muted); font-size: .87rem; }
.download-visual { position: relative; min-height: 620px; }
.download-visual img { position: absolute; width: min(310px, 68%); aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border: 1px solid #b9c6c2; border-radius: 8px; box-shadow: 0 22px 50px rgba(22, 45, 41, .18); }
.download-visual img:first-child { left: 0; top: 0; }
.download-visual img:last-child { right: 0; bottom: 0; }

.form-panel { width: min(620px, 100%); margin: 50px 0 86px; padding: 30px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 750; }
.field input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #9eaaa6; border-radius: 5px; background: #fff; }
.confirm { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; color: #495652; }
.confirm input { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.form-status { min-height: 24px; margin: 16px 0 0; color: #8c2f2a; font-weight: 650; }
.form-status.success { color: #126246; }

.site-footer { padding: 42px 0; border-top: 1px solid #31423e; background: #142523; color: #dce5e2; }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c1d1cc; text-decoration: none; font-size: .86rem; }
.footer-meta { color: #8fa29d; font-size: .8rem; }

@media (max-width: 880px) {
  .nav-links a:not(.button) { display: none; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game:not(:nth-child(3n + 1)) { border-left: 0; }
  .game:nth-child(even) { border-left: 1px solid #40514d; }
  .download-layout { grid-template-columns: 1fr; gap: 46px; }
  .download-visual { min-height: 560px; width: min(560px, 100%); }
}

@media (max-width: 600px) {
  .nav-inner, .content, .footer-inner, .hero-inner { width: min(100% - 28px, 1160px); }
  .brand span { max-width: 152px; line-height: 1.05; }
  .nav-links { gap: 8px; }
  .nav-links .button { min-height: 40px; padding: 0 13px; font-size: .78rem; }
  .hero { min-height: 680px; }
  .hero-media { object-position: 35% center; opacity: .2; }
  .hero-inner { padding-bottom: 46px; }
  .hero h1 { max-width: 330px; font-size: 2.8rem; line-height: 1.02; }
  .band { padding: 64px 0; }
  .stat-row { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .shots { gap: 10px; }
  .game-grid { grid-template-columns: 1fr; }
  .game:nth-child(even) { border-left: 0; }
  .cta-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .page-title { padding: 50px 0 34px; }
  .download-copy h1 { font-size: 2.55rem; }
  .download-visual { min-height: 470px; }
  .download-visual img { width: 62%; }
  .form-panel { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
