:root {
  color-scheme: dark;
  --bg: #070912;
  --text: #f3f4f2;
  --muted: rgba(243, 244, 242, 0.68);
  --faint: rgba(243, 244, 242, 0.43);
  --line: rgba(243, 244, 242, 0.15);
  --ice: #a9c7d8;
  --display: "Syne", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --hand: "Illusion Script", Georgia, "Times New Roman", serif;
}

@font-face {
  font-display: swap;
  font-family: "Illusion Script";
  font-style: normal;
  font-weight: 400;
  src: url("../../assets/fonts/IllusionScript-Regular.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.011) 1px, transparent 1px),
    var(--bg);
  background-size: 58px 58px;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  text-rendering: optimizeLegibility;
}

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

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

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

.site-header,
footer,
.hero,
.core-features,
.interface-section,
.highlights,
.purchase {
  width: min(calc(100% - 56px), 1240px);
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}

.site-header p,
footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.63rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lab-link {
  font-family: var(--hand);
  font-size: 1.75rem;
  line-height: 1;
  transition: color 180ms ease;
}

.lab-link:hover,
.lab-link:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--ice);
  outline: none;
}

.eyebrow {
  margin-bottom: 15px;
  color: var(--ice);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 46px;
  padding: clamp(68px, 8vw, 104px) 0 clamp(76px, 9vw, 112px);
  isolation: isolate;
}

.hero-aura {
  position: absolute;
  top: -8%;
  right: 5%;
  z-index: -1;
  width: min(54vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 57, 119, 0.3), rgba(48, 29, 65, 0.08) 49%, transparent 72%);
  filter: blur(7px);
}

h1,
h2,
h3,
.purchase-name {
  font-family: var(--display);
}

