/* ===== LogiFin design system — modern fintech ===== */

:root {
  /* Type */
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Menlo", monospace;

  /* Palette */
  --ink: #0a0d12;
  --ink-2: #1a1f2a;
  --ink-3: #4a5260;
  --muted: #6b7280;
  --line: #ececec;
  --line-strong: #d8d8d8;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f5f7;
  --surface: #ffffff;

  --accent: #2557f5;       /* confident fintech blue */
  --accent-ink: #1a3fb0;
  --accent-soft: #eef2ff;
  --accent-dim: #c7d4ff;

  --success: #0ea66b;
  --success-soft: #e6f7ee;
  --warn: #f59e0b;
  --warn-soft: #fef6e7;

  /* Gradients */
  --grad-soft:
    radial-gradient(1200px 600px at 50% -10%, rgba(37, 87, 245, 0.10), transparent 60%),
    radial-gradient(800px 400px at 10% 10%, rgba(37, 87, 245, 0.06), transparent 60%);
  --grad-cta:
    radial-gradient(800px 400px at 80% 100%, rgba(37, 87, 245, 0.10), transparent 60%),
    radial-gradient(600px 300px at 10% 0%, rgba(14, 166, 107, 0.06), transparent 60%);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(10, 13, 18, 0.04);
  --shadow-md: 0 12px 28px -14px rgba(10, 13, 18, 0.12), 0 4px 10px -6px rgba(10, 13, 18, 0.06);
  --shadow-lg: 0 40px 80px -32px rgba(10, 13, 18, 0.18), 0 16px 32px -16px rgba(10, 13, 18, 0.10);
  --shadow-accent: 0 18px 40px -16px rgba(37, 87, 245, 0.40);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Layout */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
}

.section { padding: 120px 0; position: relative; }
.section--tight { padding: 80px 0; }
.section--xtight { padding: 48px 0; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section--tight { padding: 56px 0; }
}

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-head--left {
  margin-left: 0;
  text-align: left;
}

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 1px;
  background: currentColor;
  display: inline-block;
  opacity: 0.6;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.h-display-xl { font-size: clamp(44px, 6.5vw, 86px); letter-spacing: -0.04em; }
.h-display-lg { font-size: clamp(36px, 4.5vw, 56px); }
.h-display-md { font-size: clamp(26px, 2.6vw, 36px); }
.h-display-sm { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; line-height: 1.15; }

.lede {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 600px;
  text-wrap: pretty;
}
.lede--center { margin: 0 auto; }

.text-mono { font-family: var(--font-mono); letter-spacing: -0.005em; }
.text-muted { color: var(--ink-3); }
.text-accent { color: var(--accent); }
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all .2s var(--ease);
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); box-shadow: var(--shadow-accent); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); }
.btn--lg { padding: 16px 26px; font-size: 15.5px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }

.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  transition: transform .25s var(--ease);
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.card--hover:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line);
}
.chip--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip--success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.chip--dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: currentColor;
}

/* Divider */
.divider { height: 1px; background: var(--line); width: 100%; }

/* Decorative dot grid */
.dotgrid {
  background-image: radial-gradient(rgba(10,13,18,0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Soft gradient background */
.bg-soft { background: var(--grad-soft), var(--bg); }
.bg-tint { background: var(--bg-2); }
.bg-deep { background: var(--ink); color: #fff; }
.bg-deep .text-muted { color: rgba(255,255,255,0.55); }
.bg-deep .eyebrow { color: var(--accent-dim); }
.bg-deep .h-display { color: #fff; }
.bg-deep .lede { color: rgba(255,255,255,0.72); }
.bg-deep .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* Marquee */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }
@keyframes marquee-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Logo glyph */
.lf-logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.lf-logo__mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.04em;
  box-shadow: 0 6px 14px -6px rgba(37,87,245,0.5);
}
.lf-logo__img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Render the wordmark in solid white on dark surfaces (e.g. footer) */
.lf-logo__img--invert { filter: brightness(0) invert(1); }
.bg-deep .lf-logo { color: #fff; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav__links {
  display: flex; align-items: center; gap: 6px;
}
.nav__link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-3);
  border-radius: 8px;
  transition: color .15s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
.nav__link:hover { color: var(--ink); background: var(--bg-2); }
.nav__link--active { color: var(--ink); font-weight: 500; }
.nav__cta {
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 860px) {
  .nav__links { display: none; }
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
}
.footer a { color: rgba(255,255,255,0.7); transition: color .15s var(--ease); }
.footer a:hover { color: #fff; }
.footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 860px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 36px; }
}
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 720px) {
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Stat */
.stat-num {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-top: 8px;
}
