:root {
  color-scheme: light;
  --background: #f4f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #5f6b7a;
  --primary: #1458e5;
  --primary-dark: #0d3fa9;
  --border: #dce3ec;
  --warning: #fff3cd;
  --warning-border: #e0aa00;
}

* { box-sizing: border-box; }

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

a { color: var(--primary); }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links { display: flex; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--primary); }

.hero {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 60px;
}

.eyebrow { color: var(--primary); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 10px 0 20px; font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: -.04em; }
.hero p { max-width: 680px; color: var(--muted); font-size: 1.2rem; }
.tagline { font-weight: 700; color: var(--text) !important; }

.wallet-visual {
  overflow: hidden;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgb(20 88 229 / 18%);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.wallet-visual:hover {
  transform: translateY(-7px);
  box-shadow:
    0 36px 78px rgb(20 88 229 / 28%),
    0 0 34px rgb(20 88 229 / 22%);
}

.wallet-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  .wallet-visual { transition: none; }
  .wallet-visual:hover { transform: none; }
}

.section { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0; }
.section h2 { margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.section-intro { max-width: 700px; color: var(--muted); }
.features { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.feature:hover {
  transform: translateY(-5px);
  border-color: rgb(20 88 229 / 32%);
  box-shadow: 0 18px 40px rgb(20 88 229 / 14%), 0 0 20px rgb(20 88 229 / 10%);
}
.feature h3 { margin-top: 0; }
.feature p { margin-bottom: 0; color: var(--muted); }

.game-rules {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.rules-heading h2 { margin-top: 10px; }
.rules-list { display: grid; gap: 16px; }
.rule {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.rule:hover {
  transform: translateY(-5px);
  border-color: rgb(20 88 229 / 32%);
  box-shadow: 0 18px 40px rgb(20 88 229 / 14%), 0 0 20px rgb(20 88 229 / 10%);
}
.rule-number { color: var(--primary); font-size: 1.1rem; font-weight: 800; }
.rule h3 { margin: 0 0 4px; }
.rule p { margin: 0; color: var(--muted); }
.rule-video {
  display: block;
  width: 50%;
  height: auto;
  margin: 18px auto 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--background);
}

@media (prefers-reduced-motion: reduce) {
  .feature,
  .rule { transition: none; }
  .feature:hover,
  .rule:hover { transform: none; }
}

.app-showcase { padding-top: 80px; }
.showcase-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 34px;
}
.showcase-heading h2 { margin-top: 10px; }
.showcase-heading .section-intro { margin-bottom: 8px; }
.screenshots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.app-screen { min-width: 0; margin: 0; }
.app-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 18px 45px rgb(21 32 51 / 12%);
}
.app-screen figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  margin-top: 18px;
}
.app-screen figcaption span { grid-row: 1 / 3; color: var(--primary); font-weight: 800; }
.app-screen figcaption strong { line-height: 1.4; }
.app-screen figcaption small { margin-top: 4px; color: var(--muted); line-height: 1.5; }

.document { width: min(820px, calc(100% - 40px)); margin: 48px auto; padding: 42px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.document h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.document h2 { margin-top: 38px; font-size: 1.35rem; }
.meta { color: var(--muted); }
.placeholder { padding: 14px 18px; border-left: 4px solid var(--warning-border); background: var(--warning); }

.site-footer { margin-top: 72px; padding: 36px 20px; border-top: 1px solid var(--border); text-align: center; color: var(--muted); }
.site-footer a { margin: 0 8px; }

@media (max-width: 760px) {
  .nav { padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .wallet-visual { width: min(100%, 420px); justify-self: center; }
  .features { grid-template-columns: 1fr; }
  .game-rules { grid-template-columns: 1fr; gap: 28px; }
  .showcase-heading { display: block; }
  .screenshots {
    grid-template-columns: 1fr;
    gap: 36px;
    overflow: visible;
    padding: 4px 0 20px;
  }
  .document { margin: 24px auto; padding: 26px 22px; }
}
