:root {
  color-scheme: dark;
  --page-bg: #030306;
  --page-text: #f4f1f7;
  --page-muted: #8a8492;
  --purple: #ae62ff;
  --purple-hot: #d65cff;
  --orange-light: #ffb347;
  --ink: #151713;
  --paper: #f3f0e8;
  --muted: #6f736b;
  --line: #dedbd2;
  --orange: #f7931a;
  --orange-dark: #d97600;
  --green: #20855a;
  --red: #b4412e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--page-bg); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--page-text);
  background:
    radial-gradient(circle at 18% 25%, rgba(130,57,255,.09), transparent 27%),
    radial-gradient(circle at 82% 18%, rgba(247,147,26,.055), transparent 24%),
    var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 3px; }
[hidden] { display: none !important; }

.topbar { position: absolute; z-index: 5; top: 0; left: 0; height: 82px; padding: 28px clamp(24px, 4vw, 68px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #ddd8e2; font: 800 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; text-decoration: none; text-transform: uppercase; }
.brand-mark { display: flex; width: 22px; height: 22px; align-items: end; gap: 2px; padding: 4px; border: 1px solid rgba(174,98,255,.64); border-radius: 6px; box-shadow: inset 0 0 12px rgba(137,63,255,.24), 0 0 18px rgba(137,63,255,.12); }
.brand-mark i { width: 3px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, var(--purple), var(--orange)); }
.brand-mark i:nth-child(1) { height: 5px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 8px; }

.page-shell { min-height: 100svh; }
.hero { position: relative; width: 100%; min-height: 1120px; padding: 40vh 24px 118px; overflow: hidden; isolation: isolate; }
.scene-stage { position: absolute; z-index: 0; top: 0; right: 0; left: 0; height: 840px; overflow: hidden; background: #030306; transform: translateY(-20%); }
#product-scene { display: block; width: 100%; height: 100%; cursor: grab; filter: saturate(1.28) contrast(1.15) brightness(1.14); touch-action: pan-y; }
#product-scene:active { cursor: grabbing; }
.scene-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 22%, transparent, rgba(3,3,6,.18) 56%, rgba(3,3,6,.62) 92%), linear-gradient(to bottom, rgba(3,3,6,.04), transparent 58%, #030306 100%); }

.hero-content { position: relative; z-index: 2; width: min(1180px, 100%); margin-inline: auto; text-align: center; }
.hero-content h1 { margin: 0; color: transparent; background: linear-gradient(100deg, #f7f0ff 12%, #d9a7ff 52%, #ffb347 92%); background-clip: text; -webkit-background-clip: text; filter: drop-shadow(0 4px 8px rgba(0,0,0,.92)) drop-shadow(0 12px 28px rgba(0,0,0,.72)); font-size: clamp(37px, 5.4vw, 86px); line-height: .9; font-kerning: normal; letter-spacing: .16em; }
.hero-content > p { width: fit-content; margin: 13px auto 0; padding: 4px 12px; color: #e1d5e2; border-radius: 8px; background: rgba(3,3,6,.24); box-shadow: 0 6px 22px rgba(0,0,0,.5); font: 650 clamp(13px, 1.15vw, 17px) ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.45; letter-spacing: .12em; text-shadow: 0 2px 7px #000, 0 6px 18px rgba(0,0,0,.9); }
.hero-content > p span { display: block; white-space: nowrap; }

.download-cta, .primary { display: flex; align-items: center; justify-content: center; gap: 14px; color: #1c1002; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ffad42, var(--orange)); box-shadow: 0 12px 28px rgba(247,147,26,.23); font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.download-cta:hover, .primary:hover { transform: translateY(-2px); box-shadow: 0 15px 32px rgba(247,147,26,.3); }
.download-cta:disabled, .primary:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.download-cta { min-width: min(340px, 100%); min-height: 64px; margin: 42px auto 58px; padding: 0 24px; font-size: 13px; letter-spacing: .04em; }
.download-cta #price { padding-right: 14px; border-right: 1px solid rgba(28,16,2,.22); font-size: 20px; letter-spacing: -.04em; }
.download-cta > span:last-child { font-size: 18px; }

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; padding: 1px; overflow: hidden; border-radius: 22px; background: linear-gradient(120deg, rgba(174,98,255,.78), rgba(214,92,255,.5) 42%, rgba(247,147,26,.65) 78%, rgba(255,179,71,.38)); box-shadow: 0 50px 140px rgba(0,0,0,.76), -20px 0 100px rgba(137,63,255,.12), 20px 0 100px rgba(247,147,26,.09); }
.video-placeholder { position: relative; display: grid; width: 100%; height: 100%; place-items: center; overflow: hidden; border-radius: 21px; background: radial-gradient(circle at 35% 48%, rgba(112,48,179,.17), transparent 31%), radial-gradient(circle at 72% 52%, rgba(247,147,26,.08), transparent 28%), linear-gradient(145deg, #0d0712, #030306 70%); }
.video-placeholder::before { position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; content: ""; mask-image: radial-gradient(circle, #000, transparent 72%); }
.play-mark { position: relative; display: grid; width: 78px; height: 78px; place-items: center; padding-left: 5px; color: #f6eaf8; border: 1px solid rgba(255,179,71,.28); border-radius: 50%; background: rgba(255,255,255,.045); box-shadow: -12px 0 45px rgba(174,98,255,.18), 12px 0 45px rgba(247,147,26,.13); font-size: 22px; }

.share-offer { display: grid; width: 100%; grid-template-columns: minmax(0,.82fr) minmax(540px,1.18fr); gap: clamp(52px, 7vw, 96px); align-items: center; padding: 104px max(24px, calc((100vw - 1180px) / 2)) 112px; border-top: 1px solid rgba(255,255,255,.055); background: radial-gradient(circle at 14% 48%, rgba(137,63,255,.055), transparent 25%), radial-gradient(circle at 82% 48%, rgba(247,147,26,.045), transparent 27%), #07060c; }
.share-copy { max-width: 500px; }
.section-kicker, .kicker { color: var(--orange-light); font: 650 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
.share-offer h2 { margin: 18px 0 22px; color: #f1edf3; font-size: clamp(36px, 3.8vw, 56px); font-weight: 520; line-height: 1.04; letter-spacing: -.04em; }
.share-offer p { max-width: 490px; margin: 0; color: #a39da8; font-size: 15px; font-weight: 400; line-height: 1.72; }
.share-offer small { display: block; max-width: 460px; margin-top: 18px; color: #68636c; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; line-height: 1.55; }
.share-flow { display: grid; grid-template-columns: minmax(150px,1.25fr) auto minmax(100px,.72fr) auto minmax(135px,1fr); gap: 16px; align-items: center; padding: 28px 30px; border: 1px solid rgba(255,179,71,.105); border-radius: 18px; background: linear-gradient(120deg, rgba(137,63,255,.028), rgba(255,255,255,.012) 50%, rgba(247,147,26,.032)); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 24px 70px rgba(0,0,0,.13); }
.share-step { display: grid; min-width: 0; gap: 9px; align-content: center; }
.share-step span { color: #77717c; font: 650 8px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.share-step strong { color: #cbc5ce; font-size: clamp(14px, 1.35vw, 18px); font-weight: 480; line-height: 1.25; letter-spacing: -.015em; }
.share-step em { color: #f0c184; font-size: 1.25em; font-style: normal; font-weight: 620; letter-spacing: -.035em; }
.share-flow > i { color: #5e5862; font: 400 13px ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; }

dialog { color-scheme: light; width: min(540px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; overflow: auto; color: #19181b; border: 0; border-radius: 22px; background: var(--paper); box-shadow: 0 28px 90px rgba(0,0,0,.65); }
dialog::backdrop { background: rgba(2,2,4,.82); backdrop-filter: blur(8px); }
dialog section { padding: 42px; }
dialog h2 { margin: 10px 0 25px; font-size: 30px; line-height: 1.05; letter-spacing: -.045em; }
.close { position: absolute; z-index: 2; top: 15px; right: 16px; width: 32px; height: 32px; border: 0; border-radius: 50%; color: #777; background: rgba(0,0,0,.05); font-size: 20px; }
form { display: grid; gap: 15px; }
label { display: grid; gap: 7px; color: #6e6a65; font-size: 10px; font-weight: 750; }
label em { font-weight: 500; }
input { min-height: 46px; padding: 0 13px; color: #171619; border: 1px solid #d8d3c8; border-radius: 10px; background: #fff; outline: none; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247,147,26,.12); }
.agree { grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 5px 2px; font-weight: 500; line-height: 1.45; }
.agree input { min-height: 0; margin-top: 2px; }
.primary { width: 100%; min-height: 58px; justify-content: space-between; padding: 0 18px; color: #1c1002; font-size: 11px; }
.link { display: block; margin: 18px auto 0; padding: 5px; color: #7c7770; border: 0; background: transparent; font-size: 10px; text-decoration: underline; }

.payment { display: grid; grid-template-columns: 175px 1fr; overflow: hidden; border: 1px solid #d9d4ca; border-radius: 16px; background: #fff; }
.qr { display: grid; min-height: 175px; place-items: center; padding: 15px; border-right: 1px solid #e2ddd3; }
.qr svg { width: 100%; height: auto; }
.amount { display: grid; align-content: center; gap: 8px; padding: 24px; }
.amount strong { font-size: 18px; }
.amount span { color: #858078; font: 11px ui-monospace, monospace; }
.address { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin-top: 15px; overflow: hidden; border: 1px solid #d9d4ca; border-radius: 10px; background: #fff; }
.address code { overflow: hidden; padding: 13px; font-size: 10px; text-overflow: ellipsis; }
.address button { border: 0; border-left: 1px solid #e2ddd3; background: #f8f5ed; }
.progress { height: 5px; margin-top: 18px; overflow: hidden; border-radius: 99px; background: #ddd8ce; }
.progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), var(--purple)); transition: width .35s; }
#payment-note, #success p { color: #76716b; font-size: 11px; line-height: 1.55; }
.recovery { display: flex; gap: 10px; }
.recovery button, .recovery label { min-height: 34px; padding: 0 10px; color: #6f6a63; border: 1px solid #d9d4ca; border-radius: 8px; background: transparent; font-size: 9px; font-weight: 700; }
.recovery label { display: flex; align-items: center; cursor: pointer; }
.recovery input { display: none; }
.done { display: grid; width: 58px; height: 58px; place-items: center; margin-bottom: 18px; color: #fff; border-radius: 50%; background: #168a59; font-size: 24px; }
.license-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; margin-top: 12px; padding: 12px; border: 1px solid #d9d4ca; border-radius: 10px; background: #fff; font-size: 10px; }
.license-row span { color: #7b766f; }
.license-row code { overflow: hidden; font-weight: 800; text-overflow: ellipsis; }
#toast { position: fixed; z-index: 8; right: 20px; bottom: 20px; padding: 10px 14px; border-radius: 9px; background: #fff; color: #111; font-size: 11px; opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; }
#toast.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { min-height: 980px; }
  .scene-stage { height: 760px; }
  .share-offer { grid-template-columns: 1fr; gap: 48px; padding-block: 88px 96px; }
  .share-flow { width: min(760px, 100%); }
}

@media (max-width: 780px) {
  .topbar { height: 70px; padding: 22px 20px; }
  .hero { min-height: 850px; padding: 40vh 18px 82px; }
  .scene-stage { height: 650px; }
  .hero-content h1 { font-size: clamp(32px, 8.5vw, 56px); }
  .hero-content > p { margin-top: 11px; }
  .video-frame { border-radius: 16px; }
  .video-placeholder { border-radius: 15px; }
  .share-offer { padding-block: 78px 86px; }
}

@media (max-width: 560px) {
  .brand { font-size: 10px; }
  .hero { min-height: 620px; padding: 40vh 14px 70px; }
  .scene-stage { height: 560px; }
  .hero-content h1 { font-size: clamp(29px, 9.5vw, 41px); }
  .hero-content > p { padding-inline: 8px; font-size: clamp(9px, 3vw, 12px); letter-spacing: .1em; }
  .download-cta { width: 100%; min-width: 0; margin: 32px auto 38px; }
  .video-frame { border-radius: 13px; }
  .video-placeholder { border-radius: 12px; }
  .play-mark { width: 58px; height: 58px; font-size: 17px; }
  .share-offer { gap: 34px; padding: 66px 24px 72px; }
  .share-offer h2 { margin-block: 16px 19px; font-size: clamp(32px, 10vw, 42px); }
  .share-offer p { font-size: 14px; line-height: 1.68; }
  .share-offer small { margin-top: 16px; }
  .share-flow { grid-template-columns: 1fr; gap: 0; padding: 8px 22px; }
  .share-flow > i { display: none; }
  .share-step { grid-template-columns: 86px minmax(0,1fr); gap: 18px; align-items: baseline; padding: 17px 0; }
  .share-step:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,.055); }
  .share-step strong { font-size: 15px; }
  dialog section { padding: 36px 22px 26px; }
  .payment { grid-template-columns: 125px 1fr; }
  .qr { min-height: 125px; padding: 10px; }
  .amount { padding: 15px; }
  .amount strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
