/* ==========================================================================
   Kleon Fintech — site styles
   ========================================================================== */

/* Font: Plus Jakarta Sans, loaded from Google Fonts (see the <head> of each page) */

/* Base
   ========================================================================== */
:root {
  --blue: #2F6FE4;
  --blue2: #4B86F0;
  --ink: #16202E;
  --mute: #5B6778;
  --navy: #1C2A3B;
  --line: #E3E8EF;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue2); }
img { max-width: 100%; border: 0; }
input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue2); outline-offset: 3px; }

/* Keeps slide-in animations from causing sideways scroll on phones */
.site { overflow-x: hidden; }

/* Layout and typography
   ========================================================================== */
.f-wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.f-stack { display: flex; flex-direction: column; gap: 72px; }
.f-center { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.f-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.f-h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.f-body { font-size: 15px; line-height: 1.75; color: var(--mute); text-wrap: pretty; }

/* Buttons */
.f-btn {
  display: inline-block;
  padding: 15px 28px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, transform .25s, box-shadow .25s, border-color .25s, color .25s;
}
.f-btn:hover { background: var(--blue2); border-color: var(--blue2); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47, 111, 228, .4); }
.f-btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .45); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.f-btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
.f-btns { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 6px; }

/* Header
   ========================================================================== */
.f-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
  animation: fDrop .8s var(--ease) both;
}
.f-header.is-scrolled {
  background: rgba(22, 32, 46, .72);
  border-color: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
}
.f-header .f-wrap { display: flex; justify-content: flex-end; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.f-nav { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.f-nav a[data-k]:not(.f-btn) { position: relative; padding: 4px 0; color: #E6ECF5; font-size: 14px; font-weight: 500; transition: color .2s; }
.f-nav a[data-k]:not(.f-btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.f-nav a[data-k]:not(.f-btn):hover,
.f-nav a.is-active { color: #fff; }
.f-nav a[data-k]:not(.f-btn):hover::after,
.f-nav a.is-active::after { transform: scaleX(1); }
.f-nav .f-btn { padding: 11px 20px; font-size: 12px; }

/* Hero
   ========================================================================== */
.f-hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; background: #101820; }
.f-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fZoom 2.4s var(--ease) both; }
.f-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 18, 28, .78) 0%, rgba(12, 18, 28, .45) 55%, rgba(12, 18, 28, .2) 100%),
    linear-gradient(0deg, rgba(12, 18, 28, .5) 0%, rgba(12, 18, 28, 0) 40%);
}
.f-hero .f-wrap { position: relative; width: 100%; padding-top: 120px; padding-bottom: 100px; }
.f-hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 600px; }
.f-hero-logo { width: min(100%, 340px); height: auto; align-self: flex-start; margin-bottom: 40px; }
.f-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
.f-hero p { font-size: 17px; line-height: 1.65; color: #D3DAE4; max-width: 520px; }

/* Vision
   ========================================================================== */
.f-vision { position: relative; padding: 110px 0 120px; }
.f-vision-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.f-globe-wrap { position: relative; display: flex; justify-content: center; }
.f-globe-wrap::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 111, 228, .16) 0%, rgba(47, 111, 228, 0) 70%);
  filter: blur(10px);
}
.f-globe { position: relative; width: 100%; max-width: 440px; height: auto; display: block; animation: fSpin 60s linear infinite; }
.f-vision-copy { display: flex; flex-direction: column; gap: 20px; }
.f-2p { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-top: 6px; }

/* Cards */
.f-cards { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; margin-top: -40px; padding-left: clamp(0px, 18%, 220px); }
.f-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(22, 32, 46, .10), 0 2px 6px rgba(22, 32, 46, .05);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.f-card:hover { transform: translateY(-8px); box-shadow: 0 30px 70px rgba(47, 111, 228, .18), 0 2px 6px rgba(22, 32, 46, .05); border-color: rgba(47, 111, 228, .35); }
.f-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); }
.f-card p { font-size: 14px; line-height: 1.65; color: var(--mute); }
.f-ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(47, 111, 228, .1); display: flex; align-items: center; justify-content: center; transition: background .35s, transform .35s; }
.f-ico img { width: 24px; height: 24px; }
.f-card:hover .f-ico { background: rgba(47, 111, 228, .2); transform: rotate(-8deg) scale(1.08); }

/* Approach
   ========================================================================== */
.f-approach { position: relative; padding: 150px 0 130px; background: #F2F4F7; clip-path: polygon(0 0, 100% 70px, 100% 100%, 0 100%); }
.f-approach-head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 36px; border-bottom: 1px solid #DCE2EA; }
.f-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 40px; align-items: center; padding: 40px 0; border-bottom: 1px solid #DCE2EA; transition: background .4s; }
.f-row:last-child { border-bottom: 0; }
.f-row-copy { display: flex; flex-direction: column; gap: 12px; }
.f-row h3 { font-size: 22px; font-weight: 700; color: var(--ink); }
.f-num {
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, #A9C3EC 0%, #7EA3DD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform-origin: left center;
  transition: transform .45s var(--ease);
}
.f-row:hover .f-num { transform: scale(1.1); background: linear-gradient(180deg, var(--blue2) 0%, var(--blue) 100%); -webkit-background-clip: text; background-clip: text; }
.f-chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 8px; list-style: none; }
.f-chips li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(47, 111, 228, .5); background: #fff; font-size: 13px; color: var(--blue); transition: background .25s, color .25s, transform .25s; }
.f-chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.f-chips li:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Portfolio
   ========================================================================== */
