/* FlowPayra Lite landing page. No inline styles and no scripts: the page ships under a strict CSP. */
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --forest: #14291f; --forest-2: #1e3a30; --forest-3: #18301f; --line: #3b5747; --line-2: #2b4a3d;
  --lime: #c6f432; --ink: #0f1512; --paper: #f4f5f1; --card: #ffffff; --tile: #f4f5f1;
  --text-2: #4a554d; --text-3: #5c665e; --on-dark: #f2f5ee; --on-dark-2: #c9d3c6; --on-dark-3: #a9bcac;
  --green-ink: #3f6212; --rule: #d9dcd3;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; color: var(--ink); background: var(--paper); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--green-ink); }
.h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.01em; margin-top: 12px; line-height: 1.2; }
.center { text-align: center; }
.section { padding-top: 104px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--lime); color: var(--forest); padding: 10px 16px; border-radius: 8px; z-index: 10; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---- hero: one full viewport ---- */
.hero { background: var(--forest); color: var(--on-dark); min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand img { width: 28px; height: 28px; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--on-dark-3); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); flex: 1; }
.nav-links a:hover, .nav-side a:hover { color: var(--lime); }
.nav-side { display: flex; align-items: center; gap: 20px; font-size: 14px; color: var(--on-dark-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; }
.btn-lime { background: var(--lime); color: var(--forest); }
.btn-lime:hover { background: #d6fb5a; }
.btn-ghost { border: 1px solid #5b7566; color: var(--on-dark); font-weight: 600; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-forest { background: var(--forest); color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.hero-main { flex: 1; width: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 32px 0 48px; }
.hero-copy { flex: 1 1 min(100%, 440px); min-width: 0; }
.chip { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--lime); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; margin-top: 24px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-sub { font-size: 19px; line-height: 1.7; color: var(--on-dark-2); margin-top: 22px; max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* settlement diagram (560 x 400 design box, scaled down on narrow screens) */
.flow-box { flex: 0 1 560px; min-width: 0; max-width: 100%; }
.flow { position: relative; width: 560px; height: 400px; transform-origin: top left; }
.flow svg { position: absolute; inset: 0; }
.flow path { stroke: var(--line); stroke-width: 2; fill: none; stroke-dasharray: 4 6; }
.dot { position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); animation: flow 2.4s linear infinite; }
.dot-a { offset-path: path('M96 200 L250 200'); animation-duration: 1.6s; }
.dot-b { offset-path: path('M310 200 C380 200 380 80 440 80'); animation-delay: .5s; }
.dot-c { offset-path: path('M310 200 L440 200'); animation-delay: .9s; }
.dot-d { offset-path: path('M310 200 C380 200 380 320 440 320'); animation-delay: 1.3s; }
.node-payer { position: absolute; left: 0; top: 152px; width: 96px; height: 96px; border-radius: 24px; background: var(--forest-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--on-dark-2); text-align: center; }
.node-amount { position: absolute; left: 0; top: 258px; width: 96px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--lime); }
.node-contract { position: absolute; left: 250px; top: 170px; width: 60px; height: 60px; border-radius: 50%; background: var(--lime); animation: pulse 2.4s ease-out infinite; display: flex; align-items: center; justify-content: center; }
.node-contract-label { position: absolute; left: 200px; top: 244px; width: 160px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--on-dark-2); }
.node-contract-label b { font-family: var(--mono); font-weight: 400; color: var(--lime); }
.payee { position: absolute; left: 440px; width: 120px; border-radius: 16px; background: var(--forest-2); border: 1px solid var(--line); padding: 12px 14px; }
.payee span { display: block; font-size: 12px; color: var(--on-dark-3); }
.payee b { font-family: var(--mono); font-size: 15px; font-weight: 500; }
.payee-1 { top: 52px; } .payee-2 { top: 172px; } .payee-3 { top: 292px; }
.flow-note { position: absolute; left: 180px; top: 372px; width: 260px; font-size: 12px; color: var(--on-dark-3); }

.marquee { overflow: hidden; border-top: 1px solid var(--line-2); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 40s linear infinite; font-family: var(--mono); font-size: 15px; color: var(--on-dark-2); white-space: nowrap; }
.marquee-track .tok { color: var(--lime); }

/* ---- how it works ---- */
.steps { position: relative; margin: 64px auto 0; max-width: 1000px; }
.steps-line { position: absolute; left: 12%; right: 12%; top: 36px; height: 3px; background: #dde1d6; border-radius: 3px; overflow: hidden; }
.steps-line i { display: block; height: 100%; background: var(--lime); animation: line 8s linear infinite; }
.steps-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-no { width: 72px; height: 72px; margin: 0 auto; border-radius: 50%; background: #fff; font-family: var(--mono); font-size: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(20,41,31,.10); animation: step 8s infinite; }
.s2 .step-no { animation-delay: 2s; } .s3 .step-no { animation-delay: 4s; } .s4 .step-no { animation-delay: 6s; }
.step h3 { font-size: 19px; margin: 20px 0 6px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ---- checkout showcase ---- */
.show { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; margin-top: 56px; }
.show-copy { flex: 1 1 320px; min-width: 0; }
.show-copy p { font-size: 17px; line-height: 1.7; color: var(--text-2); margin-top: 16px; }
.show-shots { flex: 2 1 560px; min-width: 0; position: relative; padding: 0 0 40px 0; }
.shot { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(20,41,31,.18); background: #fff; }
.shot-desktop { width: 88%; }
.shot-phone { position: absolute; right: 0; bottom: 0; width: 24%; border-radius: 22px; border: 5px solid var(--ink); animation: float 6s ease-in-out infinite; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; font-size: 13.5px; font-weight: 600; }
.tags span { background: var(--tile); border-radius: 999px; padding: 8px 14px; }
.tags.on-paper span { background: #fff; }

/* ---- capabilities ---- */
.caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 20px; margin-top: 56px; }
.cap { background: var(--card); border-radius: 28px; padding: 36px; min-width: 0; }
.cap-vis { height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.cap h3 { font-size: 26px; font-weight: 800; margin-top: 12px; }
.cap > p { font-size: 16px; line-height: 1.7; color: var(--text-2); margin-top: 10px; }
.vis-label { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.split-bar { display: flex; gap: 6px; height: 44px; }
.split-bar div { flex: 0.001 1 0; border-radius: 12px; font-family: var(--mono); font-size: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; animation: 5s ease-out infinite; }
.g70 { background: var(--forest); color: var(--lime); animation-name: grow70; }
.g20 { background: var(--green-ink); color: #fff; animation-name: grow20; animation-delay: .3s; }
.g10 { background: var(--lime); color: var(--forest); animation-name: grow10; animation-delay: .6s; }
.periods { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.periods i { width: 26px; height: 26px; border-radius: 50%; background: #dde1d6; animation: period 7.2s infinite; }
.periods i:nth-child(2) { animation-delay: .6s; } .periods i:nth-child(3) { animation-delay: 1.2s; } .periods i:nth-child(4) { animation-delay: 1.8s; }
.periods i:nth-child(5) { animation-delay: 2.4s; } .periods i:nth-child(6) { animation-delay: 3s; } .periods i:nth-child(7) { animation-delay: 3.6s; }
.periods i:nth-child(8) { animation-delay: 4.2s; } .periods i:nth-child(9) { animation-delay: 4.8s; } .periods i:nth-child(10) { animation-delay: 5.4s; }
.periods i:nth-child(11) { animation-delay: 6s; } .periods i:nth-child(12) { animation-delay: 6.6s; }
.wallet-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; font-size: 13px; font-weight: 700; }
.wallet-grid span { border: 2px solid transparent; background: var(--tile); border-radius: 14px; padding: 14px 4px; text-align: center; animation: pick 8s infinite; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-grid span:nth-child(2) { animation-delay: 1s; } .wallet-grid span:nth-child(3) { animation-delay: 2s; } .wallet-grid span:nth-child(4) { animation-delay: 3s; }
.wallet-grid span:nth-child(5) { animation-delay: 4s; } .wallet-grid span:nth-child(6) { animation-delay: 5s; } .wallet-grid span:nth-child(7) { animation-delay: 6s; } .wallet-grid span:nth-child(8) { animation-delay: 7s; }
.scan { position: relative; gap: 8px; font-family: var(--mono); font-size: 13px; overflow: hidden; }
.scan::before { content: ''; position: absolute; left: 0; right: 0; height: 3px; background: var(--lime); animation: scan 4s ease-in-out infinite; }
.scan div { background: var(--tile); color: var(--text-2); border-radius: 10px; padding: 9px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan .hit { animation: flag 4s infinite; }

/* ---- networks ---- */
.nets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 48px; font-weight: 700; font-size: 15.5px; }
.net { background: #fff; border-radius: 16px; padding: 18px 20px; animation: float 6s ease-in-out infinite; }
.net small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--text-3); margin-top: 4px; }
.net.dark { background: var(--forest); color: var(--on-dark); }
.net.dark small { color: var(--lime); }
.net.more { background: none; border: 1px dashed #9aa39c; color: var(--text-2); animation: none; }
.nets .net:nth-child(3n+2) { animation-delay: 1.3s; } .nets .net:nth-child(3n) { animation-delay: 2.6s; }
.token-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; font-size: 14.5px; font-weight: 700; }
.token-row span { background: #fff; border-radius: 999px; padding: 10px 16px; }

/* ---- security ---- */
.sec { background: var(--forest); color: var(--on-dark); margin-top: 104px; padding: 96px 0; }
.sec-in { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.zero { flex: 0 1 380px; min-width: 0; display: flex; justify-content: center; }
.zero-ring { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.zero-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line); animation: ring 40s linear infinite; }
.zero-ring::after { content: ''; position: absolute; inset: 34px; border-radius: 50%; border: 1px solid var(--line); }
.zero-num { text-align: center; animation: float 5s ease-in-out infinite; }
.zero-num b { display: block; font-family: var(--mono); font-size: 120px; line-height: 1; font-weight: 500; color: var(--lime); }
.zero-num span { font-size: 14px; color: var(--on-dark-2); }
.sec-copy { flex: 1 1 480px; min-width: 0; }
.sec .eyebrow { color: var(--lime); }
.sec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 36px; }
.sec-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sec-card b { display: block; font-size: 17px; font-weight: 800; color: var(--lime); }
.sec-card span { display: block; font-size: 14.5px; line-height: 1.6; color: var(--on-dark-2); margin-top: 6px; }
.sec-note { font-size: 13.5px; line-height: 1.7; color: var(--on-dark-3); margin-top: 24px; }
.sec-note a { text-decoration: underline; }

/* ---- console ---- */
.console { position: relative; margin-top: 48px; }
.console .shot { border-radius: 24px; }
.float { position: absolute; border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; animation: float 5s ease-in-out infinite; white-space: nowrap; }
.f1 { left: -8px; top: 12%; background: var(--forest); color: var(--on-dark); }
.f2 { right: -8px; top: 22%; background: var(--lime); color: var(--forest); animation-delay: 1.2s; }
.f3 { right: 6%; bottom: 8%; background: var(--forest); color: var(--on-dark); animation-delay: 2.4s; }
.f4 { left: 4%; bottom: 12%; background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(20,41,31,.14); animation-delay: 3.2s; }

/* ---- developers ---- */
.dev { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.dev-copy { flex: 1 1 380px; min-width: 0; }
.dev-copy .tags { margin-top: 28px; font-size: 14.5px; font-weight: 700; }
.dev-copy .tags span { padding: 10px 16px; }
.dev-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-line { border: 1px solid #c9cec4; background: #fff; }
.code { flex: 1 1 500px; min-width: 0; background: var(--ink); border-radius: 20px; overflow: hidden; }
.code-head { padding: 14px 22px; border-bottom: 1px solid #252b27; font-family: var(--mono); font-size: 13px; color: #a9b3ab; }
.code pre { margin: 0; padding: 24px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: #d5dbd3; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .out { color: var(--lime); }
.cursor { display: inline-block; width: 9px; height: 17px; background: var(--lime); margin-left: 6px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }

/* ---- deployment, CTA, footer ---- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fact { background: #fff; border-radius: 20px; padding: 26px; }
.fact b { display: block; font-size: 20px; font-weight: 800; }
.fact span { display: block; font-size: 14.5px; color: var(--text-2); margin-top: 6px; }
.cta { background: var(--lime); border-radius: 28px; padding: 56px 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; color: var(--forest); }
.foot { padding: 72px 0 48px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; font-size: 14px; line-height: 2.1; color: var(--text-2); }
.foot-grid b { display: block; color: var(--ink); font-weight: 800; }
.foot-grid a { display: block; }
.foot-grid a:hover { color: var(--green-ink); }
.foot-brand b { font-size: 16px; }
.foot-brand span { display: block; line-height: 1.7; margin-top: 8px; }
.foot-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.foot-base a:hover { color: var(--green-ink); }

@keyframes flow { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198,244,50,.55); } 60% { box-shadow: 0 0 0 18px rgba(198,244,50,0); } }
@keyframes step { 0%, 20% { background: var(--lime); color: var(--forest); transform: scale(1.08); } 25%, 100% { background: #fff; color: var(--ink); transform: scale(1); } }
@keyframes line { from { width: 0; } to { width: 100%; } }
@keyframes grow70 { 0% { flex-grow: 0.001; } 35%, 100% { flex-grow: 70; } }
@keyframes grow20 { 0% { flex-grow: 0.001; } 35%, 100% { flex-grow: 20; } }
@keyframes grow10 { 0% { flex-grow: 0.001; } 35%, 100% { flex-grow: 10; } }
@keyframes period { 0%, 12% { background: var(--lime); transform: scale(1.25); } 18%, 100% { background: #dde1d6; transform: scale(1); } }
@keyframes scan { 0% { top: 0; } 50% { top: calc(100% - 3px); } 100% { top: 0; } }
@keyframes flag { 0%, 40% { background: var(--tile); color: var(--text-2); } 50%, 90% { background: #fde7e3; color: #b42318; } 100% { background: var(--tile); color: var(--text-2); } }
@keyframes pick { 0%, 18% { border-color: var(--ink); background: #fff; } 22%, 100% { border-color: transparent; background: var(--tile); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ring { from { transform: rotate(0); } to { transform: rotate(360deg); } }

@media (max-width: 1180px) { .flow-box { flex-basis: 100%; display: flex; justify-content: center; } }
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding-top: 72px; }
  .nav-links { order: 3; flex-basis: 100%; }
  .flow-box { height: 250px; justify-content: flex-start; overflow: hidden; width: 100%; flex: 0 0 100%; }
  .flow { transform: scale(.6); }
  .steps-line { display: none; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .cap { padding: 24px; border-radius: 22px; }
  .wallet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-vis { height: auto; min-height: 150px; padding: 8px 0; }
  .float { display: none; }
  .cta { padding: 36px 24px; }
  .sec { padding: 72px 0; margin-top: 72px; }
  .zero-ring { width: 240px; height: 240px; }
  .zero-num b { font-size: 96px; }
}
@media (max-width: 380px) { .flow-box { height: 200px; } .flow { transform: scale(.5); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } html { scroll-behavior: auto; } .split-bar .g70 { flex-grow: 70; } .split-bar .g20 { flex-grow: 20; } .split-bar .g10 { flex-grow: 10; } }
