/* =========================================================================
   XRP Mobile — Landing page styles (built on XRPL Snap tokens)
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #07070A; color: var(--fg-primary);
  font-family: var(--font-sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.grad-text {
  color: var(--xrpl-green);
  -webkit-text-fill-color: var(--xrpl-green);
}
.wrap { width: min(1180px, 92vw); margin: 0 auto; }

/* ---------- scroll progress -------------------------------------------- */
.progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(0); z-index: 100;
  background: linear-gradient(90deg, var(--xrpl-green), var(--xrpl-blue), var(--xrpl-blue-purple));
}

/* ---------- nav -------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
  transition: background var(--dur-slow) var(--ease-standard), backdrop-filter var(--dur-slow), border-color var(--dur-slow), padding var(--dur-slow);
  border-bottom: 1px solid transparent;
}
.nav.stuck { background: rgba(8,8,11,.72); backdrop-filter: blur(16px); border-bottom-color: var(--border-subtle); padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: var(--fw-bold); font-size: 18px; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-gradient); box-shadow: 0 6px 18px rgba(50,230,133,.34); }
.brand-mark svg { color: #06210f; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: var(--fw-medium); color: var(--fg-muted); transition: color var(--dur-fast); }
.nav-links a:hover { color: var(--fg-primary); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border-radius: var(--radius-pill);
  font-size: 15px; font-weight: var(--fw-semibold); cursor: pointer; border: none;
  transition: transform var(--dur-fast) var(--ease-standard), background var(--dur-fast), box-shadow var(--dur-base), opacity var(--dur-fast);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); box-shadow: 0 8px 30px rgba(50,230,133,.28); }
.btn-primary:hover { box-shadow: 0 12px 44px rgba(50,230,133,.42); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--fg-primary); border: 1px solid var(--border-default); height: 50px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }

/* ---------- generic section ------------------------------------------- */
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: var(--fw-semibold) 12px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); padding: 7px 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); border: 1px solid rgba(50,230,133,.2);
}
.sec-title { font-weight: var(--fw-bold); font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.sec-sub { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; color: var(--fg-muted); }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-standard), transform .7s var(--ease-standard); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { min-height: 100svh; display: flex; align-items: center; padding: 120px 0 60px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-xpattern {
  position: absolute; inset: -20% -10% auto; height: 90%;
  background-image: url("assets/x-pattern.svg"); background-size: 180px; background-repeat: repeat;
  opacity: .045;
  -webkit-mask-image: radial-gradient(120% 80% at 70% 20%, #000, transparent 70%);
  mask-image: radial-gradient(120% 80% at 70% 20%, #000, transparent 70%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.hero-glow.g1 { width: 620px; height: 620px; left: 48%; top: -10%; background: radial-gradient(circle, rgba(50,230,133,.5), transparent 62%); }
.hero-glow.g2 { width: 520px; height: 520px; left: 58%; top: 30%; background: radial-gradient(circle, rgba(154,82,255,.4), transparent 62%); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }

.hero-title { font-weight: var(--fw-bold); font-size: clamp(40px, 7.4vw, 80px); line-height: .98; letter-spacing: -.03em; margin: 22px 0 0; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); line-height: 1.55; color: var(--fg-muted); max-width: 30ch; margin: 22px 0 0; }
@media (max-width: 900px) { .hero-sub { margin-inline: auto; } }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-cta { justify-content: center; } }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-meta { justify-content: center; } }
.hero-meta .hm { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .hm-v { font-family: var(--font-mono); font-weight: 700; font-size: 22px; }
.hero-meta .hm-k { font-size: 12.5px; color: var(--fg-muted); }

/* hero phone stage with orbit */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 540px; }
.orbit-stage { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.o-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.06); }
.o-ring.a { width: 360px; height: 360px; animation: spin 26s linear infinite; }
.o-ring.b { width: 480px; height: 480px; animation: spin 38s linear infinite reverse; }
.o-ring.c { width: 600px; height: 600px; animation: spin 52s linear infinite; }
.o-ring i {
  position: absolute; top: -5px; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
.o-ring.b i { background: var(--xrpl-blue-purple); box-shadow: 0 0 16px var(--xrpl-blue-purple); }
.o-ring.c i { background: var(--xrpl-blue); box-shadow: 0 0 16px var(--xrpl-blue); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-conic {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--xrpl-green) 80deg, transparent 170deg, var(--xrpl-blue-purple) 260deg, transparent 360deg);
  filter: blur(46px); opacity: .55; animation: spin 12s linear infinite;
}

