/* ================================================================
   index.html scenes
   hero · spec · sticky-pin transformation · horizontal gallery · 
   3D banks · trust dark · final CTA
   ================================================================ */

/* ============================================================
   HERO — gigantic title + zoom-in mockup
   ============================================================ */
.hero {
  position: relative;
  padding: 60px 0 0;
  text-align: center;
  background:
    radial-gradient(ellipse 1200px 600px at 50% -10%, rgba(10,132,255,0.10), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px 6px 8px;
  border-radius: 980px;
  margin-bottom: 28px;
}
.hero__chip .badge {
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 980px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 10vw, 152px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 0 auto;
  max-width: 12ch;
  color: var(--ink);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(180deg, #0A84FF 0%, #5E5CE6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin: 28px auto 36px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 720px;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.hero__cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* hero device — zoom-in scroll-driven */
.hero-stage {
  position: relative;
  height: 180vh;
  margin-top: 100px;
}
.hero-stage__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-device {
  width: min(1100px, 90vw);
  /* scale grows as scroll progresses (0..1) */
  transform: scale(calc(0.55 + var(--p, 0) * 0.55));
  transform-origin: 50% 35%;
  transition: none;
  filter: drop-shadow(0 60px 80px rgba(0,0,30,0.18));
}
.hero-stage__caption {
  position: absolute;
  top: 40px;
  left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  opacity: calc(1 - var(--p, 0) * 1.2);
}
.hero-stage__caption strong {
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   SPEC strip — number marquee
   ============================================================ */
.spec-section {
  padding: 60px 0 80px;
  background: var(--bg);
}

/* ============================================================
   STICKY scene — "od PDF do approved" 4-stage transformation
   right side stays pinned, content morphs as you scroll
   ============================================================ */
.metamorph {
  height: 420vh;
  position: relative;
  background: var(--bg);
}
.metamorph__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 0 var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
}
.metamorph__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.metamorph__step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
  pointer-events: none;
}
.metamorph__pin[data-stage="0"] .metamorph__step[data-step="0"],
.metamorph__pin[data-stage="1"] .metamorph__step[data-step="1"],
.metamorph__pin[data-stage="2"] .metamorph__step[data-step="2"],
.metamorph__pin[data-stage="3"] .metamorph__step[data-step="3"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.metamorph__num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.metamorph__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
.metamorph__body {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 480px;
  text-wrap: pretty;
}
.metamorph__visual {
  position: relative;
  height: 80vh;
  max-height: 640px;
}
.metamorph__visual .scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 450ms var(--ease), transform 600ms var(--ease);
}
.metamorph__pin[data-stage="0"] .scene[data-scene="0"],
.metamorph__pin[data-stage="1"] .scene[data-scene="1"],
.metamorph__pin[data-stage="2"] .scene[data-scene="2"],
.metamorph__pin[data-stage="3"] .scene[data-scene="3"] {
  opacity: 1;
  transform: scale(1);
}
.metamorph__progress {
  position: absolute;
  top: 32px;
  right: var(--gutter);
  display: flex;
  gap: 8px;
}
.metamorph__progress span {
  width: 32px; height: 3px;
  background: rgba(0,0,0,0.10);
  border-radius: 2px;
  transition: background 240ms;
}
.metamorph__pin[data-stage="0"] .metamorph__progress span:nth-child(1),
.metamorph__pin[data-stage="1"] .metamorph__progress span:nth-child(-n+2),
.metamorph__pin[data-stage="2"] .metamorph__progress span:nth-child(-n+3),
.metamorph__pin[data-stage="3"] .metamorph__progress span:nth-child(-n+4) {
  background: var(--blue);
}

/* ============================================================
   HORIZONTAL feature gallery
   ============================================================ */
.gallery {
  height: 380vh;
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
.gallery__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery__head {
  padding: 80px var(--gutter) 32px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  text-align: left;
}
.gallery__head .t-eyebrow { color: var(--blue); }
.gallery__rail-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
}
[data-hscroll-rail] {
  display: flex;
  gap: 28px;
  will-change: transform;
}
.gcard {
  width: 78vh;
  max-width: 720px;
  height: 60vh;
  max-height: 560px;
  flex-shrink: 0;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0,0,30,0.15);
  display: flex;
  flex-direction: column;
}
.gcard__media {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gcard__caption {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.gcard__caption .eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.gcard__caption h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.gcard__caption p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
}
.gcard--dark {
  background: var(--bg-dark);
  border-color: rgba(255,255,255,0.08);
}
.gcard--dark .gcard__caption {
  background: var(--bg-dark);
  border-top-color: rgba(255,255,255,0.08);
}
.gcard--dark .gcard__caption h3 { color: var(--dark-ink); }
.gcard--dark .gcard__caption p { color: var(--dark-ink-2); }
.gcard--dark .gcard__media { background: var(--bg-dark-2); }

.gallery__progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.gallery__progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  width: calc(var(--p, 0) * 100%);
  border-radius: 2px;
}

/* ============================================================
   BANKS — 3D rotating cards (tilt)
   ============================================================ */
.banks-section {
  padding: 140px 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}
.banks-section__head {
  text-align: center;
  margin-bottom: 80px;
}
.banks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1500px;
}
.bank-tile {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
  cursor: default;
  transform-style: preserve-3d;
}
.bank-tile:hover {
  box-shadow: 0 30px 60px -20px rgba(0,0,30,0.18);
}
.bank-tile__logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--bg-deep), #fff);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.04em;
}
.bank-tile__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.bank-tile__sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
}

/* ============================================================
   TRUST — dark cinematic section
   ============================================================ */
.trust {
  background: var(--bg-dark);
  color: var(--dark-ink);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 30% 30%, rgba(10,132,255,0.18), transparent 70%),
    radial-gradient(ellipse 600px 400px at 80% 70%, rgba(94,92,230,0.16), transparent 60%);
  pointer-events: none;
}
.trust__inner { position: relative; }
.trust .t-h2 { color: var(--dark-ink); }
.trust .t-eyebrow { color: var(--blue); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 60px;
}
.trust__cell {
  border-top: 1px solid var(--dark-line);
  padding-top: 24px;
}
.trust__cell h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--dark-ink);
}
.trust__cell p {
  font-size: 14px;
  color: var(--dark-ink-2);
  line-height: 1.5;
  margin: 0;
}
.trust__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final {
  padding: 180px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(10,132,255,0.14), transparent 60%),
    var(--bg);
}
.final h2 {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 14ch;
  margin: 0 auto 28px;
  text-wrap: balance;
}
.final p {
  font-size: 22px;
  color: var(--ink-2);
  margin: 0 auto 40px;
  max-width: 580px;
  text-wrap: balance;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 880px) {
  .metamorph__pin {
    grid-template-columns: 1fr;
    gap: 16px;
    align-content: center;
    padding-top: 80px;
  }
  .metamorph__visual {
    height: 50vh;
    order: -1;
  }
  .metamorph__copy {
    min-height: 200px;
  }
  .gcard {
    width: 80vw;
    height: 70vh;
  }
}
