:root {
  --paper: #eceeef;
  --white: #f7f8f9;
  --ink: #16181b;
  --ink-soft: #6a6f76;
  --line: rgba(22, 24, 27, 0.09);
  --cta: #16181b;
  --phosphor: #d4f452;
  --phosphor-ink: #14180c;
  --danger: #c23b4a;
  --radius: 16px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --page: min(1120px, calc(100% - 64px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  transform: translateY(-140%);
}

.skip:focus { transform: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 18px max(32px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid transparent;
}

.page-home .nav {
  border-bottom-color: transparent;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  font-size: 15px;
  letter-spacing: 0.22em;
}

.nav-brand:hover { color: var(--ink); }

.mark {
  width: 12px;
  height: 12px;
  position: relative;
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--ink);
}

.mark::before { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.mark::after { right: 0; bottom: 0; border-width: 0 1.5px 1.5px 0; }

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

.nav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav nav a:hover,
.nav nav a:focus-visible { color: var(--ink); }

.nav-login,
.nav-user {
  color: var(--ink);
  font-weight: 500;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  height: 40px;
  max-width: 10em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-account {
  position: relative;
  z-index: 30;
}

.nav-drop {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 148px;
  padding-top: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, visibility 120ms ease;
}

.nav-account:hover .nav-drop,
.nav-account:focus-within .nav-drop,
.nav-account.is-open .nav-drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drop-inner {
  padding: 8px 0;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(22, 24, 27, 0.12);
}

.nav-drop a,
.nav-drop button {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.nav-drop a:hover,
.nav-drop button:hover {
  background: rgba(22, 24, 27, 0.05);
}

.price-card[data-pick] { cursor: pointer; }
.price-card.is-on {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.checkout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 28px 0 8px;
}

.pay-ways {
  display: flex;
  gap: 10px;
}

.pay-ways .ghost.is-on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(22, 24, 27, 0.28);
}

.modal[hidden] { display: none; }

.modal-card {
  width: min(400px, 100%);
  padding: 28px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.modal-card h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.modal-card form {
  display: grid;
  gap: 14px;
}

.modal-card .ghost {
  margin-top: 12px;
  width: auto;
}

.nav-tag {
  margin-left: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

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

.shell {
  width: min(400px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.shell.wide { width: var(--page); }

.me-card {
  margin: 8px 0 56px;
  padding: 32px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.me-name {
  margin: 0 0 6px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.me-email {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: 14px;
}

.me-status {
  margin: 0;
  font-size: 16px;
}

.shell.wide h2 {
  margin-top: 8px;
  font-size: 22px;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
}

.page-home h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.2;
}

.lead, .foot, .section-lead, .hero-note, .pricing-note {
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 16px;
}

.page-home .lead {
  max-width: 22em;
  margin: 0 auto 28px;
}

.shell .lead { max-width: none; }

.page-home main {
  width: var(--page);
  margin: 0 auto;
}

.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.hero-stage {
  width: min(100%, 760px);
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 16px;
}

.hero-note {
  margin: -4px 0 0;
  font-size: 13px;
}

button,
.link-btn {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms var(--ease-out);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.primary {
  background: var(--cta);
  color: var(--white);
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .primary:hover { transform: translateY(-1px); background: #000; }
  .ghost:hover { border-color: var(--ink); }
}

.primary:active, .ghost:active { transform: none; }
.primary:disabled, .ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.bench {
  display: grid;
  grid-template-columns: 220px minmax(0, 400px);
  justify-content: center;
  align-items: end;
  gap: 28px 36px;
  width: 100%;
  margin: 40px auto 0;
}

.bench-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 56px;
}

.device-display {
  position: relative;
  width: 100%;
  padding: 14px 14px 18px;
  background: #0e1218;
  border-radius: 26px;
  box-shadow:
    0 40px 80px rgba(22, 24, 27, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: #f4f0e6;
  text-align: left;
}

.device-control {
  width: 100%;
  padding: 18px 20px 20px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 50px rgba(22, 24, 27, 0.12);
  text-align: left;
}

.device-control span,
.stage-chrome {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.device-control span { display: block; margin-bottom: 8px; }

.device-control b {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.device-control i {
  display: block;
  height: 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: #eceef1;
}

.device-control i:nth-of-type(1) { width: 78%; }
.device-control i:nth-of-type(2) { width: 52%; }
.device-control i:nth-of-type(3) { width: 64%; }

.device-display::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -28px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(22, 24, 27, 0.18), transparent 72%);
  pointer-events: none;
}

.stage-chrome {
  padding: 2px 6px 10px;
  color: rgba(244, 240, 230, 0.45);
}

.rec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--phosphor);
}

.rec i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phosphor);
  animation: recPulse 1.6s ease-in-out infinite;
}

.prompt-frame {
  position: relative;
  padding: 14px 12px 16px;
}

.vf-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--phosphor);
  border-style: solid;
  opacity: 0.85;
}

.vf-corner.is-tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.vf-corner.is-tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.vf-corner.is-bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.vf-corner.is-br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.prompt-well.is-result {
  display: grid;
  gap: 12px;
  min-height: 260px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 20px 8px;
  background: linear-gradient(180deg, rgba(8, 12, 24, 0.1), rgba(8, 12, 24, 0.45) 18%, rgba(8, 12, 24, 0.45) 82%, rgba(8, 12, 24, 0.1));
}

.result-rating {
  margin: 0;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--phosphor);
}

.result-comment {
  margin: 0;
  max-width: 11em;
  font-size: 16px;
  line-height: 1.5;
  color: #f4f0e6;
}

.result-facts {
  display: grid;
  gap: 6px;
  width: 100%;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.result-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #f4f0e6;
}

.result-facts span { color: rgba(244, 240, 230, 0.45); }

.use,
.scene,
.themes,
.steps,
.pricing-wrap {
  padding: 88px 0 8px;
}

.use {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.use h2 { font-size: clamp(24px, 3vw, 32px); }

.use p,
.scene-copy p,
.key-band p,
.section-lead {
  margin: 0;
  max-width: 28em;
  color: var(--ink-soft);
  line-height: 1.75;
}

.scene {
  display: grid;
  grid-template-columns: minmax(0, 32em);
}

.key-band {
  margin-top: 72px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.key-band h2 { margin-bottom: 10px; }

.theme-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.theme {
  display: grid;
  gap: 10px;
}

.theme-chip {
  width: 100%;
  height: 88px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.theme.is-core .theme-chip {
  background: linear-gradient(180deg, rgba(212, 244, 82, 0.35), #11151c);
}

.theme.is-silk .theme-chip {
  background: linear-gradient(180deg, rgba(232, 213, 163, 0.45), #1a1712);
}

.theme.is-classic .theme-chip {
  background: linear-gradient(180deg, rgba(196, 181, 160, 0.4), #161310);
}

.theme strong { font-size: 18px; }
.theme span:last-child { color: var(--ink-soft); font-size: 14px; }

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.steps li span {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.steps strong { display: block; margin-bottom: 6px; font-size: 16px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }

.pricing-wrap {
  padding: 96px 0 120px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.pricing-wrap h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.18em;
  font-weight: 500;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  text-align: left;
}

.price-card {
  position: relative;
  display: block;
  padding: 32px 28px 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #f7f8f9;
  color: inherit;
  text-decoration: none;
}

.page-home .price-card.featured {
  background: #16181b;
  border-color: #16181b;
  color: #f4f5f7;
  transform: translateY(-6px);
}

.page-home .price-card.featured h2,
.page-home .price-card.featured h3,
.page-home .price-card.featured .price {
  color: #f4f5f7;
}

.page-home .price-card.featured .price span,
.page-home .price-card.featured p:last-child {
  color: rgba(244, 245, 247, 0.55);
}

.page-home a.price-card:hover {
  border-color: var(--ink);
}
.page-home a.price-card.featured:hover {
  box-shadow: 0 18px 40px rgba(22, 24, 27, 0.18);
}

.price-card.featured {
  border-color: var(--ink);
}

.price-card h2,
.price-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  letter-spacing: 0;
}

.price-card .price {
  margin: 0 0 12px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.price-card .price span {
  margin-right: 4px;
  font-size: 0.5em;
  color: var(--ink-soft);
}

.price-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
}

.pricing-note { font-size: 13px; }

.card {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  padding: 28px;
  background: #f7f8f9;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: none;
}

.auth-confirm {
  text-align: left;
}

.auth-label {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.auth-email {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  word-break: break-all;
}

.auth-confirm .lead {
  margin: 0 0 18px;
  font-size: 14px;
}

.auth-done {
  padding: 48px 0 24px;
  text-align: center;
}

.auth-ok {
  width: 52px;
  height: 52px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 22px;
  line-height: 1;
}

.auth-done h1 { margin-bottom: 10px; }
.auth-done .lead { margin: 0 auto; }

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef0f3;
  color: var(--ink);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 28, 31, 0.08);
}

.code-fields { display: flex; gap: 8px; }
.code-fields input { flex: 1; }
.code-fields .ghost {
  flex: 0 0 auto;
  min-width: 132px;
  padding: 0 16px;
  white-space: nowrap;
}

.hint {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.hint.is-error { color: var(--danger); }
.hint.is-ok { color: #1f7a3a; }

.foot { margin-top: 22px; font-size: 14px; }
.foot a { color: var(--ink); }

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 8px;
}

.price-card .pay-row { margin-top: 16px; }
.price-card .pay-row .primary,
.price-card .pay-row .ghost { flex: 1; }
.pay-row button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.pay-card { justify-items: center; text-align: center; }
.pay-card canvas { background: #fff; border-radius: 12px; padding: 10px; }
.pay-card .price { margin: 8px 0 0; font-size: 32px; font-weight: 600; }

.site-footer {
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.foot-inner {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  gap: 8px;
}

.foot-mark {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0.16em;
  font-weight: 600;
}

.foot-company { color: var(--ink-soft); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.notice { display: none; }

.legal {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 15px;
}

.legal ul { padding-left: 1.2em; }

.check {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check input {
  width: auto;
  height: auto;
  margin-top: 3px;
}

.check a { color: var(--ink); }

#password-form {
  max-width: 420px;
  margin-top: 8px;
}

#logout {
  margin-top: 28px;
  width: auto;
  padding: 0 18px;
}

@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec i { animation: none; }
}

@media (max-width: 900px) {
  .use,
  .steps ol,
  .theme-row,
  .pricing {
    grid-template-columns: 1fr;
  }

  .bench {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    margin-top: 36px;
  }
  .bench-left {
    align-items: center;
    padding-bottom: 0;
  }
  .device-control { display: none; }
  .device-display { width: min(100%, 360px); }
  .page-home .price-card.featured { transform: none; }
}

@media (max-width: 800px) {
  :root { --page: min(1080px, calc(100% - 32px)); }
}

@media (max-width: 480px) {
  .nav { gap: 12px; }
  .nav nav { gap: 14px; }
  .shell { padding-top: 40px; }
  .code-fields { flex-direction: column; }
  .code-fields .ghost { width: 100%; }
  .hero { padding-top: 36px; }
  .page-home h1 { font-size: 34px; }
}
