:root {
  color-scheme: light;
  --bg: #f4efe6;
  --surface: #fffdf8;
  --surface-soft: #faf6ee;
  --ink: #202423;
  --muted: #646b67;
  --line: #d8cfbf;
  --grid: #ded4c2;
  --accent: #496f5d;
  --accent-deep: #284f41;
  --gold: #c89043;
  --shadow: 0 22px 58px rgba(45, 42, 35, 0.14);
  --soft-shadow: 0 10px 28px rgba(45, 42, 35, 0.08);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 144, 67, 0.16), transparent 30vw),
    radial-gradient(circle at 86% 12%, rgba(73, 111, 93, 0.16), transparent 28vw),
    linear-gradient(rgba(73, 111, 93, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 111, 93, 0.045) 1px, transparent 1px),
    var(--bg);
  background-size: 28px 28px;
  color: var(--ink);
  line-height: 1.55;
}

body::before {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.86), rgba(244, 239, 230, 0));
  content: "";
  height: 220px;
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -1;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 780;
  gap: 11px;
  letter-spacing: 0;
}

.brand img {
  border: 1px solid rgba(32, 36, 35, 0.08);
  border-radius: 12px;
  box-shadow: var(--soft-shadow);
  height: 38px;
  width: 38px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
  font-size: 0.94rem;
}

.site-nav a {
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
}

.site-nav a:hover {
  background: rgba(73, 111, 93, 0.1);
  color: var(--accent-deep);
  text-decoration: none;
}

.hero {
  isolation: isolate;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 84px);
  padding: 58px 24px 54px;
}

.hero-copy {
  align-self: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(3.3rem, 7.2vw, 6.4rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  max-width: 780px;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.34rem);
  margin: 24px 0 0;
  max-width: 650px;
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.promise-row span {
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 720;
  padding: 8px 12px;
}

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

.button {
  align-items: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 760;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.button.primary {
  background: var(--accent);
  box-shadow: 0 12px 26px rgba(73, 111, 93, 0.22);
  color: #fffdf8;
}

.button.secondary {
  background: rgba(255, 253, 248, 0.62);
  color: var(--accent-deep);
}

.button:hover {
  text-decoration: none;
}

.hero-visual {
  align-self: center;
  position: relative;
}

.preview-stack {
  min-height: 620px;
  position: relative;
  z-index: 2;
}

.art-board {
  background:
    linear-gradient(rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.4)),
    linear-gradient(rgba(73, 111, 93, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 111, 93, 0.06) 1px, transparent 1px);
  background-size: auto, 18px 18px, 18px 18px;
  border: 1px solid rgba(216, 207, 191, 0.8);
  border-radius: 8px;
  bottom: 12px;
  box-shadow: var(--shadow);
  left: 18px;
  position: absolute;
  right: 18px;
  top: 12px;
  transform: rotate(-2deg);
  z-index: 1;
}

.art-board::after {
  background: linear-gradient(135deg, transparent, rgba(200, 144, 67, 0.18));
  border-radius: 8px;
  bottom: 18px;
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38%;
}

.art-grid {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(5, 1fr);
  padding: 9px;
  position: absolute;
}

.art-grid span,
.tiny-grid span {
  aspect-ratio: 1;
  background: #fbf7ee;
  border: 1px solid var(--grid);
}

.art-grid .on,
.tiny-grid .on {
  background: #202423;
}

.art-grid-tree {
  height: 118px;
  left: 32px;
  top: 34px;
  width: 118px;
}

.art-grid-heart {
  height: 104px;
  right: 44px;
  top: 110px;
  transform: rotate(4deg);
  width: 104px;
}

.art-grid-boat {
  bottom: 42px;
  height: 126px;
  left: 52px;
  transform: rotate(3deg);
  width: 126px;
}

.phone-frame {
  background: #202423;
  border-radius: 34px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 360px;
  padding: 13px;
  position: relative;
  z-index: 2;
  transform: rotate(1.2deg);
}

.phone-screen {
  background:
    linear-gradient(rgba(73, 111, 93, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 111, 93, 0.05) 1px, transparent 1px),
    #fffdf8;
  background-size: 18px 18px;
  border-radius: 24px;
  overflow: hidden;
  padding: 20px;
}

.phone-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.phone-kicker {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.phone-title {
  font-size: 1.22rem;
  font-weight: 800;
}

.pill {
  background: #edf3ee;
  border: 1px solid rgba(73, 111, 93, 0.18);
  border-radius: 999px;
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 10px;
}

.nonogram-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(10, 1fr);
  margin: 18px 0;
  padding: 8px;
}

.cell {
  aspect-ratio: 1;
  background: #fbf7ee;
  border: 1px solid var(--grid);
}

.cell.filled {
  background: #202423;
}

.toolbar-preview {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.toolbar-preview span {
  background: #f0eadf;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  padding: 9px 0;
  text-align: center;
}

.mini-card {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 3px;
  min-width: 136px;
  padding: 14px 16px;
  position: absolute;
  z-index: 3;
}

.mini-card span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 720;
}

.mini-card strong {
  color: var(--accent-deep);
  font-size: 1.08rem;
}

.mini-card-left {
  left: -4px;
  top: 92px;
}

.mini-card-right {
  bottom: 112px;
  right: -2px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 68px 24px;
}

.stats-band {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.stats-band div {
  display: grid;
  gap: 2px;
  padding: 24px;
}

.stats-band strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.stats-band span {
  color: var(--muted);
  font-weight: 720;
}

.section h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0 0 18px;
  max-width: 760px;
}

.section-intro {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 0 32px;
  max-width: 720px;
}

.feature-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 22px;
}

.feature h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.feature p {
  color: var(--muted);
  margin: 0;
}

.gallery-section {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  padding-top: 30px;
}

.puzzle-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.gallery-tile {
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 12px;
  padding: 14px;
  text-align: center;
}

.gallery-tile strong {
  color: var(--accent-deep);
  font-size: 0.92rem;
}

.tiny-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(5, 1fr);
}

.legal-page {
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  margin: 46px auto 88px;
  max-width: 850px;
  padding: 46px;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 24px;
}

.legal-page h2 {
  font-size: 1.28rem;
  margin: 34px 0 10px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 22px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin: 40px auto 0;
  max-width: 1180px;
  padding: 26px 24px 40px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 28px;
  }

  .preview-stack {
    min-height: auto;
  }

  .mini-card {
    display: none;
  }

  .art-board {
    display: none;
  }

  .stats-band,
  .feature-grid,
  .gallery-section {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-section {
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.2rem);
  }

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

  .button {
    width: 100%;
  }

  .phone-frame {
    max-width: 100%;
  }

  .stats-band,
  .feature-grid,
  .gallery-section,
  .puzzle-gallery {
    grid-template-columns: 1fr;
  }

  .legal-page {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    margin-top: 20px;
    padding: 32px 24px;
  }
}