/* phone frame (shared with scroll-telling) */
.phone {
  position: relative; z-index: 3;
  width: 300px; height: 612px; border-radius: 46px;
  background: var(--bg-app); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 50px 120px rgba(0,0,0,.65), inset 0 0 0 2px rgba(255,255,255,.04);
  overflow: hidden; padding: 9px;
}
.phone-glass { position: absolute; inset: 0; z-index: 6; border-radius: 46px; pointer-events: none; box-shadow: inset 0 1px 1px rgba(255,255,255,.16); }
.phone-notch { position: absolute; z-index: 7; top: 16px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #000; border-radius: 14px; }
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden;
  background: var(--bg-app);
}
.hero-phone { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 12px; }
.scroll-cue .mouse { width: 24px; height: 38px; border: 2px solid var(--border-strong); border-radius: 13px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s var(--ease-standard) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translate(-50%, -3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- marquee ---------------------------------------------------- */
.marquee { border-block: 1px solid var(--border-subtle); padding: 22px 0; overflow: hidden; background: rgba(255,255,255,.015); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: slide 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: 12px; color: var(--fg-muted); font-weight: var(--fw-semibold); font-size: 16px; white-space: nowrap; }
.marquee-item svg { width: 20px; height: 20px; color: var(--accent); }

/* =========================================================================
   TELL — vertical scroll-telling (sticky phone swaps screens, text scrolls)
   ========================================================================= */
.tell { position: relative; }
.tell-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* spectacular hero perspective grid (NEAR-style receding floor) */
.hero-grid { position: absolute; left: 0; right: 0; top: 0; height: 100svh; overflow: hidden; }
.hero-grid::before {
  content: ""; position: absolute; left: -60%; right: -60%; bottom: -8%; height: 62vh;
  background-image:
    linear-gradient(rgba(50,230,133,.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50,230,133,.32) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(340px) rotateX(64deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 2%, transparent 72%);
  mask-image: linear-gradient(to top, #000 2%, transparent 72%);
  animation: gridflow 4.5s linear infinite;
}
.hero-grid::after {
  content: ""; position: absolute; left: -60%; right: -60%; top: -8%; height: 42vh;
  background-image:
    linear-gradient(rgba(154,82,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,82,255,.16) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(340px) rotateX(-64deg);
  transform-origin: top center;
  -webkit-mask-image: linear-gradient(to bottom, #000 2%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 2%, transparent 70%);
  animation: gridflow 6s linear infinite reverse;
  opacity: .7;
}
@keyframes gridflow { to { background-position: 0 52px, 0 52px; } }
/* horizon glow line where the floor grid meets the scene */
.hero-grid .horizon { position: absolute; left: 50%; top: 46%; transform: translate(-50%,-50%); width: 70%; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(50,230,133,.28), transparent 70%); filter: blur(20px); }
@media (prefers-reduced-motion: reduce) { .hero-grid::before, .hero-grid::after { animation: none; } }
.tell-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .tell-grid { grid-template-columns: 1fr; } }
/* left: hero block then feature panels */
.tell-content { min-width: 0; }
.tell-hero { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 40px; }
.tell-hero .hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.tell-hero .hero-meta { display: flex; gap: 26px; margin-top: 32px; flex-wrap: wrap; }
.tell-hero .hero-meta .hm-v { font-family: var(--font-mono); font-weight: 700; font-size: 21px; }
.tell-hero .hero-meta .hm-k { font-size: 12.5px; color: var(--fg-muted); }
.tell-hero-inline { display: none; }
@media (max-width: 860px) {
  .tell-hero { min-height: auto; padding: 110px 0 0; text-align: center; }
  .tell-hero .hero-cta, .tell-hero .hero-meta { justify-content: center; }
  .tell-hero-inline { display: grid; place-items: center; margin-top: 32px; }
}

.tell-sticky { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; }
@media (max-width: 860px) { .tell-sticky { display: none; } }
.tell-phone-wrap { position: relative; display: grid; place-items: center; }
.tell-glow { position: absolute; width: 460px; height: 460px; border-radius: 50%; filter: blur(85px); opacity: .4; transition: background .6s var(--ease-standard); background: radial-gradient(circle, rgba(50,230,133,.5), transparent 64%); }
.tell-xp { position: absolute; inset: -10%; background: url("assets/x-pattern.svg"); background-size: 150px; opacity: .04; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%); }
.tell-screen-stack { position: relative; background: var(--bg-app); }
.tell-screen { position: absolute; inset: 0; border-radius: 38px; overflow: hidden; opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .5s var(--ease-standard), transform .5s var(--ease-standard); pointer-events: none; }
.tell-screen.active { opacity: 1; transform: none; }

.tell-panels {}
.tell-panel { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
.tell-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .12em; color: var(--accent); }
.tell-h { font-weight: var(--fw-bold); font-size: clamp(28px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -.02em; margin: 14px 0 0; text-wrap: balance; }
.tell-p { font-size: clamp(16px, 2vw, 19px); line-height: 1.6; color: var(--fg-muted); margin: 18px 0 0; max-width: 44ch; }
.tell-list { margin: 26px 0 0; display: flex; flex-direction: column; gap: 13px; }
.tell-list .tl { display: flex; align-items: center; gap: 13px; font-size: 15px; font-weight: var(--fw-medium); color: var(--fg-secondary); }
.tell-list .tl-ic { width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.tell-list .tl-ic svg { width: 18px; height: 18px; }
/* mobile: phone shown inline under each panel's text */
.tell-phone-inline { display: none; }
@media (max-width: 860px) {
  .tell-panel { min-height: auto; padding: 40px 0; }
  .tell-phone-inline { display: grid; place-items: center; margin-top: 28px; }
}

/* splash mock orb — EXACT replica of the app onboarding splash (scaled to the mock) */
.m-splash { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 22px; overflow: hidden; }
.m-splash-glow { position: absolute; left: 50%; top: 34%; width: 250px; height: 250px; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 62%); filter: blur(8px); animation: glowpulse 6s var(--ease-standard) infinite; }
@keyframes glowpulse { 0%,100% { opacity: .8; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.12); } }
.m-splash-stage { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.m-splash .splash-orb { position: absolute; width: 280px; height: 280px; display: grid; place-items: center; transform: scale(.6); }
.m-splash .orb-glow { position: absolute; width: 238px; height: 238px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 70deg, transparent 170deg, var(--brand-secondary) 250deg, transparent 360deg); filter: blur(28px); opacity: .5; animation: orbspin 7s linear infinite; }
.m-splash .ring { position: absolute; width: 132px; height: 132px; border-radius: 50%; border: 1.5px solid var(--accent); animation: ripple 3.6s ease-out infinite; }
.m-splash .ring.r2 { animation-delay: -1.2s; }
.m-splash .ring.r3 { animation-delay: -2.4s; }
@keyframes ripple { from { transform: scale(.62); opacity: .6; } to { transform: scale(2); opacity: 0; } }
.m-splash .orbit { position: absolute; border-radius: 50%; }
.m-splash .orbit-1 { width: 196px; height: 196px; animation: orbspin 9s linear infinite; }
.m-splash .orbit-2 { width: 252px; height: 252px; animation: orbspin 15s linear infinite reverse; }
.m-splash .orbit-3 { width: 156px; height: 156px; animation: orbspin 6s linear infinite reverse; }
.m-splash .orbit .dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); top: -4px; left: calc(50% - 4.5px); box-shadow: 0 0 12px var(--accent); }
.m-splash .orbit-2 .dot { background: var(--brand-secondary); box-shadow: 0 0 12px var(--brand-secondary); }
.m-splash .orbit-2 .dot:nth-child(2) { top: auto; bottom: -4px; }
.m-splash .orbit-3 .dot { width: 6px; height: 6px; background: var(--xrpl-white); box-shadow: 0 0 10px var(--accent); }
@keyframes orbspin { to { transform: rotate(360deg); } }
.m-splash .splash-mark { position: relative; z-index: 2; width: 116px; height: 116px; border-radius: 30px; display: grid; place-items: center; overflow: hidden; background: var(--brand-gradient); box-shadow: 0 20px 60px rgba(50,230,133,.34), 0 0 0 6px rgba(255,255,255,.04), inset 0 1px 0 rgba(255,255,255,.3); animation: markfloat 5s ease-in-out infinite; }
.m-splash .splash-mark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-130%); animation: shine 3.8s ease-in-out 1s infinite; }
.m-splash .splash-mark svg { color: #06210f; position: relative; z-index: 1; }
@keyframes markfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes shine { 0%,55% { transform: translateX(-130%); } 80%,100% { transform: translateX(130%); } }
.m-pagedots { display: flex; gap: 5px; }
.m-pagedots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.2); }
.m-pagedots i.on { width: 15px; border-radius: 3px; background: var(--accent); }
.m-btn.ghost { background: rgba(255,255,255,.07); color: var(--fg-primary); border: 1px solid var(--border-default); }
.m-qr { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 10px; margin: 0 auto; }
.m-qr svg { width: 100%; height: 100%; }
.m-callout { display: flex; gap: 8px; padding: 9px 11px; border-radius: 10px; background: rgba(255,103,25,.1); border: 1px solid rgba(255,103,25,.22); color: var(--xrpl-orange); font-size: 10px; line-height: 1.4; margin-top: 10px; }
.m-callout svg { width: 14px; height: 14px; flex: 0 0 14px; }
.m-outlined { border: 1px solid var(--border-subtle); border-radius: 12px; margin-top: 10px; }
.m-of { padding: 9px 12px; }
.m-of + .m-of { border-top: 1px solid var(--border-subtle); }
.m-of .k { font-size: 9px; color: var(--fg-muted); margin-bottom: 3px; }
.m-of .v { font-family: var(--font-mono); font-size: 11px; font-weight: 700; word-break: break-all; }
.m-swaprow { position: relative; }
.m-swaptoggle { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-elevated); border: 3px solid var(--bg-surface); color: var(--accent); }
.m-swaptoggle svg { width: 16px; height: 16px; }

