@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@600;700;800;900&display=swap');

:root {
  color-scheme: light;
  --ink: #151022;
  --muted: #5f556f;
  --purple: #4d348b;
  --edge: #ded3f4;
  --white: #fff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  overflow: hidden;
  font: 15px/1.45 "DM Sans", system-ui, sans-serif;
  background: radial-gradient(ellipse at 48% 46%, #faf6ff 0%, transparent 63%),
    radial-gradient(ellipse at 98% 0%, #d4c4f5 0%, transparent 63%),
    linear-gradient(145deg, #eae4fb, #fcfaff 87%);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #693db6; outline-offset: 4px; }
.page {
  width: min(100%, 1180px);
  height: 100vh;
  height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: max(22px, env(safe-area-inset-top)) 35px max(22px, env(safe-area-inset-bottom));
}
.topbar { display: flex; justify-content: space-between; align-items: center; }
.brand { display: block; border-radius: 12px; }
.platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #ffffffab;
  font-size: 12px;
  font-weight: 800;
}
.platform span { width: 7px; height: 7px; border-radius: 50%; background: #459b7a; }
.hero {
  display: grid;
  min-height: 0;
  grid-template:
    "intro demo" minmax(0, 1fr)
    "download demo" minmax(0, 1fr) / minmax(0, .94fr) minmax(0, 1fr);
  gap: 27px 25px;
}
.intro { grid-area: intro; align-self: end; }
.eyebrow { margin: 0 0 15px; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .15em; }
h1 { margin: 0; font: 900 clamp(46px, 5.5vw, 80px)/.98 Inter, system-ui, sans-serif; letter-spacing: -.065em; }
h1 em { display: block; color: var(--purple); font-style: normal; }
.intro-copy { max-width: 350px; margin: 17px 0 0; color: var(--muted); font-size: clamp(15px, 1.46vw, 19px); }
.demo {
  grid-area: demo;
  display: grid;
  align-self: center;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto auto;
  justify-items: center;
  gap: 11px;
}
.stage {
  --figure: clamp(74px, 10vw, 128px);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: min(62dvh, 565px);
}
.halo {
  position: absolute;
  z-index: -2;
  inset: 8% 6% 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #d7bbf8 13%, #e8d7ff88 48%, transparent 72%);
  animation: glow 6s ease-in-out infinite alternate;
}
.orbit {
  position: absolute;
  z-index: -1;
  inset: 14% 9%;
  border: 1px dashed #9077c580;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.orbit i, .orbit b {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #813ed0;
  animation: pulse 2.7s ease-in-out infinite alternate;
}
.orbit i { top: 7%; left: 21%; }
.orbit b { bottom: 8%; right: 19%; background: #dc856f; animation-delay: -1s; }
.phone {
  position: absolute;
  z-index: 1;
  inset: 2% 0 2%;
  width: max-content;
  margin-inline: auto;
  aspect-ratio: 780 / 1340;
  transform: rotate(-6deg);
  animation: phone-float 6s ease-in-out infinite;
}
.phone-frame {
  width: 100%;
  height: 100%;
  padding: 6px;
  border-radius: clamp(16px, 3vw, 36px);
  background: #251b38;
  box-shadow: 0 21px 34px #4c33893e, 0 3px 8px #38294a30;
}
.phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.character { position: absolute; width: var(--figure); aspect-ratio: 1; z-index: 2; pointer-events: none; }
.wallet { bottom: 15%; left: 1%; transform: rotate(-12deg); animation: wallet-bob 4.4s ease-in-out infinite; }
.wallet-body {
  position: absolute;
  inset: 23% 5% 17%;
  border: 2px solid #352250;
  border-radius: 19% 24% 24% 19%;
  background: #c8acf4;
  box-shadow: inset 0 -6px #ab8fdf, 0 8px 14px #59408621;
}
.wallet-note {
  position: absolute;
  top: 9%; left: 23%;
  width: 52%; height: 36%;
  border: 2px solid #352250;
  border-radius: 10px;
  background: #c8ebd8;
  transform-origin: right bottom;
  transform: rotate(-13deg);
  animation: paper-wave 3.5s ease-in-out infinite;
}
.wallet-arm {
  position: absolute;
  width: 34%; height: 23%;
  left: -10%; bottom: 39%;
  border-left: 3px solid #352250; border-bottom: 3px solid #352250;
  border-radius: 50%; transform: rotate(20deg);
  transform-origin: right bottom;
  animation: wave 2.8s ease-in-out infinite;
}
.face { position: absolute; display: flex; justify-content: space-between; align-items: center; top: 38%; left: 19%; width: 39%; height: 24%; }
.face b { display: block; width: 16%; height: 59%; background: #352250; border-radius: 999px; animation: blink 5.8s linear infinite; }
.face i { width: 29%; height: 38%; border: 2px solid #352250; border-top: 0; border-radius: 0 0 50% 50%; margin-top: 14%; }
.clasp { position: absolute; right: -2px; top: 34%; width: 28%; height: 36%; background: #f8d4ea; border: 2px solid #352250; border-radius: 7px 0 0 7px; }
.clasp:after { content: ""; position: absolute; width: 20%; aspect-ratio: 1; background: #352250; border-radius: 50%; top: 35%; left: 34%; }
.shoe { position: absolute; bottom: 7%; left: 26%; width: 22%; height: 13%; background: #352250; border-radius: 80% 45% 45% 35%; transform: rotate(-13deg); }
.shoe.right { left: 55%; transform: rotate(13deg); }
.sheet { top: 7%; right: 1%; transform: rotate(13deg); animation: sheet-bob 4.8s ease-in-out infinite; }
.sheet-paper { position: absolute; inset: 5% 17% 16%; border: 2px solid #23473f; border-radius: 12%; background: #d0eddf; box-shadow: inset 0 -6px #a8d4bf, 0 8px 14px #59408621; }
.sheet-paper:after { content: ""; position: absolute; top: -2px; right: -2px; width: 31%; height: 27%; border-radius: 0 17% 0 30%; background: #80b8a4; }
.sheet .face { width: 49%; left: 26%; top: 62%; height: 20%; }
.sheet .face b { animation-delay: -2s; }
.sheet .shoe { background: #23473f; }
.sheet-lines { position: absolute; inset: 20% 18% 47%; border: 1px solid #72ad95; border-radius: 4px; background: repeating-linear-gradient(to bottom, transparent 0 27%, #72ad95 29% 34%); }
.sheet-lines:after { content: ""; display: block; height: 100%; border-left: 1px solid #72ad95; margin-left: 37%; }
.coin { --figure: clamp(53px, 6.8vw, 81px); bottom: 9%; right: 5%; border-radius: 50%; border: 2px solid #563954; background: #f8c9e0; box-shadow: inset 0 0 0 5px #f4b3d0, 0 7px 12px #59408624; display: grid; place-items: center; color: #563954; font: 900 clamp(16px, 2vw, 26px) Inter, sans-serif; animation: coin-hop 3.1s ease-in-out infinite; }
.coin .shoe { bottom: -8%; height: 16%; }
.coin-shine { position: absolute; inset: 19% auto auto 20%; width: 12%; height: 18%; border-radius: 80%; background: #fff6fb; transform: rotate(30deg); }
.mini-coin { position: absolute; left: 18%; top: 25%; width: 15px; height: 20px; border: 2px solid #8763bf; border-radius: 50%; background: #ebe0fc; animation: spin-coin 3.8s linear infinite; }
.spark { position: absolute; z-index: 2; color: #7951b4; font: 800 27px/1 Inter, sans-serif; animation: pulse 2.4s ease-in-out infinite alternate; pointer-events: none; }
.spark-top { left: 10%; top: 11%; }
.spark-bottom { right: 9%; bottom: 34%; color: #9151a3; animation-delay: -1s; }
.features { display: flex; gap: 5px; padding: 4px; border: 1px solid #fff; border-radius: 999px; background: #fff9; }
.features button {
  min-height: 34px;
  padding: 5px 13px;
  border: 0;
  border-radius: 999px;
  color: #4b3e61;
  background: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.features button[aria-pressed="true"] { color: #2e1d4e; background: #e5d8f8; }
.features button:hover { background: #f1e8ff; }
.features button span { margin-right: 2px; }
.feature-caption { min-height: 20px; margin: 0; color: var(--muted); text-align: center; font-size: 12px; }
.download { grid-area: download; align-self: start; width: min(100%, 328px); }
.download-button {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  border: 0;
  font: inherit;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 55px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 10px 23px #271b3b33;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  transition: transform .18s, background .18s;
}
.download-button:hover { background: #30234d; transform: translateY(-2px); }
.download-button:active { transform: scale(.98); }
.download-icon { width: 16px; height: 17px; position: relative; border-bottom: 2px solid #e2cfff; }
.download-icon:before, .download-icon:after { position: absolute; content: ""; display: block; }
.download-icon:before { top: 0; left: 7px; height: 10px; border-left: 2px solid #e2cfff; }
.download-icon:after { top: 5px; left: 4px; width: 6px; height: 6px; border-right: 2px solid #e2cfff; border-bottom: 2px solid #e2cfff; transform: rotate(45deg); }
.download-meta { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.download-meta span { padding: 0 4px; }
.download-count {
  margin: 6px 0 0;
  text-align: center;
  color: #463078;
  font-size: clamp(13px, 3.6vw, 16px);
  font-weight: 700;
  line-height: 1.2;
}
.download-count strong {
  font-size: 1.4em;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@keyframes phone-float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes wallet-bob { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-9px) rotate(-5deg); } }
@keyframes sheet-bob { 0%,100% { transform: translateY(0) rotate(13deg); } 50% { transform: translateY(9px) rotate(5deg); } }
@keyframes coin-hop { 0%,100% { transform: translateY(0) rotate(8deg); } 54% { transform: translateY(-11px) rotate(-12deg); } }
@keyframes paper-wave { 0%,100% { transform: rotate(-13deg); } 50% { transform: rotate(-23deg); } }
@keyframes wave { 0%,100% { transform: rotate(20deg); } 40% { transform: rotate(-11deg); } }
@keyframes blink { 0%,45%,49%,100% { transform: scaleY(1); } 47% { transform: scaleY(.12); } }
@keyframes spin-coin { to { transform: rotateY(360deg); } }
@keyframes pulse { from { opacity: .55; transform: scale(.78); } to { opacity: 1; transform: scale(1.07); } }
@keyframes glow { from { transform: scale(.96); opacity: .68; } to { transform: scale(1.06); opacity: .98; } }

@media (max-width: 700px) and (orientation: portrait) {
  .page { padding: max(14px, env(safe-area-inset-top)) 19px max(12px, env(safe-area-inset-bottom)); }
  .brand { width: 42px; height: 42px; }
  .hero {
    grid-template: "intro" auto "demo" minmax(0, 1fr) "download" auto / minmax(0, 1fr);
    gap: clamp(8px, 2.1dvh, 18px);
    padding-top: clamp(9px, 3.2dvh, 30px);
  }
  .intro { text-align: center; }
  .eyebrow { margin-bottom: 9px; font-size: 9px; letter-spacing: .12em; }
  h1 { font-size: clamp(40px, min(13vw, 7.7dvh), 61px); }
  .intro-copy { margin: 10px auto 0; font-size: 13px; max-width: 310px; }
  .demo { align-self: stretch; gap: 6px; }
  .stage { height: 100%; max-height: 420px; --figure: clamp(63px, 22vw, 101px); align-self: center; }
  .phone-frame { padding: 4px; }
  .wallet { bottom: 18%; left: 2%; }
  .sheet { top: 10%; right: 1%; }
  .coin { --figure: clamp(43px, 13vw, 66px); bottom: 11%; right: 6%; }
  .spark { font-size: 19px; }
  .features button { min-height: 33px; padding-inline: 10px; font-size: 11px; }
  .feature-caption { font-size: 11px; min-height: 16px; }
  .download { justify-self: center; width: min(100%, 385px); }
  .download-button { min-height: 51px; }
  .download-meta { margin-top: 7px; font-size: 11px; }
}
@media (max-height: 640px) and (max-width: 700px) and (orientation: portrait) {
  .page { padding-block: max(9px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom)); }
  .brand { width: 35px; height: 35px; }
  .hero { gap: 8px; padding-top: 10px; }
  h1 { font-size: clamp(30px, min(11vw, 7.5dvh), 44px); }
  .eyebrow { margin-bottom: 6px; }
  .intro-copy { margin-top: 6px; font-size: 12px; }
  .download-button { min-height: 46px; }
  .stage { --figure: 59px; }
}
@media (max-height: 480px) and (orientation: landscape) {
  .page { padding-block: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-bottom)); }
  .brand { width: 37px; height: 37px; }
  .hero { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 20px; }
  h1 { font-size: clamp(28px, 5.2vw, 47px); }
  .eyebrow { margin-bottom: 6px; }
  .intro-copy { margin-top: 7px; font-size: 13px; }
  .stage { height: min(54dvh, 250px); --figure: 57px; }
  .demo { gap: 5px; }
  .features button { min-height: 29px; padding-inline: 8px; font-size: 11px; }
  .download-button { min-height: 40px; }
  .download-meta { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.release-link {display:block;margin:7px auto 0;border:0;background:none;color:#593c91;font:inherit;font-size:12px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
#release-notes {width:min(90vw,460px);max-height:80dvh;box-sizing:border-box;border:0;border-radius:24px;padding:25px;color:#191226;background:#fcfaff;box-shadow:0 20px 80px #19122644;overflow:auto}
#release-notes::backdrop {background:#19122677;backdrop-filter:blur(5px)}
#release-notes h2 {font-size:24px;margin:0 30px 24px 0}#release-notes h3 {font-size:17px;margin:9px 0}#release-notes article+article {margin-top:24px;padding-top:20px;border-top:1px solid #e6dcf4}
#release-notes ul {padding-left:20px;margin-bottom:0;font-size:14px;line-height:1.6}#release-notes li+li {margin-top:7px}.release-version {color:#7149a7;font-size:12px;font-weight:700}.release-close {float:right;border:0;border-radius:50%;width:32px;height:32px;background:#eee6f9;font-size:24px;cursor:pointer}
