:root {
  --ink: #101923;
  --muted: #54626f;
  --paper: #f7fbfa;
  --white: #ffffff;
  --mint: #2feaad;
  --mint-dark: #19bd8e;
  --blue: #2eaee1;
  --purple: #8a5ee5;
  --border: rgba(16, 25, 35, 0.1);
  --shadow: 0 24px 70px rgba(10, 44, 36, 0.16);
  --radius-lg: 34px;
  --radius-md: 22px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  background:
    radial-gradient(circle at 88% 10%, rgba(46, 174, 225, 0.34), transparent 29%),
    linear-gradient(135deg, #17232c 0%, #123a37 46%, #22d4a0 100%);
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% 42%;
  height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,.11);
  filter: blur(2px);
  transform: rotate(-10deg);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(3px);
  pointer-events: none;
}

.hero__glow--one {
  width: 280px;
  height: 280px;
  left: -100px;
  top: 36px;
  background: rgba(138, 94, 229, 0.28);
}

.hero__glow--two {
  width: 220px;
  height: 220px;
  right: 17%;
  bottom: -100px;
  background: rgba(47, 234, 173, 0.22);
}

.hero__content {
  position: relative;
  z-index: 1;
  min-height: 640px;
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding-block: 80px;
}

.app-icon {
  width: clamp(154px, 18vw, 210px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 32px 80px rgba(3, 18, 17, 0.4), 0 0 0 1px rgba(255,255,255,.12);
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--mint);
}

h1,
h2,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.065em;
}

.subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  line-height: 1.55;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.google-play-badge {
  min-height: 61px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}

.google-play-badge img {
  display: block;
  width: 203px;
  height: auto;
}

.google-play-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.store-button {
  min-width: 190px;
  min-height: 61px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: #080a0d;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.store-button:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.42);
  box-shadow: 0 17px 38px rgba(0,0,0,.25);
}

.store-button__icon {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
}

.store-button span {
  display: flex;
  flex-direction: column;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.04;
}

.store-button small {
  margin-bottom: 4px;
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .08em;
}

.store-button--disabled {
  cursor: not-allowed;
  opacity: .56;
  box-shadow: none;
}

.store-button--disabled:hover {
  transform: none;
  border-color: rgba(255,255,255,.18);
  box-shadow: none;
}

.screenshots {
  padding: 110px 0 100px;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading .eyebrow,
.download .eyebrow {
  color: var(--mint-dark);
}

h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 12% 18%, rgba(47, 234, 173, .2), transparent 26%),
    radial-gradient(circle at 88% 85%, rgba(138, 94, 229, .2), transparent 30%),
    #17232c;
  box-shadow: var(--shadow);
  outline: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__viewport:focus-visible {
  box-shadow: var(--shadow), 0 0 0 4px rgba(47, 234, 173, .42);
}

.carousel__track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  padding: 34px;
}

.carousel__slide {
  flex: 0 0 clamp(220px, 27vw, 270px);
  margin: 0;
  aspect-ratio: 222 / 296;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #dff7ef;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .28);
  scroll-snap-align: center;
  transition: transform .25s ease, opacity .25s ease;
}

.carousel__slide[aria-hidden="true"] {
  opacity: .72;
  transform: scale(.96);
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__button {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(21, 47, 40, .22);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform .2s ease, background .2s ease;
}

.carousel__button:hover {
  background: var(--mint);
  transform: translateY(-50%) scale(1.05);
}

.carousel__button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__button--previous {
  left: -28px;
}

.carousel__button--next {
  right: -28px;
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c2ccc8;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}

.carousel__dot[aria-selected="true"] {
  width: 30px;
  background: var(--mint-dark);
}

.download {
  padding: 0 0 110px;
}

.download__card {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: clamp(34px, 6vw, 66px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 10%, rgba(46,174,225,.38), transparent 34%),
    linear-gradient(135deg, #17232c, #183c3a);
  color: var(--white);
  box-shadow: var(--shadow);
}

.download__card h2 {
  max-width: 690px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.download__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 22px;
  border-radius: 14px;
  background: var(--mint);
  color: #0e3229;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.download__link:hover {
  transform: translateY(-3px);
  background: #65f2c7;
}

footer {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: .92rem;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__content p {
  margin: 0;
}

.footer__content nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__content a {
  text-decoration: none;
}

.footer__content a:hover {
  color: var(--ink);
}

@media (max-width: 1080px) {
  .carousel {
    max-width: calc(100% - 36px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero,
  .hero__content {
    min-height: auto;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 68px 0 78px;
    text-align: center;
  }

  .app-icon {
    justify-self: center;
    width: 142px;
    transform: rotate(-3deg);
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.35rem);
  }

  .hero__copy {
    min-width: 0;
  }

  .subtitle {
    margin-inline: auto;
    font-size: 1.08rem;
  }

  .store-buttons {
    justify-content: center;
  }

  .screenshots {
    padding: 78px 0 72px;
  }

  .carousel {
    max-width: 100%;
    padding-bottom: 68px;
  }

  .carousel__viewport {
    border-radius: 22px;
  }

  .carousel__track {
    gap: 14px;
    padding: 24px;
  }

  .carousel__slide {
    flex-basis: min(72vw, 270px);
  }

  .carousel__button {
    top: auto;
    bottom: 0;
    width: 46px;
    height: 46px;
    transform: none;
  }

  .carousel__button:hover {
    transform: scale(1.05);
  }

  .carousel__button--previous {
    left: calc(50% - 92px);
  }

  .carousel__button--next {
    right: calc(50% - 92px);
  }

  .carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    margin: 0;
    transform: translateX(-50%);
  }

  .download {
    padding-bottom: 72px;
  }

  .download__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 440px) {
  .store-buttons,
  .store-button,
  .google-play-badge {
    width: 100%;
  }

  .store-button,
  .google-play-badge {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
