:root {
  --purple: #3b1e6e;
  --purple-2: #2c1453;
  --purple-3: #4a2785;
  --lime: #c6f24e;
  --white: #ffffff;
  --ink: #f4f1fb;
  --muted: #b6a8d4;
  --line: rgba(244, 241, 251, 0.14);
  --shell: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--purple);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.28; font-weight: 800; }

.page-shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(59, 30, 110, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--purple-3);
}

.primary-nav { margin-left: auto; }

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 21px;
  font-size: 14.5px;
  color: var(--muted);
}

.primary-nav a {
  display: inline-block;
  padding: 5px 0;
  transition: color 0.2s ease;
}

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

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

.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 8px;
  background: var(--lime);
  color: #241039;
  font-size: 14.5px;
  font-weight: 800;
  transition: filter 0.18s ease;
}

.nav-download svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-download:hover { filter: brightness(1.06); }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--purple-2);
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 50px;
  overflow: hidden;
  background:
    radial-gradient(560px 320px at 96% -6%, rgba(198, 242, 78, 0.16), transparent 66%),
    radial-gradient(420px 300px at 0% 100%, rgba(198, 242, 78, 0.08), transparent 66%),
    var(--purple);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: 46px;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  font-weight: 800;
  color: var(--lime);
  border: 1px solid rgba(198, 242, 78, 0.4);
  border-radius: 6px;
  padding: 3px 11px;
}

.hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(40px, 5.4vw, 66px);
  letter-spacing: 0.06em;
  color: var(--white);
}

.hero-subtitle {
  font-size: clamp(17px, 1.9vw, 21px);
  font-weight: 700;
  color: var(--lime);
}

.hero-lead {
  margin-top: 16px;
  max-width: 470px;
  color: var(--muted);
  font-size: 15.5px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15.5px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-primary {
  background: var(--lime);
  color: #241039;
  box-shadow: 0 14px 28px rgba(198, 242, 78, 0.18);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(198, 242, 78, 0.24);
}

.button-large { padding: 15px 30px; font-size: 16.5px; }

.text-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px dashed rgba(244, 241, 251, 0.3);
  padding-bottom: 2px;
}

.text-link:hover { color: var(--lime); }

.hero-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}

.hero-tags li {
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(244, 241, 251, 0.06);
  border: 1px solid var(--line);
}

.hero-tags b { color: var(--lime); }

/* ---------- hero puzzle board ---------- */
.puzzle-board {
  background: rgba(44, 20, 83, 0.72);
  border: 1px solid rgba(198, 242, 78, 0.22);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 26px 50px rgba(20, 8, 40, 0.45);
}

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

.puzzle-cell {
  min-height: 78px;
  padding: 10px 9px;
  border-radius: 9px;
  background: rgba(244, 241, 251, 0.07);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1px;
}

.puzzle-cell b {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.puzzle-cell small {
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.5;
}

.puzzle-cell.is-empty {
  justify-content: center;
  align-items: center;
  background: transparent;
  border: 1px dashed rgba(198, 242, 78, 0.55);
}

.puzzle-cell.is-empty span {
  font-size: 22px;
  line-height: 1;
  color: var(--lime);
  font-weight: 700;
}

.puzzle-cell.is-empty small { color: var(--lime); }

.puzzle-foot {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px dashed rgba(198, 242, 78, 0.24);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- section shared ---------- */
section { padding: 54px 0; }

.section-heading {
  max-width: 640px;
  margin-bottom: 26px;
}

.section-heading .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 9px;
}

.section-heading h2 {
  font-size: clamp(23px, 2.8vw, 31px);
  color: var(--white);
}

.section-heading p:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 14.5px;
}

.section-heading-split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading-split > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
}

/* ---------- features ---------- */
.features {
  background: var(--purple-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.puzzle-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.puzzle-cards article {
  position: relative;
  padding: 22px 18px 20px;
  border-radius: 12px;
  background: rgba(244, 241, 251, 0.05);
  border: 1px solid var(--line);
}

.puzzle-cards article:nth-child(2) { border-top: 2px solid rgba(198, 242, 78, 0.6); }
.puzzle-cards article:nth-child(4) { border-top: 2px solid rgba(198, 242, 78, 0.6); }

.puzzle-cards span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--lime);
  margin-bottom: 8px;
}

.puzzle-cards h3 {
  font-size: 17px;
  color: var(--white);
  margin-bottom: 6px;
}

.puzzle-cards p {
  font-size: 13.6px;
  color: var(--muted);
}

/* ---------- shots ---------- */
.puzzle-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.puzzle-shots figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(44, 20, 83, 0.8);
  border: 1px solid var(--line);
}

.puzzle-shots img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: var(--purple-2);
}

