:root {
  --bg: #07111f;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --line: rgba(255, 255, 255, 0.16);
  --text: #edf7ff;
  --muted: #9fb3c8;
  --accent: #36d5ff;
  --accent-2: #7cf0c5;
  --gold: #ffd166;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(54, 213, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 30%, rgba(124, 240, 197, 0.12), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0d1f37 54%, #07111f 100%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.link-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #061320;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

nav a,
.link-row a {
  color: var(--muted);
}

nav a:hover,
.link-row a:hover {
  color: var(--text);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: 680px;
  padding: 76px clamp(20px, 7vw, 96px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  max-width: 780px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.85;
}

.button {
  display: inline-flex;
  justify-content: center;
  min-width: 148px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 800;
}

.button.primary {
  color: #061320;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.button.ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

.screen {
  min-height: 420px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(54, 213, 255, 0.26), transparent 32%),
    linear-gradient(160deg, #0e2b47, #07111f);
}

.screen-top {
  width: 74%;
  height: 14px;
  margin-bottom: 72px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.metric {
  display: grid;
  gap: 6px;
  padding: 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.metric strong {
  font-size: 38px;
}

.metric span,
.status,
.notice,
.section p,
li span {
  color: var(--muted);
}

.status {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124, 240, 197, 0.12);
}

.section {
  padding: 76px clamp(20px, 7vw, 96px);
}

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

.feature-grid article,
.price-card,
.compliance {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  padding: 26px;
}

.feature-grid p,
.price-card p,
.compliance p {
  line-height: 1.75;
}

.price-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-card.highlight {
  background: linear-gradient(135deg, rgba(54, 213, 255, 0.16), rgba(124, 240, 197, 0.12));
}

.price {
  color: var(--gold);
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.price-card .plan-button {
  margin-top: 18px;
}

.pricing-auth {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(54, 213, 255, 0.13), rgba(255, 255, 255, 0.06));
}

.pricing-auth.is-logged-in .pricing-auth-form {
  display: none;
}

.pricing-auth.is-logged-in #pricingAuthMessage {
  color: var(--accent-2);
}

.pricing-auth-form {
  display: grid;
  gap: 12px;
}

.pricing-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(5, 14, 25, 0.68);
  font: inherit;
}

.pricing-auth-form input::placeholder {
  color: rgba(159, 179, 200, 0.72);
}

.full-button {
  width: 100%;
}

ol {
  display: grid;
  gap: 16px;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 70px 180px 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #061320;
  background: var(--accent);
  font-weight: 900;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.doc-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 72px 22px;
}

.doc-page section {
  margin: 28px 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
}

.checkout-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 22px 88px;
}

.order-card {
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.buyer-grid {
  display: grid;
  gap: 14px;
}

.buyer-grid div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.buyer-grid span {
  color: var(--muted);
  font-size: 13px;
}

.buyer-grid strong {
  overflow-wrap: anywhere;
}

.order-card {
  padding: 28px;
}

.order-header,
.total-bar,
.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.order-status {
  padding: 10px 16px;
  border-radius: 999px;
  color: #061320;
  background: var(--gold);
  font-weight: 900;
}

.order-table {
  overflow: hidden;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.35fr 0.55fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-top: 1px solid var(--line);
}

.row:first-child {
  border-top: 0;
}

.row.head {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.row strong,
.row small {
  display: block;
}

.row small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.amount,
.total-bar strong {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.buyer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 10px;
}

.code-row button {
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.code-row button:disabled,
.pay-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.total-bar {
  margin-top: 24px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(54, 213, 255, 0.15), rgba(124, 240, 197, 0.1));
}

.pay-button {
  border: 0;
  border-radius: 999px;
  padding: 16px 26px;
  color: #061320;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 16px;
  font-weight: 900;
}

.checkout-actions {
  margin-top: 20px;
}

.checkout-actions p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: right;
}

.error-text {
  color: #ff9a9a !important;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(124, 240, 197, 0.36);
  border-radius: 24px;
  background: rgba(124, 240, 197, 0.1);
}

.qr-panel[hidden] {
  display: none;
}

.qr-panel img {
  width: 220px;
  height: 220px;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
}

.doc-page p,
.doc-page li {
  line-height: 1.8;
}

@media (max-width: 860px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .feature-grid,
  .price-grid,
  .pricing-auth,
  .buyer-grid,
  .qr-panel {
    grid-template-columns: 1fr;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .order-header,
  .total-bar,
  .checkout-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-actions p {
    text-align: left;
  }

  li {
    grid-template-columns: 54px 1fr;
  }

  li span {
    grid-column: 2;
  }
}
