/* LoonaPay — лендинг. Та же система, что у Mini App
   (frontend-new/design-system/loonapay): тёплый графит, Roboto Flex,
   оранжевый — только главное действие. */

:root {
  --bg: #1C1917;
  --bg2: #171412;
  --card: #26211E;
  --card2: #2E2826;
  --line: #35302D;
  --ink: #F2EEEB;
  --ink2: #CFC8C4;
  --muted: #9D9390;
  --dim: #6F6560;
  --acc: #F36D24;
  --acc-ink: #171412;
  --pos: #8FC79A;
  --r: 16px;
  --wrap: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 "Roboto Flex", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink2); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i-lg { width: 26px; height: 26px; }

/* ── типографика ───────────────────────────────────────────────────── */
.eyebrow {
  font-stretch: 125%;
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-stretch: 151%;
  font-weight: 250;
  letter-spacing: -0.01em;
  line-height: 1.04;
}
h1.display { font-size: clamp(40px, 6.2vw, 78px); margin-top: 18px; }
.h2 { font-size: clamp(30px, 4.2vw, 52px); margin-top: 14px; }
.lead { margin-top: 22px; max-width: 34em; font-size: 17px; color: var(--ink2); }
h3 { font-stretch: 125%; font-weight: 500; font-size: 18px; letter-spacing: 0.01em; }

/* ── надпись LOONAPAY ──────────────────────────────────────────────── */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-stretch: 151%;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  line-height: 1;
  white-space: nowrap;
}
.wm-moon {
  display: inline-block;
  width: 0.8em; height: 0.8em;
  margin-right: 0.34em;
  border: 0.09em solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent 50%, currentColor 50%);
}
.wordmark-sm { font-size: 12px; }
.wordmark-xs { font-size: 10px; }

