:root {
  color-scheme: light;
  --bg: #f7faf8;
  --paper: #ffffff;
  --ink: #17211d;
  --muted: #53625c;
  --line: #d9e3dd;
  --lane: #0e7c66;
  --lane-dark: #075849;
  --coral: #e46f54;
  --blue: #315fbd;
  --violet: #7460b8;
  --shadow: 0 18px 42px rgba(29, 43, 37, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

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

.shell {
  overflow: hidden;
}

.nav,
.hero-layout,
.mechanic-strip,
.story-band,
.screenshots,
.content,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.brand-cluster,
.footer-brandline,
.footer-platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.platform-logo,
.footer-platform-logo {
  border-radius: 8px;
}

.brand-divider,
.footer-brand-divider {
  width: 1px;
  height: 28px;
  background: var(--line);
}

.brand,
.footer-game,
.footer-platform {
  font-weight: 800;
  text-decoration: none;
}

.hero {
  position: relative;
  padding: 0 0 72px;
}

.hero::before {
  position: absolute;
  inset: 86px -18vw auto;
  z-index: -1;
  height: 340px;
  content: "";
  background:
    linear-gradient(90deg, rgba(14, 124, 102, 0.12) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(49, 95, 189, 0.1) 1px, transparent 1px) 0 0 / 64px 64px;
  transform: rotate(-2deg);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.82fr);
  align-items: center;
  gap: 48px;
  min-height: 560px;
}

.hero-copy {
  padding: 44px 0;
}

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

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

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  font-weight: 750;
}

.hero-summary,
.section-lead,
.content .lead {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-summary {
  max-width: 620px;
  margin: 20px 0 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(29, 43, 37, 0.08);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  border-color: var(--lane);
  background: var(--lane);
  color: #fff;
}

.button.is-disabled {
  cursor: default;
}

.phone-showcase {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
}

.phone-frame {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(23, 33, 29, 0.14);
  border-radius: 8px;
  background: #17211d;
  box-shadow: var(--shadow);
}

.phone-shot {
  width: 100%;
  border-radius: 6px;
  background: var(--paper);
}

.play-badge {
  position: absolute;
  right: 14px;
  bottom: 18px;
  max-width: calc(100% - 28px);
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(23, 33, 29, 0.8);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.mechanic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 72px;
}

.mechanic,
.shot-frame,
.panel,
.feature-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(29, 43, 37, 0.08);
}

.mechanic {
  padding: 18px;
}

.tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: #e9f4ef;
  color: var(--lane);
}

.tile-icon::before {
  width: 20px;
  height: 20px;
  content: "";
  border: 3px solid currentColor;
  border-radius: 5px;
}

.tile-icon.mark::before {
  border-radius: 50%;
}

.tile-icon.assign::before {
  width: 24px;
  height: 11px;
  border-width: 0 0 3px;
  border-radius: 0;
  transform: rotate(-34deg);
}

.tile-icon.explain::before {
  border-color: var(--coral);
  background: linear-gradient(currentColor 0 0) 50% 50% / 12px 3px no-repeat;
}

.mechanic strong,
.mechanic .detail {
  display: block;
}

.mechanic .detail {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1fr);
  align-items: center;
  gap: 44px;
  padding: 64px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-band p,
.content p,
.content li {
  color: var(--muted);
  line-height: 1.72;
}

.lane-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-height: 118px;
  padding: 18px;
}

.feature-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 22px 0 0 var(--blue), 44px 0 0 var(--violet);
  flex: 0 0 auto;
}

.screenshots {
  padding: 72px 0;
}

.screenshots-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.screenshots-header p {
  color: var(--muted);
  line-height: 1.68;
}

.shot-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.shot-frame {
  overflow: hidden;
  padding: 12px;
}

.content {
  max-width: 860px;
  padding: 38px 0 76px;
}

.content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.content h2 {
  margin-top: 34px;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}

.panel {
  margin: 28px 0;
  padding: 22px;
}

.icon-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.icon-list li,
.contact-line,
.privacy-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.inline-icon,
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.footer-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.language-options {
  position: absolute;
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 160px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.language-options a {
  padding: 9px 10px;
  border-radius: 6px;
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="page"] {
  background: #e9f4ef;
}

@media (max-width: 820px) {
  .hero-layout,
  .story-band,
  .screenshots-header {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 20px;
    min-height: 0;
  }

  .mechanic-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: column;
  }

  .footer-actions,
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-layout,
  .mechanic-strip,
  .story-band,
  .screenshots,
  .content,
  .footer {
    width: min(100% - 22px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-bottom: 46px;
  }

  .hero-copy {
    padding: 24px 0;
  }

  .actions,
  .mechanic-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
