
:root {
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius: 16px;
  --radius-lg: 26px;
  --container: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #f43f5e;
  --surface2: var(--surface-2);
  --surface3: var(--surface-2);
}
[data-theme] { --shadow: 0 30px 70px -30px rgba(0, 0, 0, .55); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; }
main { overflow-x: clip; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }

@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(4%, -3%) scale(1.06); } 66% { transform: translate(-3%, 4%) scale(.96); } }
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-glow span { position: absolute; border-radius: 50%; filter: blur(90px); animation: float 22s ease-in-out infinite; }
.bg-glow span:nth-child(1) { width: 60vmax; height: 60vmax; top: -25vmax; right: -18vmax; background: var(--glow-1); }
.bg-glow span:nth-child(2) { width: 50vmax; height: 50vmax; top: 40vh; left: -22vmax; background: var(--glow-2); animation-delay: -8s; }
.bg-glow span:nth-child(3) { width: 34vmax; height: 34vmax; bottom: -10vmax; right: 20%; background: var(--glow-3); animation-delay: -14s; }
.bg-glow::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: .95rem; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; transform: translateX(120%);
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%); transition: transform .7s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -14px color-mix(in srgb, var(--accent-2) 85%, transparent); }
.btn-primary:hover::after { transform: translateX(-120%); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.btn-light { background: #fff; color: #111a33; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5); }
.btn-light:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .86rem; border-radius: 12px; }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.icon-btn svg { width: 20px; height: 20px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 2s infinite; }

.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 15px;
  color: #fff; background: var(--grad); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--accent) 85%, transparent);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.lg { width: 58px; height: 58px; border-radius: 18px; }
.icon-tile.lg svg { width: 28px; height: 28px; }
.icon-tile.sm { width: 42px; height: 42px; border-radius: 13px; }
.icon-tile.sm svg { width: 20px; height: 20px; }

.tag {
  font-size: .74rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
}
.mono-tag {
  display: inline-block; direction: ltr; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, 'Vazirmatn', monospace; font-size: .76rem; font-weight: 700;
  padding: 3px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
}
.mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

.check-list { list-style: none; display: grid; gap: 10px; margin: 18px 0 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: .93rem; }
.check-list svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 3px; }

