/* ============ Tokens ============ */
:root,
html[data-theme="dark"] {
  --bg: #060807;
  --bg-alt: #0a0e0b;
  --surface: #0f1410;
  --surface-2: #151c16;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef3ea;
  --muted: #9aa99a;
  --brand: #9be82b;
  --brand-2: #5fc10f;
  --brand-text: #a9ee4a;
  --brand-ink: #0a1203;
  --glow: rgba(155, 232, 43, .22);
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
  --nav-bg: rgba(6, 8, 7, .72);
  color-scheme: dark;
}
html[data-theme="light"] {
  --bg: #f6f8f3;
  --bg-alt: #edf1e8;
  --surface: #ffffff;
  --surface-2: #f2f5ee;
  --line: rgba(10, 22, 6, .11);
  --line-strong: rgba(10, 22, 6, .22);
  --text: #0d140a;
  --muted: #526050;
  --brand: #86d611;
  --brand-2: #5aa80a;
  --brand-text: #3a7805;
  --brand-ink: #0a1203;
  --glow: rgba(110, 190, 20, .22);
  --shadow: 0 20px 50px rgba(30, 50, 15, .14);
  --nav-bg: rgba(246, 248, 243, .78);
  color-scheme: light;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
h1, h2, h3 { font-family: "Space Grotesk", "Inter", system-ui, sans-serif; line-height: 1.08; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* theme-specific logos */
.logo--light, .logo-hero--light { display: none; }
html[data-theme="light"] .logo--dark, html[data-theme="light"] .logo-hero--dark { display: none; }
html[data-theme="light"] .logo--light, html[data-theme="light"] .logo-hero--light { display: block; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn--sm { padding: 9px 16px; font-size: 14.5px; border-radius: 10px; }
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); box-shadow: 0 8px 28px var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow); }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-text); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: transparent; border: 1px solid var(--line-strong); cursor: pointer; color: var(--text);
  transition: border-color .2s, color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand-text); }

/* ============ Nav ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: var(--nav-bg); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { display: block; flex: none; }
.brand .logo { height: 46px; width: auto; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { text-decoration: none; padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-current { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.i-sun { display: none; }
html[data-theme="dark"] .i-sun { display: block; }
html[data-theme="dark"] .i-moon { display: none; }
.nav__burger { display: none; flex-direction: column; gap: 5px; }
.nav__burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 150px 0 56px; overflow: hidden; isolation: isolate; }
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .9; }
.hero__glow {
  position: absolute; z-index: -1; width: 900px; height: 900px; right: -260px; top: -240px;
  background: radial-gradient(circle, var(--glow), transparent 62%); pointer-events: none;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-text); padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { margin: 26px 0 24px; font-size: clamp(54px, 9vw, 112px); font-weight: 700; }
.word { display: block; }
.word--brand { background: linear-gradient(100deg, var(--brand) 10%, var(--brand-2) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html[data-theme="light"] .word--brand { background: linear-gradient(100deg, #5aa80a, #3a7805); -webkit-background-clip: text; background-clip: text; }
.lede { max-width: 560px; font-size: 19px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__visual { perspective: 1100px; }
.hero__plate {
  transform-style: preserve-3d; transition: transform .15s ease-out;
  border-radius: 28px; padding: 18px; position: relative;
  animation: float 7s ease-in-out infinite;
}
.hero__plate::before { content: ""; position: absolute; inset: 8% 4%; background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(30px); z-index: -1; }
.logo-hero { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
html[data-theme="light"] .logo-hero { border-radius: 28px; box-shadow: var(--shadow); filter: none; }
@keyframes float { 50% { transform: translateY(-10px); } }

.ticker { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line); }
.ticker li { font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); transition: color .2s, border-color .2s; }
.ticker li:hover { color: var(--brand-text); border-color: var(--brand); }

/* ============ Sections ============ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 780px; margin-bottom: 56px; }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 16px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; }
.section__sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 620px; }

/* cards with spotlight */
.grid.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px 28px; border-radius: 20px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow), transparent 55%);
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 22px; color: var(--brand-text); background: var(--surface-2); border: 1px solid var(--line); }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* tabs */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.tabs__list { display: flex; flex-direction: column; gap: 12px; }
.tab {
  display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  font-family: "Space Grotesk", sans-serif; font-size: 26px; font-weight: 600;
  transition: border-color .25s, background-color .25s, transform .25s;
}
.tab span { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .1em; }
.tab:hover { border-color: var(--line-strong); transform: translateX(4px); }
.tab.is-active { border-color: var(--brand); background: linear-gradient(135deg, var(--surface), var(--surface-2)); box-shadow: 0 0 0 1px var(--brand) inset, 0 12px 40px var(--glow); }
.tab.is-active span { color: var(--brand-text); }
.panel { padding: 44px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); height: 100%; animation: panelIn .45s ease; }
.panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.panel h3 { font-size: 34px; margin-bottom: 14px; }
.panel > p { color: var(--muted); font-size: 18px; max-width: 560px; }
.ticks { margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 36px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 12px; border: solid var(--brand-ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.75); transform-origin: 50% 50%; margin-top: -3px; }

