:root {
  --violet: #5533c2;
  --coral: #ff7857;
  --mint: #5ce7b4;
  --white: #ffffff;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Zalando Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--white);
  background: var(--violet);
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  overflow: hidden;
}

.texture {
  position: absolute;
  top: -18%;
  right: -10%;
  width: min(62vw, 720px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.logo {
  --mark: 54px;
  display: flex;
  align-items: center;
  gap: calc(var(--mark) * 0.28);
  width: max-content;
  max-width: 100%;
  color: var(--white);
}

.logo-shape {
  width: var(--mark);
  height: var(--mark);
  flex: none;
  display: block;
  overflow: visible;
}

.logo-wordmark {
  height: calc(var(--mark) * 0.953);
  width: auto;
  display: block;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  opacity: 0.72;
}

.dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  background: var(--coral);
}

h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
}

.lead {
  margin: 0;
  max-width: 36ch;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 400;
  line-height: 1.35;
}

.lead strong {
  font-weight: 500;
}

html.is-booting .card,
html.is-booting .texture {
  opacity: 0;
}

html.is-ready .card {
  animation: enter-fade 0.9s ease both;
}

html.is-ready .logo,
html.is-ready .eyebrow,
html.is-ready h1,
html.is-ready .lead {
  animation: enter-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.is-ready .eyebrow {
  animation-delay: 0.08s;
}

html.is-ready h1 {
  animation-delay: 0.16s;
}

html.is-ready .lead {
  animation-delay: 0.26s;
}

html.is-ready .texture {
  animation: enter-texture 1.8s ease 0.15s both;
}

@keyframes enter-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes enter-rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@keyframes enter-texture {
  from {
    opacity: 0;
    transform: translate3d(10px, -8px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.is-ready .card,
  html.is-ready .texture,
  html.is-ready .logo,
  html.is-ready .eyebrow,
  html.is-ready h1,
  html.is-ready .lead {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (scripting: none) {
  html.is-booting .card,
  html.is-booting .texture {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .texture {
    top: -8%;
    right: -28%;
    width: min(92vw, 420px);
  }

  .page {
    padding: 28px 22px 40px;
    align-items: end;
  }

  .card {
    gap: 16px;
  }

  h1 {
    max-width: 12ch;
  }
}
