/* ==========================================================================
   Waypo — base styles (light)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --ink: #0c1a2e;
  --ink-2: #2a3a52;
  --muted: #53627a;
  --line: #e3e8f0;
  --line-strong: #cfd7e3;
  --brand: #2b59ff;
  --brand-hover: #1f47e0;
  --brand-soft: #eaf0ff;
  --cyan: #00b8f0;
  --lime: #3fd98a;
  --sun: #ffc24d;
  --success: #0f9d63;
  --success-soft: #e3f7ee;
  --warn: #b86e00;
  --warn-soft: #fff3dc;
  --danger: #d6334a;
  --danger-soft: #fde8eb;
  --night: #0c1a2e;
  --night-2: #13243d;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-muted: #a3b1c6;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1180px;
  --header-h: 68px;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(12, 26, 46, 0.06), 0 2px 6px rgba(12, 26, 46, 0.04);
  --shadow: 0 30px 60px -12px rgba(12, 26, 46, 0.18), 0 18px 36px -18px rgba(12, 26, 46, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font);
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1b2c45; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-light:hover { border-color: var(--ink); }
.btn-text { padding: 0 6px; height: auto; background: none; color: var(--brand); }
.btn-text:hover { color: var(--brand-hover); }
.on-night .btn-text { color: #8fb0ff; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { display: inline-flex; align-items: center; gap: 4px; color: var(--brand); font-weight: 600; font-size: 15px; }
.link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.link:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled, body.nav-open .site-header { background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, 0.78); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); }
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { width: 30px; height: 30px; }
.logo-text { font-weight: 700; font-size: 21px; letter-spacing: -0.04em; color: var(--ink); }

.site-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  font: 500 15px/1.2 var(--font); color: var(--ink);
  background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: rgba(12, 26, 46, 0.05); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s ease; }
.nav-item.open .nav-link svg { transform: rotate(180deg); }
.nav-link[aria-current="page"] { color: var(--brand); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px;
  min-width: 360px;
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dd-link { display: flex; gap: 14px; padding: 12px; border-radius: 10px; align-items: flex-start; }
.dd-link:hover { background: var(--bg-alt); }
.dd-link .ico { flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.dd-link .ico svg { width: 18px; height: 18px; }
.dd-link b { display: block; font-weight: 600; font-size: 15px; }
.dd-link small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }
.site-nav .nav-cta { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 32px;
    background: #fff;
    overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; font-size: 19px; padding: 16px 4px; border-radius: 0; }
  .nav-link:hover { background: none; }
  .dropdown { position: static; min-width: 0; padding: 0 0 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-item.open .dropdown { display: block; }
  .dropdown::before { display: none; }
  .site-nav .nav-cta { display: inline-flex; margin-top: 24px; height: 50px; font-size: 16px; }
}

/* ---------- Hero with gradient wave ---------- */
.hero { position: relative; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 72px) 0 120px; overflow: hidden; }
.wave {
  position: absolute; inset: 0 0 auto 0; height: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 0 100%);
  background: linear-gradient(115deg, #2b59ff, #00b8f0 40%, #3fd98a 70%, #ffc24d);
  z-index: 0;
}
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 34%, rgba(255,255,255,0) 62%); }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; font-weight: 600; font-size: 14px; color: var(--brand); }
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(63, 217, 138, .25); }
.hero h1 { color: var(--ink); max-width: 640px; }
.hero .lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; min-height: 420px; }
@media (max-width: 960px) {
  .hero { padding: calc(var(--header-h) + 40px) 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .wave { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%); }
  .wave::after { background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 45%, rgba(255,255,255,.1) 75%); }
  .hero-visual { min-height: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; position: relative; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-night { background: var(--night); color: #fff; }
.section-night .muted, .section-night p { color: var(--night-muted); }
.section-night h2, .section-night h3 { color: #fff; }
.skew-top { clip-path: polygon(0 64px, 100% 0, 100% 100%, 0 100%); padding-top: 168px; margin-top: -64px; }

.kicker { display: block; margin-bottom: 14px; font-weight: 600; font-size: 15px; color: var(--brand); }
.section-night .kicker { color: #8fb0ff; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 18px; color: var(--muted); margin: 0; }
.section-night .section-head p { color: var(--night-muted); }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; }
.head-row .section-head { margin: 0; }

/* Value props: 4 columns of text with a thin rule on top */
.props { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.prop { padding-top: 18px; border-top: 1px solid var(--line-strong); position: relative; }
.prop::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--brand); }
.prop h3 { font-size: 16px; margin-bottom: 8px; }
.prop p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .props { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .props { grid-template-columns: minmax(0, 1fr); } }

/* Method strip */
.methods-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; color: var(--muted); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.methods-strip span { display: inline-flex; align-items: center; gap: 8px; }
.methods-strip svg { width: 18px; height: 18px; color: var(--ink-2); }
.strip-label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* Grids */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card .link { margin-top: auto; padding-top: 20px; }
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.card-ico svg { width: 20px; height: 20px; }
.section-night .card { background: var(--night-2); border-color: var(--night-line); box-shadow: none; }
.section-night .card p { color: var(--night-muted); }
.section-night .card-ico { background: rgba(143, 176, 255, .14); color: #8fb0ff; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.bento .card { overflow: hidden; padding: 0; }
.bento .card-body { padding: 28px 28px 0; }
.bento .card-body .link { padding-top: 14px; }
.bento .card-art { margin-top: auto; padding: 24px 28px 0; }
.b-6 { grid-column: span 6; } .b-4 { grid-column: span 4; } .b-3 { grid-column: span 3; } .b-2 { grid-column: span 2; }
@media (max-width: 960px) { .b-4, .b-3, .b-2 { grid-column: span 6; } }
.b-6 .card-art .chart { height: 160px; }

/* Feature row */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.reverse .feature-copy { order: 2; }
.feature-copy > p { color: var(--muted); font-size: 17px; }
.section-night .feature-copy > p { color: var(--night-muted); }
@media (max-width: 960px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 40px; } .feature.reverse .feature-copy { order: 0; } .feature + .feature { margin-top: 72px; } }

.checklist { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checklist svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--success); margin-top: 2px; }
.section-night .checklist svg { color: var(--lime); }
.checklist.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .checklist.cols { grid-template-columns: minmax(0, 1fr); } }

