:root {
  color-scheme: light;
  --ink: #203047;
  --muted: #5b6b80;
  --sky: #9ee7ff;
  --grass: #49b86a;
  --leaf: #2f9d59;
  --dirt: #9b6b43;
  --gold: #ffca3a;
  --berry: #ff5b7f;
  --water: #45a7ff;
  --panel: #ffffff;
  --line: rgba(32, 48, 71, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7fbf1;
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  background: linear-gradient(var(--sky), #dff9ff 62%, #b9ef95 63%, #7ed46c);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
  gap: 32px;
  align-items: center;
  min-height: 88vh;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #31596b;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 26px;
  color: #30445d;
  font-size: 21px;
  line-height: 1.45;
}

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

.primary-actions {
  margin-bottom: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 2px solid rgba(32, 48, 71, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 0 rgba(32, 48, 71, 0.16);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.main {
  min-height: 64px;
  padding: 0 28px;
  background: var(--gold);
  border-color: #d79a00;
}

.button.small {
  min-height: 46px;
}

.button:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 rgba(32, 48, 71, 0.16);
}

.copy-status {
  min-height: 24px;
  color: #226146;
  font-weight: 750;
}

.sky span {
  position: absolute;
  display: block;
}

.sun {
  right: 10vw;
  top: 8vh;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffe174;
}

.cloud {
  width: 150px;
  height: 48px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: inherit;
}

.cloud::before {
  left: 24px;
}

.cloud::after {
  right: 18px;
}

.cloud-a {
  left: 7vw;
  top: 12vh;
}

.cloud-b {
  right: 24vw;
  top: 24vh;
  transform: scale(0.78);
}

.block-scene {
  min-height: 420px;
  display: grid;
  place-items: center;
}

.island {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1 / 0.82;
}

.block,
.tree,
.character {
  position: absolute;
  border: 3px solid rgba(32, 48, 71, 0.22);
  border-radius: 8px;
  box-shadow: 0 12px 0 rgba(32, 48, 71, 0.12);
}

.block {
  width: 122px;
  height: 122px;
}

.grass {
  background: linear-gradient(#59c86f 0 32%, #a87347 33%);
}

.stone {
  background: #a8b0ba;
}

.water {
  background: var(--water);
}

.a {
  left: 70px;
  top: 120px;
}

.b {
  left: 188px;
  top: 156px;
}

.c {
  left: 186px;
  top: 42px;
}

.d {
  left: 298px;
  top: 176px;
}

.trunk {
  left: 225px;
  top: 14px;
  width: 42px;
  height: 108px;
  background: var(--dirt);
}

.crown {
  left: 182px;
  top: -24px;
  width: 128px;
  height: 92px;
  background: var(--leaf);
}

.character {
  left: 108px;
  top: 64px;
  width: 58px;
  height: 90px;
  background: linear-gradient(#ffd9ad 0 28%, var(--berry) 29% 66%, #4169d8 67%);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: -28px auto 32px;
  position: relative;
  z-index: 2;
}

.panel,
.wide-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(32, 48, 71, 0.08);
}

.panel {
  min-height: 190px;
  padding: 22px;
}

h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.metric {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 900;
}

.panel p,
.wide-band p {
  color: var(--muted);
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eaf7ff;
  font-weight: 750;
}

.wide-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 28px;
}

.muted {
  background: #fff7d7;
}

.help-dialog {
  width: min(480px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  color: var(--ink);
}

.help-dialog::backdrop {
  background: rgba(32, 48, 71, 0.42);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .block-scene {
    min-height: 280px;
  }

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

@media (max-width: 560px) {
  .secondary-actions .button,
  .primary-actions .button {
    width: 100%;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .wide-band {
    align-items: stretch;
    flex-direction: column;
  }
}