/* =========================================================================
   PHONE SCREEN MOCKUP INTERNALS (compact app vocabulary)
   ========================================================================= */
.mock { position: absolute; inset: 0; background: var(--bg-app); display: flex; flex-direction: column; font-size: 12px; }
.mock-sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px 6px; font-size: 11px; font-weight: 600; color: var(--fg-secondary); }
.mock-sb .dots { display: flex; gap: 3px; }
.mock-sb .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-muted); }
.mock-body { flex: 1; padding: 4px 14px 16px; overflow: hidden; }
.mock-top { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 12px; }
.mock-top .mt-title { font-weight: 700; font-size: 15px; }
.mock-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--fg-secondary); }
.mock-ic svg { width: 15px; height: 15px; }

/* success tick + tap pulse + modal-rise (landing feature effects) */
.m-success-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.m-success-ic svg { width: 44px; height: 44px; }
.m-act .mab { position: relative; }
.m-tapring { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--accent); transform: translate(-50%, -50%) scale(.5); opacity: 0; pointer-events: none; }
.tell-screen.active .m-tapring { animation: m-tapr 1.4s var(--ease-standard) .15s infinite; }
@keyframes m-tapr { 0% { opacity: .9; transform: translate(-50%,-50%) scale(.5); } 70% { opacity: 0; transform: translate(-50%,-50%) scale(1.65); } 100% { opacity: 0; } }
.tell-screen.active .m-rise { animation: m-sheetup .62s var(--ease-emphasized) .25s both; }
@keyframes m-sheetup { from { transform: translateY(100%); } to { transform: translateY(0); } }
.tell-screen.active .m-rise-scrim { animation: m-scrimin .55s var(--ease-standard) both; }
@keyframes m-scrimin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tell-screen.active .m-rise, .tell-screen.active .m-rise-scrim, .tell-screen.active .m-tapring { animation: none; } }