/* ── кнопки ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 16px;
  font-stretch: 151%;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--acc); color: var(--acc-ink); }
.btn-primary:hover { background: #f57d3a; }
.btn-outline { border: 1px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--dim); background: var(--card); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 11px; border-radius: 12px; }

/* ── шапка ─────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 20, 18, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-stretch: 125%; font-weight: 500; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  transition: color .16s ease;
}
.nav-links a:hover { color: var(--ink); }

/* ── первый экран ──────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-moon {
  position: absolute; z-index: 0;
  top: -140px; right: -220px;
  width: 760px; aspect-ratio: 1;
  background: url("assets/moon-v2.webp") center / contain no-repeat;
  opacity: .55;
  -webkit-mask-image: radial-gradient(circle at 34% 40%, #000 48%, transparent 80%);
  mask-image: radial-gradient(circle at 34% 40%, #000 48%, transparent 80%);
  pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--dim); }

/* макет телефона */
.phone {
  justify-self: center;
  width: min(360px, 100%);
  aspect-ratio: 390 / 800;
  padding: 10px;
  border-radius: 48px;
  background: #0f0d0c;
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.phone-screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 38px; background: var(--bg);
  display: flex; flex-direction: column;
  font-size: 12px;
}
.tg-bar { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; background: var(--bg2); color: var(--ink); }
.tg-x, .tg-dots { font-size: 12px; opacity: .9; }
.tg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border-radius: 10px; background: var(--card2); font-size: 12px; }
.tg-pill img { width: 16px; height: 16px; border-radius: 4px; }
.app-head { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.app-head .i { width: 16px; height: 16px; }
.app-moon {
  position: absolute; z-index: 0;
  top: 58px; right: -34%;
  width: 96%; aspect-ratio: 1;
  background: url("assets/moon-v2.webp") center / contain no-repeat;
  -webkit-mask-image: radial-gradient(circle at 34% 40%, #000 50%, rgba(0,0,0,.5) 80%);
  mask-image: radial-gradient(circle at 34% 40%, #000 50%, rgba(0,0,0,.5) 80%);
}
.app-balance { position: relative; z-index: 1; padding: 108px 16px 14px; }
.app-balance .eyebrow { font-size: 8.5px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.moon-dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, transparent 50%, currentColor 50%); }
.amount { margin-top: 4px; font-stretch: 151%; font-weight: 250; font-size: 38px; line-height: 1; }
.amount span { font-size: .5em; color: var(--muted); }
.meta { margin-top: 8px; color: var(--ink2); font-size: 10.5px; }
.meta em { font-style: normal; color: var(--pos); margin-left: 10px; }
.app-pay {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 12px 0; padding: 0 14px; min-height: 42px; border-radius: 12px;
  background: var(--acc); color: var(--acc-ink);
  font-stretch: 151%; font-weight: 650; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.app-pay .i { width: 16px; height: 16px; }
.app-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 6px 12px 0; }
.app-actions span {
  display: flex; align-items: center; justify-content: center; min-height: 32px;
  border: 1px solid var(--line); border-radius: 10px;
  font-stretch: 112%; font-weight: 600; font-size: 7px; letter-spacing: .08em; text-transform: uppercase;
}
.app-assets { margin: 14px 16px 0; }
.row-head { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 7.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.asset { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.coin { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; font-size: 13px; color: var(--ink); }
.asset-name { flex: 1; font-size: 11.5px; }
.asset-val { text-align: right; font-size: 11.5px; }
.asset-name small, .asset-val small { display: block; color: var(--muted); font-size: 9px; }
.app-nav {
  margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 6px 18px; background: var(--bg2); border-top: 1px solid var(--line);
  font-stretch: 151%; font-weight: 600; font-size: 6.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center;
}
.app-nav .on { color: var(--ink); position: relative; }
.app-nav .on::before { content: ""; position: absolute; top: -11px; left: 50%; width: 22px; height: 2px; transform: translateX(-50%); background: var(--acc); }

/* ── секции ────────────────────────────────────────────────────────── */
.sec { padding: 96px 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.tile { padding: 28px; border-radius: var(--r); background: var(--card); min-height: 220px; display: flex; flex-direction: column; }
.tile .i { color: var(--ink2); }
.tile h3 { margin-top: auto; padding-top: 36px; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.tile-wide { grid-column: span 2; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 32px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { display: block; font-stretch: 151%; font-weight: 250; font-size: 44px; line-height: 1; color: var(--acc); }
.steps h3 { margin-top: 28px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--ink2); }

.card-stage { perspective: 1200px; display: grid; place-items: center; min-height: 320px; }
.metal-card {
  position: relative;
  width: min(420px, 100%); aspect-ratio: 1.586;
  padding: 26px; border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #5b5551 0%, #3b3633 38%, #2a2624 70%, #3a3532 100%);
  box-shadow: 0 50px 80px -40px rgba(0,0,0,.95), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotateX(14deg) rotateY(-18deg) rotateZ(4deg);
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--ink);
}
.metal-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.12), transparent 42%); pointer-events: none; }
.chip { width: 44px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #d8d3cf, #aaa39e 55%, #7d7672); }
.pan { font-stretch: 125%; font-size: 19px; letter-spacing: .14em; }
.card-foot { display: flex; align-items: flex-end; gap: 18px; font-size: 11px; letter-spacing: .14em; color: rgba(242,238,235,.8); }
.card-foot span:first-child { flex: 1; }
.card-foot b { font-size: 26px; font-style: italic; font-weight: 900; letter-spacing: -.01em; color: var(--ink); }

.partner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding: 48px; border-radius: 24px; background: var(--card); }

.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-stretch: 151%; font-weight: 250; font-size: 26px; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 40em; color: var(--muted); }

.final { position: relative; overflow: hidden; padding: 120px 0; border-top: 1px solid var(--line); text-align: center; }
.final-moon {
  position: absolute; left: 50%; top: 50%;
  width: 640px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("assets/moon-v2.webp") center / contain no-repeat;
  opacity: .28; pointer-events: none;
}
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .btn { margin-top: 34px; }

.foot { padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot-in p { margin-top: 12px; color: var(--muted); font-size: 14px; }
.foot nav { display: flex; gap: 24px; }
.foot nav a { font-stretch: 125%; font-weight: 500; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.foot .fine { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }

/* ── адаптив ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { padding: 48px 0 72px; }
  .hero-in, .split, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-moon { width: 520px; top: -80px; right: -260px; opacity: .32; }
  .grid { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 28px 0 8px; border-left: 0; border-bottom: 1px solid var(--line); }
  .partner { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
}
@media (max-width: 600px) {
  .sec { padding: 72px 0; }
  .grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .tile { min-height: 0; }
  .hero-cta .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  .card-stage { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
