:root {
  --paper: #f8f8f1;
  --paper-deep: #f0f3ec;
  --blue: #006dff;
  --blue-mid: #0098ff;
  --blue-soft: #bfeaff;
  --ink: #09111f;
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.9), transparent 30%),
    linear-gradient(145deg, var(--paper), var(--paper-deep));
}

body {
  color: var(--ink);
  overscroll-behavior-y: none;
}

.liquid-page {
  position: relative;
  width: 100%;
  min-height: 900svh;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(0, 109, 255, 0.08), transparent 34%),
    linear-gradient(145deg, var(--paper), var(--paper-deep));
}

.liquid-page::before {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    repeating-radial-gradient(circle at 12% 18%, rgba(9, 17, 31, 0.48) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(100deg, transparent 0 10px, rgba(9, 17, 31, 0.08) 10px 11px);
  mix-blend-mode: multiply;
}

#liquid-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.top-download-pill {
  position: fixed;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 3vw, 42px);
  z-index: 4;
  min-width: clamp(112px, 10vw, 150px);
  min-height: clamp(42px, 3.2vw, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 2.3vw, 30px);
  border: 2px solid #030405;
  border-radius: 999px;
  color: var(--paper);
  background: #030405;
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.84rem, 1vw, 0.98rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-18px);
  will-change: opacity, transform;
  transition:
    background-color 260ms ease,
    color 260ms ease;
}

.top-download-pill:hover,
.top-download-pill:focus-visible {
  color: #030405;
  background: var(--paper);
}

.top-download-pill:focus-visible {
  outline: 3px solid rgba(0, 109, 255, 0.36);
  outline-offset: 4px;
}

.brand-lockup {
  position: fixed;
  top: clamp(22px, 3vh, 42px);
  left: 50%;
  z-index: 2;
  width: min(94vw, 1180px);
  display: grid;
  justify-items: center;
  pointer-events: none;
  text-align: center;
  transform: translateX(-50%);
}

.brand-lockup h1 {
  margin: 0;
  color: #030405;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(6.5rem, 17.2vw, 13.8rem);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(44vh);
  transform-origin: center top;
  will-change: opacity, transform;
}

.brand-lockup p {
  margin: clamp(16px, 2vw, 24px) 0 0;
  color: #030405;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.16rem, 2.38vw, 2.45rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(28px);
  transform-origin: center top;
  will-change: opacity, transform;
}

.download-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(9px, 1.1vw, 13px);
  margin-top: clamp(16px, 2vw, 24px);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(32px);
  will-change: opacity, transform;
}

.download-pill {
  min-width: clamp(150px, 12vw, 196px);
  min-height: clamp(42px, 3.2vw, 50px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.2vw, 14px);
  padding: 0 clamp(18px, 2.2vw, 28px);
  border: 2px solid rgba(3, 4, 5, 0.82);
  border-radius: 999px;
  color: #030405;
  background: rgba(248, 248, 241, 0.18);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  backdrop-filter: blur(14px);
  transition:
    background-color 260ms ease,
    color 260ms ease,
    border-color 260ms ease,
    transform 260ms ease;
}

.store-icon {
  width: clamp(20px, 1.8vw, 27px);
  height: clamp(20px, 1.8vw, 27px);
  display: inline-flex;
  flex: 0 0 auto;
  color: currentColor;
}

.store-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

.store-icon-play svg {
  fill: none;
}

.store-copy {
  display: grid;
  gap: 3px;
  text-align: left;
}

.store-copy span,
.store-copy strong {
  display: block;
  white-space: nowrap;
}

.store-copy span {
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.72;
}

.store-copy strong {
  font-size: 1em;
  font-weight: 900;
}

.download-pill:hover,
.download-pill:focus-visible,
.download-pill.is-hovered {
  color: var(--paper);
  background: #030405;
  border-color: #030405;
  transform: translateY(-2px);
}

.download-pill:focus-visible {
  outline: 3px solid rgba(0, 109, 255, 0.36);
  outline-offset: 4px;
}

.download-pill.is-device-match {
  order: -1;
  min-width: clamp(220px, 21vw, 310px);
  min-height: clamp(56px, 4.6vw, 66px);
  padding: 0 clamp(22px, 2.8vw, 36px);
  border-color: #030405;
  font-size: clamp(0.88rem, 1.08vw, 1.05rem);
}

.download-pill.is-device-match .store-icon {
  width: clamp(26px, 2.5vw, 34px);
  height: clamp(26px, 2.5vw, 34px);
}

.feature-title {
  position: fixed;
  left: 50%;
  top: 48%;
  z-index: 1;
  width: max-content;
  max-width: 94vw;
  margin: 0;
  pointer-events: none;
  color: #030405;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4.8vw, 4.75rem);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: 0;
  opacity: 0;
  transform: translate(-50%, 58vh);
  will-change: opacity, transform;
  mix-blend-mode: normal;
}

