:root {
  --navy: #092e73;
  --navy-deep: #041b45;
  --navy-soft: #174b9b;
  --green: #54e23e;
  --green-dark: #17853e;
  --cloud: #f7f8f4;
  --white: #fff;
  --ink: #071a37;
  --muted: #69758a;
  --line: rgba(9, 46, 115, .13);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; overflow-x: hidden; background: var(--cloud); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--cloud); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.home-page {
  overflow: hidden;
  background:
    linear-gradient(rgba(9,46,115,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,46,115,.035) 1px, transparent 1px),
    var(--cloud);
  background-size: 44px 44px;
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.ambient-one {
  width: 42vw; height: 42vw; right: -17vw; top: -17vw;
  background: radial-gradient(circle, rgba(84,226,62,.19), rgba(84,226,62,0) 70%);
}
.ambient-two {
  width: 45vw; height: 45vw; left: -25vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(9,46,115,.14), rgba(9,46,115,0) 69%);
}

.topbar {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
  position: relative;
  z-index: 20;
}
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-weight: 780; letter-spacing: -.055em; }
.wordmark-logo { width: 45px; height: 40px; object-fit: contain; }
.wordmark i {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; color: var(--green); background: var(--navy);
  font: 800 17px/1 var(--mono);
}
.wordmark-small { font-size: 20px; }
.topbar nav { display: flex; align-items: center; gap: 29px; font-size: 13px; font-weight: 700; }
.topbar nav > a:first-child { color: var(--muted); transition: color .2s; }
.topbar nav > a:first-child:hover { color: var(--navy); }
.nav-download {
  min-height: 43px; padding: 0 17px 0 19px; display: inline-flex; align-items: center; gap: 18px;
  color: var(--white); background: var(--navy); border-radius: 15px; box-shadow: 0 11px 30px rgba(9,46,115,.17);
}
.nav-download span { color: var(--green); }

