:root {
  --ink: #121410;
  --ink-soft: #1c1f18;
  --paper: #f4f1e8;
  --paper-2: #ebe6da;
  --card: #fbf9f4;
  --lime: #dff25a;
  --coral: #e85d3a;
  --gold: #e7c56a;
  --water: #14383d;
  --muted: #5c6156;
  --text: #24281f;
  --line: rgba(18, 20, 16, 0.12);
  --header: 76px;
  --serif: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#about,
#apps,
#fishing,
#box {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  background: var(--lime);
  color: var(--ink);
  padding: 0.4rem 0.8rem;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.kicker {
  margin: 0 0 0.8rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker-light {
  color: rgba(244, 241, 232, 0.62);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  color: var(--paper);
  background: rgba(18, 20, 16, 0.96);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(244, 241, 232, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 50%, var(--ink) 0 3px, transparent 3.5px),
    var(--lime);
  transform: rotate(8deg);
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name strong {
  font-size: 0.98rem;
  font-weight: 700;
}

.brand-name small {
  font-family: var(--serif);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 232, 0.62);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  text-decoration: none;
  color: rgba(244, 241, 232, 0.82);
  font-size: 0.94rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--ink);
  background: var(--lime);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--paper);
  padding: 0;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}

.nav-toggle-lines {
  margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding: 48px 0 64px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 72% 42%, #000 10%, transparent 68%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
  gap: 40px;
  align-items: center;
}