/* payment flow */
.flow { position: relative; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
.flow__steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; position: relative; z-index: 1; }
.flow__steps button {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; background: none; border: 0; padding: 4px 4px 0;
}
.flow__steps b {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: "Space Grotesk", sans-serif; font-size: 19px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--muted);
  transition: all .35s ease;
}
.flow__steps span { font-size: 15px; font-weight: 500; color: var(--muted); text-align: center; transition: color .3s; }
.flow__steps li.is-done b { border-color: var(--brand); color: var(--brand-text); }
.flow__steps li.is-active b { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); transform: scale(1.12); box-shadow: 0 0 0 8px var(--glow); }
.flow__steps li.is-active span { color: var(--text); }
.flow__rail { position: absolute; left: calc(36px + 10%); right: calc(36px + 10%); top: 62px; height: 2px; background: var(--line-strong); z-index: 0; }
.flow__bar { height: 100%; width: 0; background: var(--brand); transition: width .6s ease; box-shadow: 0 0 14px var(--glow); }
.flow__detail { margin: 38px auto 0; max-width: 620px; text-align: center; min-height: 112px; }
.flow__detail h3 { font-size: 26px; margin-bottom: 8px; }
.flow__detail p { color: var(--muted); font-size: 18px; }
.flow__toggle { position: absolute; right: 22px; bottom: 22px; }

/* timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: t; }
.timeline li { position: relative; padding: 32px 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.timeline li::after { content: ""; position: absolute; left: 26px; top: 0; width: 56px; height: 3px; background: var(--brand); border-radius: 0 0 3px 3px; }
.timeline__n { display: block; font-family: "Space Grotesk", sans-serif; font-size: 44px; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px var(--brand-text); margin-bottom: 14px; }
.timeline h3 { font-size: 22px; margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: 16px; }

/* contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.mail { margin-top: 34px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.mail__label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); }
.mail__addr { font-weight: 600; text-decoration: none; color: var(--brand-text); word-break: break-all; }
.mail__addr:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14.5px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--glow); }
.form .is-invalid { border-color: #ef5a5a; }
.err { color: #ef6b6b; font-size: 13.5px; min-height: 0; }
html[data-theme="light"] .err { color: #c43a3a; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; }
.count { color: var(--muted); font-size: 13px; margin-left: auto; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; gap: 14px; align-items: center; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--brand-ink) 30%, transparent); border-top-color: var(--brand-ink); animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { grid-column: 1 / -1; padding: 16px 18px; border-radius: 14px; font-size: 15.5px; border: 1px solid var(--line-strong); }
.status--ok { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.status--warn { border-color: #e0a63a; background: color-mix(in srgb, #e0a63a 12%, transparent); }
.status--err { border-color: #ef5a5a; background: color-mix(in srgb, #ef5a5a 10%, transparent); }
.status a, .status button.link { color: var(--brand-text); font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--bg-alt); }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand .logo { height: 46px; width: auto; }
.footer__brand p { margin-top: 14px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.footer__nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; align-content: start; }
.footer__nav a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .2s; }
.footer__nav a:hover { color: var(--brand-text); }
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; } .reveal[data-d="4"] { transition-delay: .32s; } .reveal[data-d="5"] { transition-delay: .4s; }
.reveal.is-in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .tabs { grid-template-columns: 1fr; }
  .tabs__list { flex-direction: row; overflow-x: auto; }
  .tab { flex: 1 0 auto; font-size: 20px; padding: 16px 18px; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .nav__burger { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 4px; padding: 16px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a { padding: 14px 12px; font-size: 18px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding-top: 120px; }
  .grid.cards, .timeline { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .panel { padding: 28px; }
  .flow { padding: 24px 16px 70px; }
  .flow__steps { grid-template-columns: 1fr; gap: 6px; }
  .flow__steps button { flex-direction: row; gap: 16px; padding: 6px; }
  .flow__steps span { text-align: left; font-size: 16px; }
  .flow__rail { display: none; }
  .flow__detail { margin-top: 22px; }
  .flow__toggle { right: 16px; bottom: 16px; }
  .footer__nav { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Hero payment-network illustration ============ */
.hero__caption { text-align: center; margin-top: 6px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.netviz { width: 100%; height: auto; display: block; overflow: visible; font-family: "Inter", system-ui, sans-serif; }
.netviz__orbit { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 7; transform-box: fill-box; transform-origin: center; }
.netviz__orbit--a { animation: orbit 60s linear infinite; }
.netviz__orbit--b { animation: orbit 90s linear infinite reverse; opacity: .7; }
@keyframes orbit { to { transform: rotate(360deg); } }
.netviz__line { fill: none; stroke: var(--brand-text); stroke-opacity: .45; stroke-width: 1.6; stroke-dasharray: 5 6; }
.netviz__packet { fill: var(--brand); filter: drop-shadow(0 0 6px var(--glow)); }
.netviz__node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.netviz__node text { fill: var(--text); font-size: 15px; font-weight: 600; }
.netviz__dot { fill: var(--brand); }
.netviz__core { fill: var(--surface); stroke: var(--brand); stroke-width: 2; }
.netviz__pulse { fill: var(--glow); transform-box: fill-box; transform-origin: center; animation: hubPulse 2.8s ease-out infinite; }
@keyframes hubPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.netviz__shield { fill: color-mix(in srgb, var(--brand) 18%, transparent); stroke: var(--brand-text); stroke-width: 2.5; stroke-linejoin: round; }
.netviz__check { fill: none; stroke: var(--brand-text); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.netviz__label { fill: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 1020px) { .hero__visual { margin-inline: auto; width: 100%; } }
