/* Four — Global fintech visual system 2026 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: local("Inter");
}

:root {
  --bg: #030712;
  --bg-2: #0a1628;
  --surface: rgba(12, 22, 42, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(255, 255, 255, 0.14);
  --blue: #3b82f6;
  --blue-deep: #1d4ed8;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --text: #f1f5f9;
  --muted: rgba(241, 245, 249, 0.55);
  --font: "Inter", system-ui, sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 64px;
  --wrap: min(1320px, 100% - 3rem);
  --glow: 0 0 80px rgba(59, 130, 246, 0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Grain + ambient */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.ambient__orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: drift 18s var(--ease) infinite alternate;
}
.ambient__orb--1 { width: 55vw; height: 55vw; top: -20%; left: -15%; background: rgba(29, 78, 216, 0.35); }
.ambient__orb--2 { width: 45vw; height: 45vw; bottom: -25%; right: -10%; background: rgba(34, 211, 238, 0.15); animation-delay: -6s; }
.ambient__orb--3 { width: 30vw; height: 30vw; top: 40%; right: 20%; background: rgba(251, 191, 36, 0.08); animation-delay: -12s; }
@keyframes drift {
  to { transform: translate(4%, 6%) scale(1.08); }
}

/* Nav */
.nav-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav-top.is-scrolled {
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-top__inner {
  width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.03em; }
.brand__mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 0.35rem; }
.nav-links a {
  padding: 0.45rem 0.85rem; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); border-radius: 8px; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.is-on { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta {
  padding: 0.55rem 1.15rem; font-size: 0.82rem; font-weight: 600;
  background: var(--text); color: var(--bg); border-radius: 100px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(255,255,255,0.2); }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 16px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 1rem; right: 1rem;
    flex-direction: column; padding: 1rem;
    background: rgba(10, 22, 40, 0.95); backdrop-filter: blur(24px);
    border: 1px solid var(--line); border-radius: 16px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: 0.35s var(--ease);
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-cta-desktop { display: none; }
}

/* Hero cinematic */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  display: grid; align-items: center;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 35%, rgba(3, 7, 18, 0.75));
}
.hero__grid { position: relative; z-index: 2; }
@keyframes title-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero__grid {
  width: var(--wrap); margin-inline: auto;
  display: grid; gap: 3rem;
  grid-template-columns: 1fr;
}
.page .bento { width: 100%; margin: 0; }
@media (min-width: 600px) {
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
  }
}
.hero__copy { position: relative; z-index: 2; padding-top: 2rem; }
.hero__label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.5rem; padding: 0.35rem 0.75rem 0.35rem 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 100px; background: rgba(34, 211, 238, 0.06);
}
.hero__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
  max-width: 11ch;
  animation: title-in 1s var(--ease) 0.1s both;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 30%, var(--blue) 70%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin-top: 1.5rem; max-width: 38ch;
  font-size: 1.05rem; color: var(--muted); font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.btn-primary {
  padding: 0.9rem 1.6rem; font-weight: 600; font-size: 0.9rem;
  background: linear-gradient(135deg, #fff, #e2e8f0); color: var(--bg);
  border-radius: 100px; border: none; cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,255,255,0.15); }
.btn-ghost {
  padding: 0.9rem 1.4rem; font-weight: 500; font-size: 0.9rem;
  background: transparent; color: var(--text);
  border: 1px solid var(--line-bright); border-radius: 100px; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }

/* Dashboard mock */
.hero__stage {
  position: relative; perspective: 1200px;
  min-height: 420px;
}
@media (min-width: 1024px) { .hero__stage { min-height: 520px; } }
.hero__stage-glow {
  position: absolute; inset: 10% 0 0 10%;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.25), transparent 65%);
  filter: blur(40px);
}
.dash {
  position: relative; z-index: 2;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  animation: dash-in 1.2s var(--ease) both;
}
@keyframes dash-in {
  from { opacity: 0; transform: rotateY(-8deg) rotateX(12deg) translateY(40px); }
}
.dash:hover { transform: rotateY(-4deg) rotateX(2deg) translateY(-4px); }
.dash__shell {
  padding: 1px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.02) 40%, rgba(59,130,246,0.3));
  box-shadow: var(--glow), 0 40px 80px rgba(0,0,0,0.5);
}
.dash__inner {
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 19px;
  background: rgba(8, 14, 28, 0.85);
  backdrop-filter: blur(40px) saturate(1.5);
}
.dash__bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.dash__dots { display: flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.dash__dots i:first-child { background: #ef4444; }
.dash__dots i:nth-child(2) { background: #eab308; }
.dash__dots i:nth-child(3) { background: #22c55e; }
.dash__title { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.dash__metrics {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; margin-bottom: 1rem;
}
.dash__metric-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.25rem; }
.dash__metric-value {
  font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500; letter-spacing: -0.04em;
}
.dash__metric-value small { font-size: 0.65em; color: var(--muted); }
.dash__delta {
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: 0.35rem; padding: 0.2rem 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; color: #4ade80;
  background: rgba(74, 222, 128, 0.1); border-radius: 6px;
}
.dash__chart {
  height: 120px; margin-bottom: 1rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  overflow: hidden;
}
.dash__chart canvas { width: 100%; height: 100%; display: block; }
.dash__feed { display: flex; flex-direction: column; gap: 0.5rem; }
.dash__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.65rem; font-size: 0.75rem;
  background: rgba(255,255,255,0.03); border-radius: 10px;
  border: 1px solid transparent;
  animation: row-pulse 4s var(--ease) infinite;
}
.dash__row:nth-child(2) { animation-delay: -1.3s; }
.dash__row:nth-child(3) { animation-delay: -2.6s; }
@keyframes row-pulse {
  0%, 100% { border-color: transparent; }
  50% { border-color: rgba(59,130,246,0.2); background: rgba(59,130,246,0.06); }
}
.dash__row span:last-child { font-family: var(--mono); color: var(--cyan); }

/* Ticker */
.ticker {
  padding: 1.25rem 0; border-block: 1px solid var(--line);
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex; gap: 3rem; width: max-content;
  animation: ticker 35s linear infinite;
}
.ticker__item {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap;
}
.ticker__item strong { color: var(--text); font-weight: 500; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Big stats — asymmetric */
.stats {
  padding: clamp(5rem, 12vw, 9rem) 0;
  position: relative;
}
.stats__layout {
  width: var(--wrap); margin-inline: auto;
  display: grid; gap: 4rem;
}
@media (min-width: 900px) {
  .stats__layout { grid-template-columns: 0.9fr 1.1fr; align-items: end; }
}
.stats__aside .eyebrow { margin-bottom: 1rem; }
.stats__aside h2 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1;
}
.stats__nums {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem;
}
.stat-block { position: relative; padding-left: 1rem; }
.stat-block::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--cyan), var(--blue-deep));
  border-radius: 2px;
}
.stat-block__n {
  font-family: var(--mono); font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500; letter-spacing: -0.05em; line-height: 1;
}
.stat-block__l { margin-top: 0.5rem; font-size: 0.82rem; color: var(--muted); max-width: 16ch; }