.feature-card-stage {
  position: fixed;
  top: 60%;
  left: 0;
  right: 0;
  z-index: 3;
  overflow: hidden;
  padding: clamp(36px, 5vh, 60px) clamp(28px, 3vw, 44px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(64px);
  will-change: opacity, transform;
}

.feature-card-grid {
  display: flex;
  width: max-content;
  gap: clamp(16px, 1.9vw, 26px);
  padding-inline: 2px;
  will-change: transform;
}

.feature-card {
  position: relative;
  width: clamp(264px, 27vw, 366px);
  min-height: clamp(174px, 17.5vw, 236px);
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(12px, 1.4vw, 18px);
  overflow: hidden;
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: clamp(26px, 2.7vw, 40px);
  color: #08101d;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 18px 40px rgba(3, 4, 5, 0.16),
    0 6px 16px rgba(0, 72, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(125% 85% at 14% -12%, rgba(255, 255, 255, 0.6), transparent 56%);
  opacity: 0.7;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card h3,
.feature-card p {
  margin: 0;
  letter-spacing: 0;
}

.feature-card h3 {
  max-width: 100%;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.46rem, 1.7vw, 1.82rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.feature-card p {
  max-width: 30ch;
  color: rgba(8, 16, 29, 0.74);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(0.98rem, 1.05vw, 1.08rem);
  font-weight: 600;
  line-height: 1.3;
}

.screens-stage {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(76px);
  will-change: opacity, transform;
}

.screens-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 53%;
  width: min(82vw, 980px);
  height: min(54vh, 430px);
  opacity: 0.66;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 248, 241, 0.92), rgba(248, 248, 241, 0.52) 42%, transparent 72%),
    linear-gradient(90deg, transparent, rgba(0, 109, 255, 0.12), transparent);
  filter: blur(18px);
  transform: translate(-50%, -50%);
}

.screen-phone {
  position: absolute;
  left: 50%;
  top: 56%;
  width: clamp(190px, 21vw, 292px);
  height: min(70vh, 635px);
  min-height: 430px;
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(3, 4, 5, 0.74);
  border-radius: clamp(38px, 4.5vw, 66px);
  background: rgba(248, 248, 241, 0.86);
  box-shadow:
    0 28px 90px rgba(3, 4, 5, 0.18),
    0 10px 28px rgba(0, 109, 255, 0.12);
  opacity: 0;
  transform: translate(-50%, -50%) translate3d(0, 90px, 0) scale(0.88);
  transform-origin: center center;
  will-change: opacity, transform;
}

.screen-phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.screen-phone:not(.screen-phone-dashboard) img {
  transform: scale(1.04);
  transform-origin: top center;
}

.screen-phone-dashboard {
  z-index: 5;
}

.screen-phone-transactions,
.screen-phone-analytics {
  z-index: 3;
}

.screen-phone-ai,
.screen-phone-split {
  z-index: 2;
}

.final-stage {
  position: fixed;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  justify-items: center;
  gap: clamp(28px, 5vh, 54px);
  padding: clamp(24px, 4vw, 52px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(82px);
  will-change: opacity, transform;
}

.final-download-pill {
  min-width: min(82vw, 390px);
  min-height: clamp(68px, 6.2vw, 86px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  padding: 0 clamp(30px, 5vw, 56px);
  border: 2px solid #030405;
  border-radius: 999px;
  color: var(--paper);
  background: #030405;
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 22px 70px rgba(3, 4, 5, 0.18),
    0 10px 34px rgba(0, 109, 255, 0.16);
  transform: translateY(44px) scale(0.92);
  transition:
    background-color 260ms ease,
    color 260ms ease,
    transform 260ms ease;
  will-change: transform;
}

.final-download-pill:hover,
.final-download-pill:focus-visible {
  color: #030405;
  background: var(--paper);
  transform: translateY(0) scale(1.02);
}

.final-download-pill:focus-visible {
  outline: 3px solid rgba(0, 109, 255, 0.36);
  outline-offset: 5px;
}

.site-footer {
  width: min(100%, 1060px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(160px, 0.8fr);
  align-items: end;
  gap: clamp(18px, 3vw, 40px);
  color: #030405;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0;
  transform: translateY(34px);
  will-change: opacity, transform;
}

.footer-brand {
  display: grid;
  gap: 6px;
}

.footer-brand strong {
  font-size: clamp(2rem, 4vw, 4.25rem);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
}

.footer-brand span,
.site-footer p,
.footer-links a {
  color: rgba(3, 4, 5, 0.76);
  font-size: clamp(0.82rem, 1vw, 0.98rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(14px, 2vw, 24px);
}

.footer-links a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition:
    border-color 220ms ease,
    color 220ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #030405;
  border-color: currentColor;
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: clamp(18px, 4vh, 38px);
  z-index: 2;
  width: 2px;
  height: 48px;
  pointer-events: none;
  opacity: 0.62;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(3, 4, 5, 0.82), transparent);
  border-radius: 999px;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(3, 4, 5, 0.82);
  border-bottom: 2px solid rgba(3, 4, 5, 0.82);
  transform: translateX(-50%) rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .liquid-page::before {
    opacity: 0.08;
  }

  .brand-lockup h1,
  .brand-lockup p,
  .download-actions,
  .top-download-pill,
  .feature-title,
  .feature-card-stage,
  .screens-stage,
  .final-stage,
  .scroll-cue {
    opacity: 1;
    transform: translateY(0);
  }

  .feature-title {
    opacity: 0;
    transform: translate(-50%, -50%);
  }

  .feature-card-stage {
    opacity: 0;
  }

  .screen-phone {
    opacity: 1;
  }

  .screen-phone-dashboard {
    transform: translate(-50%, -50%) translate3d(0, 10px, 0) scale(1);
  }

  .screen-phone-transactions {
    transform: translate(-50%, -50%) translate3d(24vw, 32px, 0) rotate(7deg) scale(0.84);
  }

  .screen-phone-ai {
    transform: translate(-50%, -50%) translate3d(-26vw, 52px, 0) rotate(-8deg) scale(0.78);
  }

  .screen-phone-analytics {
    transform: translate(-50%, -50%) translate3d(-11vw, 98px, 0) rotate(-3deg) scale(0.7);
  }

  .screen-phone-split {
    transform: translate(-50%, -50%) translate3d(11vw, 108px, 0) rotate(4deg) scale(0.68);
  }

  .final-stage {
    pointer-events: auto;
  }

  .final-download-pill,
  .site-footer {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .brand-lockup {
    top: clamp(38px, 7vh, 72px);
  }

  .brand-lockup h1 {
    font-size: clamp(8rem, 26vw, 22rem);
  }

  .brand-lockup p {
    margin: clamp(20px, 3vw, 34px) 0 0;
    font-size: clamp(1.22rem, 3.65vw, 3.6rem);
  }

  .download-actions {
    width: min(100%, 360px);
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .top-download-pill {
    top: 14px;
    right: 14px;
    min-width: 104px;
    min-height: 40px;
    padding: 0 18px;
    font-size: 0.82rem;
  }

  .download-pill {
    min-height: clamp(46px, 4vw, 56px);
    font-size: clamp(0.78rem, 1.05vw, 0.98rem);
  }

  .download-pill.is-device-match {
    width: 100%;
    min-height: clamp(62px, 6vw, 76px);
    min-width: 0;
    font-size: clamp(0.95rem, 1.5vw, 1.22rem);
  }

  .download-pill:not(.is-device-match) {
    width: min(78%, 282px);
    min-width: 0;
  }

  .store-copy span {
    font-size: 0.68em;
  }

  .store-icon {
    width: clamp(22px, 2.4vw, 31px);
    height: clamp(22px, 2.4vw, 31px);
  }

  .download-pill.is-device-match .store-icon {
    width: clamp(29px, 3.2vw, 40px);
    height: clamp(29px, 3.2vw, 40px);
  }

  .feature-title {
    top: 54%;
    font-size: clamp(2.35rem, 11.5vw, 3.35rem);
  }

  .feature-card-stage {
    top: 64%;
    padding: clamp(24px, 3.5vh, 40px) 16px;
  }

  .feature-card-grid {
    gap: 16px;
  }

  .feature-card {
    width: min(80vw, 320px);
    min-height: clamp(178px, 46vw, 220px);
    gap: 12px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42));
    -webkit-backdrop-filter: blur(12px) saturate(135%);
    backdrop-filter: blur(12px) saturate(135%);
    box-shadow:
      0 14px 30px rgba(3, 4, 5, 0.18),
      0 4px 12px rgba(0, 72, 255, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }

  .feature-card h3 {
    font-size: 1.42rem;
  }

  .feature-card p {
    font-size: 0.98rem;
    line-height: 1.28;
  }

  .screens-stage {
    transform: translateY(64px);
  }

  .screens-stage::before {
    top: 58%;
    width: 110vw;
    height: 46vh;
  }

  .screen-phone {
    top: 60%;
    width: min(62vw, 270px);
    height: min(62vh, 570px);
    min-height: 390px;
    border-radius: clamp(34px, 12vw, 54px);
  }

  .final-stage {
    gap: clamp(22px, 4vh, 34px);
    padding: 22px 16px 24px;
  }

  .final-download-pill {
    min-width: min(88vw, 330px);
    min-height: 66px;
    font-size: 1.24rem;
  }

  .site-footer {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .footer-brand {
    justify-items: center;
  }

  .footer-brand strong {
    font-size: 3.1rem;
  }

  .footer-links {
    max-width: 320px;
    justify-content: center;
    gap: 12px 16px;
  }

  .site-footer p {
    text-align: center;
  }
}
