:root {
  color-scheme: dark;
  --ink: #f6f8ff;
  --muted: rgba(246, 248, 255, 0.68);
  --faint: rgba(246, 248, 255, 0.44);
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.11);
  --night: #040713;
  --blue: #61b8ff;
  --violet: #dc7bf2;
  --mint: #86f0cf;
  --gold: #f3cc82;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(83, 187, 255, 0.26), transparent 28rem),
    radial-gradient(circle at 88% 14%, rgba(220, 123, 242, 0.2), transparent 28rem),
    linear-gradient(135deg, #03050e 0%, #0d1226 48%, #030711 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.page {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  min-height: 82vh;
  display: flex;
  align-items: stretch;
}

.hero__content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  padding-top: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(49, 111, 255, 0.28);
}

.topbar__link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(246, 248, 255, 0.76);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.topbar__link:hover,
.topbar__link[aria-current="page"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: clamp(52px, 8vw, 92px) 0 clamp(48px, 7vw, 70px);
}

.hero__copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.5rem, 9vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.lede {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.12rem, 2.1vw, 1.46rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.store-badge {
  display: inline-block;
  line-height: 0;
}

.store-badge img {
  display: block;
}

.store-badge:focus-visible {
  border-radius: 6px;
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.screenshot-carousel {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
}

.carousel-viewport {
  position: relative;
  width: min(74%, 318px);
  aspect-ratio: 750 / 1334;
}

.phone-frame {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #060914;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.38);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-slide {
  z-index: 1;
  opacity: 0.52;
  transform: translate(150px, 76px) scale(0.8) rotate(3deg);
  transform-origin: top left;
  transition:
    opacity 300ms ease-out,
    transform 2000ms cubic-bezier(0.45, 0, 0.2, 1),
    filter 300ms ease-out;
  filter: saturate(0.86) brightness(0.82);
  pointer-events: none;
}

.carousel-slide.is-active {
  z-index: 2;
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: none;
  pointer-events: auto;
}

.carousel-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 12px;
  width: min(100%, 260px);
  margin: 18px auto 0;
}

.carousel-button,
.carousel-dot {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  cursor: pointer;
}

.carousel-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.carousel-button:hover,
.carousel-button:focus-visible,
.carousel-dot:hover,
.carousel-dot:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
}

.carousel-dot.is-active {
  width: 26px;
  border-color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.details {
  width: min(1120px, calc(100% - 40px));
  margin: -10px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 20px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
  min-height: 96px;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.detail-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(246, 248, 255, 0.88);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.faq {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(28px, 6vw, 72px);
  padding: 48px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.faq__items {
  display: grid;
  gap: 24px;
}

.faq-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item h3 {
  margin: 0;
  color: rgba(246, 248, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.35;
}

.faq-item p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer p {
  margin: 0;
  color: inherit;
  line-height: 1.55;
}

.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--faint);
  font-size: 0.9rem;
}

.footer .footer__disclaimer {
  color: rgba(246, 248, 255, 0.3);
}

.footer__legal {
  display: grid;
  max-width: 580px;
  gap: 4px;
  text-align: right;
}

.footer__legal p:last-child {
  font-size: 0.62rem;
}

.footer a {
  color: rgba(246, 248, 255, 0.7);
  font-weight: 650;
  text-decoration: none;
}

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

.policy-page {
  overflow: visible;
}

.policy-topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 46px;
}

.policy {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 50px;
}

.policy-page .footer {
  width: min(920px, calc(100% - 40px));
}

.policy__header {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.policy h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6rem);
}

.policy__updated {
  margin: 22px 0 0;
  color: var(--faint);
  font-weight: 650;
}

.policy section {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 56px);
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.policy section:last-child {
  border-bottom: 0;
}

.policy h2 {
  margin: 0;
  color: rgba(246, 248, 255, 0.9);
  font-size: 1rem;
}

.policy__content {
  max-width: 620px;
}

.policy__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.policy__content p + p {
  margin-top: 14px;
}

.support {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 58px;
}

.support__intro {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.support h1 {
  max-width: 8ch;
  font-size: clamp(3rem, 8vw, 6rem);
}

.support-form {
  display: grid;
  gap: 20px;
  max-width: 640px;
  padding-top: 30px;
}

.support-form[hidden],
.support-confirmation[hidden] {
  display: none;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: rgba(246, 248, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.form-field input {
  min-height: 48px;
  padding: 0 14px;
}

.form-field textarea {
  min-height: 168px;
  padding: 12px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(134, 240, 207, 0.72);
  outline: 3px solid rgba(134, 240, 207, 0.18);
}

.support-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.support-form__button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 112px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.support-form__button.is-loading {
  background: linear-gradient(90deg, rgba(92, 200, 255, 0.58), rgba(159, 122, 255, 0.58));
}

.support-form__button.is-loading::after {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #ffffff;
  border-radius: 50%;
  content: "";
  animation: support-button-spin 800ms linear infinite;
}

.support-form__button:hover,
.support-form__button:focus-visible {
  border-color: rgba(255, 255, 255, 0.44);
  outline: none;
}

.support-form__button:disabled {
  cursor: default;
  opacity: 0.68;
}

@keyframes support-button-spin {
  to {
    transform: rotate(360deg);
  }
}

.support-form__status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.support-confirmation {
  max-width: 640px;
  padding-top: 30px;
}

.support-confirmation h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.support-confirmation p {
  max-width: 34rem;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.support-confirmation:focus {
  outline: none;
}

@media (max-width: 800px) {
  .hero {
    min-height: auto;
  }

  .hero__content {
    width: calc(100% - 32px);
  }

  .topbar {
    align-items: flex-start;
    padding-top: 16px;
  }

  .brand span {
    max-width: 11rem;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    padding: 40px 0 36px;
  }

  h1 {
    max-width: 9ch;
  }

  .screenshot-carousel {
    margin: 0;
    width: min(100%, 390px);
  }

  .details {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: 18px;
    padding-top: 24px;
  }

  .detail-item,
  .detail-item:first-child {
    min-height: auto;
    padding: 0;
    border-left: 0;
  }

  .faq {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 38px 0;
  }

  .faq h2 {
    max-width: 14ch;
  }

  .footer {
    width: calc(100% - 32px);
    display: grid;
  }

  .footer__legal {
    text-align: left;
  }

  .policy,
  .support,
  .policy-page .footer,
  .policy-topbar {
    width: calc(100% - 32px);
  }

  .policy-topbar {
    padding-bottom: 34px;
  }

  .policy section {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .support-form__actions {
    align-items: stretch;
  }

  .support-form__button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .brand span {
    display: none;
  }

  .topbar__link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.88rem;
  }

  .hero__grid {
    padding-top: 34px;
  }

  .actions {
    align-items: stretch;
  }

  .phone-frame {
    border-radius: 22px;
  }

  .carousel-viewport {
    width: 72%;
  }

  .carousel-slide {
    transform: translate(112px, 70px) scale(0.78) rotate(3deg);
  }
}

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

  .carousel-slide {
    transition: none;
  }
}