.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 1.2rem; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 90%, transparent);
}
.brand-logo { width: 42px; height: 42px; border-radius: 13px; object-fit: contain; flex-shrink: 0; }
.brand-text b { display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.theme-picker { position: relative; }
.theme-menu {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 210px; padding: 8px; border-radius: 18px;
  background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.theme-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.theme-menu-title { font-size: .72rem; font-weight: 700; color: var(--faint); padding: 4px 10px 8px; }
.theme-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 12px; border: 0; background: none;
  cursor: pointer; font-size: .88rem; font-weight: 600; text-align: start; transition: background .2s;
}
.theme-item:hover { background: var(--surface-2); }
.theme-swatch { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.theme-check { width: 18px; height: 18px; margin-inline-start: auto; color: var(--accent); opacity: 0; }
.theme-item.is-active .theme-check { opacity: 1; }

.mode-btn[hidden] { display: none; }
.mode-btn .i-sun { display: none; color: var(--amber); }
.mode-btn .i-moon { color: var(--accent); }
[data-mode="light"] .mode-btn .i-sun { display: block; }
[data-mode="light"] .mode-btn .i-moon { display: none; }

.burger { display: none; flex-direction: column; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.drawer {
  display: none; position: absolute; top: var(--nav-h); inset-inline: 0; padding: 12px 20px 20px;
  background: var(--surface-solid); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
}
.drawer a:not(.btn) { display: block; padding: 11px 6px; font-weight: 600; border-bottom: 1px solid var(--border); }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.drawer.is-open { display: block; animation: drop .3s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.hero { padding: 54px 0 30px; }
.slider, .slides { min-width: 0; }
.slides { display: grid; grid-template-columns: minmax(0, 1fr); }
.slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 48px; min-height: 480px;
  opacity: 0; visibility: hidden; transform: translateX(-30px);
  transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s; }
.slide.is-leaving { transform: translateX(30px); }
.slide-title { font-size: clamp(1.9rem, 4.2vw, 3.3rem); font-weight: 900; line-height: 1.35; letter-spacing: -.5px; margin: 18px 0 16px; }
.slide-title em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-desc { font-size: 1.07rem; color: var(--muted); max-width: 540px; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.slide.is-active .slide-text > * { animation: rise .8s var(--ease) both; }
.slide.is-active .slide-text > :nth-child(2) { animation-delay: .07s; }
.slide.is-active .slide-text > :nth-child(3) { animation-delay: .14s; }
.slide.is-active .slide-text > :nth-child(4) { animation-delay: .21s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.slide-visual { display: flex; justify-content: center; }

.slider-controls { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.slider-dots { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.dot { text-align: start; padding: 0; border: 0; background: none; cursor: pointer; color: var(--faint); min-width: 0; }
.dot-label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.dot.is-active .dot-label, .dot:hover .dot-label { color: var(--text); }
.dot-bar { display: block; height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; }
.dot-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.dot.is-active .dot-bar i { animation: fill var(--slide-ms) linear forwards; }
.slider[data-autoplay="0"] .dot.is-active .dot-bar i { animation: none; width: 100%; }
.slider.is-paused .dot.is-active .dot-bar i { animation-play-state: paused; }
.slider-arrow svg { width: 22px; height: 22px; }

.mock-stage { position: relative; width: 100%; max-width: 440px; padding: 30px 10px; }
.mock {
  position: relative; border-radius: var(--radius-lg); padding: 22px; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
.mock::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.slide.is-active .mock-stage > :first-child { animation: bob 6s ease-in-out infinite; }

.float-chip {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px;
  font-size: .8rem; font-weight: 700; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow);
  bottom: 6px; inset-inline-end: -6px; animation: bob 5s ease-in-out infinite -1.5s;
}
.float-chip.second { top: 0; bottom: auto; inset-inline-end: auto; inset-inline-start: -10px; animation-delay: -3s; }
.float-chip svg { width: 18px; height: 18px; }
.float-chip.ok svg { color: var(--green); }
.float-chip.info svg { color: var(--accent); }

.ck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.ck-avatar { width: 40px; height: 40px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ck-head small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.4; }
.ck-head b { font-size: .95rem; }
.ck-lock { margin-inline-start: auto; color: var(--green); }
.ck-lock svg { width: 20px; height: 20px; }
.ck-amount { text-align: center; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); }
.ck-amount small { display: block; font-size: .74rem; color: var(--muted); }
.ck-amount b { font-size: 1.9rem; font-weight: 900; }
.ck-amount b span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.ck-rows { margin: 12px 0; padding: 4px 14px; border-radius: 14px; background: var(--surface-2); }
.ck-rows div { display: flex; justify-content: space-between; padding: 8px 0; font-size: .82rem; color: var(--muted); }
.ck-rows div + div { border-top: 1px solid var(--border); }
.ck-rows b { color: var(--text); }
.ck-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ck-methods span { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-radius: 12px; font-size: .78rem; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.ck-methods span.is-on { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ck-methods svg { width: 16px; height: 16px; }
.ck-btn { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; }
.ck-btn svg { width: 17px; height: 17px; }

.mock-bankcard {
  position: relative; overflow: hidden; aspect-ratio: 1.586 / 1; border-radius: 22px; padding: 20px; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, #b5132f, #e24a33); box-shadow: 0 30px 60px -28px rgba(181, 19, 47, .7);
}
.mock-bankcard::after { content: ''; position: absolute; top: -40%; bottom: -40%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent); animation: shine 5s ease-in-out infinite; }
@keyframes shine { from { transform: translateX(160%) rotate(18deg); } to { transform: translateX(-200%) rotate(18deg); } }
.bc-top { display: flex; justify-content: space-between; align-items: center; }
.bc-chip { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f6d27a, #c79a3b); }
.bc-num { display: flex; justify-content: space-between; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: 1.5px; }
.bc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.bc-bottom small { display: block; font-size: .62rem; opacity: .75; }
.bc-copy { font-size: .7rem; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); }
.mock-receipt { margin: -26px 18px 0; padding: 16px 18px; z-index: 1; }
.rc-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; margin-bottom: 8px; }
.rc-title svg { width: 18px; height: 18px; color: var(--accent); }
.rc-row { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); padding: 5px 0; }
.rc-row b { color: var(--text); }
.rc-scan { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .76rem; color: var(--accent); font-weight: 600; }
.rc-scan span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--accent); border-top-color: transparent; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cr-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.cr-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.cr-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
.cr-balance { font-size: 2rem; font-weight: 900; margin: 6px 0 16px; }
.cr-balance small { font-size: .82rem; color: var(--muted); font-weight: 600; }
.cr-convert { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 12px; }
.cr-coin { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; color: #fff; flex-shrink: 0; }
.cr-coin.rial { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.cr-coin.usdt { background: linear-gradient(135deg, #26a17b, #1a7d5f); box-shadow: 0 10px 24px -10px rgba(38, 161, 123, .8); }
.cr-arrow { color: var(--muted); }
.cr-arrow svg { width: 26px; height: 26px; }
.cr-usdt { margin-inline-start: auto; text-align: end; line-height: 1.3; }
.cr-usdt b { display: block; font-size: 1.3rem; font-family: ui-monospace, Menlo, Consolas, monospace; }
.cr-usdt small { color: #26a17b; font-weight: 800; font-size: .78rem; }
.cr-row { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); padding: 6px 0; }
.cr-row b { color: var(--text); }
.cr-progress { height: 6px; border-radius: 6px; background: var(--border); margin-top: 10px; overflow: hidden; }
.cr-progress span { display: block; height: 100%; width: 40%; border-radius: inherit; background: linear-gradient(90deg, #26a17b, var(--accent)); animation: load 3s ease-in-out infinite; }
@keyframes load { 0% { width: 8%; } 70%, 100% { width: 100%; } }

.mock-code { padding: 0; overflow: hidden; }
.mock-code pre { white-space: pre-wrap; word-break: break-all; }
.code-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; font-size: .78rem; color: var(--muted); border-bottom: 1px solid var(--border); direction: ltr; }
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; background: #f43f5e; }
.code-head .dots i:nth-child(2) { background: #f59e0b; }
.code-head .dots i:nth-child(3) { background: #22c55e; }
pre { margin: 0; padding: 18px; overflow-x: auto; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.8; text-align: left; }
.mock-code pre { color: var(--text); }
.c-k { color: var(--muted); }
.c-s { color: var(--accent); }
.c-v { color: #22c55e; }
.c-n { color: #f59e0b; }
.c-b { color: var(--accent-2); }

.stats { padding: 20px 0 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); text-align: center; }
.stat b { display: block; font-size: 1.7rem; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .84rem; color: var(--muted); }

.section { padding: 96px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-2) 70%, transparent) 14%, color-mix(in srgb, var(--bg-2) 70%, transparent) 86%, transparent); }
.heading { max-width: 680px; margin-bottom: 50px; }
.heading-center { margin-inline: auto; text-align: center; }
.heading-start { margin-bottom: 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; letter-spacing: .2px; }
.heading h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 900; line-height: 1.45; letter-spacing: -.3px; }
.heading p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

.gateway-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gateway-card {
  position: relative; overflow: hidden; padding: 34px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--border); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.gateway-card::after {
  content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; top: -120px; inset-inline-end: -100px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none;
}
.gateway-card.is-alt::after { background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 70%); }
.gateway-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); }
.gateway-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.gateway-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.gateway-card > p { color: var(--muted); }
.gateway-card .check-list { margin-bottom: 0; }

.settle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; align-items: center; }
.settle .heading { margin-bottom: 18px; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); font-size: .9rem; }
.note svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.settle-cards { display: grid; gap: 16px; }
.settle-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.settle-card:hover { transform: translateX(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.settle-card h3 { font-size: 1.12rem; font-weight: 800; }
.settle-card p { color: var(--muted); font-size: .92rem; margin: 4px 0 10px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step-num { position: absolute; top: 18px; inset-inline-end: 20px; font-size: 2.6rem; font-weight: 900; line-height: 1; color: color-mix(in srgb, var(--text) 8%, transparent); }
.step h3 { font-size: 1.05rem; font-weight: 800; margin: 18px 0 6px; }
.step p { color: var(--muted); font-size: .9rem; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; inset-inline-start: calc(100% + 2px); width: 16px; height: 2px;
  background: var(--grad); opacity: .6;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), border-color .3s; }
.feature:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.feature h3 { font-size: 1.06rem; font-weight: 800; margin: 18px 0 6px; }
.feature p { color: var(--muted); font-size: .92rem; }

.dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 50px; align-items: center; }
.code-window { border-radius: var(--radius-lg); background: color-mix(in srgb, #050814 88%, var(--accent)); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.code-window .code-head { color: #8f97b3; border-bottom-color: rgba(255, 255, 255, .08); }
.code-window pre { color: #dbe4ff; max-height: 420px; }
.code-copy { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .05); color: #cdd6f4; cursor: pointer; font-size: .74rem; }
.code-copy svg { width: 14px; height: 14px; }

.faq { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .3s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; transition: transform .3s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--muted); }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 50px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .25s, transform .25s var(--ease); }
a.contact-item:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateX(-4px); }
.contact-item small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.contact-item b { font-size: .96rem; }
.contact-form { padding: 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 14px; }
.contact-form h3 { font-size: 1.2rem; font-weight: 800; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; }
.ui-label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 7px; }
.ui-input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ui-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.ui-input { resize: vertical; line-height: 1.9; }
.ui-error { display: block; color: var(--red); font-size: .76rem; margin-top: 5px; }
.contact-form .cap { margin-top: 0; }
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: .9rem; font-weight: 600; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert.ok { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border: 1px solid color-mix(in srgb, var(--green) 28%, transparent); }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); pointer-events: none; }
.contact-form { position: relative; }

.cta-band { padding: 30px 0 90px; }
.cta-box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 30px; background: var(--grad); color: #fff; box-shadow: 0 34px 70px -34px color-mix(in srgb, var(--accent) 90%, transparent);
}
.cta-box::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; top: -200px; left: -80px; background: rgba(255, 255, 255, .14); }
.cta-box > * { position: relative; }
.cta-box h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; }
.cta-box p { opacity: .88; margin-top: 4px; }