/* Flow — horizontal steps */
.flow {
  padding: 6rem 0;
  overflow: hidden;
}
.flow__head {
  width: var(--wrap); margin-inline: auto;
  margin-bottom: 3.5rem;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.flow__head h2 {
  font-family: var(--display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -0.04em; max-width: 14ch;
}
.flow__strip {
  width: var(--wrap); margin-inline: auto;
  display: flex; gap: 1rem; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  scrollbar-width: none;
}
.flow__strip::-webkit-scrollbar { display: none; }
.flow-card {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  padding: 1.75rem;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.flow-card:hover { border-color: var(--line-bright); transform: translateY(-4px); }
.flow-card__n { font-family: var(--mono); font-size: 0.7rem; color: var(--blue); margin-bottom: 1rem; }
.flow-card h3 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.flow-card p { font-size: 0.88rem; color: var(--muted); }

/* Products bento asymmetric */
.products { padding: 4rem 0 7rem; }
.products__intro {
  width: var(--wrap); margin-inline: auto; margin-bottom: 3rem;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.75rem;
}
.products__intro h2 {
  font-family: var(--display); font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em; max-width: 20ch;
}
.bento {
  width: var(--wrap); margin-inline: auto;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .bento {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
  }
  .bento__main { grid-row: span 2; }
}
.bento-card {
  position: relative; padding: 2rem; min-height: 200px;
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.bento-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,0.12), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
}
.bento-card:hover { transform: scale(1.01); box-shadow: var(--glow); }
.bento-card:hover::after { opacity: 1; }
.bento-card h3 { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.03em; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.bento-card p { font-size: 0.88rem; color: var(--muted); max-width: 32ch; position: relative; z-index: 1; }
.bento-card__arrow {
  position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  transition: background 0.3s, transform 0.3s;
}
.bento-card:hover .bento-card__arrow { background: rgba(255,255,255,0.08); transform: translate(4px, -4px); }

/* Split proof */
.split {
  padding: 5rem 0 7rem;
  width: var(--wrap); margin-inline: auto;
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split__quote {
  font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.2;
}
.split__quote::before { content: "\201C"; color: var(--blue); }
.split__meta { margin-top: 1.5rem; font-size: 0.85rem; color: var(--muted); }
.split__visual {
  position: relative; padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(29,78,216,0.15), rgba(3,7,18,0.8));
  border: 1px solid var(--line);
}
.split__bars { display: flex; align-items: flex-end; gap: 0.65rem; height: 140px; }
.split__bar {
  flex: 1; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue-deep));
  transform-origin: bottom;
  animation: bar-grow 1.2s var(--ease) both;
}
.split__bar:nth-child(1) { height: 45%; animation-delay: 0.1s; }
.split__bar:nth-child(2) { height: 72%; animation-delay: 0.2s; }
.split__bar:nth-child(3) { height: 55%; animation-delay: 0.3s; }
.split__bar:nth-child(4) { height: 90%; animation-delay: 0.4s; }
.split__bar:nth-child(5) { height: 68%; animation-delay: 0.5s; }
@keyframes bar-grow { from { transform: scaleY(0); } }

/* CTA fin */
.fin {
  padding: 2rem 0 8rem;
  width: var(--wrap); margin-inline: auto;
}
.fin__panel {
  position: relative; padding: clamp(3rem, 8vw, 5rem);
  border-radius: 32px; overflow: hidden; text-align: center;
  border: 1px solid var(--line-bright);
}
.fin__panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.2), transparent),
              linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
}
.fin__panel h2 {
  position: relative;
  font-family: var(--display); font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.04em; margin-bottom: 1.25rem;
}
.fin__panel p { position: relative; color: var(--muted); margin-bottom: 2rem; }
.fin__panel .hero__actions { justify-content: center; position: relative; }

/* Footer minimal */
.footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}
.footer__row {
  width: var(--wrap); margin-inline: auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  font-size: 0.78rem; color: var(--muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer__links a:hover { color: var(--text); }

/* Inner pages */
.page { padding: calc(var(--nav-h) + 4rem) 0 5rem; }
.page-hero-title {
  font-family: var(--display); font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.04em; line-height: 0.95; max-width: 14ch;
}
.page-lead { margin-top: 1.25rem; font-size: 1.1rem; color: var(--muted); max-width: 48ch; }
.page-block { padding: 4rem 0; }
.page-card {
  padding: 2rem; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface);
}
.prose { max-width: 65ch; color: var(--muted); font-size: 0.95rem; }
.prose h2 { font-family: var(--display); color: var(--text); font-size: 1.35rem; margin: 2rem 0 0.75rem; letter-spacing: -0.03em; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--cyan); }

.form { display: grid; gap: 1rem; max-width: 480px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(0,0,0,0.3); border: 1px solid var(--line);
  border-radius: 12px; outline: none;
}
.form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }

/* Motion */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker__track, .ambient__orb, .dash__row { animation: none; }
  .dash { animation: none; transform: none; }
}
