/* REDICE PAY — design system v3 "Red Ice"
   Deep graphite canvas, a hot red and an ice-blue accent, crisp modern sans.
   Fintech clarity first; motion keeps the page alive without getting in the way. */
:root {
  --bg: #06070b;
  --bg-2: #0a0c12;
  --bg-3: #10131b;
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f3f5f9;
  --text-2: #a7aebd;
  --muted: #6c7486;
  --red: #ff2e4d;
  --red-2: #ff5a74;
  --red-deep: #c2142f;
  --ice: #8cc8f2;
  --ice-2: #cfe9ff;
  --green: #3ddc97;
  --amber: #ffc861;
  /* legacy aliases used by pay/docs */
  --ivory: var(--text); --platinum: var(--ice); --garnet: var(--red-deep); --garnet-2: var(--red);
  --grad: linear-gradient(95deg, #ff2e4d 0%, #ff6b81 35%, #cfe9ff 70%, #8cc8f2 100%);
  --grad-btn: linear-gradient(180deg, #ff4560, #e81f3e);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.65, 0, .35, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --serif: var(--display);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; font-feature-settings: 'cv11', 'ss01';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: rgba(255, 46, 77, .45); color: #fff; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--mono); font-size: .9em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
.muted { color: var(--text-2); }
.u { color: var(--text); border-bottom: 1px solid var(--border-2); transition: border-color .3s; }
.u:hover { border-color: var(--red); }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.grad, .grad-text { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 8s ease-in-out infinite alternate; }
@keyframes sheen { to { background-position: 100% 0; } }

/* ---------- ambient background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.blob.b1 { width: 720px; height: 720px; background: radial-gradient(circle, rgba(255, 46, 77, .22), transparent 62%); top: -320px; right: -180px; animation: drift1 26s ease-in-out infinite alternate; }
.blob.b2 { width: 680px; height: 680px; background: radial-gradient(circle, rgba(140, 200, 242, .14), transparent 62%); top: 20%; left: -320px; animation: drift2 32s ease-in-out infinite alternate; }
.blob.b3 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(255, 46, 77, .08), transparent 62%); bottom: -260px; right: 10%; animation: drift1 38s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(-140px, 120px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(160px, -80px) scale(.92); } }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }
.noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; background: radial-gradient(circle, rgba(140, 200, 242, .07), transparent 60%); pointer-events: none; z-index: 0; transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0); transition: opacity .4s; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 17px; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; filter: drop-shadow(0 4px 12px rgba(255, 46, 77, .35)); }
.brand b { font-weight: 700; }
.brand span { font-weight: 500; color: var(--text-2); margin-left: -5px; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .5s var(--ease-out); padding: 14px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 20px; padding: 0 10px 0 20px; border-radius: 18px; border: 1px solid transparent; transition: background .4s, border-color .4s, box-shadow .4s; }
.header.scrolled .container { background: rgba(12, 14, 20, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--border); box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8); }
.header.hide { transform: translateY(-110%); }
.nav { display: flex; gap: 4px; }
.nav a, .nav-link { white-space: nowrap; font-size: 14.5px; font-weight: 500; color: var(--text-2); padding: 8px 14px; border-radius: 10px; transition: color .25s, background .25s; }
.nav a:hover, .nav-link:hover { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); position: relative; }
.burger i, .burger i::before, .burger i::after { position: absolute; left: 12px; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease-out), opacity .2s; }
.burger i { top: 20px; }
.burger i::before { content: ''; left: 0; top: -6px; }
.burger i::after { content: ''; left: 0; top: 6px; }
.menu-open .burger i { background: transparent; }
.menu-open .burger i::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 15px; letter-spacing: -.005em; white-space: nowrap; transition: transform .25s var(--ease-out), box-shadow .3s, background .3s, border-color .3s, color .3s; isolation: isolate; }
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-primary { color: #fff; background: var(--grad-btn); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 30px -8px rgba(255, 46, 77, .55); overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-120%); z-index: -1; }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 40px -8px rgba(255, 46, 77, .75); }
.btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .04); border: 1px solid var(--border-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.btn:active { transform: scale(.98); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.link-arrow svg { width: 17px; height: 17px; transition: transform .3s var(--ease-out); color: var(--red); }
.link-arrow:hover svg { transform: translateX(4px); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--red-2); letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255, 46, 77, .08); border: 1px solid rgba(255, 46, 77, .2); }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; min-height: min(720px, calc(100vh - 190px)); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .03); font-size: 14px; font-weight: 500; color: var(--text-2); transition: border-color .3s, background .3s; }
.pill:hover { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
.pill svg { width: 14px; height: 14px; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(61, 220, 151, .12); color: var(--green); font-size: 12.5px; font-weight: 600; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); } 100% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); } }
.display { font-size: clamp(44px, 5.2vw, 74px); line-height: 1.0; letter-spacing: -.045em; font-weight: 700; margin: 26px 0 24px; }
.display .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.display .ln > span { display: inline-block; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--text-2); max-width: 540px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14.5px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--green); }

/* hero visual */
.hero-visual { position: relative; height: 640px; perspective: 1400px; }
.orbit { position: absolute; inset: -40px -60px; pointer-events: none; }
.orbit i { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .05); transform: translate(-50%, -50%); }
.orbit i:nth-child(1) { width: 420px; height: 420px; }
.orbit i:nth-child(2) { width: 620px; height: 620px; border-style: dashed; border-color: rgba(255, 255, 255, .04); animation: spin 90s linear infinite; }
.orbit i:nth-child(3) { width: 820px; height: 820px; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
[data-parallax] { transform: translate3d(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px), 0); transition: transform .8s var(--ease-out); }

.dash { position: absolute; right: 0; top: 30px; width: min(500px, 92%); border-radius: 22px; background: linear-gradient(180deg, rgba(22, 25, 34, .92), rgba(12, 14, 20, .94)); border: 1px solid var(--border-2); box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); overflow: hidden; }
.dash::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 46, 77, .55), transparent 35%, transparent 65%, rgba(140, 200, 242, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.dash-url { flex: 1; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); font-size: 11px; letter-spacing: .08em; }
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: ping 2s ease-out infinite; }
.dash-body { padding: 20px 20px 16px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kl { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.big { font-family: var(--display); font-weight: 700; font-size: 34px; letter-spacing: -.03em; line-height: 1.15; margin: 4px 0 4px; font-variant-numeric: tabular-nums; }
.delta { font-size: 12.5px; font-weight: 600; color: var(--green); }
.dash-tabs { display: flex; padding: 3px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--muted); }
.dash-tabs span { padding: 4px 10px; border-radius: 7px; }
.dash-tabs .on { background: rgba(255, 255, 255, .09); color: var(--text); }
.chart { height: 150px; margin: 14px 0 8px; overflow: hidden; padding-top: 8px; box-sizing: content-box; margin-top: 6px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .gl line { stroke: rgba(255, 255, 255, .05); stroke-dasharray: 3 5; }
.chart .line { fill: none; stroke: url(#cl); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 6px 12px rgba(255, 46, 77, .45)); }
.chart .area { fill: url(#cf); }
.chart .pt { fill: #fff; stroke: var(--red); stroke-width: 3; filter: drop-shadow(0 0 8px var(--red)); }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpis div { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border); }
.dash-kpis b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.feed { margin-top: 12px; display: grid; gap: 6px; height: 132px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.tx { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 11px; background: rgba(255, 255, 255, .025); border: 1px solid transparent; font-size: 13px; animation: txIn .7s var(--ease-out) both; }
.tx.new { border-color: rgba(61, 220, 151, .25); background: rgba(61, 220, 151, .05); }
@keyframes txIn { from { opacity: 0; transform: translateY(-14px) scale(.98); } }
.tx .av { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 46, 77, .12); color: var(--red-2); font-weight: 700; font-size: 11px; }
.tx .av.ice { background: rgba(140, 200, 242, .12); color: var(--ice); }
.tx b { display: block; font-weight: 600; font-size: 13px; }
.tx small { color: var(--muted); font-size: 11.5px; }
.tx .am { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.tx .st { display: block; font-size: 11px; font-weight: 600; color: var(--green); }
.tx .st.p { color: var(--amber); }

.phone { position: absolute; left: 0; top: 250px; width: 220px; z-index: 2; }
.phone-in { border-radius: 34px; padding: 16px 14px 14px; background: linear-gradient(180deg, #171a23, #0d0f15); border: 1px solid var(--border-2); box-shadow: 0 50px 100px -20px rgba(0, 0, 0, .95), inset 0 0 0 5px #05060a, inset 0 1px 0 6px rgba(255, 255, 255, .05); animation: floatY 7s ease-in-out infinite; }
@keyframes floatY { 50% { transform: translateY(-10px); } }
.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 12px; font-size: 12px; }
.sbp { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-family: var(--display); font-size: 14px; }
.sbp svg { width: 14px; height: 14px; }
.ph-t { font-family: var(--mono); color: var(--text-2); font-size: 11px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.ph-k { display: block; text-align: center; font-size: 11px; color: var(--muted); }
.ph-amount { text-align: center; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -.03em; margin: 0 0 12px; }
.ph-qr { position: relative; background: #fff; border-radius: 16px; padding: 8px; overflow: hidden; }
.ph-qr img { width: 100%; height: auto; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(255, 46, 77, .03) 80%, rgba(255, 46, 77, .12) 100%); border-bottom: 1.5px solid rgba(255, 46, 77, .75); animation: scanY 3.2s var(--ease) infinite; pointer-events: none; mix-blend-mode: multiply; }
@keyframes scanY { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(250%); opacity: 0; } }
.ph-btn { margin-top: 12px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-btn); font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 20px -6px rgba(255, 46, 77, .6); }

.toast { position: absolute; right: 70px; top: -12px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 16px; background: rgba(20, 23, 31, .9); border: 1px solid var(--border-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.toast.pop { animation: toastPop .8s var(--ease-out); }
@keyframes toastPop { 0% { opacity: 0; transform: translateY(12px) scale(.94); } }
.toast .ok, .mp-status .ok { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(61, 220, 151, .14); color: var(--green); }
.toast .ok svg { width: 17px; height: 17px; }
.toast b { display: block; font-family: var(--display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.toast span { font-size: 12px; color: var(--muted); }
.chip-hook { position: absolute; right: 28px; bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: rgba(20, 23, 31, .9); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 12px; color: var(--text-2); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9); }
.chip-hook .m { color: var(--ice); font-weight: 500; }
.chip-hook b { color: var(--green); font-weight: 500; }

.trust { margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 20px; background: rgba(255, 255, 255, .02); overflow: hidden; }
.trust div { padding: 22px 26px; border-left: 1px solid var(--border); }
.trust div:first-child { border-left: 0; }
.trust b { display: block; font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.trust div > span { font-size: 13.5px; color: var(--muted); }

/* ---------- ticker ---------- */
.ticker { margin: 70px 0 0; padding: 18px 0; border-block: 1px solid var(--border); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; padding: 0 28px; font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.ticker-item svg { width: 20px; height: 20px; color: var(--red); }
.ticker-item:nth-child(even) svg { color: var(--ice); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 130px 0 0; position: relative; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2, .api-copy h2, .faq-wrap h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.04em; margin: 20px 0 18px; }
.sec-head p, .api-copy > p { color: var(--text-2); font-size: 18px; max-width: 600px; }
.sec-head.center p { margin-inline: auto; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- spotlight cards ---------- */
.card, .stp { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); border: 1px solid var(--border); overflow: hidden; isolation: isolate; }
.spot-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, .07), transparent 45%); opacity: 0; transition: opacity .4s; }
.spot-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 90, 116, .7), rgba(140, 200, 242, .35) 40%, transparent 65%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s; pointer-events: none; }
.spot-card:hover::before, .spot-card:hover::after { opacity: 1; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); gap: 16px; }
.card { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.card-copy h3 { font-size: 23px; letter-spacing: -.025em; margin: 14px 0 8px; }
.card-copy p { color: var(--text-2); font-size: 15px; max-width: 420px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--border); }
.c-qr { grid-column: span 3; grid-row: span 2; }
.c-hook, .c-route { grid-column: span 3; }
.c-test, .c-page, .c-tg { grid-column: span 2; }

.qr-demo { position: relative; flex: 1; display: grid; place-items: center; min-height: 330px; perspective: 900px; }
.qr-ring { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: conic-gradient(from var(--ang, 0deg), transparent, rgba(255, 46, 77, .5), transparent 30%, transparent 50%, rgba(140, 200, 242, .4), transparent 80%); filter: blur(30px); animation: spinAng 8s linear infinite; }
.qr-plate { position: relative; width: 260px; padding: 14px; border-radius: 24px; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8), 0 0 0 8px rgba(255, 255, 255, .04); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease-out); }
.qr-plate img { width: 100%; height: auto; }

.log { flex: 1; display: grid; align-content: start; gap: 6px; font-family: var(--mono); font-size: 12.5px; height: 150px; overflow: hidden; mask-image: linear-gradient(#000 60%, transparent); -webkit-mask-image: linear-gradient(#000 60%, transparent); }
.log-row { display: grid; grid-template-columns: 62px 44px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 9px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); color: var(--text-2); animation: txIn .6s var(--ease-out) both; white-space: nowrap; }
.log-row .t { color: var(--muted); }
.log-row .m { color: var(--ice); }
.log-row .e { overflow: hidden; text-overflow: ellipsis; }
.log-row .c { color: var(--green); }
.log-row .c.r { color: var(--amber); }

.route { position: relative; height: 150px; }
.route svg { width: 100%; height: 100%; }
.rp { stroke: rgba(255, 255, 255, .09); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rp-live { vector-effect: non-scaling-stroke; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 40 700; stroke-dashoffset: 40; filter: drop-shadow(0 0 6px var(--red)); animation: flowDash 3s linear infinite; }
.rp-live.b { animation-delay: 1s; stroke: var(--ice); filter: drop-shadow(0 0 6px var(--ice)); }
.rp-live.c { animation-delay: 2s; }
@keyframes flowDash { to { stroke-dashoffset: -700; } }
.route .node { position: absolute; display: grid; place-items: center; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border-2); }
.route .src { left: calc(12.5% - 22px); top: calc(50% - 22px); width: 44px; height: 44px; font-weight: 700; color: var(--red-2); box-shadow: 0 0 30px -5px rgba(255, 46, 77, .5); }
.route .n1, .route .n2, .route .n3 { right: calc(12.5% - 16px); width: 32px; height: 32px; }
.route .n1 { top: calc(16.6% - 16px); } .route .n2 { top: calc(50% - 16px); } .route .n3 { top: calc(83.3% - 16px); }
.route .node i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.route .n2 i { animation: blinkDown 9s steps(1) infinite; }
@keyframes blinkDown { 0%, 60% { background: var(--green); box-shadow: 0 0 10px var(--green); } 61%, 80% { background: var(--red); box-shadow: 0 0 10px var(--red); } }

.toggle-demo { margin-top: auto; display: flex; align-items: center; gap: 16px; }
.tg { width: 64px; height: 36px; border-radius: 999px; background: rgba(255, 200, 97, .18); border: 1px solid rgba(255, 200, 97, .35); position: relative; transition: background .5s, border-color .5s; }
.tg i { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); transition: transform .5s var(--ease-out); }
.tg.on { background: rgba(61, 220, 151, .2); border-color: rgba(61, 220, 151, .45); }
.tg.on i { transform: translateX(28px); }
.tg-labels { display: grid; font-weight: 600; font-size: 14px; }
.tg-labels span { transition: color .4s, opacity .4s; }
.tg-labels .a { color: var(--amber); }
.tg-labels .b { color: var(--muted); }
.tg.on + .tg-labels .a { color: var(--muted); }
.tg.on + .tg-labels .b { color: var(--green); }

.mini-pay { margin-top: auto; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px solid var(--border); }
.mp-row { display: flex; justify-content: space-between; }
.mp-row span { height: 8px; width: 40%; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.mp-row .s { width: 20%; }
.mp-amt { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -.03em; margin: 10px 0; }
.mp-bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.mp-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--ice)); animation: fillBar 4.5s var(--ease) infinite; }
@keyframes fillBar { 0% { width: 0; } 60%, 100% { width: 100%; } }
.mp-status { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; font-size: 14px; color: var(--green); animation: statusIn 4.5s var(--ease) infinite; }
.mp-status .ok { width: 26px; height: 26px; border-radius: 8px; }
.mp-status .ok svg { width: 14px; height: 14px; }
@keyframes statusIn { 0%, 58% { opacity: 0; transform: translateY(6px); } 66%, 100% { opacity: 1; transform: none; } }

.tg-chat { margin-top: auto; display: grid; gap: 8px; min-height: 120px; align-content: end; }
.msg { justify-self: start; max-width: 92%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: rgba(140, 200, 242, .1); border: 1px solid rgba(140, 200, 242, .18); font-size: 13px; line-height: 1.4; animation: txIn .6s var(--ease-out) both; }
.msg b { color: var(--green); }
.msg small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---------- flow ---------- */
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-line { position: absolute; left: 10%; right: 10%; top: 36px; height: 2px; background: rgba(255, 255, 255, .07); border-radius: 2px; }
.flow-line i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--fp, 0) * 100%); background: linear-gradient(90deg, var(--red), var(--ice)); border-radius: inherit; transition: width .9s var(--ease-out); box-shadow: 0 0 12px rgba(255, 46, 77, .6); }
.flow-line .packet { position: absolute; top: 50%; left: calc(var(--fp, 0) * 100%); width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 46, 77, .3), 0 0 20px var(--red); transition: left .9s var(--ease-out); }
.fstep { position: relative; text-align: center; padding: 0 6px; }
.fi { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text-2); position: relative; z-index: 1; transition: color .5s, border-color .5s, box-shadow .5s, transform .5s var(--ease-out), background .5s; }
.fi svg { width: 28px; height: 28px; }
.fstep h4 { font-size: 17px; margin-bottom: 6px; transition: color .5s; color: var(--text-2); }
.fstep p { font-size: 14px; color: var(--muted); }
.fstep code { color: var(--ice); font-size: 12.5px; }
.fstep.done .fi { color: var(--text); border-color: rgba(255, 255, 255, .22); }
.fstep.done h4 { color: var(--text); }
.fstep.on .fi { color: #fff; background: linear-gradient(180deg, #ff4560, #c2142f); border-color: transparent; box-shadow: 0 16px 40px -10px rgba(255, 46, 77, .7), 0 0 0 6px rgba(255, 46, 77, .12); transform: translateY(-4px); }
.fstep.on h4 { color: var(--text); }

/* ---------- api ---------- */
.api { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 30px 0 32px; display: grid; gap: 18px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.checks i { width: 28px; height: 28px; border-radius: 9px; background: rgba(61, 220, 151, .12); position: relative; }
.checks i::after { content: ''; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--text-2); font-size: 15px; }
.checks code { color: var(--ice); }
.code-wrap { position: relative; padding-bottom: 60px; }
.code { border-radius: 18px; background: #0a0c11; border: 1px solid var(--border-2); box-shadow: var(--shadow); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.code-bar > i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.code-bar > i:first-child { background: #ff5f57; } .code-bar > i:nth-child(2) { background: #febc2e; } .code-bar > i:nth-child(3) { background: #28c840; }
.code-tabs { display: flex; gap: 4px; margin-left: 16px; overflow-x: auto; }
.code-tabs button { padding: 5px 11px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--muted); transition: color .25s, background .25s; white-space: nowrap; }
.code-tabs button:hover { color: var(--text); }
.code-tabs button.on { color: var(--text); background: rgba(255, 255, 255, .08); }
.code pre { margin: 0; padding: 22px 22px 28px; min-height: 360px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #c8d0de; overflow-x: auto; white-space: pre; }
.code .k, .response .k { color: #ff7a90; }
.code .s, .response .s { color: #9fd8ff; }
.code .n, .response .n { color: #ffc861; }
.code .c { color: #5b6477; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--red); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.response { position: absolute; right: -24px; bottom: 0; width: min(310px, 70%); border-radius: 16px; background: rgba(16, 19, 27, .95); border: 1px solid var(--border-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; transform: translateY(16px); opacity: 0; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.response.show { opacity: 1; transform: none; }
.resp-head { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.resp-head .st { color: #06070b; background: var(--green); padding: 1px 7px; border-radius: 6px; font-weight: 600; margin-right: 8px; }
.response pre { margin: 0; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.65; color: #c8d0de; overflow-x: auto; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stp { padding: 30px; }
.sn { font-family: var(--mono); font-size: 13px; color: var(--red-2); padding: 4px 9px; border-radius: 8px; background: rgba(255, 46, 77, .1); }
.stp h3 { font-size: 24px; margin: 22px 0 8px; }
.stp p { color: var(--text-2); font-size: 15px; }
.stp-ui { margin-top: 26px; height: 54px; display: flex; align-items: center; }
.bubble { padding: 10px 14px; border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, #ff4560, #d81b3a); font-size: 14px; font-weight: 500; margin-left: auto; box-shadow: 0 10px 24px -10px rgba(255, 46, 77, .7); }
.key { font-family: var(--mono); font-size: 13px; padding: 10px 14px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px dashed var(--border-2); color: var(--ice); }
.key i { color: var(--muted); font-style: normal; letter-spacing: .1em; }
.paid { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .25); color: var(--green); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.paid i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s ease-out infinite; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap h2 { margin-bottom: 16px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--border); background: rgba(255, 255, 255, .02); transition: background .3s, border-color .3s; }
.faq details[open] { background: rgba(255, 255, 255, .045); border-color: var(--border-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: 0 0 28px; height: 28px; border-radius: 9px; background: rgba(255, 255, 255, .06); position: relative; transition: transform .4s var(--ease-out), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--text); }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease-out); }
.faq details[open] summary i { background: var(--red); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 22px 20px; color: var(--text-2); animation: ansIn .5s var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- cta ---------- */
.cta-sec { padding: 130px 0 110px; }
.cta { position: relative; overflow: hidden; border-radius: 32px; padding: 90px 32px; text-align: center; background: linear-gradient(180deg, #12151e, #0a0c12); border: 1px solid var(--border-2); isolation: isolate; }
.cta-glow { position: absolute; z-index: -1; left: 50%; top: 100%; width: 1000px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(255, 46, 77, .55), rgba(255, 46, 77, .12) 50%, transparent); animation: breatheC 6s ease-in-out infinite; }
.cta-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000, transparent 70%); }
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.045em; max-width: 820px; margin: 0 auto 20px; }
.cta p { color: var(--text-2); font-size: 18px; max-width: 520px; margin: 0 auto; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 60px 0 0; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-top p { margin-top: 14px; font-size: 14px; }
.footer nav { display: grid; gap: 10px; align-content: start; }
.footer nav b { font-weight: 600; margin-bottom: 4px; }
.footer nav a { color: var(--text-2); transition: color .25s; }
.footer nav a:hover { color: var(--text); }
.footer > .container:not(.footer-top):not(.footer-base) { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 30px; color: var(--muted); }
.footer > .container:not(.footer-top):not(.footer-base) nav { display: flex; gap: 20px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; padding: 26px 0 34px; margin-top: 50px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }
.sys { display: inline-flex; align-items: center; gap: 8px; }
.sys i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 2s ease-out infinite; }

/* ---------- entrance: hero ---------- */
.js .fade { opacity: 0; transform: translateY(18px); }
.js .display .ln > span { transform: translateY(105%); }
.entered .fade { opacity: 1; transform: none; transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s); }
.entered .display .ln > span { transform: none; transition: transform 1.1s var(--ease-out) calc(.15s + var(--i) * .1s); }

/* ---------- first visit intro ---------- */
.intro, .reveal { display: none; }
.intro-first .intro { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg); cursor: pointer; transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s; }
.intro-first body { overflow: hidden; }
.intro-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 55%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 55%); animation: gridIn 2.4s var(--ease-out) both; }
@keyframes gridIn { from { opacity: 0; transform: scale(1.15); } }
.intro::before { content: ''; position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 46, 77, .28), rgba(140, 200, 242, .08) 45%, transparent 65%); filter: blur(30px); animation: glowIn 2s var(--ease-out) both; }
@keyframes glowIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } }
.intro-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.intro .gem { width: 76px; height: 76px; filter: drop-shadow(0 12px 40px rgba(255, 46, 77, .55)); animation: gemIn 1.2s var(--ease-out) both; }
@keyframes gemIn { from { opacity: 0; transform: scale(.4) rotate(-30deg); filter: blur(10px); } }
.intro .word { display: flex; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 7vw, 64px); letter-spacing: -.03em; line-height: 1; }
.intro .word span { display: inline-block; animation: letterIn .9s var(--ease-out) both; }
.intro .word span:nth-child(1) { animation-delay: .35s; } .intro .word span:nth-child(2) { animation-delay: .4s; } .intro .word span:nth-child(3) { animation-delay: .45s; }
.intro .word span:nth-child(4) { animation-delay: .5s; } .intro .word span:nth-child(5) { animation-delay: .55s; } .intro .word span:nth-child(6) { animation-delay: .6s; }
.intro .word .sp { width: .28em; }
.intro .word .pay { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; background-size: 300% 100%; }
.intro .word span:nth-child(8) { animation-delay: .72s; background-position: 0 0; } .intro .word span:nth-child(9) { animation-delay: .77s; background-position: 50% 0; } .intro .word span:nth-child(10) { animation-delay: .82s; background-position: 100% 0; }
@keyframes letterIn { from { opacity: 0; transform: translateY(40%); filter: blur(8px); } }
.intro-line { width: 220px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; animation: fadeIn .6s .8s both; }
.intro-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--ice)); transform-origin: left; animation: lineFill 1.4s .9s var(--ease) both; }
@keyframes lineFill { from { transform: scaleX(0); } }
@keyframes fadeIn { from { opacity: 0; } }
.intro-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); animation: fadeIn .6s 1s both; font-family: var(--mono); }
.intro-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); transition: background .3s; }
.intro-status.ok .dot { background: var(--green); box-shadow: 0 0 10px var(--green); }
.intro-status.ok { color: var(--text-2); }
.skip { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); animation: fadeIn 1s 1.6s both; white-space: nowrap; }
.intro.out { opacity: 0; transform: scale(1.06); filter: blur(6px); pointer-events: none; }