.m-card { border-radius: 18px; padding: 16px; border: 1px solid var(--border-subtle); position: relative; overflow: hidden; }
.m-card.flat { background: var(--bg-surface); }
.m-card.grad { background: var(--brand-gradient); color: #06210f; border: none; }
.m-xp { position: absolute; right: -16px; top: -16px; width: 120px; height: 120px; background: url("assets/x-pattern.svg"); background-size: 60px; opacity: .1; }
.m-row { display: flex; align-items: center; justify-content: space-between; }
.m-chip { font-family: var(--font-mono); font-weight: 700; font-size: 11px; padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.1); }
.m-card.grad .m-chip { background: rgba(6,33,15,.14); }
.m-bal { font-family: var(--font-mono); font-weight: 700; font-size: 30px; letter-spacing: -.02em; margin: 14px 0 2px; }
.m-bal small { font-size: 15px; opacity: .65; }
.m-sub { font-size: 11px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.m-pill { padding: 2px 7px; border-radius: 999px; font-family: var(--font-mono); font-weight: 700; font-size: 10px; }
.m-card.flat .m-pill { background: var(--accent-soft); color: var(--accent); }
.m-card.grad .m-pill { background: rgba(6,33,15,.16); }
.m-card.grad .m-sub { color: rgba(6,33,15,.7); }
.m-actions { display: flex; justify-content: space-between; margin-top: 16px; }
.m-act { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 1; }
.m-act .mab { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.m-act .mab svg { width: 18px; height: 18px; }
.m-card.flat .m-act .mab { background: var(--accent); color: var(--fg-on-accent); }
.m-card.flat .m-act .mab.sec { background: rgba(255,255,255,.08); color: var(--fg-primary); }
.m-card.grad .m-act .mab { background: #06210f; color: var(--accent); }
.m-act span { font-size: 10px; font-weight: 700; }
.m-card.grad .m-act span { color: #06210f; }

.m-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border-subtle); margin: 16px 0 6px; }
.m-tab { font-size: 12px; font-weight: 600; color: var(--fg-muted); padding: 8px 0 10px; position: relative; }
.m-tab.on { color: var(--fg-primary); }
.m-tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.m-li { display: flex; align-items: center; gap: 10px; padding: 9px 2px; }
.m-tok { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; }
.m-tok svg { width: 16px; height: 16px; }
.m-li .ml-t { font-size: 12.5px; font-weight: 600; }
.m-li .ml-s { font-size: 10.5px; color: var(--fg-muted); }
.m-li .ml-a { margin-left: auto; text-align: right; }
.m-li .ml-a b { font-family: var(--font-mono); font-size: 12px; font-weight: 700; display: block; }
.m-li .ml-a span { font-family: var(--font-mono); font-size: 10px; color: var(--fg-muted); }

/* earn screen */
.m-earn-hero { border-radius: 18px; padding: 16px; border: 1px solid var(--border-subtle); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(154,82,255,.24), rgba(50,230,133,.10)), var(--bg-surface); }
.m-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.m-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin-top: 12px; }
.m-stat { background: rgba(255,255,255,.05); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 8px; }
.m-stat .k { font-size: 9px; color: var(--fg-muted); }
.m-stat .v { font-family: var(--font-mono); font-weight: 700; font-size: 12px; margin-top: 3px; }
.m-stat .v.acc { color: var(--accent); }
.m-proj { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 12px; margin-top: 12px; background: var(--bg-surface); }