.puzzle-shots figcaption {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 13px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.puzzle-shots figcaption b {
  font-size: 11px;
  color: var(--lime);
}

.puzzle-shots figcaption small {
  margin-left: auto;
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
}

.sample-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- faq ---------- */
.faq {
  background: linear-gradient(180deg, var(--purple) 0%, #331a60 100%);
  border-top: 1px solid var(--line);
}

.faq-rows {
  display: grid;
  gap: 8px;
  max-width: 880px;
}

.faq-rows details {
  border-radius: 10px;
  background: rgba(244, 241, 251, 0.05);
  border: 1px solid var(--line);
  padding: 0 18px;
  transition: border-color 0.18s ease;
}

.faq-rows details[open] { border-color: rgba(198, 242, 78, 0.45); }

.faq-rows summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
}

.faq-rows summary::-webkit-details-marker { display: none; }

.faq-rows summary h3 {
  flex: 1;
  font-size: 15.5px;
  color: var(--white);
}

.faq-rows summary i {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(198, 242, 78, 0.16);
}

.faq-rows summary i::before,
.faq-rows summary i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--lime);
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-rows summary i::before { width: 9px; height: 2px; }
.faq-rows summary i::after { width: 2px; height: 9px; transition: opacity 0.2s ease; }
.faq-rows details[open] summary i::after { opacity: 0; }

.faq-rows details > p {
  padding: 12px 0 15px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* ---------- reviews ---------- */
.reviews { border-top: 1px solid var(--line); }

.puzzle-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.review-card {
  padding: 17px 18px;
  border-radius: 12px;
  background: rgba(244, 241, 251, 0.05);
  border: 1px solid var(--line);
}

.review-card > p {
  font-size: 13.8px;
  color: #e6e1f4;
}

.review-meta {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--muted);
}

.review-meta b {
  font-size: 12px;
  color: var(--lime);
}

/* ---------- steps ---------- */
.puzzle-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.puzzle-steps li {
  position: relative;
  padding: 20px 20px 22px 24px;
  border-radius: 12px;
  background: rgba(244, 241, 251, 0.05);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.puzzle-steps li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  border-radius: 3px;
  background: var(--lime);
}

.puzzle-steps span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--lime);
}

.puzzle-steps h3 {
  font-size: 17px;
  color: var(--white);
}

.puzzle-steps p {
  font-size: 13.6px;
  color: var(--muted);
}

/* ---------- download ---------- */
.download { padding-bottom: 66px; }

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  border-radius: 20px;
  background:
    radial-gradient(360px 220px at 88% 0%, rgba(198, 242, 78, 0.2), transparent 66%),
    var(--purple-2);
  border: 1px solid rgba(198, 242, 78, 0.26);
}

.download-copy { max-width: 520px; }

.download-copy .eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 8px;
}

.download-copy h2 {
  font-size: clamp(23px, 2.7vw, 30px);
  color: var(--white);
  margin-bottom: 8px;
}

.download-copy p {
  font-size: 14.5px;
  color: var(--muted);
}

.download-act {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.download-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12px;
  color: var(--muted);
}

.download-notes li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.download-notes li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
}

/* ---------- footer ---------- */
.site-footer {
  background: #28114c;
  border-top: 1px solid rgba(198, 242, 78, 0.22);
  padding: 34px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
  gap: 22px 30px;
  align-items: start;
}

.footer-brand strong {
  display: block;
  font-size: 17px;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-brand p {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--muted);
}

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

.footer-meta {
  font-size: 12.5px;
  color: var(--muted);
  text-align: right;
}

.footer-meta a:hover { color: var(--lime); }

.disclaimer {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: #9d8fbe;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .puzzle-board { max-width: 520px; }
  .puzzle-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .puzzle-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-meta { text-align: left; }
  .download-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    display: none;
    background: var(--purple-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }

  .primary-nav.is-open { display: block; }

  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    font-size: 15px;
  }

  .primary-nav li { width: 100%; }

  .primary-nav a {
    display: block;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-shell { position: relative; flex-wrap: wrap; }
  .primary-nav { order: 4; flex-basis: 100%; }
  .nav-actions { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav-download span { display: none; }
  .nav-download { padding: 10px 12px; }
}

@media (max-width: 640px) {
  .page-shell, .nav-shell { padding-left: 18px; padding-right: 18px; }
  section { padding: 42px 0; }
  .hero { padding: 40px 0 34px; }
  .puzzle-cards { grid-template-columns: minmax(0, 1fr); }
  .puzzle-notes { grid-template-columns: minmax(0, 1fr); }
  .puzzle-steps { grid-template-columns: minmax(0, 1fr); }
  .section-heading-split { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-heading-split > p { white-space: normal; }
  .download-panel { padding: 26px 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .download-act { width: 100%; }
  .download-act .button { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
  .puzzle-shots { grid-template-columns: minmax(0, 1fr); }
  .puzzle-cell { min-height: 70px; padding: 8px 7px; }
  .puzzle-cell b { font-size: 12px; }
  .puzzle-cell small { font-size: 10px; }
}
