@font-face {
  font-family: "NB International Pro";
  src: url("fonts/NBInternationalPro-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #000;
  --ink: #fff;
  --ink-60: rgba(255, 255, 255, .6);
  --ink-40: rgba(255, 255, 255, .4);
  --ink-10: rgba(255, 255, 255, .1);
  --card: #181818;
  --card-edge: rgba(255, 255, 255, .07);
  --pill: #1a1a1a;
  --green: #AFF70E;
  --blue: #3178F6;
  --font: "NB International Pro", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.3, 1.12, .4, 1);
  --header-h: 96px;
  --gutter: 80px;
  --radius: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }

/* ---------------------------------------------------------------- preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease-out), visibility 0s .6s;
}
.js .preloader { display: flex; }
.is-loading .preloader { opacity: 1; visibility: visible; transition: none; }
.preloader img { width: 120px; height: auto; animation: preloader-pulse 1.6s ease-in-out infinite; }
.preloader-bar {
  position: relative;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-10);
  overflow: hidden;
}
.preloader-bar i {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: inherit;
  background: var(--ink);
  animation: preloader-slide 1.1s var(--ease-out) infinite;
}
@keyframes preloader-pulse { 50% { opacity: .55; } }
@keyframes preloader-slide { 0% { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* entrance animations wait (at their first frame) until the preloader lifts */
.is-loading body { overflow: hidden; }
.is-loading .site-header,
.is-loading .hero-head .w > span,
.is-loading .hero-sub,
.is-loading .card { animation-play-state: paused; }

/* ---------------------------------------------------------------- header (bleap.finance) */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 100;
  transform: translateY(-40px);
  opacity: 0;
  animation: header-in .7s var(--ease-out) .1s both;
}
@keyframes header-in { to { transform: none; opacity: 1; } }

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  padding: 24px;
}
.blur-stack { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.blur-stack i { position: absolute; inset: 0; }
.blur-stack i:nth-child(1) { z-index: 4; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); mask-image: linear-gradient(to bottom, #000 0%, transparent 22.6%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 22.6%); }
.blur-stack i:nth-child(2) { z-index: 3; backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); mask-image: linear-gradient(to bottom, #000 22.6%, transparent 45.3%); -webkit-mask-image: linear-gradient(to bottom, #000 22.6%, transparent 45.3%); }
.blur-stack i:nth-child(3) { z-index: 2; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); mask-image: linear-gradient(to bottom, #000 45.3%, transparent 67.9%); -webkit-mask-image: linear-gradient(to bottom, #000 45.3%, transparent 67.9%); }
.blur-stack i:nth-child(4) { z-index: 1; backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px); mask-image: linear-gradient(to bottom, #000 67.9%, transparent 90.5%); -webkit-mask-image: linear-gradient(to bottom, #000 67.9%, transparent 90.5%); }

.nav {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 110px; height: 32px; }
.logo-tag {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-60);
  padding: 5px 9px 4px;
  border: 1px solid var(--ink-10);
  border-radius: 999px;
  line-height: 1;
  transition: color .2s, border-color .2s, background-color .2s;
}
.logo:hover .logo-tag { color: var(--ink); border-color: transparent; background: var(--pill); }

.nav-center { display: none; position: relative; flex: 1; align-self: stretch; }
.nav-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  padding: 4px;
  background: var(--pill);
  border-radius: 28px;
  isolation: isolate;
}
.nav-pill-thumb {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  transition: left .34s var(--ease-pop), width .34s var(--ease-pop), opacity .2s;
  z-index: -1;
}
.nav-pill.is-hover .nav-pill-thumb { opacity: 1; }
.nav-tab {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--ink-60);
  white-space: nowrap;
  transition: color .2s ease;
}
.nav-tab:hover { color: var(--ink); }

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.lang {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  width: 100px;
  border-radius: 1000px;
  background: var(--pill);
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--ink-60);
  transition: color .2s ease;
}
.lang:hover { color: var(--ink); }
.lang svg { width: 32px; height: 32px; }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 16px;
  border-radius: 1000px;
  background: #fff;
  color: #000;
  font-size: 14px;
  letter-spacing: .03em;
  line-height: 1;
  transition: background-color .15s ease, transform .25s var(--ease-pop);
  will-change: transform;
}
.btn-white:hover { background: rgba(255, 255, 255, .9); }
.btn-white:active { transform: scale(.95) !important; }

@media (min-width: 768px) {
  .logo img { width: 166px; height: 48px; }
  .btn-white { height: 56px; padding: 16px 24px; font-size: 16px; }
  .lang { display: flex; }
}
@media (min-width: 1024px) {
  .nav-center { display: block; }
}

/* ---------------------------------------------------------------- page */
.page {
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 40px) 16px 0;
}
@media (min-width: 768px) { .page { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1200px) { .page { padding-left: var(--gutter); padding-right: var(--gutter); } }

/* hero */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 0 128px;
  isolation: isolate;
}
.hero-head {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -.03em;
  font-weight: 400;
}
.hero-head .w { display: inline-block; overflow: hidden; vertical-align: top; }
.hero-head .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(2deg);
  transform-origin: 0 100%;
  animation: word-up .9s var(--ease-out) both;
  animation-delay: calc(.14s + var(--i) * .08s);
}
@keyframes word-up { to { transform: none; } }