.footer { border-top: 1px solid var(--border); padding: 54px 0 24px; background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-text { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 360px; }
.footer-col h4 { font-size: .95rem; font-weight: 800; margin-bottom: 12px; }
.footer-col a { display: block; color: var(--muted); font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.badges { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--border); }
.badges h4 { font-size: .9rem; font-weight: 800; margin-bottom: 14px; color: var(--muted); }
.badge-list { display: flex; flex-wrap: wrap; gap: 12px; }
.badge-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 104px; padding: 10px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .5); transition: transform .25s var(--ease); }
.badge-item:hover { transform: translateY(-3px); }
.badge-item img { max-width: 96px; max-height: 96px; width: auto; height: auto; object-fit: contain; cursor: pointer; }
.badge-item small { font-size: .68rem; color: #5f6987; text-align: center; line-height: 1.5; }

.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: .82rem; text-align: center; }

.to-top { position: fixed; bottom: 22px; left: 22px; z-index: 40; opacity: 0; transform: translateY(14px); pointer-events: none; background: var(--surface-solid); box-shadow: var(--shadow); transition: opacity .3s, transform .3s var(--ease); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .nav-actions { margin-inline-start: auto; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .slide { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; text-align: center; }
  .slide-desc { margin-inline: auto; }
  .slide-actions { justify-content: center; }
  .slide-visual { order: 2; }
  .mock-stage { max-width: 380px; }
  .gateway-grid, .settle, .dev, .contact { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .section { padding: 72px 0; }
  .dot-label { font-size: .7rem; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .container { padding-inline: 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 30px; }
  .slide-title { margin: 14px 0 10px; }
  .slide-desc { font-size: .97rem; }
  .btn-lg { padding: 13px 18px; font-size: .92rem; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .gateway-card, .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 32px 24px; text-align: center; justify-content: center; }
  .dot-label { display: none; }
  .slider-controls { margin-top: 22px; }
  .float-chip { font-size: .72rem; padding: 7px 10px; }
  .float-chip.second { inset-inline-start: 0; }
  .float-chip:not(.second) { inset-inline-end: 0; }
  .brand-text small { display: none; }
}
@media (max-width: 400px) {
  .hide-xs { display: none; }
  .bc-num { font-size: 1.05rem; }
  .stats-grid { gap: 10px; }
  .stat { padding: 16px 10px; }
  .stat b { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
