/* ============================================================
   QRISPay Landing Page v1 — professional fintech marketing page
   Shares tokens with app.css design system.
   ============================================================ */
:root {
  --bg: #060a18;
  --bg2: #0a1024;
  --panel: #0e1630;
  --panel2: #131e3d;
  --panel3: #1a2749;
  --text: #eef2fb;
  --muted: #8fa0bf;
  --muted2: #6b7d9e;
  --accent: #6366f1;
  --accent2: #818cf8;
  --accent-soft: rgba(99,102,241,.14);
  --accent-glow: rgba(99,102,241,.45);
  --ok: #34d399;
  --ok-soft: rgba(52,211,153,.13);
  --warn: #fbbf24;
  --line: #1d2a4d;
  --line2: #27365e;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.65 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(760px 460px at 50% -12%, rgba(99,102,241,.20), transparent 62%),
    radial-gradient(560px 400px at 108% 6%, rgba(139,92,246,.14), transparent 60%),
    radial-gradient(820px 560px at 4% 108%, rgba(52,211,153,.07), transparent 62%);
}
::selection { background: rgba(99,102,241,.35); }
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
*::-webkit-scrollbar { width: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
a { color: var(--accent2); text-decoration: none; }
a:hover { color: #a5b4fc; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, #6f74f3, #5a5ee8);
  color: #fff; border: 0; padding: 0 20px; height: 44px;
  border-radius: 11px; cursor: pointer; font: 600 14.5px/1 var(--font);
  transition: transform .1s, box-shadow .18s, background .18s;
  box-shadow: 0 2px 4px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.16), 0 6px 20px rgba(99,102,241,.28);
  white-space: nowrap;
}
.btn:hover { background: linear-gradient(180deg, #7d82f5, #6366f1); box-shadow: 0 6px 22px rgba(99,102,241,.42), inset 0 1px 0 rgba(255,255,255,.18); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn.sec { background: rgba(19,30,61,.7); color: var(--text); border: 1px solid var(--line2); box-shadow: 0 2px 6px rgba(0,0,0,.3); backdrop-filter: blur(6px); }
.btn.sec:hover { background: var(--panel3); border-color: #33456f; }
.btn.lg { height: 50px; font-size: 15.5px; padding: 0 26px; }

/* ── header / nav ── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6,10,24,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(29,42,77,.6);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.02em; font-size: 17px; color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 9px; filter: drop-shadow(0 4px 12px rgba(99,102,241,.45)); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 500; padding: 8px 13px;
  border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { height: 38px; padding: 0 16px; font-size: 13.5px; box-shadow: none; }
.nav-cta .btn.sec { box-shadow: none; }
.burger { display: none; background: none; border: 1px solid var(--line2); border-radius: 9px; width: 40px; height: 38px; cursor: pointer; }
.burger span { display: block; width: 17px; height: 2px; margin: 3.5px auto; background: var(--text); border-radius: 2px; }

/* ── hero ── */
.hero { padding: 92px 0 76px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid rgba(99,102,241,.32);
  color: #c7d2fe; font-size: 12.5px; font-weight: 600;
  padding: 6px 14px 6px 10px; border-radius: 99px; margin-bottom: 24px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; margin: 0 auto 22px;
  max-width: 880px; font-weight: 800; letter-spacing: -0.035em;
}
.hero h1 .grad {
  background: linear-gradient(96deg, #a5b4fc 0%, #818cf8 34%, #6366f1 68%, #8b5cf6 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.hero p.lead {
  color: var(--muted); font-size: clamp(15.5px, 2vw, 18.5px); max-width: 640px;
  margin: 0 auto 34px; line-height: 1.62;
}
.hero-actions { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.trust { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; color: var(--muted2); font-size: 13px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { flex: 0 0 auto; }

/* ── terminal mockup ── */
.mockup {
  max-width: 760px; margin: 0 auto; padding: 8px;
  background: linear-gradient(180deg, rgba(19,30,61,.9), rgba(10,16,36,.96));
  border: 1px solid var(--line2); border-radius: 20px;
  box-shadow: 0 34px 90px rgba(0,0,0,.62), 0 8px 24px rgba(99,102,241,.14);
  animation: rise .5s cubic-bezier(.22,.9,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .mockup { animation: none; } }
.mockup-bar { display: flex; gap: 6px; padding: 8px 10px 12px; }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); display: block; }
.mockup-bar i:nth-child(1) { background: #f87171; }
.mockup-bar i:nth-child(2) { background: var(--warn); }
.mockup-bar i:nth-child(3) { background: var(--ok); }
.mockup-body {
  margin: 0 10px 10px; padding: 18px 20px; border-radius: 12px;
  background: #050912; border: 1px solid var(--line); font: 13px/1.85 var(--mono); color: #a9b8dd;
  overflow-x: auto; text-align: left;
}
.mockup-body .c { color: #6b7d9e; }
.mockup-body .k { color: #a5b4fc; }
.mockup-body .s { color: #6ee7b7; }
.mockup-body .o { color: #fbbf24; }

/* ── sections ── */
section { padding: 74px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
  background: linear-gradient(180deg, rgba(19,30,61,.72), rgba(13,21,48,.86));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: rgba(99,102,241,.42); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(99,102,241,.14); }
.card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); border: 1px solid rgba(99,102,241,.28); margin-bottom: 16px;
}
.card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.62; }

/* ── feature rows (alternating) ── */
.row-feat { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.row-feat.flip { grid-template-columns: 1fr 1.05fr; }
.row-feat .visual { order: 2; }
.row-feat.flip .visual { order: -1; }
.row-feat h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.row-feat > div > p { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: #c9d5ef; font-size: 14.5px; }
.checks svg { margin-top: 3px; flex: 0 0 auto; }

/* visual blocks */
.viz {
  border-radius: 18px; border: 1px solid var(--line2); padding: 22px;
  background: linear-gradient(160deg, rgba(26,39,73,.85), rgba(10,16,36,.92));
  box-shadow: 0 20px 54px rgba(0,0,0,.42);
}
.viz-code { font: 12.5px/1.9 var(--mono); color: #a9b8dd; background: #050912; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.viz-code .k { color: #a5b4fc; } .viz-code .s { color: #6ee7b7; } .viz-code .c { color: #6b7d9e; }
.viz-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.viz-meta div { flex: 1; }
.viz-meta .lbl { font-size: 11px; color: var(--muted2); text-transform: uppercase; letter-spacing: .6px; }
.viz-meta .val { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.badge {
  font-size: 12px; font-weight: 600; color: #c7d2fe; padding: 5px 11px; border-radius: 99px;
  background: var(--accent-soft); border: 1px solid rgba(99,102,241,.3);
}
.badge.ok { color: #6ee7b7; background: var(--ok-soft); border-color: rgba(52,211,153,.3); }

/* step list */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { position: relative; padding: 26px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(14,22,48,.6); }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -16px; left: 18px;
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(160deg, #6f74f3, #5a5ee8); box-shadow: 0 4px 14px rgba(99,102,241,.42);
}
.step h4 { margin: 8px 0 7px; font-size: 14.5px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── pricing ── */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 800px; margin: 0 auto; }
.plan { padding: 28px 26px; position: relative; }
.plan.featured { border-color: rgba(99,102,241,.55); box-shadow: 0 18px 50px rgba(99,102,241,.2); }
.plan .tag {
  position: absolute; top: -12px; right: 22px; font-size: 11.5px; font-weight: 700;
  color: #fff; background: linear-gradient(160deg, #6f74f3, #5a5ee8);
  padding: 5px 12px; border-radius: 99px; box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
.plan .name { font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.035em; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--muted2); }
.plan .per { color: var(--muted); font-size: 13.5px; margin: 4px 0 18px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { display: flex; gap: 10px; color: #c9d5ef; font-size: 14px; }
.plan .btn { width: 100%; }

/* ── stats band ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  padding: 34px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(99,102,241,.12), rgba(139,92,246,.07));
  border: 1px solid rgba(99,102,241,.24);
}
.stats .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.stats .lbl { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ── CTA ── */
.cta-band {
  text-align: center; padding: 64px 30px; border-radius: 24px;
  background: linear-gradient(140deg, rgba(99,102,241,.18), rgba(139,92,246,.1));
  border: 1px solid rgba(99,102,241,.34);
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 520px; font-size: 15.5px; }

/* ── faq ── */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details {
  border: 1px solid var(--line); border-radius: 13px; background: rgba(14,22,48,.6);
  padding: 0 20px; transition: border-color .18s, background .18s;
}
details[open] { border-color: rgba(99,102,241,.4); background: rgba(19,30,61,.7); }
details summary {
  cursor: pointer; padding: 17px 0; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--accent2); font-size: 20px; font-weight: 600; flex: 0 0 auto; transition: transform .18s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); font-size: 14.2px; line-height: 1.66; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 40px 0 30px; margin-top: 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted2); margin: 0 0 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-grid a { color: var(--muted); font-size: 13.8px; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--muted2); font-size: 13.5px; margin: 10px 0 0; max-width: 300px; line-height: 1.6; }
.foot-bot {
  border-top: 1px solid var(--line); padding-top: 22px; display: flex;
  justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted2); font-size: 13px;
}

/* ── responsive ── */
@media (max-width: 980px) {
  .grid-3, .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .row-feat, .row-feat.flip { grid-template-columns: 1fr; gap: 32px; }
  .row-feat .visual, .row-feat.flip .visual { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 66px; left: 12px; right: 12px; padding: 12px;
    background: rgba(10,16,36,.97); border: 1px solid var(--line2); border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5); backdrop-filter: blur(12px);
  }
  .nav.open .nav-links a { padding: 11px 13px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .grid-3, .steps, .stats, .plans, .grid-2 { grid-template-columns: 1fr; }
  .trust { gap: 16px; font-size: 12.5px; }
  .mockup-body { font-size: 11.5px; }
  .cta-band { padding: 44px 20px; }
}
