:root {
  color-scheme: dark;
  --bg: #08090a;
  --panel: #151719;
  --panel-2: #1f2526;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f5f1e8;
  --muted: rgba(245, 241, 232, 0.68);
  --soft: rgba(245, 241, 232, 0.44);
  --green: #8bd3a7;
  --red: #e66f5c;
  --gold: #d5b66a;
  --ink: #101214;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(139, 211, 167, 0.10), transparent 28%),
    linear-gradient(315deg, rgba(230, 111, 92, 0.10), transparent 30%),
    var(--bg);
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 9, 10, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 720;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(38px, 7vw, 92px) 0 clamp(44px, 7vw, 86px);
}

.heroMedia {
  position: relative;
  min-height: 440px;
  isolation: isolate;
}

.heroMedia img,
.mediaStack {
  position: absolute;
  width: min(72vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.heroMedia img {
  left: 4%;
  top: 16%;
  z-index: 3;
}

.mediaStackA {
  left: 13%;
  top: 6%;
  z-index: 2;
  background:
    linear-gradient(140deg, rgba(213, 182, 106, 0.86), rgba(70, 99, 113, 0.74)),
    var(--panel-2);
}

.mediaStackB {
  left: 22%;
  top: 26%;
  z-index: 1;
  background:
    linear-gradient(145deg, rgba(230, 111, 92, 0.78), rgba(139, 211, 167, 0.72)),
    var(--panel-2);
}

.heroCopy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(48px, 8vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.summary {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.7;
}

.priceLine {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 30px 0 22px;
}

.price {
  font-size: 38px;
  font-weight: 780;
}

.priceNote,
.minor,
.statusText {
  color: var(--muted);
}

.buyGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.buyButton,
.claimForm button,
.licenseRow button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.buyButton:hover,
.claimForm button:hover,
.licenseRow button:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.10);
}

.buyButton.primary,
.claimForm button {
  border-color: transparent;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
}

.buyButton.isMissing {
  color: var(--soft);
  cursor: not-allowed;
}

.claimSection {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.sectionHeading h2,
.faq h2 {
  font-size: 26px;
  letter-spacing: 0;
}

.claimForm {
  display: grid;
  gap: 16px;
}

.claimForm label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.claimForm input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.claimForm input:focus {
  border-color: rgba(139, 211, 167, 0.76);
  box-shadow: 0 0 0 3px rgba(139, 211, 167, 0.14);
}

.resultBox {
  grid-column: 2;
  margin-top: 2px;
  padding: 18px;
  border: 1px solid rgba(139, 211, 167, 0.36);
  border-radius: 8px;
  background: rgba(139, 211, 167, 0.08);
}

.resultLabel {
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.licenseRow {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 10px;
  align-items: center;
}

.licenseRow code {
  min-width: 0;
  overflow: auto;
  padding: 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 13px;
}

.statusText {
  grid-column: 2;
  min-height: 22px;
  margin: 0;
}

.statusText.error {
  color: var(--red);
}

.faq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 34px 0 82px;
  border-top: 1px solid var(--line);
}

.faq div {
  padding: 18px 0;
}

.faq p {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--soft);
}

@media (max-width: 820px) {
  .topbar {
    height: 58px;
  }

  .hero,
  .claimSection,
  .faq {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .heroMedia {
    min-height: 330px;
    order: -1;
  }

  .heroMedia img,
  .mediaStack {
    width: min(78vw, 330px);
  }

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

  .resultBox,
  .statusText {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
  }
}