.landing {
  width: min(1400px, calc(100% - 80px));
  height: calc(100vh - 92px);
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  position: relative;
}
.landing-copy { position: relative; z-index: 4; padding: 0 0 5vh 3vw; }
.micro-label {
  display: flex; align-items: center; gap: 11px; margin-bottom: 24px;
  color: var(--muted); font: 700 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.micro-label span { width: 27px; height: 2px; background: var(--green); }
.landing h1 {
  display: flex; align-items: baseline; gap: .075em; margin: 0;
  color: var(--navy); font-size: clamp(70px, 7.8vw, 124px);
  line-height: .82; letter-spacing: 0; font-weight: 800;
}
.landing h1 .word-solid { color: var(--navy); letter-spacing: -.065em; }
.landing h1 .word-outline {
  display: inline-flex;
  gap: .025em;
  color: transparent;
  letter-spacing: 0;
  -webkit-text-stroke: 2px var(--navy);
}
.landing h1 .word-outline > span { display: inline-block; }
.landing-copy > p {
  margin: 35px 0 0; font-size: clamp(21px, 2vw, 31px); letter-spacing: -.045em; font-weight: 610;
}
.landing-actions { display: flex; align-items: center; gap: 13px; margin-top: 43px; }
.main-button {
  min-width: 250px; height: 72px; padding: 0 18px; display: flex; align-items: center; gap: 14px;
  color: var(--white); background: var(--navy); border-radius: 21px; box-shadow: 0 18px 42px rgba(9,46,115,.19);
  transition: transform .25s, box-shadow .25s;
}
.main-button:hover { transform: translateY(-3px); box-shadow: 0 24px 50px rgba(9,46,115,.24); }
.main-button .android-dot {
  width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto;
  border-radius: 50%; color: var(--navy); background: var(--green); font: 800 13px var(--mono);
}
.main-button > span:nth-child(2) { display: grid; font-size: 16px; line-height: 1.05; font-weight: 750; }
.main-button small { margin-bottom: 4px; color: rgba(255,255,255,.54); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.main-button b { margin-left: auto; color: var(--green); font-size: 18px; }
.circle-button {
  width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 50%; color: var(--navy); background: rgba(255,255,255,.55); font: 700 10px var(--mono);
  transition: background .25s, transform .25s;
}
.circle-button:hover { background: var(--white); transform: rotate(-7deg); }
.landing-foot {
  display: flex; align-items: center; gap: 11px; margin-top: 46px;
  color: #8993a3; font: 700 8px var(--mono); letter-spacing: .09em;
}
.landing-foot i { width: 3px; height: 3px; border-radius: 50%; background: var(--green-dark); }

.brand-stage {
  height: 100%;
  min-height: 590px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  perspective: 1200px;
}
.brand-stage::before {
  content: ""; position: absolute; width: min(38vw, 590px); aspect-ratio: 1; border-radius: 50%;
  background: var(--green); opacity: .96; z-index: -3; box-shadow: 0 40px 100px rgba(84,226,62,.22);
}
.brand-stage::after {
  content: ""; position: absolute; width: min(28vw, 430px); height: 45px; bottom: 12%;
  background: rgba(9,46,115,.22); filter: blur(28px); border-radius: 50%; z-index: -2;
}
.brand-portal {
  width: min(44vw, 690px); display: block; position: relative; z-index: 3;
  transform: rotateY(-5deg) rotateX(2deg); transition: transform .18s ease-out;
  filter: drop-shadow(0 33px 38px rgba(5,29,72,.18));
}
.brand-portal img { display: block; width: 100%; height: auto; }
.stage-ring { position: absolute; border: 1px solid rgba(9,46,115,.14); border-radius: 50%; z-index: -1; }
.ring-one { width: min(47vw, 720px); aspect-ratio: 1; }
.ring-two { width: min(58vw, 900px); aspect-ratio: 1; border-style: dashed; animation: spin 36s linear infinite; }
.scan-tag {
  position: absolute; right: 1.2vw; top: 28%; display: flex; align-items: center; gap: 10px;
  color: var(--navy); font: 700 9px/1.35 var(--mono); letter-spacing: .05em; text-transform: uppercase;
}
.scan-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(84,226,62,.19); }
.coordinate { position: absolute; color: #9aa3b1; font: 700 8px var(--mono); letter-spacing: .08em; }
.coordinate-top { top: 10%; left: 13%; transform: rotate(-90deg); }
.coordinate-bottom { right: 17%; bottom: 7%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Download page */
.sub-page {
  min-height: 100vh;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(84,226,62,.18), transparent 28%),
    linear-gradient(rgba(9,46,115,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,46,115,.035) 1px, transparent 1px),
    var(--cloud);
  background-size: auto, 44px 44px, 44px 44px, auto;
}
.sub-page .topbar { color: var(--ink); }
.sub-page .topbar nav > a:first-child { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.download-shell {
  width: min(1220px, calc(100% - 80px)); min-height: calc(100vh - 92px); margin: 0 auto;
  display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 80px; padding: 60px 0 86px;
}
.download-copy .micro-label { color: var(--muted); }
.download-copy h1 { margin: 0; color: var(--navy); font-size: clamp(65px, 7vw, 112px); line-height: .88; letter-spacing: -.07em; }
.download-copy h1 span { color: transparent; letter-spacing: -.035em; -webkit-text-stroke: 2px var(--navy); }
.download-tagline { margin: 26px 0 0; color: var(--ink); font-size: 20px; letter-spacing: -.02em; }
.download-action {
  min-height: 72px; width: min(100%, 390px); margin-top: 42px; padding: 0 21px;
  display: flex; align-items: center; gap: 16px; border-radius: 21px; background: var(--navy); color: var(--white);
  font-weight: 800; box-shadow: 0 24px 50px rgba(9,46,115,.18); transition: transform .25s, box-shadow .25s;
}
.download-action:hover { transform: translateY(-3px); box-shadow: 0 30px 58px rgba(9,46,115,.23); }
.download-action i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--navy); font-style: normal; }
.download-action span { display: grid; font-size: 17px; }
.download-action small { font: 700 8px var(--mono); letter-spacing: .11em; color: rgba(255,255,255,.54); }
.download-action b { margin-left: auto; color: var(--green); font-size: 23px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 27px; color: var(--muted); font: 700 9px var(--mono); }
.download-meta span { display: grid; gap: 5px; }
.download-meta b { color: var(--navy); font-size: 10px; }
.checksum { display: inline-block; margin-top: 25px; color: var(--muted); font: 700 9px var(--mono); border-bottom: 1px solid var(--line); }
.download-visual { min-height: 660px; position: relative; display: grid; place-items: center; }
.download-orbit { position: absolute; width: 600px; max-width: 48vw; aspect-ratio: 1; border-radius: 50%; background: var(--green); box-shadow: 0 38px 90px rgba(84,226,62,.19); }
.phone {
  width: 330px; min-height: 665px; position: relative; padding: 19px 18px 22px; border: 9px solid #071630;
  border-radius: 48px; background:
    linear-gradient(rgba(9,46,115,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9,46,115,.028) 1px, transparent 1px),
    var(--cloud);
  background-size: 28px 28px;
  color: var(--ink); box-shadow: 0 42px 80px rgba(9,46,115,.28); transform: rotate(3deg);
}
.phone::before { content: ""; position: absolute; width: 112px; height: 24px; top: 9px; left: 50%; transform: translateX(-50%); border-radius: 20px; background: #071630; }
.phone-status { height: 33px; display: flex; justify-content: space-between; padding: 0 7px; font: 700 8px var(--mono); }
.phone-status span:last-child { letter-spacing: 2px; }
.phone-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 4px 20px; }
.phone-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy); letter-spacing: -.05em; }
.phone-logo img { width: 31px; height: 27px; object-fit: contain; }
.phone-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--green); font: 700 8px var(--mono); }
.balance-card { min-height: 194px; padding: 24px; border-radius: 27px; color: var(--white); background: var(--navy); position: relative; overflow: hidden; }
.balance-card::before { content: ""; position: absolute; width: 160px; height: 160px; right: -52px; top: -52px; border: 35px solid var(--green); border-radius: 50%; opacity: .9; }
.balance-card > * { position: relative; z-index: 1; }
.balance-card small { font: 700 8px var(--mono); color: rgba(255,255,255,.53); letter-spacing: .1em; }
.balance-card strong { display: block; margin-top: 12px; font-size: 31px; letter-spacing: -.05em; }
.balance-local { display: block; margin-top: 4px; color: rgba(255,255,255,.52); font: 700 8px var(--mono); }
.asset-pill { display: inline-flex; gap: 7px; margin-top: 14px; padding: 8px 10px; border-radius: 11px; background: rgba(255,255,255,.1); font: 700 8px var(--mono); }
.phone-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 17px 0 21px; }
.phone-actions div { display: grid; place-items: center; gap: 7px; font: 700 8px var(--mono); color: var(--muted); }
.phone-actions i { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 15px; background: #e8eced; color: var(--navy); font-style: normal; font-size: 17px; }
.phone-actions div:nth-child(2) i { background: var(--green); }
.phone-section-title { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.phone-section-title span { color: var(--green-dark); font-size: 9px; }
.phone-row { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.phone-row i { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--green); font-style: normal; font-weight: 800; }
.phone-row.token-trx i { background: #ff3153; color: var(--white); }
.phone-row.token-usdt i { background: #26a17b; color: var(--white); }
.phone-row div { display: grid; gap: 3px; }
.phone-row strong { font-size: 11px; }
.phone-row small { color: var(--muted); font-size: 8px; }
.phone-row b { margin-left: auto; font-size: 10px; }
.phone-nav { position: absolute; left: 18px; right: 18px; bottom: 18px; height: 61px; padding: 0 10px; display: flex; align-items: center; justify-content: space-around; border-radius: 22px; background: var(--white); box-shadow: 0 8px 25px rgba(9,46,115,.1); }
.phone-nav span { color: #9ba3ae; font: 700 8px var(--mono); }
.phone-nav .pay { width: 48px; height: 48px; display: grid; place-items: center; margin-top: -27px; border-radius: 17px; background: var(--navy); color: var(--green); font-size: 19px; box-shadow: 0 8px 20px rgba(9,46,115,.23); }
.download-qr { position: absolute; right: 0; bottom: 5%; width: 136px; padding: 10px; border-radius: 22px; background: var(--white); box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.download-qr img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Live demo */
.demo-page { min-height: 100vh; color: var(--ink); background: var(--cloud); }
.demo-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 54px 0 100px; }
.demo-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.demo-hero h1 { margin: 0; color: var(--navy); font-size: clamp(52px, 8vw, 96px); line-height: .9; letter-spacing: -.08em; }
.demo-status { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 700 9px var(--mono); text-transform: uppercase; }
.demo-status i { width: 9px; height: 9px; border-radius: 50%; background: #b8bec5; }
.demo-status.online i { background: var(--green); box-shadow: 0 0 0 5px rgba(84,226,62,.16); }
.demo-panel { min-height: 530px; padding: 24px; border: 1px solid var(--line); border-radius: 34px; background: rgba(255,255,255,.75); box-shadow: 0 30px 90px rgba(9,46,115,.07); }
.demo-empty { min-height: 480px; display: grid; place-items: center; text-align: center; }
.demo-empty-mark { width: 108px; height: 108px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 35px; background: var(--navy); color: var(--green); font: 800 36px var(--mono); transform: rotate(-7deg); box-shadow: 13px 13px 0 var(--green); }
.demo-empty h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -.04em; }
.demo-empty p { margin: 0 0 29px; color: var(--muted); font-size: 13px; }
.demo-start { min-height: 57px; padding: 0 24px; border: 0; border-radius: 17px; background: var(--navy); color: var(--white); font-weight: 800; cursor: pointer; }
.demo-start span { color: var(--green); margin-left: 18px; }
.demo-active { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; }
.demo-wallet, .demo-feed { border-radius: 26px; padding: 25px; background: var(--navy); color: var(--white); min-height: 480px; }
.demo-feed { background: var(--white); color: var(--ink); }
.demo-wallet small { color: rgba(255,255,255,.48); font: 700 8px var(--mono); letter-spacing: .1em; }
.demo-balance { margin: 14px 0 3px; font-size: clamp(34px, 5vw, 55px); font-weight: 800; letter-spacing: -.06em; }
.demo-asset { color: var(--green); font: 700 10px var(--mono); }
.demo-user { margin-top: 38px; padding: 15px; border-radius: 16px; background: rgba(255,255,255,.08); }
.demo-user code { display: block; margin-top: 7px; color: rgba(255,255,255,.64); font-size: 9px; overflow-wrap: anywhere; }
.scenario-buttons { display: grid; gap: 10px; margin-top: 28px; }
.scenario-buttons button { min-height: 53px; border: 0; border-radius: 16px; cursor: pointer; font-weight: 800; }
.scenario-buttons button:first-child { background: var(--green); color: var(--navy); }
.scenario-buttons button:last-child { background: rgba(255,255,255,.1); color: var(--white); }
.scenario-buttons button:disabled, .demo-start:disabled { opacity: .48; cursor: wait; }
.event-log { height: 140px; padding: 13px; margin-top: 25px; overflow: auto; border-radius: 15px; background: rgba(0,0,0,.14); color: rgba(255,255,255,.63); font: 700 8px/1.7 var(--mono); }
.event-log div::before { content: "› "; color: var(--green); }
.event-log .error { color: #ff9f9f; }
.feed-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.feed-head strong { font-size: 18px; letter-spacing: -.03em; }
.feed-head button { border: 0; background: transparent; color: var(--green-dark); font-size: 11px; font-weight: 800; cursor: pointer; }
.history-list { display: grid; }
.live-row { min-height: 67px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.live-row::before { content: "K"; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--green); font: 800 11px var(--mono); }
.live-row div { display: grid; gap: 3px; }
.live-row strong { font-size: 12px; }
.live-row small { color: var(--muted); font-size: 9px; }
.live-row b { margin-left: auto; font-size: 11px; }
.live-row b.deposit { color: var(--green-dark); }

@media (max-width: 960px) {
  .home-page { overflow-x: hidden; overflow-y: auto; }
  .topbar { width: min(100% - 36px, 1400px); height: 76px; }
  .topbar nav { gap: 18px; }
  .topbar nav > a:first-child { display: none; }
  .nav-download { min-height: 39px; }
  .landing {
    width: min(100% - 36px, 720px); height: auto; min-height: calc(100vh - 76px);
    grid-template-columns: 1fr; padding: 45px 0 50px;
  }
  .landing-copy { padding: 0; text-align: center; order: 2; }
  .micro-label { justify-content: center; }
  .landing h1 { justify-content: center; font-size: clamp(64px, 17.5vw, 104px); }
  .landing-copy > p { margin-top: 24px; }
  .landing-actions { justify-content: center; margin-top: 30px; }
  .landing-foot { justify-content: center; margin-top: 28px; }
  .brand-stage { min-height: 390px; order: 1; }
  .brand-stage::before { width: min(77vw, 390px); }
  .brand-portal { width: min(90vw, 480px); }
  .ring-one { width: min(87vw, 460px); }
  .ring-two { width: min(105vw, 540px); }
  .scan-tag { right: 1%; top: 25%; }
  .coordinate { display: none; }
  .download-shell { width: min(100% - 36px, 680px); grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 35px; }
  .download-copy .micro-label { justify-content: center; }
  .download-action { margin-inline: auto; }
  .download-meta { justify-content: center; }
  .download-note { margin-inline: auto; }
  .download-visual { min-height: 650px; }
  .download-orbit { max-width: none; width: min(92vw, 570px); }
  .demo-active { grid-template-columns: 1fr; }
  .demo-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .wordmark-small span { font-size: 17px; }
  .topbar { width: calc(100% - 28px); }
  .nav-download { padding: 0 12px; font-size: 11px; gap: 8px; }
  .landing { width: calc(100% - 28px); padding-top: 20px; }
  .brand-stage { min-height: 315px; }
  .scan-tag { display: none; }
  .landing h1 { font-size: clamp(56px, 18vw, 76px); }
  .landing-copy > p { font-size: 20px; }
  .main-button { min-width: 220px; height: 64px; border-radius: 19px; }
  .circle-button { width: 64px; height: 64px; }
  .download-shell { width: calc(100% - 34px); }
  .download-copy h1 { font-size: 64px; }
  .download-visual { min-height: 670px; margin: 0; }
  .phone { width: min(315px, calc(100vw - 50px)); }
  .download-qr { right: -10px; }
  .demo-shell { width: calc(100% - 28px); padding-top: 35px; }
  .demo-panel { padding: 12px; border-radius: 27px; }
  .demo-wallet, .demo-feed { padding: 20px; border-radius: 22px; }
}

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