*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  background: #000;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: #000;
}

body {
  overflow-x: hidden;
}

.landing {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: #000;
  box-shadow: 0 0 64px rgba(0, 0, 0, 0.75);
}

.pages {
  width: 100%;
}

.pdf-page {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.case-study {
  position: relative;
  padding: 34px 34px 44px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(160deg, #5413db 0%, #7c35a6 38%, #da7c54 72%, #ffb529 100%);
}

.case-study__heading h2 {
  margin: 0;
  font-size: clamp(27px, 8vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.case-study__heading p {
  max-width: 350px;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-slider {
  position: relative;
  margin: 52px -20px 0;
}

.dashboard-slider__track {
  display: flex;
  touch-action: pan-y;
  transition: transform 420ms cubic-bezier(0.22, 0.8, 0.25, 1);
}

.dashboard-slide {
  flex: 0 0 100%;
  margin: 0;
  padding: 0 14px;
  user-select: none;
}

.dashboard-slide img {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 16px;
}

.dashboard-slider__arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0 0 4px;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(12, 3, 25, 0.6);
  backdrop-filter: blur(8px);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.dashboard-slider__arrow--prev {
  left: 20px;
}

.dashboard-slider__arrow--next {
  right: 20px;
}

.dashboard-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 22px;
  margin-top: 8px;
}

.dashboard-slider__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}

.dashboard-slider__dots button.is-active {
  width: 22px;
  border-radius: 99px;
  background: #fff;
}

.loader {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(94, 20, 218, 0.42), transparent 36%),
    #050208;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.loader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.loader img {
  width: 138px;
  height: auto;
}

.loader p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.loader__bar {
  width: min(230px, 72vw);
  height: 5px;
  margin-top: 25px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.loader__bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6919ed, #ff4b2f);
  transition: width 200ms ease;
}

.floating-cta {
  position: fixed;
  z-index: 20;
  right: max(16px, calc((100vw - 430px) / 2 + 16px));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(100deg, #6819ec, #ff492f);
  box-shadow: 0 12px 32px rgba(74, 14, 176, 0.42);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.floating-cta.is-visible {
  display: inline-flex;
}

.error {
  margin: 0;
  padding: 40px 20px;
  color: #fff;
  text-align: center;
}

@media (min-width: 431px) {
  body {
    background: #0a070d;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loader,
  .loader__bar span,
  .dashboard-slider__track,
  .dashboard-slider__dots button {
    transition: none;
  }
}

@media (max-width: 350px) {
  .case-study {
    padding-right: 25px;
    padding-left: 25px;
  }

  .case-study__heading p {
    font-size: 14px;
  }
}
