:root {
  --bg: #6d9150;
  --bg-deep: #4e6c35;
  --paper: #f4edd6;
  --paper-strong: #fbf7ea;
  --ink: #1d1d1d;
  --muted: #5e5e53;
  --green: #a8cf62;
  --green-deep: #6f9940;
  --orange: #f0974c;
  --shadow: 0 10px 0 rgba(29, 29, 29, 0.16);
  --line: 4px solid var(--ink);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.7 "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at top, #8eb86b 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-size: 28px 28px, 28px 28px, auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.hero,
.overview-strip,
.section,
.site-footer {
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px, var(--ink) 8px 12px, transparent 12px 14px, var(--ink) 14px 18px),
    linear-gradient(var(--ink) 0 4px, transparent 4px 8px, var(--ink) 8px 12px, transparent 12px 14px, var(--ink) 14px 18px);
  image-rendering: pixelated;
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand__text small,
.eyebrow,
.meta-pill,
.theme-card p,
.overview-card p,
.feature-card__index,
.scene-item strong {
  font-family: "Courier New", "Lucida Console", monospace;
  letter-spacing: 0.08em;
}

.brand__text small {
  color: var(--muted);
  text-transform: uppercase;
}

.site-header__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.meta-pill {
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--paper-strong);
  font-size: 12px;
}

.meta-pill--solid {
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  margin-top: 18px;
  padding: 28px;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 1.08;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 78px);
}

.hero__desc {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(29, 29, 29, 0.14);
  font-weight: 800;
}

.pixel-btn--primary {
  background: var(--orange);
}

.pixel-btn--ghost {
  background: var(--paper-strong);
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.hero__tags li {
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  font-weight: 700;
}

.hero__visual {
  display: grid;
  place-items: center;
}

.nfc-scene {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
}

.phone-card {
  position: relative;
  z-index: 2;
  width: min(100%, 370px);
  margin-left: auto;
  border: var(--line);
  background: var(--paper-strong);
  box-shadow: 12px 12px 0 rgba(29, 29, 29, 0.14);
}

.phone-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: var(--line);
  background: #d8c990;
}

.dot {
  width: 14px;
  height: 14px;
  border: 3px solid var(--ink);
  background: var(--orange);
}

.phone-card__signal {
  width: 52px;
  height: 12px;
  background:
    linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px, var(--ink) 14px 24px, transparent 24px 30px, var(--ink) 30px 42px, transparent 42px 46px, var(--ink) 46px 52px);
}

.phone-card__screen {
  padding: 18px;
}

.screen-panel {
  border: 4px solid var(--ink);
  background: #f8f5eb;
  padding: 14px;
}

.screen-panel--lead {
  background: linear-gradient(180deg, #dff0a6 0%, #c9df7f 100%);
}

.screen-label {
  display: block;
  margin-bottom: 6px;
  font: 700 11px/1 "Courier New", monospace;
  letter-spacing: 0.14em;
}

.screen-panel strong {
  font-size: 28px;
  line-height: 1.1;
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.screen-tile {
  min-height: 92px;
  padding: 12px;
  border: 4px solid var(--ink);
  background: #fffdf7;
}

.screen-tile--accent {
  background: #f6b878;
}

.screen-tile b,
.screen-tile span {
  display: block;
}

.screen-tile b {
  font-size: 18px;
}

.screen-tile span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.nfc-chip {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 138px;
  aspect-ratio: 1;
  border: var(--line);
  background:
    linear-gradient(135deg, #f2b95f 0%, #ef9657 100%);
  box-shadow: 10px 10px 0 rgba(29, 29, 29, 0.14);
  transform: rotate(-7deg);
}

.nfc-chip::before,
.nfc-chip::after {
  content: "";
  position: absolute;
  border: 4px solid var(--ink);
}

.nfc-chip::before {
  inset: 20px;
}

.nfc-chip::after {
  inset: 36px;
}

.nfc-chip__label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font: 700 16px/1 "Courier New", monospace;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  overflow: hidden;
}

.overview-card {
  padding: 22px 20px;
}

.overview-card + .overview-card {
  border-left: var(--line);
}

.overview-card p,
.theme-card p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
}

.overview-card strong,
.scene-item strong,
.feature-card h3,
.theme-card strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.overview-card span,
.feature-card p,
.scene-item span,
.theme-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.section {
  margin-top: 18px;
  padding: 28px;
}

.section--contrast {
  background: #d8c990;
}

.section-heading {
  display: grid;
  gap: 8px;
}

.section-heading h2 {
  max-width: 16ch;
  font-size: clamp(28px, 4vw, 46px);
}

.feature-grid,
.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.feature-card,
.theme-card,
.scene-item {
  border: var(--line);
  background: var(--paper-strong);
}

.feature-card {
  padding: 20px;
}

.feature-card__index {
  display: inline-flex;
  min-width: 50px;
  justify-content: center;
  padding: 6px 8px;
  border: 3px solid var(--ink);
  background: #dff0a6;
  font-size: 12px;
}

.feature-card h3 {
  margin: 16px 0 0;
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.scene-item {
  padding: 22px 20px;
  background: rgba(255, 253, 247, 0.92);
}

.theme-card {
  min-height: 220px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.theme-card--pixel {
  background:
    linear-gradient(90deg, rgba(29, 29, 29, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(29, 29, 29, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, #e7f6ad 0%, #cbdf81 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.theme-card--minimal {
  background: linear-gradient(180deg, #fffdfa 0%, #ede8d8 100%);
}

.theme-card--poster {
  color: #fff9f0;
  background:
    linear-gradient(180deg, rgba(29, 29, 29, 0.2) 0%, rgba(29, 29, 29, 0.76) 100%),
    linear-gradient(135deg, #f29d53 0%, #b5573f 100%);
}

.theme-card--poster p,
.theme-card--poster span {
  color: rgba(255, 249, 240, 0.82);
}

.site-footer {
  margin-top: 18px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
}

.site-footer p {
  margin: 6px 0 0;
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer__links a {
  padding: 8px 12px;
  border: 3px solid var(--ink);
  background: var(--paper-strong);
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero,
  .overview-strip,
  .feature-grid,
  .scene-list,
  .theme-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 22px;
  }

  .hero h1 {
    max-width: none;
  }

  .overview-card + .overview-card {
    border-left: none;
    border-top: var(--line);
  }

  .site-footer {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    padding-top: 12px;
  }

  .site-header,
  .hero,
  .section,
  .site-footer {
    padding: 18px;
  }

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

  .hero__actions {
    flex-direction: column;
  }

  .pixel-btn {
    width: 100%;
  }

  .nfc-scene {
    min-height: auto;
  }

  .nfc-chip {
    position: relative;
    inset: auto;
    margin-top: 16px;
    transform: none;
  }
}
