@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("assets/PlusJakartaSans.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f6f6f9;
  --lavender: #efe9ff;
  --purple: #6d34e8;
  --purple-dark: #5a22d2;
  --ink: #0b0b0f;
  --muted: #5b5b66;
  --line: #ececf1;
  --success: #0f9d6b;
  --shell: min(1440px, calc(100% - 96px));
  --radius: 20px;
  --shadow: 0 24px 70px rgba(26, 15, 52, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: "Plus Jakarta Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -0.045em; }
p { color: var(--muted); line-height: 1.65; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-180%); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.92); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); transition: border-color .2s ease; }
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: 92px; display: flex; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 25px; font-weight: 750; letter-spacing: -.04em; white-space: nowrap; }
.brand img { object-fit: contain; }
.primary-nav { display: flex; align-items: center; gap: 40px; margin: 0 auto; }
.primary-nav a { font-size: 15px; color: #24242a; position: relative; }
.primary-nav a::after { content: ""; position: absolute; right: 0; bottom: -7px; left: 0; height: 2px; background: var(--purple); transform: scaleX(0); transition: transform .2s ease; }
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 10px; font-weight: 650; }
.menu-toggle { display: none; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(109,52,232,.3); outline-offset: 3px; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 12px 28px rgba(109,52,232,.2); }
.button-primary:hover { background: var(--purple-dark); }
.button-secondary { color: var(--purple); border-color: var(--purple); background: transparent; }
.button-small { min-height: 46px; padding-inline: 21px; }
.button-row { display: flex; gap: 18px; flex-wrap: wrap; }

