/* ============================================================
   DARK SWAP landing — странично-специфичные стили.
   Токены и материалы приходят из /static/ds/liquid.css.
   ============================================================ */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============ Header ============ */

header.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  padding-top: 14px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 14px 0 20px;
  border-radius: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 6px 18px rgba(var(--accent-rgb) / .40); }
.brand b { color: #fff; font-weight: 800; }
.brand span { color: var(--accent-bright); font-weight: 800; }
.nav-links { position: relative; display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; z-index: 1;
  font-size: 14px; font-weight: 700; color: var(--text-dim);
  padding: 8px 12px; border-radius: 10px;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }
.nav-links .nav-ink { background: rgba(255, 255, 255, .07); border-radius: 10px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 880px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-cta .cta-long { display: none; } }

/* ============ Hero ============ */

.hero { position: relative; padding: 158px 0 72px; text-align: center; overflow: hidden; }
#hero-rays { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#hero-rays::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero .wrap { position: relative; z-index: var(--z-content); }
.hero h1 { font-size: clamp(38px, 7vw, 72px); margin: 24px auto 0; max-width: 900px; color: #fff; }
.hero .lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--text-dim); max-width: 640px; margin: 22px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero-trust { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-trust .pill svg { width: 15px; height: 15px; color: var(--accent-bright); }
.hero-marquee { margin-top: 56px; }

/* Чипы платёжек в marquee */
.pay-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: rgba(255, 255, 255, .05);
  box-shadow: var(--edge-highlight);
  font-size: 13px; font-weight: 700; color: var(--text-dim); white-space: nowrap;
}
.pay-chip .pc-ico { font-size: 16px; line-height: 1; }

/* ============ Sections ============ */

section.block { padding: 84px 0; position: relative; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(28px, 4.5vw, 46px); margin-top: 14px; color: #fff; }
.sec-head p { color: var(--text-dim); font-size: 16px; margin-top: 14px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature { padding: 24px; }
.feature .ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--surface-2); border: 1px solid var(--border);
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 800; color: #fff; }
.feature p { color: var(--text-dim); font-size: 14px; margin-top: 9px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 30px 26px; }
.step .n {
  font-size: 13px; font-weight: 800; color: var(--accent-bright);
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(var(--accent-rgb) / .14);
  border: 1px solid rgba(var(--accent-rgb) / .30);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 18px; font-weight: 800; color: #fff; }
.step p { color: var(--text-dim); font-size: 14px; margin-top: 9px; }

/* Trust stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 22px 18px; text-align: center; }
.stat .num {
  font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(135deg, #fff, var(--accent-bright));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .cap {
  font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-faint); margin-top: 8px;
}

/* FAQ */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq { border-radius: 14px; margin-bottom: 10px; overflow: hidden; transition: border-color .2s; }
.faq:hover { border-color: var(--border-accent); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; font-weight: 700; font-size: 15.5px; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .25s; color: var(--text-faint); flex-shrink: 0; width: 16px; height: 16px; }
.faq[open] summary .chev { transform: rotate(180deg); color: var(--accent-bright); }
.faq .ans {
  padding: 14px 20px 18px; color: var(--text-dim); font-size: 14.5px;
  border-top: 1px solid var(--border-soft);
}
.faq-more { margin-top: 26px; text-align: center; }
.faq-more a { font-size: 14px; font-weight: 700; color: var(--accent-bright); }
.faq-more a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* CTA band */
.cta-band {
  position: relative; text-align: center;
  border-radius: var(--radius-2xl); padding: 60px 30px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(var(--accent-rgb) / .16), rgba(var(--bg-rgb) / .5));
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 0%, rgba(var(--accent-rgb) / .25), transparent 70%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band .border-beam { z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 4.5vw, 44px); color: #fff; }
.cta-band p { color: var(--text-dim); font-size: 17px; margin: 16px auto 30px; max-width: 520px; }
.cta-band .hero-cta { margin-top: 0; }

/* ============ Footer ============ */

footer.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.foot-col h4 {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px;
}
.foot-col a { display: block; color: var(--text-dim); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col a svg { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.foot-about { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 300px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  margin-top: 44px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint); font-size: 13px;
}