h1 {
  margin-bottom: 0;
  font-size: clamp(4.9rem, 9.8vw, 9.2rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.82;
  white-space: nowrap;
}

.hero-summary {
  align-self: end;
}

.app-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tagline {
  margin-bottom: 11px;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  font-weight: 500;
  line-height: 1.4;
}

.intro {
  max-width: 390px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.product-frame {
  grid-column: 1 / -1;
  margin: clamp(36px, 5vw, 60px) 0 0;
  padding: clamp(8px, 1vw, 13px);
  border: 1px solid rgba(169, 199, 216, 0.2);
  background:
    linear-gradient(140deg, rgba(91, 57, 119, 0.18), transparent 40%),
    rgba(255, 255, 255, 0.025);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.product-frame img {
  width: 100%;
  height: auto;
}

.hero-footnote {
  grid-column: 1 / -1;
  margin: 13px 0 0;
  color: var(--faint);
  font-size: 0.6rem;
  letter-spacing: 0.11em;
  text-align: right;
  text-transform: uppercase;
}

.core-features,
.interface-section,
.highlights,
.purchase {
  padding: clamp(70px, 8vw, 104px) 0;
  border-top: 1px solid var(--line);
}

.core-features {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(54px, 8vw, 108px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.7vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 42px minmax(150px, 0.8fr) minmax(210px, 1.2fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number {
  margin: 0;
  color: var(--faint);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.feature-list h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.feature-list article > p:last-child,
.interface-copy > p,
.highlights li p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.interface-section {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(50px, 7vw, 94px);
  align-items: center;
}

.strip-frame {
  margin: 0;
  padding: 20px 13px;
  border: 1px solid rgba(169, 199, 216, 0.16);
  background:
    radial-gradient(circle at 72% 50%, rgba(89, 55, 115, 0.25), transparent 48%),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
}

.strip-frame img {
  width: 100%;
  height: auto;
}

.interface-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.9rem, 4.8vw, 4.9rem);
}

.interface-copy > p {
  max-width: 390px;
}

.interface-copy > p + p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.highlights {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: clamp(54px, 8vw, 108px);
}

.highlights-heading h2 {
  font-size: clamp(2.9rem, 4.8vw, 4.8rem);
}

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

.highlights li {
  min-height: 108px;
  padding: 18px 22px 18px 0;
  border-bottom: 1px solid var(--line);
}

.highlights li:nth-child(even) {
  padding-right: 0;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.highlights li span {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 0.89rem;
  font-weight: 600;
}

.purchase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(54px, 8vw, 108px);
  align-items: center;
}

.purchase-heading h2 {
  max-width: 680px;
  font-size: clamp(3rem, 5.7vw, 5.8rem);
}

.purchase-details {
  margin: 22px 0 0;
  margin-bottom: 0;
  color: var(--faint);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-action {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.price {
  margin-bottom: 20px;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.035em;
}

.price span {
  color: var(--faint);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
}

.purchase-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.purchase-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.purchase-button-primary {
  border: 1px solid rgba(243, 244, 242, 0.88);
  background: rgba(243, 244, 242, 0.95);
  color: var(--bg);
}

.purchase-button-primary:hover,
.purchase-button-primary:focus-visible {
  border-color: var(--ice);
  background: var(--ice);
  outline: none;
}

.purchase-button-wechat {
  cursor: pointer;
}

.purchase-button-wechat:hover,
.purchase-button-wechat:focus-visible {
  border-color: var(--ice);
  background: var(--ice);
  outline: none;
}

.button-status {
  color: rgba(5, 7, 12, 0.45);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.purchase-note {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 0.64rem;
  line-height: 1.55;
}

.checkout-dialog {
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(169, 199, 216, 0.28);
  background: rgba(7, 9, 18, 0.98);
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
}

.checkout-dialog::backdrop {
  background: rgba(2, 4, 9, 0.82);
  backdrop-filter: blur(12px);
}

.checkout-shell {
  position: relative;
  padding: clamp(30px, 6vw, 48px);
}

.checkout-close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font: 300 1.55rem/1 var(--sans);
}

.checkout-close:hover,
.checkout-close:focus-visible {
  color: var(--text);
  outline: 1px solid var(--line);
}

.checkout-heading {
  padding-right: 30px;
}

.checkout-heading h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 7vw, 3.2rem);
}

.checkout-help,
.checkout-status,
.checkout-timer,
.checkout-order-reference,
.checkout-success-step p {
  color: var(--faint);
  font-size: 0.72rem;
  line-height: 1.7;
}

.checkout-summary {
  display: grid;
  gap: 18px;
}

.checkout-summary-product,
.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.checkout-summary-product > div {
  display: grid;
  gap: 6px;
}

.checkout-summary-product strong {
  font-size: 0.9rem;
  font-weight: 500;
}

.checkout-summary-product > span,
.checkout-summary-label,
.checkout-summary-adjustment,
.checkout-summary-total > span {
  color: var(--faint);
  font-size: 0.68rem;
}

.checkout-summary-adjustment {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.checkout-summary-adjustment[hidden] {
  display: none;
}

.checkout-summary-adjustment span:last-child {
  color: rgba(243, 244, 242, 0.74);
  font-variant-numeric: tabular-nums;
}

.checkout-summary-total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-summary-total strong {
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.checkout-step {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.checkout-email-step {
  display: grid;
  gap: 12px;
}

.checkout-email-step[hidden],
.checkout-qr-step[hidden],
.checkout-success-step[hidden] {
  display: none;
}

.checkout-email-step > label,
.checkout-discount-field label {
  color: var(--muted);
  font-size: 0.7rem;
}

.checkout-email-step input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font: 400 0.86rem/1 var(--sans);
}

.checkout-email-step input:focus {
  border-color: var(--ice);
  outline: none;
}

.checkout-discount-field {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.checkout-discount-field label span {
  color: var(--faint);
  font-size: 0.64rem;
}

.checkout-discount-field > div {
  display: grid;
  grid-template-columns: 1fr auto;
}

.checkout-discount-field input {
  min-width: 0;
  text-transform: uppercase;
}

.checkout-discount-field button {
  min-width: 72px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.checkout-discount-field button:disabled {
  cursor: wait;
  opacity: 0.5;
}

#checkout-discount-feedback {
  margin: 0;
  color: rgba(174, 214, 184, 0.88);
  font-size: 0.68rem;
}

#checkout-discount-feedback[data-error="true"] {
  color: #f0a6ad;
}

.checkout-submit {
  min-height: 52px;
  border: 1px solid rgba(243, 244, 242, 0.88);
  background: var(--text);
  color: var(--bg);
  cursor: pointer;
  font: 600 0.76rem/1 var(--sans);
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.55;
}

.checkout-help {
  margin: 0;
}

.checkout-qr-step,
.checkout-success-step {
  text-align: center;
}

.checkout-qr-frame {
  width: min(100%, 280px);
  margin: 0 auto 20px;
  padding: 14px;
  background: #fff;
}

.checkout-qr-frame img {
  width: 100%;
  aspect-ratio: 1;
}

.checkout-status {
  margin-bottom: 4px;
  color: var(--muted);
}

.checkout-timer {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.checkout-order-reference {
  margin: 10px 0 0;
  color: rgba(243, 244, 242, 0.38);
  font-variant-numeric: tabular-nums;
}

.checkout-cancel-order {
  margin-top: 20px;
  padding: 10px 4px;
  border: 0;
  border-bottom: 1px solid rgba(243, 244, 242, 0.28);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 0.7rem/1.2 var(--sans);
}

.checkout-cancel-order:hover,
.checkout-cancel-order:focus-visible {
  border-bottom-color: var(--ice);
  color: var(--text);
  outline: none;
}

.checkout-cancel-order:disabled {
  cursor: wait;
  opacity: 0.5;
}

.checkout-success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border: 1px solid var(--ice);
  border-radius: 50%;
  color: var(--ice);
  font-size: 1.5rem;
}

.checkout-success-step h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.checkout-error {
  margin: 18px 0 0;
  color: #e8a6a6;
  font-size: 0.7rem;
  line-height: 1.6;
}

.checkout-error[data-tone="notice"] {
  color: rgba(174, 214, 184, 0.88);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.68rem;
}

footer p {
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
  transition: color 180ms ease;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px 0;
  }

  .hero-heading,
  .hero-summary {
    grid-column: 1;
  }

  .hero-summary {
    max-width: 520px;
  }

  .core-features,
  .interface-section,
  .highlights,
  .purchase {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .strip-frame {
    grid-row: 1;
  }
}

@media (max-width: 620px) {
  .site-header,
  footer,
  .hero,
  .core-features,
  .interface-section,
  .highlights,
  .purchase {
    width: calc(100% - 36px);
  }

  .site-header {
    min-height: 66px;
  }

  .hero {
    padding: 62px 0 74px;
  }

  h1 {
    font-size: clamp(3.75rem, 18vw, 5rem);
    white-space: normal;
  }

  .hero-summary {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 0 17px;
    align-items: center;
  }

  .app-icon {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  .tagline {
    margin-bottom: 5px;
    font-size: 0.98rem;
  }

  .intro {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .product-frame {
    width: calc(100% + 18px);
    margin-top: 16px;
    padding: 5px;
  }

  .hero-footnote {
    font-size: 0.52rem;
    line-height: 1.6;
  }

  .core-features,
  .interface-section,
  .highlights,
  .purchase {
    padding: 70px 0;
  }

  h2,
  .interface-copy h2,
  .highlights-heading h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .feature-list article {
    grid-template-columns: 34px 1fr;
    gap: 8px 14px;
  }

  .feature-list article > p:last-child {
    grid-column: 2;
  }

  .strip-frame {
    width: calc(100% + 18px);
    padding: 18px 8px;
    overflow: hidden;
  }

  .strip-frame img {
    width: 205%;
    max-width: none;
    transform: translateX(-1%);
  }

  .highlights ul {
    grid-template-columns: 1fr;
  }

  .highlights li,
  .highlights li:nth-child(even) {
    min-height: 0;
    padding: 16px 0;
    border-left: 0;
  }

  .purchase-buttons {
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }

  footer p {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