.f-portfolio { padding: 110px 0 120px; background: var(--navy); color: #fff; }
.f-portfolio .f-h2 { color: #fff; }
.f-portfolio .f-eyebrow { color: #9FB6D8; }
.f-co { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px; align-items: center; }
.f-co + .f-co { padding-top: 64px; border-top: 1px solid rgba(255, 255, 255, .1); }
.f-co-media { position: relative; overflow: hidden; border-radius: 18px; }
.f-co-media img { transition: transform .8s var(--ease); }
.f-co-media img:first-child { width: 100%; height: auto; display: block; }
.f-co-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58%; height: auto; }
.f-co-media:hover img:first-child { transform: scale(1.04); }
.f-co-media:hover .f-co-logo { transform: translate(-50%, -50%) scale(1.06); }
.f-co-copy { display: flex; flex-direction: column; gap: 20px; }
.f-co-copy .f-eyebrow { color: #3FB6F0; }
.f-co-copy h3 { font-size: 32px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.f-co-copy .f-body { color: #C3CCD9; }
.f-feats { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.f-feats li { display: flex; gap: 12px; margin: 0; font-size: 14px; line-height: 1.65; color: #C3CCD9; transition: transform .3s, color .3s; }
.f-feats li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: #3FB6F0; }
.f-feats li:hover { transform: translateX(6px); color: #fff; }
.f-feats strong { color: #fff; font-weight: 600; }

/* Contact
   ========================================================================== */
.f-contact { position: relative; padding: 110px 0 140px; background: linear-gradient(172deg, #fff 0%, #fff 62%, #F2F4F7 62.2%, #F2F4F7 100%); }
.f-contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 64px; align-items: start; }
.f-contact-intro { display: flex; flex-direction: column; gap: 16px; }
.f-contact-lede { max-width: 460px; }
.f-form { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.f-form label { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.f-form input,
.f-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #D5DCE6;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.f-form input:focus,
.f-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 111, 228, .12); }
.f-form input[name=botcheck] { display: none; }
.f-form .f-btn { align-self: flex-start; margin-top: 4px; }
.f-form button:disabled { opacity: .6; cursor: wait; }
.f-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.f-consent { font-size: 12px; line-height: 1.6; color: var(--mute); }
.f-err { display: none; font-size: 14px; color: #C62828; }
.f-thanks { display: none; flex-direction: column; gap: 10px; padding: 32px 0; }
.f-thanks h3 { font-size: 24px; font-weight: 700; color: var(--ink); }
.f-collage { position: relative; transition: transform .6s var(--ease); }
.f-collage img { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 50px rgba(22, 32, 46, .18)); }
.f-collage:hover { transform: translateY(-6px); }

/* Footer
   ========================================================================== */
.f-footer { padding: 44px 0; background: var(--navy); }
.f-footer .f-wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.f-footer-logo { height: 44px; width: auto; }
.f-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.f-footer nav a { color: #AEB9C9; font-size: 14px; transition: color .25s; }
.f-footer nav a:hover { color: #fff; }
.f-legal { flex-basis: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-right: 72px; border-top: 1px solid rgba(255, 255, 255, .1); }
.f-legal p { font-size: 13px; color: #8392A6; }
.f-legal nav { gap: 24px; }
.f-legal nav a { font-size: 13px; color: #8392A6; }

/* Back-to-top button */
.f-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 111, 228, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 10px 32px rgba(22, 32, 46, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s, background .2s;
}
.f-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.f-top:hover { background: rgba(47, 111, 228, .5); }

/* Scroll-reveal animations (enabled by site.js)
   ========================================================================== */
.f-anim .f-rv { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.f-anim .f-rv.f-rv-l { transform: translateX(-40px); }
.f-anim .f-rv.f-rv-r { transform: translateX(40px); }
.f-anim .f-rv.f-rv-s { transform: scale(.92); }
.f-anim .f-rv.is-in { opacity: 1; transform: none; }

@keyframes fDrop { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
@keyframes fZoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes fSpin { to { transform: rotate(360deg); } }

/* Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .f-wrap { padding: 0 20px; }
  .f-nav a[data-k]:not(.f-btn) { display: none; }
  .f-vision-grid,
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .f-row { gap: 12px; }
  .f-globe { max-width: 320px; }
  .f-cards { margin-top: 40px; padding-left: 0; }
  .f-approach { clip-path: polygon(0 0, 100% 36px, 100% 100%, 0 100%); padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .f-anim .f-rv { opacity: 1; transform: none; }
}