.hero-sub {
  max-width: 54ch;
  margin: 28px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-60);
  text-wrap: balance;
  animation: rise .62s var(--ease-out) .34s both;
}
@keyframes rise { 0% { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* wall */
.wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start; /* Safari ignores aspect-ratio on stretched grid items */
}
@media (min-width: 640px) { .wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wall { grid-template-columns: repeat(3, 1fr); } }

.card {
  --tx: 0deg;
  --ty: 0deg;
  position: relative;
  display: block;
  /* all children are absolute, so without an explicit width Safari shrinks the
     aspect-ratio grid item to 0×0 (justify-self: normal acts as start there) */
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1.1;
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transform: perspective(1200px) rotateX(var(--tx)) rotateY(var(--ty));
  transition: transform .5s var(--ease-out), opacity .3s;
  animation: wall-rise .7s var(--ease-out) both;
  animation-delay: calc(.5s + min(var(--i), 9) * 80ms);
  will-change: transform;
}
/* wide cards span two columns; the ratio keeps their height equal to a single card */
@media (min-width: 1100px) {
  .card.is-wide { grid-column: span 2; aspect-ratio: 2.03 / 1.1; }
}
@keyframes wall-rise { 0% { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* focus ring lives inside: the squircle clip-path would cut an outline */
.card-edge {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
}
.card:focus-visible { outline: none; }
.card:focus-visible .card-edge { box-shadow: inset 0 0 0 2px var(--ink); }

.card-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
/* the whole screen, centred in the card */
.card-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 70%;
  aspect-ratio: 402 / 874;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: #0d0d0f;
  transition: transform .6s var(--ease-out);
  pointer-events: none;
}
.card:hover .card-phone { transform: translate(-50%, -50%) scale(1.02); }
.card-phone img { display: block; width: 100%; height: 100%; }

.card-tags {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 4;
  display: flex;
  gap: 6px;
}
/* same height as .card-open */
.card-tag {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #2a2a2a;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.card-open {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 4;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2a2a2a;
  color: var(--ink-60);
  opacity: 0;
  transform: scale(.86) rotate(-20deg);
  transition: opacity .18s, transform .3s var(--ease-pop), color .15s;
}
.card:hover .card-open { opacity: 1; transform: none; }
.card:hover .card-open:hover { color: var(--ink); }
.card-open svg { transition: transform .3s var(--ease-pop); }
.card-open:hover svg { transform: translate(1px, -1px); }

.card-veil {
  position: absolute;
  left: 24px; bottom: 22px;
  z-index: 4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s, transform .3s var(--ease-pop);
  pointer-events: none;
}
.card:hover .card-veil, .card:focus-visible .card-veil { opacity: 1; transform: none; }
.card-title {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

@media (hover: none) {
  .card-veil, .card-open { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 0 72px; }
}

/* ---------------------------------------------------------------- footer (bleap.finance) */
.site-footer {
  width: 100%;
  max-width: 1440px;
  margin: 160px auto 0;
  padding: 48px 24px 32px;
  background: #000;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .site-footer { padding: 48px; } }
@media (min-width: 1200px) { .site-footer { padding: 48px var(--gutter); } }

.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.foot-top img { width: 110px; height: 32px; }
.foot-tagline {
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: right;
  overflow: hidden;
}
.foot-tagline-line { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.foot-tagline.is-in .foot-tagline-line { transform: none; }
@media (min-width: 768px) { .foot-top img { width: 166px; height: 48px; } .foot-tagline { font-size: 32px; } }

.foot-rule { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 48px 0; width: 100%; }
.foot-rule-bottom { margin: 64px 0 24px; }
@media (min-width: 768px) { .foot-rule-bottom { margin: 80px 0 24px; } }

.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 24px; }
@media (min-width: 768px) { .foot-nav { gap: 80px 112px; } }
@media (min-width: 1024px) { .foot-nav { grid-template-columns: repeat(4, 1fr); gap: 112px; } }
.foot-col h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 24px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.foot-col li { font-size: 16px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-40); }
.foot-col a { position: relative; transition: color .2s ease; }
.foot-col a:hover { color: #fff; }
.foot-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease-out);
}
.foot-col a:hover::after { transform: none; }
.foot-social { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px 12px !important; }
@media (min-width: 768px) {
  .foot-col h3 { font-size: 24px; margin-bottom: 32px; }
  .foot-col ul { gap: 24px; }
  .foot-col li { font-size: 20px; }
  .foot-social { gap: 24px 58px !important; }
}

.foot-bottom { display: flex; flex-direction: column; gap: 48px; }
@media (min-width: 1024px) { .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; gap: 80px; } }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink-40);
}
@media (min-width: 768px) { .foot-legal { gap: 24px 32px; font-size: 16px; } }
.foot-legal a { transition: color .2s ease; }
.foot-legal a:hover { color: #fff; }
.foot-copy { font-size: 14px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-40); }
@media (min-width: 768px) { .foot-copy { font-size: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hero-head .w > span, .foot-tagline-line { transform: none; }
  .preloader img, .preloader-bar i { animation: none; }
}
