/* MONERA — Fintech Demo · loew.me
   Shared stylesheet */

:root {
  --navy: #0b1220;
  --navy-2: #0f172a;
  --navy-3: #111c33;
  --card: #131f37;
  --card-2: #16233f;
  --line: #22304d;
  --mint: #2dd4bf;
  --blue: #3b82f6;
  --text: #e6edf6;
  --muted: #9fb0c7;
  --muted-2: #6f819b;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
  --grad: linear-gradient(120deg, var(--mint), var(--blue));
  --ff-display: 'Sora', 'Space Grotesk', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* animated background gradient blobs */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(closest-side at 15% 12%, rgba(45, 212, 191, .16), transparent 70%),
    radial-gradient(closest-side at 85% 20%, rgba(59, 130, 246, .18), transparent 70%),
    radial-gradient(closest-side at 60% 90%, rgba(45, 212, 191, .10), transparent 70%);
  background-size: 200% 200%;
  animation: bgshift 22s ease-in-out infinite alternate;
}
@keyframes bgshift {
  0% { background-position: 0% 0%, 100% 0%, 50% 100%; }
  100% { background-position: 40% 30%, 60% 40%, 40% 60%; }
}

img { max-width: 100%; display: block; }
a { color: var(--mint); text-decoration: none; }
a:hover { color: var(--white); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, .55);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(11, 18, 32, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -20px rgba(0, 0, 0, .8);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: .04em;
  color: var(--white);
}
.brand:hover { color: var(--white); }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(45, 212, 191, .8);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--white); }
.nav-cta { margin-left: 10px; }

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #06231f;
  box-shadow: 0 10px 30px -12px rgba(45, 212, 191, .7);
}
.btn-primary:hover { transform: translateY(-2px); color: #06231f; box-shadow: 0 16px 40px -12px rgba(45, 212, 191, .9); }
.btn-ghost {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); color: var(--white); border-color: var(--mint); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 14px;
}
h1, h2, h3, h4 { font-family: var(--ff-display); color: var(--white); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 66ch; margin-bottom: 44px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 26px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted-2);
  font-family: var(--ff-mono);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust b { color: var(--mint); font-weight: 700; }

