/* Motion & showcase layer for the landing page. Everything degrades to a
   static page with prefers-reduced-motion or without JavaScript. */

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Hero */
.hero2 { position: relative; overflow: hidden; color: #f3f6fb; background: #070a10; }
.hero2 .aurora { position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none; filter: blur(60px); opacity: .85; }
.hero2 .aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.hero2 .aurora span:nth-child(1) { width: 520px; height: 520px; left: 55%; top: 0; background: radial-gradient(circle, rgba(46,229,157,.55), transparent 65%); }
.hero2 .aurora span:nth-child(2) { width: 460px; height: 460px; left: 70%; top: 30%; background: radial-gradient(circle, rgba(59,130,246,.45), transparent 65%); animation-duration: 22s; }
.hero2 .aurora span:nth-child(3) { width: 420px; height: 420px; left: 5%; top: 55%; background: radial-gradient(circle, rgba(245,158,11,.30), transparent 65%); animation-duration: 26s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px,40px) scale(1.12); } }
.hero2 .grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 65% 35%, #000 25%, transparent 72%); }
.hero2 .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 70px; padding-bottom: 90px; min-height: 720px; }
.hero2 h1 { font-size: clamp(40px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -1.8px; margin: 18px 0; }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator b { grid-area: 1/1; font-weight: 800; opacity: 0; transform: translateY(40%); transition: opacity .5s, transform .5s; white-space: nowrap; }
.rotator b.on { opacity: 1; transform: none; }
.rotator b.out { opacity: 0; transform: translateY(-40%); }

/* Phone stack */
.stack { position: relative; height: 640px; perspective: 1600px; }
.device { position: absolute; width: 270px; border-radius: 42px; padding: 9px; background: linear-gradient(145deg, #2a3342, #0e131b); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.device img { border-radius: 34px; display: block; width: 100%; }
.device::before { content: ""; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; background: #05070b; border-radius: 20px; z-index: 2; }
.stack .d1 { left: 50%; top: 10px; margin-left: -135px; z-index: 3; animation: float 7s ease-in-out infinite; }
.stack .d2 { left: 4%; top: 80px; transform: rotateY(18deg) rotateZ(-6deg) scale(.86); opacity: .9; z-index: 2; animation: float 8s ease-in-out .8s infinite; }
.stack .d3 { right: 2%; top: 90px; transform: rotateY(-18deg) rotateZ(6deg) scale(.86); opacity: .9; z-index: 1; animation: float 9s ease-in-out 1.6s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.chip-float { position: absolute; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(13,18,27,.78); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 700; color: #e9eef6; box-shadow: 0 16px 40px rgba(0,0,0,.4); animation: float 6s ease-in-out infinite; white-space: nowrap; }
.chip-float small { display: block; font-size: 11px; color: #9fb0c4; font-weight: 600; }
.chip-float i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.cf1 { left: 0; top: 150px; } .cf2 { right: -6px; top: 330px; animation-delay: 1.2s; } .cf3 { left: 6%; bottom: 40px; animation-delay: 2.1s; }

/* Marquee of trades */
.marquee { overflow: hidden; padding: 22px 0; border-block: 1px solid var(--line); background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--text); }
.tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* Showcase tabs */
.show { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.tabs { display: grid; gap: 10px; }
.tab { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 18px 20px; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s; font: inherit; color: inherit; }
.tab:hover { transform: translateX(4px); }
.tab[aria-selected="true"] { border-color: var(--c, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--brand)) 18%, transparent), var(--shadow); }
.tab h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.tab h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--brand)); }
.tab p { margin: 0; color: var(--muted); font-size: 15px; }
.screen { position: relative; }
.screen .device { position: relative; width: 100%; max-width: 330px; margin: 0 auto; }
.screen .device img { transition: opacity .35s ease, transform .45s ease; }
.screen .device img.swap { opacity: 0; transform: scale(.97); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; }
.gallery .device { position: relative; width: 100%; padding: 7px; border-radius: 34px; }
.gallery .device img { border-radius: 28px; }
.gallery .device::before { width: 60px; height: 16px; margin-left: -30px; top: 14px; }
.gallery figcaption { text-align: center; margin-top: 14px; font-weight: 700; }
.gallery figcaption span { display: block; }
.gallery figcaption span + span { color: var(--muted); font-weight: 500; font-size: 14px; }
.paper { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; letter-spacing: -1px; background: linear-gradient(90deg, var(--brand-deep), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: 14px; }

.honest { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, #3b82f6 9%, transparent); border: 1px solid color-mix(in srgb, #3b82f6 30%, transparent); font-size: 15px; }
.honest b { white-space: nowrap; }

@media (max-width: 980px) {
  .hero2 .wrap { grid-template-columns: 1fr; min-height: 0; }
  .stack { height: 560px; }
  .show { grid-template-columns: 1fr; }
  .screen { order: -1; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .stack { height: 500px; }
  .stack .d2, .stack .d3 { display: none; }
  .chip-float.cf2, .chip-float.cf3 { display: none; }
  .device { width: 240px; }
  .stack .d1 { margin-left: -120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
