:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #f7f0ff;
  background: #000;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  --bg: #000;
  --purple: #a342ff;
  --purple-2: #8a35f3;
  --purple-3: #b66cff;
  --text: #fbf4ff;
  --text-soft: rgba(251, 244, 255, 0.8);
  --text-dim: rgba(251, 244, 255, 0.58);
  --line: rgba(163, 66, 255, 0.5);
  --line-soft: rgba(163, 66, 255, 0.22);
  --header-offset: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  min-height: 100svh;
  overflow-x: clip;
  background: var(--bg);
}

.section {
  position: relative;
}

.section__inner {
  width: min(1600px, calc(100vw - 80px));
  margin: 0 auto;
}

.section__inner--wide {
  width: min(1600px, calc(100vw - 80px));
}
.section__inner--about {
  width: 100%;
}
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  padding: 18px 0;
}

.site-header--sticky {
  position: fixed;
  top: 0;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(1600px, calc(100vw - 80px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 3px;
}

.brand__mark span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.96);
}

.brand__text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand--footer .brand__text {
  color: #d9b7ff;
}
.top-logo {
  width: 100px;
}
.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 6.2vw, 100px);
}

.site-nav__link {
  border: 0;
  background: transparent;
  padding: 0;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.site-nav__link:hover {
  color: #7c3dfd;
}

.site-nav__link[aria-current='true'] {
  color: var(--purple-3);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  display: block;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
}

.drawer-backdrop[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(78vw, 320px);
  padding: 18px 18px 24px;
  background: rgba(12, 12, 14, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}

.drawer--open {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.drawer__title {
  font-weight: 700;
  font-size: 15px;
}

.drawer__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.drawer__nav {
  display: grid;
  gap: 10px;
}

.drawer__link {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px 16px;
  text-align: left;
  color: #f5eaff;
  cursor: pointer;
}

.drawer__link:hover,
.drawer__link:focus-visible {
  border-color: var(--line);
  background: rgba(163, 66, 255, 0.14);
}

.hero-section {
  background: #9c3fff;
}

.hero-section__image {
  width: 100%;
  object-fit: cover;
  object-position: center top;
}

.section--services {
  background: #000;
  padding: 40px 0 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(152px, 1fr) auto;
  min-height: 428px;
  padding: 48px 20px 40px;
  border: 1px solid #ae4dff;
  background: #000;
}

.service-card--interactive {
  cursor: pointer;
}

.service-card--interactive:focus-visible {
  outline: 2px solid var(--purple-3);
  outline-offset: 4px;
}

.service-card__icon {
  width: 50px;
  height: 50px;
}

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

.service-card h2 {
  margin: 13px 0 11px;
  font-size: 20px;
}

.service-card p {
  margin: 0;
  color: #fff;
  line-height: 22px;
  font-size: 16px;
  height: 104px;
}

.service-card__media {
  width: 100%;
  height: 161px;
  margin-bottom: 30px;
  overflow: hidden;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .service-card__media:hover img {
    transform: scale(1.045);
  }
}

.service-card__action {
  display: block;
  color: #fff;
  font-size: 16px;
  text-align: left;
}

.service-card--interactive:hover .service-card__action,
.service-card--interactive:focus-visible .service-card__action {
  color: var(--purple-3);
}

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.qr-modal[hidden] {
  display: none;
}

.qr-modal__dialog {
  position: relative;
  display: flex;
  width: min(500px, calc(100vw - 40px));
  height: min(500px, calc(100vh - 40px));
  padding: 24px;
  flex-direction: column;
  align-items: center;
  background: #fff;
  color: #222;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  border-radius: 18px;
}

.qr-modal__header {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.qr-modal__dialog h2 {
  margin: 0;
  color: #222;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.qr-modal__image {
  display: block;
  width: min(320px, 76vw);
  height: min(320px, 76vw);
  object-fit: contain;
}

.qr-modal__close {
  position: absolute;
  top: 48%;
  right: 0;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 32px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.qr-modal__close:hover {
  color: #111;
}

.section--black {
  background: #000;
  overflow: clip;
}

.section--black .section__inner {
  position: relative;
  z-index: 1;
}

.about-block {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.about-block__image {
  display: block;
  width: 100%;
  height: auto;
}

.about-block__content {
  position: absolute;
  top: 50%;
  left: 12%;
  z-index: 1;
  width: min(43%, 650px);
  color: #fff;
  transform: translateY(-50%);
}

.about-block__content h2 {
  margin: 0 0 18px;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 700;
  line-height: 1.35;
}

.about-block__content p {
  margin: 0;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.about-block__content .about-block__tagline {
  margin-top: 16px;
}

.about-block__features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(12px, 1vw, 16px);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.about-block__features li {
  white-space: nowrap;
}

.about-block__features li::before {
  content: '·';
  margin-right: 8px;
}

@media (max-width: 960px) {
  .about-block {
    min-height: 460px;
  }

  .about-block__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .about-block__content {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 620px);
    padding: 54px 24px 44px;
    transform: none;
  }

  .about-block__content h2 {
    margin-bottom: 14px;
  }

  .about-block__features {
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .about-block {
    min-height: 520px;
  }

  .about-block__image {
    object-position: 58% center;
  }

  .about-block__content {
    padding: 42px 20px 40px;
  }

  .about-block__content p {
    font-size: 13px;
    line-height: 1.75;
  }

  .about-block__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    font-size: 13px;
  }
}

.store-stage {
  position: relative;
}

.store-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 8px 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.store-tabs::-webkit-scrollbar {
  display: none;
}

.store-tabs__item {
  border: 0;
  background: transparent;
  padding: 0px 18px;
  height: 44px;
  cursor: pointer;
  font-size: 18px;
  white-space: nowrap;
  font-weight: 500;
}

.store-tabs__item--active {
  background: linear-gradient(180deg, #cf65ff 0%, #a135ff 100%);
  color: #fff;
}

.store-tabs__status {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
}

.gallery {
  display: flex;
  width: 100%;
  height: clamp(300px, 40vw, 580px);
  gap: 0;
  overflow: hidden;
  background: #151515;
  border: 8px solid #151515;
}

.gallery--status {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(150, 55, 255, 0.28),
      transparent 42%
    ),
    #151515;
}

.gallery__status {
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  text-align: center;
}

.gallery__panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-right: 2px solid #151515;
  background: #2d1661;
  cursor: pointer;
  opacity: 0.7;
  transition:
    flex-grow 0.45s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

.gallery__panel:last-child {
  border-right: 0;
}

.gallery--engaged .gallery__panel {
  flex-grow: 0.7;
}

.gallery--engaged .gallery__panel--active {
  flex-grow: 2.5;
  opacity: 1;
  filter: saturate(1.04);
}

.gallery__panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* transform: scale(1.015); */
  transition: transform 0.7s ease;
}

.gallery__panel--active img {
  transform: scale(1);
}

.section--join {
  padding: 40px 0 50px;
  background: linear-gradient(180deg, #a644ff 0%, #9334ff 100%);
}

.join-heading {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(18px, 1.8vw, 25px);
  line-height: 1.35;
}

.join-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.join-points {
  display: grid;
  gap: 10px;
}

.join-point {
  width: 390px;
  height: 74px;
  background: rgba(255, 255, 255, 0.12);
  padding-left: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.join-point .title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.join-point .line {
  margin: 0;
  font-size: 12px;
  margin-bottom: 4px;
}

.join-form {
  padding: 26px 76px 20px;
  width: 619px;
  min-height: 324px;
  background: rgba(255, 255, 255, 0.12);
}

.join-form h2 {
  margin: 0;
  font-size: 18px;
  text-align: center;
}

.join-form__group {
  min-height: 70px;
}

.join-form__field {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 50px;
  border-bottom: 1px solid #fff;
  margin-bottom: 0;
}

.join-form__field img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  flex: 0 0 auto;
}

.join-form__field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

/* Prevent Safari from rendering its contact/password autofill controls. */
.join-form__field input::-webkit-contacts-auto-fill-button,
.join-form__field input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.join-form__field input::placeholder {
  color: rgba(255, 255, 255, 0.76);
}

.join-form__field-error {
  min-height: 16px;
  margin: 4px 0 0 41px;
  color: #ff1f3d;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.join-form__field--code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.join-form__code {
  width: 98px;
  height: 30px;
  background: #ffffff;
  border-radius: 30px;
  border: 0;
  font-size: 12px;
  color: #7c3dfd;
  cursor: pointer;
}

.join-form__code:disabled,
.join-form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.join-form__submit {
  width: 208px;
  height: 32px;
  background: #ffffff;
  border: 0;
  border-radius: 80px;
  font-weight: 500;
  font-size: 14px;
  color: #7c3dfd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
}

.join-form__submit:hover,
.join-form__code:hover {
  background: #f3e7ff;
}

.join-form__hint {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.join-form__hint--notice {
  color: #fff;
  font-weight: 600;
}

.join-form__hint--error {
  color: #ffe0e7;
  font-weight: 600;
}

.site-footer {
  background: #040404;
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}

.footer-grid__brand p {
  margin: 16px 0 0;
  color: #fff;
  font-size: 14px;
}

.footer-grid__col {
  display: grid;
  gap: 10px;
}

.footer-grid__col h2 {
  margin: 0 0 6px;
  color: #7c3dfd;
  font-size: 14px;
}
.footer-grid .min-code {
  margin-top: 16px;
  width: 100px;
  height: 100px;
  display: block;
}
.footer-grid__col a,
.footer-grid__col p {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.site-footer__copy {
  padding: 14px 0 20px;
  text-align: center;
  font-size: 14px;
  color: #ffffff;
}
.footer-line {
  width: 1261px;
  height: 1px;
  border: 1px solid;
  border-image: linear-gradient(
      270deg,
      rgba(130, 62, 254, 0),
      rgba(187, 114, 255, 1),
      rgba(187, 114, 255, 0)
    )
    1 1;
}
:focus-visible {
  outline: 2px solid var(--purple-3);
  outline-offset: 4px;
}

@media (max-width: 1200px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .site-header {
    position: sticky;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(12px);
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header__inner {
    width: calc(100vw - 24px);
  }

  .section__inner,
  .section__inner--wide {
    width: calc(100vw - 24px);
  }
  .section__inner--about {
    width: 100%;
  }
  .section--black::before,
  .section--black::after {
    display: none;
  }
  .store-tabs {
    justify-content: flex-start;
  }
  .join-grid {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .section__inner,
  .section__inner--wide {
    width: calc(100vw - 20px);
  }
  .section__inner--about {
    width: 100%;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }
  .store-tabs {
    justify-content: flex-start;
  }
  .gallery {
    height: 260px;
    border-width: 4px;
  }

  .gallery__panel {
    border-right-width: 1px;
  }

  .join-form {
    padding: 20px 18px 18px;
    width: 100%;
    margin-top: 20px;
  }
  .join-point {
    width: 100%;
  }
  .join-form__field--code {
    display: flex;
  }

  .join-form__field--code input {
    grid-column: 2;
  }

  .join-form__code {
    grid-column: 2;
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
    padding-bottom: 24px;
  }

  .site-footer {
    padding-top: 32px;
  }

  .footer-grid__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-items: center;
  }

  .footer-grid__brand .brand--footer {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .footer-grid__brand p {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 7px 0 0;
    line-height: 1.5;
  }

  .footer-grid .min-code {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .footer-grid__col {
    align-content: start;
    gap: 4px;
  }

  .footer-grid__col h2 {
    margin-bottom: 6px;
    font-size: 15px;
  }

  .footer-grid__col a,
  .footer-grid__col p {
    min-height: 28px;
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.45;
  }

  .footer-grid__col:last-child {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(187, 114, 255, 0.28);
  }

  .footer-grid__col:last-child h2 {
    margin: 0;
  }

  .footer-line {
    width: 100%;
  }

  .site-footer__copy {
    padding: 14px 8px 18px;
    font-size: 11px;
    line-height: 1.6;
  }

  .about-block {
    width: 100%;
  }
}