/* phone mockup */
.mockup {
  position: relative;
  justify-self: center;
  width: 300px;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #1b2942, #0c1424);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.mockup::before {
  content: "";
  position: absolute;
  top: 18px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 20px; border-radius: 20px;
  background: #0c1424;
  z-index: 2;
}
.mockup img {
  border-radius: 32px;
  width: 100%;
  display: block;
}
.mockup .glow {
  position: absolute;
  inset: -30px;
  z-index: -1;
  background: var(--grad);
  filter: blur(60px);
  opacity: .35;
  border-radius: 60px;
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* floating chips on mockup */
.chip {
  position: absolute;
  background: rgba(19, 31, 55, .92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--ff-mono);
  font-size: .8rem;
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.chip b { color: var(--mint); }
.chip-1 { top: 20%; left: -46px; }
.chip-2 { bottom: 16%; right: -40px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
}
.stat .num {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.stat .label { color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature {
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-6px); border-color: rgba(45, 212, 191, .5); box-shadow: var(--shadow); }
.feature .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(45, 212, 191, .12);
  border: 1px solid rgba(45, 212, 191, .25);
  margin-bottom: 16px;
  color: var(--mint);
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { position: relative; padding: 8px 0 8px 34px; color: var(--muted); }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(45, 212, 191, .15);
  border: 1px solid var(--mint);
}
.checklist li::after {
  content: "";
  position: absolute; left: 6px; top: 15px;
  width: 6px; height: 10px;
  border-right: 2px solid var(--mint);
  border-bottom: 2px solid var(--mint);
  transform: rotate(40deg);
}

/* ---------- Code block ---------- */
.code-wrap {
  background: #0a1122;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
}
.code-head .dots { display: flex; gap: 6px; }
.code-head .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-head .dots i:nth-child(1) { background: #ff5f57; }
.code-head .dots i:nth-child(2) { background: #febc2e; }
.code-head .dots i:nth-child(3) { background: #28c840; }
.code-head .file { margin-left: 8px; font-family: var(--ff-mono); font-size: .8rem; color: var(--muted-2); }
pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--ff-mono);
  font-size: .86rem;
  line-height: 1.7;
  color: #cbd8ee;
}
pre .c-key { color: var(--mint); }
pre .c-str { color: #f0b072; }
pre .c-num { color: #8ab4ff; }
pre .c-com { color: var(--muted-2); }
pre .c-fn { color: var(--blue); }

code.inline {
  font-family: var(--ff-mono);
  font-size: .85em;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--mint);
}

/* ---------- Endpoint list ---------- */
.endpoints { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ep {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono);
  font-size: .88rem;
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  transition: background .2s;
}
.ep:last-child { border-bottom: 0; }
.ep:hover { background: var(--card-2); }
.ep .m {
  font-weight: 700; font-size: .72rem;
  padding: 4px 8px; border-radius: 6px; text-align: center;
}
.m-get { color: var(--mint); background: rgba(45, 212, 191, .12); }
.m-post { color: var(--blue); background: rgba(59, 130, 246, .14); }
.m-del { color: #ff8080; background: rgba(255, 100, 100, .12); }
.ep .path { color: var(--text); }
.ep .desc { color: var(--muted-2); font-family: var(--ff-body); font-size: .85rem; }

/* ---------- Badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.badge:hover { border-color: var(--mint); color: var(--white); }
.badge svg { width: 18px; height: 18px; color: var(--mint); }

/* ---------- Integration marquee ---------- */
.integrations {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
}
.integ {
  font-family: var(--ff-mono);
  font-size: .95rem;
  color: var(--muted);
  padding: 12px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  transition: transform .2s, color .2s, border-color .2s;
}
.integ:hover { transform: translateY(-4px); color: var(--white); border-color: var(--blue); }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, box-shadow .25s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured {
  border-color: var(--mint);
  box-shadow: 0 0 0 1px var(--mint), var(--shadow);
  position: relative;
}
.plan.featured::before {
  content: "Beliebt";
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #06231f;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 999px;
  font-family: var(--ff-mono); text-transform: uppercase;
}
.plan h3 { font-size: 1.15rem; margin-bottom: 4px; }
.plan .price {
  font-family: var(--ff-display); font-weight: 700;
  font-size: 2.6rem; color: var(--white); margin: 12px 0 2px;
}
.plan .price span { font-size: 1rem; color: var(--muted-2); font-weight: 400; font-family: var(--ff-body); }
.plan .p-desc { color: var(--muted); font-size: .92rem; min-height: 42px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.plan ul li { padding: 8px 0 8px 28px; position: relative; color: var(--muted); font-size: .93rem; }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 700;
}
.plan .btn { width: 100%; justify-content: center; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.fees { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.fees th, table.fees td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
table.fees thead th {
  background: rgba(255, 255, 255, .03);
  font-family: var(--ff-display); color: var(--white); font-size: .9rem;
}
table.fees tbody tr:last-child td { border-bottom: 0; }
table.fees tbody tr:hover { background: var(--card-2); }
table.fees td:first-child { color: var(--text); font-weight: 500; }
table.fees td { color: var(--muted); }
table.fees .hl { color: var(--mint); font-family: var(--ff-mono); }

/* ---------- Forms ---------- */
.form-card {
  background: linear-gradient(160deg, var(--card), var(--navy-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; color: var(--text); margin-bottom: 8px; font-weight: 500; }
.field label .req { color: var(--mint); }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0a1122;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: .96rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, .18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: .85rem; color: var(--muted-2); margin-top: 6px; }
.form-success {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(45, 212, 191, .12);
  border: 1px solid var(--mint);
  color: var(--mint);
  font-size: .95rem;
}
.form-success.show { display: block; }

/* contact info side */
.contact-info { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-info li:last-child { border-bottom: 0; }
.contact-info .ci-ico { color: var(--mint); flex-shrink: 0; margin-top: 2px; }
.contact-info b { color: var(--white); display: block; font-family: var(--ff-display); font-weight: 600; font-size: .95rem; }
.contact-info span { color: var(--muted); font-size: .92rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, rgba(45, 212, 191, .12), rgba(59, 130, 246, .14));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 54px 48px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 26px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 34px;
  margin-top: 40px;
  background: rgba(9, 15, 27, .5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-family: var(--ff-mono); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin: 10px 0; }
.footer-grid ul a { color: var(--muted); font-size: .93rem; }
.footer-grid ul a:hover { color: var(--mint); }
.footer-about p { color: var(--muted); font-size: .93rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted-2); font-size: .88rem;
}
.footer-bottom .credit { font-family: var(--ff-mono); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: left; }
  .mockup { order: -1; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: rgba(11, 18, 32, .98);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    transform: translateY(-140%);
    transition: transform .35s ease;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .hamburger { display: block; }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .chip-1 { left: -10px; }
  .chip-2 { right: -6px; }
  .section { padding: 60px 0; }
}

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