/* Yesa - crypto-forward design system. Static, no framework, no build. */
:root {
  --bg: #0a0e13;
  --bg-raise: #10161d;
  --panel: #141c25;
  --line: #1f2a36;
  --ink: #eef2f6;
  --ink-dim: #9aa7b4;
  --green: #2fd575;
  --green-deep: #16a34a;
  --gold: #f0b429;
  --pink: hsl(328 100% 54%); /* Yesa primary, from the live app palette */
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;
  --sans: -apple-system, "Segoe UI", system-ui, Roboto, "Helvetica Neue", sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Nav */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.logo em { color: var(--pink); font-style: normal; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav-links a { color: var(--ink-dim); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.btn {
  display: inline-block; background: var(--green); color: #06280f;
  font-weight: 700; padding: 12px 22px; border-radius: 10px;
  font-size: 16px; transition: transform .1s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn.small { padding: 9px 16px; font-size: 14px; background: var(--pink); color: #fff; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.08;
  letter-spacing: -0.03em; font-weight: 800; max-width: 17ch; margin: 0 auto;
}
.hero h1 em { color: var(--green); font-style: normal; }
.hero h1 em.brand { color: var(--pink); }
.hero .sub {
  color: var(--ink-dim); font-size: clamp(17px, 2.4vw, 20px);
  max-width: 52ch; margin: 18px auto 0;
}
.hero .ctas { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stat chips */
.chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.chip {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 20px; text-align: left; min-width: 170px;
}
.chip b { display: block; font-size: 24px; font-family: var(--mono); color: var(--green); }
.chip span { color: var(--ink-dim); font-size: 13px; }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; margin-bottom: 10px; }
.lead { color: var(--ink-dim); max-width: 60ch; margin-bottom: 32px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
}
.step .n {
  font-family: var(--mono); color: var(--pink); font-size: 14px; font-weight: 700;
}
.step h3 { margin: 8px 0 6px; font-size: 18px; }
.step p { color: var(--ink-dim); font-size: 15px; }

/* Coin grid */
.coins { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.coin {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; text-align: center; color: var(--ink); display: block;
}
.coin:hover { border-color: var(--pink); text-decoration: none; }
.coin b { display: block; font-size: 18px; }
.coin span { color: var(--ink-dim); font-size: 13px; }

/* FAQ */
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; }
.faq p { color: var(--ink-dim); margin-top: 10px; font-size: 15px; }

/* Trust strip */
.trust { display: flex; gap: 28px; flex-wrap: wrap; color: var(--ink-dim); font-size: 14px; }
.trust b { color: var(--ink); }

/* Footer */
footer {
  border-top: 1px solid var(--line); padding: 36px 0; margin-top: 40px;
  color: var(--ink-dim); font-size: 14px;
}
footer .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 22px; }
footer h4 { color: var(--ink); font-size: 14px; margin-bottom: 8px; }
footer a { color: var(--ink-dim); display: block; margin-bottom: 6px; }
.fine { font-size: 12.5px; max-width: 72ch; }

/* Yesa-pink accent variant for CTAs on coin pages */
.btn.brand { background: var(--pink); color: #fff; }

/* ---------- Motion layer (SEO safe: content always present, JS only choreographs) ---------- */
.hero { position: relative; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(90px); opacity: .28; pointer-events: none;
}
.hero::before { width: 420px; height: 420px; left: -120px; top: -60px; background: hsl(328 100% 54%); }
.hero::after { width: 380px; height: 380px; right: -100px; top: 80px; background: var(--green-deep); }

nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px); transition: box-shadow .2s ease; }
nav.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.45); }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

.step, .coin, .chip { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.step:hover, .chip:hover { transform: translateY(-3px); border-color: #2c3a49; }
.coin:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(255,20,141,.10); }

/* Coin lettermark icons */
.coin .ic {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
  margin-bottom: 10px; color: #fff; font-family: var(--mono);
}
.ic.usdt { background: #26a17b; } .ic.btc { background: #f7931a; }
.ic.eth { background: #627eea; } .ic.sol { background: linear-gradient(135deg,#9945ff,#14f195); }
.ic.bnb { background: #f0b90b; color: #201c00; } .ic.usdc { background: #2775ca; }
.ic.ltc { background: #7d8a99; }

/* Coin marquee strip */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-raise); padding: 12px 0; }
.marquee .track { display: flex; gap: 44px; width: max-content; animation: slide 28s linear infinite; }
.marquee span { color: var(--ink-dim); font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.marquee b { color: var(--ink); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee:hover .track { animation-play-state: paused; }

.faq summary { transition: color .15s ease; }
.faq details[open] summary { color: var(--green); }
.faq details p { animation: faqIn .25s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Store badges */
.ctas.badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.ctas.badges img { display: block; height: 56px; width: auto; border-radius: 8px; }
.ctas.badges a:hover img { transform: translateY(-2px); }
.ctas.badges img { transition: transform .15s ease; }
footer img { height: 40px; width: auto; display: block; margin-bottom: 8px; border-radius: 6px; }

/* Legal block: full width under the link columns, left to right */
.legal { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 6px; }
.legal .fine { max-width: none; margin-bottom: 10px; }
.legal .fine:last-child { text-align: center; margin-top: 14px; color: var(--ink-dim); }

/* Rates calculator */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; margin-bottom: 18px; }
.calc-row { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-row input, .calc-row select {
  background: var(--bg); color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: 16px var(--mono);
}
.calc-row input { flex: 1; min-width: 160px; }
.calc-result { font: 700 clamp(22px, 4vw, 32px)/1.3 var(--sans); margin-top: 14px;
  color: var(--green); overflow-wrap: anywhere; }
#rates-table td, #rates-table th { font-family: var(--mono); font-size: 14px; }

/* App screenshots: glossy device treatment */
.shot-wrap { position: relative; display: inline-block; border-radius: 28px; }
.shot-wrap::after { /* glass reflection sweep, inset to stay on the device */
  content: ""; position: absolute; inset: 3% 6%; border-radius: 40px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.04) 18%, transparent 32%);
}
.shot {
  display: block; width: 100%; max-width: 320px; height: auto;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 46px rgba(255,20,141,.16));
  transition: transform .25s ease;
}
.shot-wrap:hover .shot { transform: translateY(-6px) rotate(-.5deg); }

/* Hero with phone */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px;
  align-items: center; text-align: left; }
.hero-grid h1 { margin: 0; max-width: none; }
.hero-grid .sub { margin: 18px 0 0; }
.hero-grid .ctas, .hero-grid .chips { justify-content: flex-start; }
.hero-shot { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-grid h1 { margin: 0 auto; }
  .hero-grid .sub { margin: 18px auto 0; }
  .hero-grid .ctas, .hero-grid .chips { justify-content: center; }
  .hero-shot { order: -1; }
  .hero-shot .shot { max-width: 240px; }
}

/* Media sections (text + screenshot) */
.media-grid { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: center; }
@media (max-width: 820px) { .media-grid { grid-template-columns: 1fr; }
  .media-grid .shot-wrap { margin: 0 auto; } }