/* ---------- reload reveal ---------- */
.intro-reload .reveal { display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--bg); transition: opacity .6s var(--ease-out); }
.intro-reload .reveal::before { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--red); border-right-color: rgba(140, 200, 242, .6); animation: spin2 .9s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.reveal .gem { width: 54px; height: 54px; animation: gemPulse .9s var(--ease-out) both; filter: drop-shadow(0 8px 24px rgba(255, 46, 77, .5)); }
@keyframes gemPulse { from { opacity: 0; transform: scale(.6); } }
.reveal.out { opacity: 0; pointer-events: none; }
.reveal.out .gem { transform: scale(1.3); opacity: 0; transition: transform .6s var(--ease-out), opacity .5s; }

/* ---------- legacy keyframes used by pay page ---------- */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spinAng { to { --ang: 360deg; } }
@keyframes scan { 0% { top: -32%; } 100% { top: 102%; } }
@keyframes breathe { 0%, 100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes breatheC { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { position: fixed; inset: 88px 20px auto; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; background: rgba(12, 14, 20, .96); border: 1px solid var(--border-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease-out); }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .burger { display: block; }
  .nav-link { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 60px; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-points { justify-content: center; }
  .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .api, .faq-wrap { grid-template-columns: 1fr; gap: 48px; }
  .response { right: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c-qr { grid-column: span 2; grid-row: auto; }
  .c-hook, .c-route { grid-column: span 1; }
  .c-test, .c-page { grid-column: span 1; }
  .c-tg { grid-column: span 2; }
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 480px; margin: 0 auto; }
  .flow-line { left: 35px; right: auto; top: 36px; bottom: 36px; width: 2px; height: auto; }
  .flow-line i { width: 100%; height: calc(var(--fp, 0) * 100%); transition: height .9s var(--ease-out); }
  .flow-line .packet { left: 50%; top: calc(var(--fp, 0) * 100%); transition: top .9s var(--ease-out); }
  .fstep { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; padding: 0 0 26px; align-items: center; }
  .fstep .fi { grid-row: span 2; margin: 0; }
  .fstep h4 { align-self: end; margin: 0; }
  .fstep p { align-self: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust div:nth-child(3) { border-left: 0; }
  .trust div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .header { padding: 10px 0; }
  .header .container { padding: 0 6px 0 14px; }
  .header-actions .btn { display: none; }
  .hero { padding-top: 120px; }
  .display { font-size: clamp(40px, 12vw, 56px); }
  .hero-cta .btn { width: 100%; }
  .hero-visual { height: auto; padding: 70px 0 120px; }
  .orbit { display: none; }
  .dash { position: relative; top: 0; width: 100%; }
  .dash-tabs { display: none; }
  .phone { width: 150px; left: -6px; top: auto; bottom: 0; }
  .phone-in { border-radius: 26px; padding: 10px 9px 9px; }
  .ph-amount { font-size: 20px; margin-bottom: 8px; }
  .ph-head { padding: 4px 4px 8px; }
  .ph-btn { height: 30px; font-size: 10.5px; margin-top: 8px; }
  .toast { left: auto; right: 0; top: 0; }
  .chip-hook { right: 0; bottom: 20px; }
  .feed { height: 96px; }
  .trust { margin-top: 40px; }
  .trust div { padding: 18px; }
  .trust b { font-size: 22px; }
  .section { padding-top: 96px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head p, .api-copy > p { font-size: 16.5px; }
  .bento { grid-template-columns: 1fr; }
  .c-qr, .c-hook, .c-route, .c-test, .c-page, .c-tg { grid-column: auto; }
  .card { padding: 22px; }
  .qr-demo { min-height: 280px; }
  .qr-plate { width: 230px; }
  .log-row { grid-template-columns: 54px 1fr auto; }
  .log-row .m { display: none; }
  .code-wrap { padding-bottom: 0; }
  .code pre { min-height: 300px; font-size: 12.5px; padding: 18px; }
  .code-tabs { margin-left: 8px; }
  .code-bar > i { display: none; }
  .response { position: relative; width: 100%; margin-top: 12px; }
  .cta { padding: 64px 22px; border-radius: 24px; }
  .cta-sec { padding: 96px 0 80px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: span 2; }
  .footer-base { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