/* Highlights (instead of invented stats) */
.highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.highlight b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; background: linear-gradient(90deg, var(--brand), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-night .highlight b { background: linear-gradient(90deg, #8fb0ff, var(--lime)); -webkit-background-clip: text; background-clip: text; }
.highlight span { color: var(--muted); font-size: 15px; }
.section-night .highlight span { color: var(--night-muted); }
@media (max-width: 860px) { .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tabs */
.tabs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab-btn {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2);
  font: 600 14.5px/1.2 var(--font); cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tab-btn:hover { border-color: var(--ink); }
.tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-night .tab-btn { background: transparent; color: var(--night-muted); border-color: var(--night-line); }
.section-night .tab-btn[aria-selected="true"] { background: #fff; color: var(--ink); }
.tab-panel { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Vertical tabs */
.vtabs { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; }
.vtabs .tabs-list { flex-direction: column; flex-wrap: nowrap; gap: 4px; margin: 0; }
.vtabs .tab-btn { text-align: left; border-radius: 10px; border: 0; background: none; padding: 14px 16px; border-left: 2px solid var(--line); border-radius: 0; }
.vtabs .tab-btn[aria-selected="true"] { background: none; color: var(--ink); border-left-color: var(--brand); }
.vtabs .tab-btn small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
@media (max-width: 860px) {
  .vtabs { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .vtabs .tabs-list { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .vtabs .tab-btn { border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; }
  .vtabs .tab-btn small { display: none; }
  .vtabs .tab-btn[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 960px) { .steps, .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps, .steps.four { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 22px 0; margin: 0; }

/* Final CTA */
.final { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.final h2 { margin-bottom: 16px; }
.final > div > p { color: var(--muted); font-size: 17px; margin-bottom: 24px; }
.final-card { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.final-card h3 { font-size: 17px; display: flex; gap: 10px; align-items: center; }
.final-card h3 svg { width: 20px; height: 20px; color: var(--brand); }
.final-card p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .final { grid-template-columns: minmax(0, 1fr); gap: 32px; } }

/* Code panel */
.code { border-radius: var(--radius-lg); background: #0a1526; border: 1px solid var(--night-line); overflow: hidden; box-shadow: var(--shadow); font: 13.5px/1.75 var(--mono); }
.code-head { display: flex; align-items: center; gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--night-line); }
.code-tab { padding: 6px 12px; border-radius: 7px; border: 0; background: none; color: var(--night-muted); font: 500 13px/1 var(--font); cursor: pointer; }
.code-tab[aria-selected="true"] { background: rgba(255,255,255,.08); color: #fff; }
.code pre { margin: 0; padding: 22px; overflow-x: auto; color: #d4dcea; min-height: 260px; }
.code .k { color: #8fb0ff; } .code .s { color: #7fe3b0; } .code .n { color: #ffcf7a; } .code .c { color: #6b7d96; }

/* ---------- Mock UI ---------- */
.mock { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; border: 1px solid rgba(12,26,46,.06); }
.mock-sm { padding: 16px; border-radius: var(--radius); }
.mock-title { font-weight: 600; font-size: 15px; }
.mock-sub { color: var(--muted); font-size: 13px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.amount { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; margin: 2px 0 16px; font-variant-numeric: tabular-nums; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-size: 14px; }
.row + .row { margin-top: 8px; }
.row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.row.active { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay { margin-top: 14px; height: 46px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.seg span { padding: 10px; border-radius: 10px; border: 1px solid var(--line); text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg span.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: var(--success-soft); color: var(--success); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--danger-soft); color: var(--danger); }
.pill-info { background: var(--brand-soft); color: var(--brand); }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 12px; border-radius: 10px; background: var(--bg-alt); }
.kpi small { display: block; color: var(--muted); font-size: 12px; }
.kpi b { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .up { color: var(--success); font-size: 12px; font-weight: 600; margin-left: 4px; }

.chart { position: relative; height: 130px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .area { fill: url(#pt-area); }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .line2 { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.chart-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }

.float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 13.5px; animation: bob 6s ease-in-out infinite; }
.float .fi { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.float .fi.blue { background: var(--brand-soft); color: var(--brand); }
.float .fi svg { width: 16px; height: 16px; }
.float small { display: block; color: var(--muted); font-size: 11.5px; }
.float b { font-weight: 600; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* Hero composition: dashboard + phone */
.stack { position: relative; }
.stack .dash { width: 82%; margin-left: auto; }
.phone {
  position: absolute; left: -12px; bottom: -120px; z-index: 2;
  width: 214px; padding: 11px;
  border-radius: 34px; background: #0c1a2e; box-shadow: var(--shadow);
}
.phone-screen { border-radius: 24px; background: #fff; padding: 18px 14px 14px; }
.phone-notch { width: 70px; height: 6px; border-radius: 6px; background: #e3e8f0; margin: 0 auto 14px; }
.phone .amount { font-size: 26px; margin-bottom: 10px; }
.phone .row { padding: 9px 10px; font-size: 12.5px; }
.phone .pay { height: 40px; font-size: 13.5px; }
@media (max-width: 560px) { .stack .dash { width: 100%; } .phone { position: relative; bottom: auto; width: 220px; margin: -40px auto 0; } }

/* Money flow (platforms) */
.flow { display: grid; gap: 10px; }
.flow-node { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.flow-node b { font-variant-numeric: tabular-nums; }
.flow-node.main { border-color: var(--brand); background: var(--brand-soft); }
.flow-arrow { display: flex; justify-content: center; color: var(--muted); }
.flow-arrow svg { width: 18px; height: 18px; }
.flow-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.flow-split .flow-node { flex-direction: column; align-items: flex-start; gap: 2px; }
.flow-split small { color: var(--muted); font-size: 12px; }
@media (max-width: 480px) { .flow-split { grid-template-columns: minmax(0, 1fr); } }

/* Diagram for fund flows */
.diagram { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.d-node { padding: 16px 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: center; font-size: 13.5px; font-weight: 600; }
.d-node small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.d-node.hl { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.d-edge { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.d-edge::before, .d-edge::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }

/* Globe (light) */
.globe-wrap { position: relative; max-width: 460px; margin: 0 auto; }
.globe { width: 100%; height: auto; }
.globe .arc { stroke-dasharray: 1; stroke-dashoffset: 1; animation: dash 5s ease-in-out infinite; animation-delay: var(--d); }
.globe .pin { fill: var(--brand); animation: ping 2.6s ease-out infinite; animation-delay: var(--d); }
@keyframes dash { 0% { stroke-dashoffset: 1; opacity: 0; } 10% { opacity: 1; } 60% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ping { 0% { r: 3; opacity: .8; } 100% { r: 15; opacity: 0; } }

/* Scan (antifraud) */
.scan { position: relative; overflow: hidden; }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 70px; top: -70px; background: linear-gradient(180deg, transparent, rgba(43, 89, 255, .14), transparent); animation: scan 3.4s ease-in-out infinite; }
@keyframes scan { 0% { top: -70px; } 100% { top: 100%; } }
.meter { height: 8px; border-radius: 8px; background: var(--bg-alt); overflow: hidden; margin-top: 6px; }
.meter i { display: block; height: 100%; border-radius: 8px; background: var(--success); }
.meter i.w { background: var(--sun); } .meter i.b { background: var(--danger); }

/* Lifecycle columns */
.lifecycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; }
.lifecycle > div { padding: 28px; border-right: 1px solid var(--line); }
.lifecycle > div:last-child { border-right: 0; }
.lifecycle .stage { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; }
.lifecycle h3 { margin-top: 8px; }
.lifecycle ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.lifecycle li::before { content: "–  "; color: var(--line-strong); }
@media (max-width: 860px) { .lifecycle { grid-template-columns: minmax(0, 1fr); } .lifecycle > div { border-right: 0; border-bottom: 1px solid var(--line); } .lifecycle > div:last-child { border-bottom: 0; } }

/* Compliance badges */
.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.badge-card { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; }
.badge-card svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }
@media (max-width: 860px) { .badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .badges { grid-template-columns: minmax(0, 1fr); } }

/* Sub-nav (anchors) */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 14px 12px; font-size: 14.5px; font-weight: 500; color: var(--muted); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a.active { color: var(--ink); border-bottom-color: var(--brand); }
[id].anchor { scroll-margin-top: calc(var(--header-h) + 56px); }

/* ---------- Legal ---------- */
.page-head { padding: 64px 0 24px; }
.page-head p { color: var(--muted); }
.prose { max-width: 780px; padding-bottom: 96px; }
.prose h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 14px 18px; border-radius: 10px; border: 1px dashed #e0a43a; background: var(--warn-soft); color: var(--warn); font-size: 14px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 280px; margin-top: 14px; }
.footer-col h4 { font-size: 14px; font-weight: 600; margin: 0 0 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-col a:hover, .footer-col button:hover { color: var(--brand); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } .footer-bottom { flex-direction: column; } }

/* ---------- Contact modal ---------- */
.modal { width: min(680px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 50px 100px -20px rgba(12,26,46,.35); overflow: auto; }
.modal::backdrop { background: rgba(12, 26, 46, .45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-inner { position: relative; padding: 36px; }
.modal h2 { font-size: 1.8rem; margin-bottom: 6px; }
.modal-lead { color: var(--muted); margin-bottom: 26px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.modal-close:hover { color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .modal-inner { padding: 28px 20px; } }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.form-field label .req { color: var(--brand); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink);
  font: 15px/1.4 var(--font); appearance: none; -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2353627a' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px; }
.form-field textarea { resize: vertical; min-height: 92px; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8a97ab; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-field.has-error input { border-color: var(--danger); }
.field-error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 4px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.form-note { color: var(--muted); font-size: 12.5px; max-width: 360px; margin: 0; }
.form-note a { text-decoration: underline; }
.form-status { margin: 14px 0 0; font-size: 14px; }
.form-status.error { color: var(--danger); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 20px 0 6px; }
.form-success .ok { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.form-success .ok svg { width: 28px; height: 28px; }
.form-success p { color: var(--muted); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .globe .arc { stroke-dashoffset: 0; }
}
@media (max-width: 560px) { .stack:has(.phone) .float { display: none; } }