/* super button overlay for send screen */
.m-super-scrim { position: absolute; inset: 0; background: rgba(8,8,10,.55); backdrop-filter: blur(3px); z-index: 4; display: flex; align-items: flex-end; }
.m-sheet { width: 100%; background: var(--bg-surface); border-top: 1px solid var(--border-default); border-radius: 18px 18px 0 0; padding: 10px 14px 16px; }
.m-grab { width: 34px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 4px auto 12px; }
.m-sheet-title { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.m-amt { display: flex; align-items: center; gap: 8px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px 12px; }
.m-amt .a-num { font-family: var(--font-mono); font-weight: 700; font-size: 22px; flex: 1; }
.m-amt .a-chip { display: flex; align-items: center; gap: 6px; background: var(--bg-elevated); border-radius: 999px; padding: 5px 10px 5px 6px; font-weight: 700; font-size: 12px; }
.m-pct { display: flex; gap: 6px; margin-top: 8px; }
.m-pct b { flex: 1; text-align: center; font-size: 11px; font-weight: 700; padding: 6px 0; border-radius: 8px; background: var(--bg-surface-2); border: 1px solid var(--border-subtle); color: var(--fg-muted); }
.m-pct b.on { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.m-btn { height: 42px; border-radius: 10px; background: var(--accent); color: var(--fg-on-accent); font-weight: 700; font-size: 13px; display: grid; place-items: center; margin-top: 12px; }

/* explore movers */
.m-movers { display: flex; gap: 8px; overflow: hidden; margin: 4px 0; }
.m-mover { flex: 0 0 92px; border: 1px solid var(--border-subtle); border-radius: 12px; padding: 10px; background: var(--bg-surface); }
.m-spark { height: 18px; margin: 6px 0 4px; }
.m-search { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 9px 12px; color: var(--fg-muted); font-size: 12px; }
.m-search svg { width: 14px; height: 14px; }

/* share screen */
.m-share-hero { border-radius: 18px; padding: 18px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(154,82,255,.32), rgba(50,230,133,.1)), var(--bg-surface); }
.m-share-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 10px; background: var(--brand-gradient); color: #06210f; }
.m-share-pts { font-family: var(--font-mono); font-weight: 700; font-size: 26px; }
.m-scard { display: flex; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-surface); margin-top: 8px; }
.m-scard .si { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; display: grid; place-items: center; background: rgba(154,82,255,.16); color: var(--xrpl-blue-purple); }
.m-scard .si svg { width: 16px; height: 16px; }
.m-tag { margin-left: auto; font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }

/* bottom nav for mocks */
.m-nav { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px 16px 12px; border-top: 1px solid var(--border-subtle); background: rgba(14,14,16,.8); }
.m-nav .mn { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--fg-muted); flex: 1; }
.m-nav .mn svg { width: 19px; height: 19px; }
.m-nav .mn span { font-size: 8px; font-weight: 700; }
.m-nav .mn.on { color: var(--fg-primary); }
.m-nav .mn-super { flex: 1; display: flex; justify-content: center; }
.m-nav .mn-super .sb { width: 44px; height: 44px; border-radius: 50%; margin-top: -16px; display: grid; place-items: center; background: var(--brand-gradient); border: 3px solid rgba(14,14,16,.9); box-shadow: 0 6px 16px rgba(50,230,133,.3); }
.m-nav .mn-super .sb svg { width: 22px; height: 22px; color: #06210f; }

/* =========================================================================
   FEATURE GRID / SECURITY / STATS / CTA / FOOTER
   ========================================================================= */
.band { padding: clamp(80px, 12vh, 140px) 0; }
.band-head { max-width: 620px; }
.band-head .sec-sub { margin-top: 18px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.fcard {
  position: relative; overflow: hidden; padding: 26px; border-radius: 20px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-standard), border-color var(--dur-base), background var(--dur-base);
}
.fcard:hover { transform: translateY(-5px); border-color: var(--border-default); background: var(--bg-surface-2); }
.fcard .fi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.fcard .fi svg { width: 24px; height: 24px; }
.fcard.alt .fi { background: rgba(154,82,255,.16); color: var(--xrpl-blue-purple); }
.fcard h3 { margin: 0 0 8px; font-size: 19px; font-weight: var(--fw-bold); }
.fcard p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg-muted); }
.fcard .fxp { position: absolute; right: -20px; bottom: -20px; width: 120px; height: 120px; background: url("assets/x-pattern.svg"); background-size: 50px; opacity: .05; }

