/* SwiftyEx marketing site.
   The home page is the mobile app in purple. The Telegram bot has its own
   page in teal. */
:root {
  --ink: #0d0819;
  --ink-2: #140d24;
  --panel: #1a1230;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f6f3ff;
  --muted: #bdb5d3;
  --app: #6200ee;
  --app-soft: #b794ff;
  --bot: #03b5b9;
  --bot-soft: #5fe6e9;
  --display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--display); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--bot-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--ink-2); }
.section-head { max-width: 720px; display: grid; gap: 14px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 19px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--app-soft); }
.kicker.bot { color: var(--bot-soft); }

/* Nav */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13, 8, 25, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-links a { padding: 8px 13px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.07); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: none; color: var(--text); cursor: pointer; font-size: 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 8px 20px; border-radius: 14px; font-weight: 700; font-size: 16px; border: 1px solid transparent; transition: transform 0.15s; }
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
.btn-store { background: #fff; color: #120a22; text-align: left; line-height: 1.15; }
.btn-store small { display: block; font-size: 11px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Phone frame */
.phone { width: 100%; max-width: 290px; padding: 9px; border-radius: 42px; background: #05030b; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.85); }
.phone img { width: 100%; height: auto; aspect-ratio: 1170 / 2532; object-fit: cover; border-radius: 33px; }

.status { align-self: flex-start; justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); font-size: 14px; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6dfbbc; }

/* Telegram page hero, with a mock built from the bot's real menu */
.bot-hero { background: linear-gradient(150deg, #037f83 0%, #07494f 56%, #08202a 100%); overflow: hidden; }
.bot-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 80px); }
.bot-hero .app-hero-copy { padding-bottom: 0; }
.bot-hero .app-hero-copy > p { color: #e6fbfb; }
.page-bot .num { color: var(--bot-soft); }
.tg { width: 100%; max-width: 420px; justify-self: center; padding: 16px 14px; border-radius: 26px; background: #0e1b22; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 34px 70px -26px rgba(0, 0, 0, 0.85); }
.tg-head { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tg-head img { width: 40px; height: 40px; border-radius: 50%; }
.tg-head b { display: block; font-size: 15px; line-height: 1.25; }
.tg-head span { font-size: 13px; color: var(--bot-soft); }
.tg-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tg-keys span { padding: 10px 6px; border-radius: 9px; background: #24404c; text-align: center; font-size: 14px; font-weight: 600; }

/* Product panels */
.panels { display: block; }
.panel + .panel { margin-top: 20px; }
.panel { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(30px, 5vw, 64px) clamp(26px, 5vw, 72px) 0; border-radius: 30px; overflow: hidden; }
.panel.purple { background: linear-gradient(150deg, #4a12b0, #210a55); }
.panel.teal { background: linear-gradient(150deg, #037f83, #08343b); }
.panel:nth-child(even) .panel-copy { order: 2; }
.panel-copy { display: grid; gap: 16px; justify-items: start; padding-bottom: clamp(30px, 5vw, 64px); }
.panel-copy h3 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.panel-copy p { max-width: 460px; color: #f1edff; font-size: clamp(17px, 1.6vw, 20px); }
.panel-shot { display: flex; justify-content: center; height: clamp(340px, 36vw, 440px); overflow: hidden; }
.panel-shot .phone { max-width: 280px; height: max-content; }
.btn-pill { min-height: 46px; padding: 8px 22px; border-radius: 999px; background: #fff; color: #120a22; font-size: 15px; }
.flow { display: grid; gap: 8px; justify-items: center; justify-self: center; width: 100%; max-width: 340px; padding-bottom: clamp(30px, 5vw, 64px); }
.flow span { width: 100%; padding: 16px 20px; border-radius: 16px; background: rgba(0, 0, 0, 0.3); font-weight: 700; text-align: center; }
.flow .flow-main { background: #fff; color: #120a22; }
.flow i { font-style: normal; font-weight: 800; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 28px clamp(26px, 5vw, 72px); border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.callout p { margin-top: 4px; color: var(--muted); }
.caption { margin-top: 30px; color: #a79fbd; font-size: 14px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: grid; align-content: start; gap: 10px; padding: 28px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.card p { color: var(--muted); font-size: 16px; }
.num { font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--app-soft); }

/* App hero */
.app-hero { background: linear-gradient(150deg, #6200ee 0%, #3b0a91 52%, #150a33 100%); overflow: hidden; }
.app-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center; padding-top: clamp(48px, 7vw, 80px); }
.app-hero-copy { display: grid; gap: 24px; padding-bottom: clamp(48px, 7vw, 80px); }
.app-hero-copy > p { font-size: clamp(18px, 2vw, 21px); color: #efeaff; max-width: 580px; }
.phones { position: relative; display: flex; justify-content: center; height: 590px; }
.phones .phone { position: absolute; width: 270px; }
.phones .phone:first-child { left: 2%; top: 74px; }
.phones .phone:last-child { right: 2%; top: 0; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); padding-inline: max(24px, calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.facts div { padding: 26px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: clamp(32px, 4vw, 46px); line-height: 1.15; letter-spacing: -0.03em; }
.facts span { color: var(--muted); font-size: 15px; }

/* Rates */
.rates { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); overflow: hidden; }
.rate { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.7fr; gap: 14px; align-items: center; padding: 19px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rate:last-child { border-bottom: 0; }
.rate b { font-family: var(--display); font-size: 17px; }
.rate b span { margin-left: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.rate .change { text-align: right; }
.rate .up { color: #6dfbbc; }
.rate .down { color: #ff9c90; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
details { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
summary { padding: 19px 22px; font-weight: 700; cursor: pointer; }
details p { padding: 0 22px 20px; color: var(--muted); }

/* Closing CTA */
.closing.single { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: clamp(30px, 5vw, 56px); border-radius: 30px; background: linear-gradient(150deg, #6200ee, #2c0b70); overflow: hidden; }
.closing.single.bot { background: linear-gradient(150deg, #037f83, #08343b); }
.closing.single > div { display: grid; gap: 18px; }
.closing.single img { width: 170px; }

/* Footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 36px; }
.footer h3 { margin-bottom: 12px; color: var(--text); font-size: 15px; letter-spacing: 0; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer-about { display: grid; gap: 14px; align-content: start; max-width: 400px; }
.footer .brand { color: var(--text); }
.legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }

@media (max-width: 980px) {
  .app-hero-grid, .bot-hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .app-hero-copy { padding-bottom: 0; }
  .phones { max-width: 580px; width: 100%; margin-inline: auto; height: 520px; overflow: hidden; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; background: var(--ink); border-bottom: 1px solid var(--line); }
  .topbar.nav-open .nav-links { display: flex; }
  .nav-links a { padding: 13px 14px; }
  .panel { grid-template-columns: 1fr; }
  .panel:nth-child(even) .panel-copy { order: 0; }
  .panel-copy { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .facts { padding-inline: 16px; }
  .facts div { padding: 20px 14px; }
  .cards { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .phones { height: 430px; }
  .phones .phone { width: 200px; }
  .phones .phone:first-child { left: 0; top: 54px; }
  .phones .phone:last-child { right: 0; }
  .rate { grid-template-columns: 1fr auto; padding: 16px 18px; }
  .rate .ngn { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 14px; }
  .rate .change { display: none; }
  .closing.single { grid-template-columns: 1fr; }
  .closing.single img { display: none; }
}
/* Stacking cards: each panel pins under the nav and the next one slides over
   it. stack.js sets --cover from 0 to 1 as a panel gets covered. Short screens
   and reduced-motion users get the plain list, so no content is ever cut off. */
@media (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .panel { --step: 12px; position: sticky; top: calc(88px + var(--i, 0) * var(--step)); min-height: calc(clamp(340px, 36vw, 440px) + clamp(30px, 5vw, 64px)); transform: scale(calc(1 - 0.07 * var(--cover, 0))); transform-origin: 50% 0; will-change: transform; }
  .panel::after { content: ""; position: absolute; inset: 0; background: var(--ink); opacity: calc(0.5 * var(--cover, 0)); pointer-events: none; }
  .panel:nth-child(2) { --i: 1; }
  .panel:nth-child(3) { --i: 2; }
  .panel:nth-child(4) { --i: 3; }
  .panel:nth-child(5) { --i: 4; }
  .panel:nth-child(6) { --i: 5; }
}
@media (min-height: 760px) and (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .panel { --step: 8px; min-height: 590px; align-content: start; }
  .panel-shot { height: 250px; }
  .flow { padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
