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

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background: #0f0f12;
  position: relative;
  overflow-x: hidden;
}

.max-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.max-bg__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(28deg, #12131a 8%, #0f0f12 92%);
}

.max-bg__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 54% at 94% 14%, rgba(88, 86, 214, 0.22) 0%, rgba(88, 86, 214, 0.08) 50%, transparent 100%),
    radial-gradient(140% 51% at 0% 80%, rgba(0, 122, 255, 0.18) 0%, rgba(0, 122, 255, 0.06) 50%, transparent 100%);
}

.max-bg__pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 54% at 94% 14%, rgba(120, 100, 255, 0.14) 0%, transparent 55%),
    radial-gradient(140% 51% at 0% 80%, rgba(0, 122, 255, 0.12) 0%, transparent 55%),
    linear-gradient(28deg, rgba(18, 19, 26, 0.9) 8%, rgba(15, 15, 18, 0.95) 92%);
  -webkit-mask-image: url('/channel/assets/pattern_space.svg');
  mask-image: url('/channel/assets/pattern_space.svg');
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-position: 50% center;
  mask-position: 50% center;
  -webkit-mask-size: auto;
  mask-size: auto;
  opacity: 0.95;
}

.max-landing {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: env(safe-area-inset-top, 0) 0 env(safe-area-inset-bottom, 0);
}

.max-landing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  padding-top: max(12px, env(safe-area-inset-top, 0px));
  min-height: 56px;
}

.max-landing__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.max-landing__logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: center / contain no-repeat url('/channel/assets/authLogo.png');
}

.max-landing__logo-word {
  display: block;
  height: 21px;
  width: 68px;
  flex-shrink: 0;
}

.max-landing__download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #3d7cff 0%, #6a5cff 48%, #b14bff 100%);
  box-shadow: 0 2px 12px rgba(79, 108, 255, 0.35);
}

.max-landing__main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 6px 16px 28px;
}

.max-landing__card {
  width: 100%;
  background: #25262d;
  border-radius: 24px;
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.max-landing__avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 18px;
  background: #1a1b20;
}

.max-landing__title {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
}

.max-landing__handle {
  margin: 0 0 20px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.45);
}

.max-landing__desc {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  letter-spacing: 0.01em;
}

.max-landing__cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(90deg, #1a8fff 0%, #4f6bff 38%, #8b4dff 100%);
  box-shadow: 0 6px 24px rgba(41, 124, 255, 0.38);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.max-landing__cta:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.max-landing__hint {
  margin: 18px 8px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

@media (min-width: 390px) {
  .max-landing__main {
    padding-top: 10px;
  }
}