.hero-zh {
  display: block;
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.hero-en {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  color: var(--lime);
}

.hero-sub {
  margin: 1.35rem 0 0.7rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-sub::after {
  content: "";
  display: block;
  width: 7.2em;
  height: 7px;
  margin-top: 0.55rem;
  background: linear-gradient(90deg, var(--lime) 0 72%, transparent 72%);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}

.hero-lead {
  max-width: 38em;
  margin-bottom: 1.6rem;
  color: rgba(244, 241, 232, 0.74);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: #e9f98a;
}

.btn-ghost {
  border: 1px solid rgba(244, 241, 232, 0.28);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.dial {
  position: relative;
  width: min(100%, 460px);
  margin-inline: auto;
  aspect-ratio: 1;
}

.dial-svg {
  width: 100%;
  height: 100%;
}

.dial-spin {
  transform-box: view-box;
  transform-origin: center;
  animation: spin 48s linear infinite;
}

.dial-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  display: grid;
  place-items: center;
  background: var(--lime);
  color: var(--ink);
  border-radius: 28px;
  transform: rotate(7deg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.dial-core span {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(6px);
}

.dial-core small {
  position: absolute;
  top: 14px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.dial-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.38rem 0.7rem 0.38rem 0.5rem;
  border: 1px solid rgba(244, 241, 232, 0.16);
  border-radius: 999px;
  background: rgba(18, 20, 16, 0.72);
  backdrop-filter: blur(8px);
  font-size: 0.86rem;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.dial-node i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

.n1 { left: 72%; top: 24%; }
.n2 { left: 78%; top: 64%; }
.n3 { left: 30%; top: 76%; }
.n4 { left: 20%; top: 36%; }

.ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0;
  margin: 0;
  padding: 0.9rem 1.5rem;
  background: var(--ink-soft);
  color: rgba(244, 241, 232, 0.88);
  border-top: 1px solid rgba(223, 242, 90, 0.35);
  border-bottom: 1px solid rgba(223, 242, 90, 0.35);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-align: center;
}

.ticker span:not(:last-child)::after {
  content: "·";
  margin: 0 0.85rem;
  color: var(--lime);
}

.pillars {
  padding: 96px 0 40px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.7fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 0;
}

.section-head .kicker,
.section-head h2 {
  grid-column: 1;
}

.section-head .lede {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  color: var(--muted);
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.pillar-list li {
  padding: 1.8rem 1.8rem 0.4rem 0;
  border-right: 1px solid var(--line);
}

.pillar-list li:last-child {
  border-right: 0;
  padding-right: 0;
}

.pillar-list li:not(:first-child) {
  padding-left: 1.8rem;
}

.num {
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.num-odd {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  transform: rotate(-8deg);
}

.pillar-list h3 {
  margin-bottom: 0.55rem;
  font-size: 1.35rem;
}

.pillar-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.apps {
  padding: 72px 0 96px;
}

.collection + .collection {
  margin-top: 72px;
}

.collection-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.collection-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.collection-head p {
  max-width: 40em;
  margin: 0;
  color: var(--muted);
}

.count {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.count b {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.count span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  perspective: 1200px;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card .app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card .app-qr {
  margin-top: auto;
}

.app-card,
.feature-card {
  background: var(--card);
  border: 1px solid rgba(18, 20, 16, 0.08);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.app-card:hover,
.feature-card:hover {
  border-color: rgba(18, 20, 16, 0.18);
  box-shadow: 0 22px 40px rgba(18, 20, 16, 0.08);
}

.app-art {
  position: relative;
  height: 188px;
  overflow: hidden;
}

.art-svg {
  width: 100%;
  height: 100%;
}

.art-assistant { background: var(--water); }
.art-map { background: #1a2822; }
.art-gold { background: #2a2416; }
.art-poster {
  background:
    radial-gradient(circle at 80% 20%, rgba(232, 93, 58, 0.35), transparent 42%),
    #241816;
  display: grid;
  place-items: center;
}

.map-shift {
  transform: rotate(-6deg);
  transform-origin: 180px 100px;
}

.art-tag {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(18, 20, 16, 0.45);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.poster-sheet {
  width: min(62%, 210px);
  aspect-ratio: 3 / 4;
  padding: 18px 16px;
  background: #f6f1e6;
  color: var(--ink);
  border-radius: 6px;
  transform: rotate(-7deg);
  box-shadow: 14px 18px 0 rgba(232, 93, 58, 0.85);
}

.poster-sheet span {
  display: block;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.poster-path {
  width: 100%;
  height: 42px;
  margin: 8px 0 12px;
}

.poster-sheet i {
  display: block;
  height: 7px;
  margin-top: 8px;
  border-radius: 99px;
  background: rgba(18, 20, 16, 0.16);
}

.poster-sheet i.short {
  width: 62%;
}

.app-body {
  padding: 18px 18px 16px;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-body h3 {
  margin-bottom: 0.45rem;
  font-size: 1.28rem;
}

.app-body p {
  margin-bottom: 1rem;
  color: #3c4136;
  font-size: 0.95rem;
}

.app-qr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(18, 20, 16, 0.16);
}

.app-qr img {
  width: 92px;
  height: 92px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(18, 20, 16, 0.08);
  flex: none;
}

.app-qr strong,
.app-qr span {
  display: block;
}

.app-qr strong {
  font-size: 0.95rem;
}

.app-qr span {
  color: var(--muted);
  font-size: 0.85rem;
}

.feature-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 420px;
}

.feature-card .app-art {
  height: auto;
  min-height: 320px;
}

.feature-card .app-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 36px 32px;
}

.feature-card .app-body h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.feature-card .app-body p {
  max-width: 36em;
  font-size: 1.02rem;
}

.feature-card .app-qr img {
  width: 104px;
  height: 104px;
}

.closing {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}

.closing-line {
  margin: 0;
  max-width: 10em;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

.site-footer {
  background: #0d0f0c;
  color: rgba(244, 241, 232, 0.78);
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(244, 241, 232, 0.08);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  color: var(--paper);
  font-size: 1.05rem;
}

.footer-brand span {
  font-family: var(--serif);
  color: var(--lime);
  font-size: 0.92rem;
}

.footer-brand p,
.footer-legal p {
  margin: 0.35rem 0 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav a {
  text-decoration: none;
  width: fit-content;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--lime);
}

.footer-legal {
  text-align: right;
}

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s ease forwards;
}

.pillar-list .reveal:nth-child(2) { animation-delay: 0.08s; }
.pillar-list .reveal:nth-child(3) { animation-delay: 0.16s; }
.card-grid .reveal:nth-child(2) { animation-delay: 0.08s; }
.card-grid .reveal:nth-child(3) { animation-delay: 0.16s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .hero-inner,
  .section-head,
  .card-grid,
  .feature-card,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .section-head .lede {
    grid-column: 1;
    grid-row: auto;
  }

  .pillar-list {
    grid-template-columns: 1fr;
  }

  .pillar-list li,
  .pillar-list li:not(:first-child),
  .pillar-list li:last-child {
    padding: 1.4rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .dial {
    width: min(100%, 380px);
  }

  .feature-card .app-body {
    padding: 22px 18px 18px;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 760px) {
  :root {
    --header: 64px;
  }

  .wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header) 0 0 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    z-index: 40;
    background: #121410;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav a {
    font-size: 1.7rem;
    padding: 0.35rem 0;
    border-radius: 0;
  }

  .nav a:hover {
    background: transparent;
    color: var(--lime);
  }

  .pillars,
  .apps {
    padding-top: 64px;
  }

  .apps {
    padding-bottom: 64px;
  }

  .count {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
  }

  .n4 { left: 18%; }
  .n2 { left: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal,
  .dial-spin {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
