:root {
  color-scheme: dark;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  background: #0d1720;
  color: #f7f0df;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #0d1720; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 17% 10%, rgba(137, 171, 153, .18), transparent 30rem),
    radial-gradient(circle at 85% 70%, rgba(150, 116, 63, .18), transparent 28rem),
    linear-gradient(145deg, #101d27 0%, #091118 58%, #111a1f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .42;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.7) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 17%, rgba(255,255,255,.5) 0 1px, transparent 1.4px),
    radial-gradient(circle at 38% 75%, rgba(255,255,255,.42) 0 1px, transparent 1.5px),
    radial-gradient(circle at 89% 82%, rgba(255,255,255,.55) 0 1px, transparent 1.5px);
  background-size: 170px 170px, 230px 230px, 210px 210px, 280px 280px;
}

.guide-shell {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 44px));
  margin: 0 auto;
  padding: 52px 0 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .82fr);
  gap: clamp(38px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 112px);
}

.hero-copy { min-width: 0; }

.eyebrow,
.code-kicker {
  margin: 0 0 16px;
  color: #c5a96f;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 6.6vw, 88px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.lead {
  max-width: 650px;
  margin: 28px 0 34px;
  color: #c9ced0;
  font-family: system-ui, sans-serif;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.85;
}

.test-list { display: grid; gap: 10px; }

.test-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border: 1px solid rgba(232, 219, 186, .12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}

.test-item.featured {
  border-color: rgba(197,169,111,.4);
  background: linear-gradient(90deg, rgba(197,169,111,.12), rgba(255,255,255,.035));
}

.test-item > span {
  color: #c5a96f;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
}

.test-item strong,
.test-item small { display: block; }

.test-item strong { font-size: 17px; font-weight: 650; }

.test-item small {
  margin-top: 4px;
  color: #aeb6b8;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.code-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(224, 210, 174, .3);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(28,43,51,.96), rgba(12,21,28,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08);
  text-align: center;
}

.code-aura {
  position: absolute;
  top: -130px;
  left: 50%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(194, 167, 108, .15);
  filter: blur(55px);
  transform: translateX(-50%);
}

.code-card > *:not(.code-aura) { position: relative; }

.code-kicker { margin-bottom: 8px; font-size: 11px; }

.code-card h2 {
  margin: 0 0 24px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 600;
}

.code-frame {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 13px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}

.code-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 13px;
}

.scan-tip {
  margin: 23px 0 0;
  color: #cbd0d0;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.8;
}

.scan-tip b { color: #fff4d8; font-size: 17px; }

.search-tip {
  margin-top: 15px;
  padding: 11px 14px;
  border-radius: 11px;
  color: #aeb7b8;
  background: rgba(0,0,0,.18);
  font-family: system-ui, sans-serif;
  font-size: 13px;
}

.search-tip strong { color: #d9bd80; }

@media (max-width: 820px) {
  .guide-shell { width: min(100% - 28px, 620px); padding: 22px 0 28px; }
  .hero { display: flex; flex-direction: column; gap: 22px; min-height: auto; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; align-self: stretch; margin: 0; text-align: center; }
  h1 { order: 2; max-width: 100%; font-size: clamp(38px, 11vw, 58px); text-align: center; }
  .lead { order: 3; max-width: 100%; margin: -6px 8px 0; overflow-wrap: anywhere; text-align: center; }
  .code-card { order: 4; width: 100%; padding: 22px 18px; border-radius: 24px; }
  .test-list { order: 5; width: 100%; }
}

@media (max-width: 420px) {
  .guide-shell { width: min(100% - 20px, 390px); padding-top: 17px; }
  .hero { gap: 17px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 34px; line-height: 1.12; }
  .lead { margin-top: -3px; font-size: 15px; line-height: 1.65; }
  .code-card { padding: 19px 14px; }
  .code-kicker { margin-bottom: 6px; font-size: 10px; }
  .code-card h2 { margin-bottom: 14px; font-size: 20px; }
  .code-frame { width: min(100%, 274px); padding: 9px; border-radius: 19px; }
  .scan-tip { margin-top: 16px; font-size: 13px; line-height: 1.65; }
  .scan-tip b { font-size: 16px; }
  .search-tip { margin-top: 11px; padding: 9px 10px; font-size: 12px; }
  .test-item { padding: 12px; }
}