/* security */
.sec-band { background: radial-gradient(120% 100% at 50% 0%, rgba(154,82,255,.10), transparent 60%); }
.sec-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-points { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.sec-pt { display: flex; gap: 16px; }
.sec-pt .spi { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--accent); }
.sec-pt .spi svg { width: 22px; height: 22px; }
.sec-pt h4 { margin: 0 0 4px; font-size: 16px; font-weight: var(--fw-bold); }
.sec-pt p { margin: 0; font-size: 14px; color: var(--fg-muted); line-height: 1.5; }
.sec-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.sec-shield { width: 150px; height: 150px; border-radius: 40px; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: 0 30px 80px rgba(0,0,0,.5); position: relative; z-index: 2; }
.sec-shield svg { width: 70px; height: 70px; color: var(--accent); }
.sec-orbit { position: absolute; border-radius: 50%; border: 1px dashed rgba(255,255,255,.1); }
.sec-orbit.o1 { width: 250px; height: 250px; animation: spin 30s linear infinite; }
.sec-orbit.o2 { width: 340px; height: 340px; animation: spin 44s linear infinite reverse; }
.sec-orbit i { position: absolute; width: 34px; height: 34px; border-radius: 11px; top: calc(50% - 17px); left: -17px; display: grid; place-items: center; background: var(--bg-elevated); border: 1px solid var(--border-subtle); color: var(--fg-secondary); }
.sec-orbit i svg { width: 17px; height: 17px; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
.stat { padding: 28px 20px; border-radius: 18px; background: var(--bg-surface); border: 1px solid var(--border-subtle); text-align: center; }
.stat .sv { font-family: var(--font-mono); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; }
.stat .sv.acc { color: var(--accent); }
.stat .sk { font-size: 13px; color: var(--fg-muted); margin-top: 8px; }

/* big CTA */
.cta { padding: clamp(80px, 14vh, 160px) 0; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 7vw, 80px);
  text-align: center; background: linear-gradient(150deg, rgba(50,230,133,.14), rgba(154,82,255,.18)), var(--bg-surface);
  border: 1px solid var(--border-default);
}
.cta-xp { position: absolute; inset: 0; background: url("assets/x-pattern.svg"); background-size: 120px; opacity: .05; }
.cta-card h2 { position: relative; font-weight: var(--fw-bold); font-size: clamp(30px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -.02em; margin: 0; }
.cta-card p { position: relative; font-size: 18px; color: var(--fg-muted); margin: 18px auto 0; max-width: 46ch; }
.cta-btns { position: relative; display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 11px; height: 58px; padding: 0 22px; border-radius: 16px; background: var(--fg-primary); color: #000; font-weight: 600; }
.store-btn svg { width: 26px; height: 26px; }
.store-btn .sb-t { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn .sb-t small { font-size: 10px; font-weight: 500; }
.store-btn .sb-t b { font-size: 16px; }
.store-btn.dark { background: rgba(255,255,255,.06); color: var(--fg-primary); border: 1px solid var(--border-default); }

/* footer */
.footer { border-top: 1px solid var(--border-subtle); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); margin: 0 0 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--fg-secondary); margin-bottom: 11px; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); color: var(--fg-muted); font-size: 13px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-surface); border: 1px solid var(--border-subtle); color: var(--fg-secondary); transition: all var(--dur-fast); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- nav CTA contrast + hover states ---------------------------- */
.nav-links a.nav-cta { color: var(--xrpl-black); font-weight: var(--fw-bold); border-radius: var(--radius-sm); }
.nav-links a.nav-cta:hover { color: var(--xrpl-black); }
.store-btn { transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base), filter var(--dur-base); }
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.45); }
.store-btn:not(.dark):hover { filter: brightness(.97); }
.brand { transition: opacity var(--dur-fast); }
.brand:hover { opacity: .82; }
.tell-list .tl { transition: color var(--dur-fast) var(--ease-standard); }
.tell-list .tl:hover { color: var(--fg-primary); }
.tell-list .tl:hover .tl-ic { background: var(--accent); color: var(--fg-on-accent); transition: background var(--dur-fast), color var(--dur-fast); }
.footer-social a, .footer-col a { transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.footer-social a:hover { transform: translateY(-2px); }
/* in-phone "live" hovers — make the mock feel interactive */
.m-act { cursor: pointer; }
.m-act .mab { transition: transform var(--dur-fast) var(--ease-standard), filter var(--dur-fast); }
.m-act:hover .mab { transform: translateY(-3px); filter: brightness(1.08); }
.m-btn { cursor: pointer; transition: filter var(--dur-fast), transform var(--dur-fast); }
.m-btn:hover { filter: brightness(1.06); }
.m-btn:active { transform: scale(.985); }
.m-li, .m-scard, .m-mover { transition: background var(--dur-fast) var(--ease-standard); border-radius: 12px; }
.m-li:hover, .m-scard:hover, .m-mover:hover { background: rgba(255,255,255,.04); }
.m-tab { cursor: pointer; }
.m-pct b, .m-chip { transition: filter var(--dur-fast); }

/* ---------- legal subpages (privacy / terms) --------------------------- */
.legal-wrap { position: relative; max-width: 780px; margin: 0 auto; padding: 130px 24px 90px; }
.legal-bg { position: absolute; inset: 0 0 auto; height: 420px; z-index: 0; pointer-events: none; overflow: hidden; }
.legal-bg .hero-glow { position: absolute; width: 520px; height: 520px; left: 50%; top: -160px; transform: translateX(-50%); border-radius: 50%; filter: blur(80px); opacity: .4; background: radial-gradient(circle, rgba(50,230,133,.4), transparent 62%); }
.legal { position: relative; z-index: 1; }
.legal-mark { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-gradient); color: #06210f; box-shadow: 0 12px 30px rgba(50,230,133,.3); margin-bottom: 22px; }
.legal h1 { font-size: clamp(32px, 5vw, 50px); font-weight: var(--fw-bold); letter-spacing: -.02em; line-height: 1.05; }
.legal .upd { color: var(--fg-muted); font-size: 14px; margin-top: 14px; font-family: var(--font-mono); }
.legal .lead { color: var(--fg-secondary); font-size: 18px; line-height: 1.6; margin-top: 22px; }
.legal h2 { font-size: 20px; font-weight: var(--fw-bold); margin: 40px 0 12px; letter-spacing: -.01em; }
.legal h2 .num { color: var(--accent); font-family: var(--font-mono); font-size: 15px; margin-right: 10px; }
.legal p { color: var(--fg-muted); line-height: 1.7; font-size: 15.5px; margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { color: var(--fg-muted); line-height: 1.7; font-size: 15.5px; margin-bottom: 7px; }
.legal a.inline { color: var(--accent); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-muted); font-size: 14px; font-weight: var(--fw-semibold); margin-bottom: 28px; transition: color var(--dur-fast); }
.legal-back:hover { color: var(--fg-primary); }
.legal-divider { height: 1px; background: var(--border-subtle); margin: 40px 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