.hero { min-height: 730px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 24px; padding-block: 58px 82px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { max-width: 700px; margin-bottom: 32px; font-size: clamp(58px, 6.2vw, 98px); line-height: .99; font-weight: 750; }
.hero-copy > p { max-width: 620px; margin-bottom: 34px; font-size: clamp(18px, 1.5vw, 24px); }
.hero-product { min-height: 600px; position: relative; display: grid; place-items: center; }
.phone-frame { position: relative; z-index: 4; width: 314px; height: 612px; padding: 12px; border: 8px solid #151519; border-radius: 48px; background: #fff; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }
.phone-speaker { position: absolute; z-index: 2; top: 10px; left: 50%; width: 96px; height: 25px; border-radius: 999px; background: #151519; transform: translateX(-50%); }
.qr-card { position: absolute; z-index: 5; left: 2%; top: 38%; width: 190px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #dfd1ff; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.qr-large { width: 118px; height: 118px; background: var(--ink) !important; }
.route { position: absolute; border: 5px solid #d9c6ff; }
.route-one { right: 2%; bottom: 20%; width: 72%; height: 50%; border-left: 0; border-radius: 0 50px 50px 0; }
.route-two { left: 16%; top: 28%; width: 38%; height: 44%; border-right: 0; border-bottom-color: #ff7a00; border-radius: 50px 0 0 50px; }

.flow-section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading { margin-bottom: 70px; }
.section-heading h2, .merchant-copy h2 { margin-bottom: 20px; font-size: clamp(46px, 5vw, 74px); line-height: 1.04; }
.section-heading p { font-size: 20px; }
.steps { list-style: none; margin: 0 0 100px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 80px; counter-reset: steps; }
.steps li { position: relative; padding-top: 100px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 41px; left: 92px; width: calc(100% - 18px); height: 2px; background: linear-gradient(90deg, var(--purple), #d8c6ff); }
.step-icon { position: absolute; top: 0; left: 0; width: 82px; height: 82px; border-radius: 50%; background-color: var(--purple); background-size: 35px; box-shadow: inset 0 0 0 22px var(--lavender); }
.step-number { margin-right: 8px; font-size: 20px; font-weight: 750; }
.steps h3 { display: inline; font-size: 24px; }
.steps p { max-width: 280px; margin: 12px 0 0; }
.everything { min-height: 470px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 60px; padding: 54px; border-radius: 28px; background: linear-gradient(120deg, #f5f1ff, #fff 68%); overflow: hidden; }
.device-pair { height: 350px; position: relative; display: flex; align-items: center; }
.desktop-shot { width: 90%; height: 310px; padding: 12px; border: 8px solid #17171b; border-bottom-width: 18px; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.desktop-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mini-phone { position: absolute; right: 0; bottom: 0; width: 118px; height: 230px; padding: 5px; border: 5px solid #17171b; border-radius: 22px; background: #fff; overflow: hidden; }
.mini-phone img { height: 100%; object-fit: cover; object-position: top; }
.everything h2 { margin-bottom: 44px; font-size: clamp(40px, 4vw, 62px); line-height: 1.08; }
.feature-rail { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.feature-rail span { font-weight: 700; }
.feature-rail span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: var(--purple); }

.agent-network { padding-block: 110px; border-top: 1px solid var(--line); }
.network-heading { display: grid; grid-template-columns: 1fr .75fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.network-heading h2 { max-width: 760px; margin: 0; font-size: clamp(46px, 5vw, 74px); line-height: 1.04; }
.network-heading p { margin: 0; font-size: 19px; }
.network-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 38px; border-block: 1px solid var(--line); }
.network-flow article { min-height: 260px; padding: 44px 46px; border-right: 1px solid var(--line); }
.network-flow article:last-child { border-right: 0; }
.network-flow .icon-mask { width: 38px; height: 38px; margin-bottom: 32px; background: var(--purple); }
.network-flow h3 { margin-bottom: 12px; font-size: 22px; }
.network-flow p { margin: 0; font-size: 14px; }

.merchant { padding-block: 120px; display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 68px; }
.merchant-copy p { max-width: 540px; margin-bottom: 30px; font-size: 20px; }
.merchant-dashboard { min-height: 490px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.dashboard-bar { min-height: 72px; display: flex; align-items: center; gap: 80px; padding: 0 26px; border-bottom: 1px solid var(--line); }
.dashboard-bar strong { color: var(--purple); }
.dashboard-body { display: grid; grid-template-columns: .75fr 1.25fr; gap: 18px; padding: 24px; }
.merchant-qr, .recent-list { min-height: 360px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; }
.merchant-qr { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.merchant-qr > span:first-child { align-self: flex-start; font-weight: 700; }
.qr-dashboard { width: 156px; height: 156px; background: var(--ink) !important; }
.merchant-qr button { width: 100%; min-height: 44px; border: 0; border-radius: 10px; color: #fff; background: var(--purple); cursor: pointer; font-weight: 700; }
.list-title, .recent-list p { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.list-title { margin-bottom: 22px; }
.list-title span { color: var(--purple); font-size: 13px; }
.recent-list p { margin: 0; padding: 17px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.recent-list p:last-child { border-bottom: 0; }
.recent-list p strong:first-letter { color: var(--success); }

.trust { padding: 84px 0; border-top: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 52px; }
.trust h2 { font-size: clamp(38px, 3.4vw, 54px); line-height: 1.08; }
.trust article .icon-mask { width: 38px; height: 38px; margin-bottom: 24px; background: var(--purple); }
.trust article h3 { margin-bottom: 10px; font-size: 19px; letter-spacing: -.025em; }
.trust article p { margin: 0; font-size: 14px; }
.final-cta { background: #08080c; color: #fff; }
.final-cta-inner { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.final-cta h2 { margin: 0; font-size: clamp(32px, 3vw, 48px); }
.site-footer { padding: 70px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 48px; align-items: start; }
.site-footer h2 { margin: 4px 0 18px; font-size: 14px; letter-spacing: 0; }
.site-footer div:not(.footer-grid) a { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.copyright { margin: auto 0 0; white-space: nowrap; font-size: 13px; }

.icon-mask { display: inline-block; background: var(--purple); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 28px; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 12px; color: #fff; background: #111116; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.legal-page { min-height: 100vh; padding: 48px 0 96px; }
.legal-page .brand { margin-bottom: 64px; }
.legal-copy { max-width: 820px; }
.legal-copy h1 { margin-bottom: 22px; font-size: clamp(44px, 6vw, 72px); line-height: 1.03; }
.legal-copy h2 { margin: 44px 0 14px; font-size: 24px; }
.draft-notice { margin: 32px 0; padding: 18px 20px; border: 1px solid #e8d9b9; border-radius: 14px; color: #6c4b06; background: #fff8e8; line-height: 1.55; }
.back-link { display: inline-flex; margin-top: 38px; color: var(--purple); font-weight: 700; }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 980px); }
  .primary-nav { gap: 22px; }
  .hero { grid-template-columns: 1fr .9fr; }
  .hero-product { transform: scale(.88); }
  .merchant { grid-template-columns: 1fr; }
  .merchant-copy { max-width: 760px; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .copyright { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  :root { --shell: calc(100% - 32px); }
  .header-inner { height: 76px; gap: 18px; }
  .brand { font-size: 21px; }
  .brand img { width: 38px; height: 38px; }
  .menu-toggle { order: 3; width: 42px; height: 42px; display: grid; align-content: center; gap: 5px; margin-left: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
  .menu-toggle span:not(.sr-only) { display: block; width: 19px; height: 2px; margin-inline: auto; border-radius: 2px; background: var(--ink); }
  .primary-nav { position: absolute; top: 100%; right: 0; left: 0; height: calc(100dvh - 76px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; margin: 0; padding: 40px 24px; overflow-y: auto; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 24px 50px rgba(26, 15, 52, .08); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .2s ease, transform .2s ease; }
  .primary-nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .primary-nav a { font-size: 24px; font-weight: 700; }
  .header-actions { margin-left: auto; }
  .header-actions .button { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 70px; }
  .hero h1 { font-size: clamp(50px, 13vw, 76px); }
  .hero-product { min-height: 560px; transform: none; }
  .phone-frame { width: 280px; height: 540px; }
  .qr-card { left: 0; width: 150px; }
  .steps { grid-template-columns: 1fr; gap: 50px; }
  .steps li:not(:last-child)::after { top: 82px; left: 40px; width: 2px; height: 68px; }
  .everything { grid-template-columns: 1fr; padding: 28px; }
  .device-pair { order: 2; }
  .merchant { padding-block: 84px; }
  .network-heading { grid-template-columns: 1fr; gap: 22px; }
  .network-flow { grid-template-columns: 1fr; }
  .network-flow article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .network-flow article:last-child { border-bottom: 0; }
  .dashboard-body { grid-template-columns: 1fr; }
  .merchant-qr { min-height: 330px; }
  .trust-grid { grid-template-columns: 1fr; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .hero-copy > p { font-size: 17px; }
  .button-row .button { width: 100%; }
  .hero-product { min-height: 500px; overflow: hidden; }
  .phone-frame { width: 242px; height: 475px; transform: translateX(30px) rotate(1deg); }
  .qr-card { left: -18px; top: 38%; width: 132px; }
  .qr-large { width: 82px; height: 82px; }
  .route-one { right: -20%; }
  .section-heading h2, .merchant-copy h2 { font-size: 43px; }
  .everything { padding: 24px 18px; }
  .device-pair { height: 290px; }
  .desktop-shot { height: 250px; }
  .dashboard-bar { gap: 30px; }
  .dashboard-body { padding: 14px; }
  .recent-list p { align-items: flex-start; flex-direction: column; gap: 5px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
