@font-face {
  font-family: "TikTokFont";
  src: url("assets/fonts/tiktok-font-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TikTokFont";
  src: url("assets/fonts/tiktok-font-semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "TikTokDisplayFont";
  src: url("assets/fonts/tiktok-display-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TikTokDisplayFont";
  src: url("assets/fonts/tiktok-display-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --cyan: #25f4ee;
  --red: #fe2c55;
  --white: #fff;
  --glass: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.18);
  --body-font: "TikTokFont", Arial, Tahoma, "PingFang SC", sans-serif;
  --display-font: "TikTokDisplayFont", var(--body-font);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #050000;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: linear-gradient(297deg, #050000, #050000, #012236);
  background-position: 74.1072% 50%;
  background-repeat: repeat;
  background-size: 180% 180%;
  background-attachment: fixed;
  font-family: var(--body-font);
  -webkit-font-smoothing: antialiased;
}

button,
.login-button,
.copy-link,
.download-button {
  cursor: default !important;
  pointer-events: none !important;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 60px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 9px 16px;
}

.brand-logo {
  display: block;
  width: 118px;
  height: 42px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 2px;
}

.search-button {
  display: inline-flex;
  width: 44px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
}

.search-button svg {
  width: 22px;
  height: 22px;
}

.login-button {
  display: inline-flex;
  min-width: 100px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
  font-weight: 600;
}

.page {
  min-height: 100svh;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(260px, 1fr);
  column-gap: clamp(52px, 9.58vw, 138px);
  width: min(1186px, calc(100% - 48px));
  min-height: calc(100svh - 98px);
  margin: 0 auto;
  padding-top: 99px;
  padding-bottom: 48px;
}

.copy-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.app-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 354px;
  min-height: 38px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.switch-item {
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font: 600 15px/1 var(--body-font);
}

.switch-item.active {
  color: #111;
  background: #fff;
}

.heading-group {
  width: 100%;
}

h1 {
  max-width: 640px;
  margin: 24px 0 0;
  color: #fff;
  font-family: var(--display-font);
  font-size: 44px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.66px;
  overflow-wrap: break-word;
}

.subtitle {
  max-width: 640px;
  margin: 24px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.27px;
}

.qr-area {
  display: flex;
  width: 328px;
  max-width: 100%;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
}

.qr-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background: var(--glass);
  box-shadow: 0 0 20px 12px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
}

.qr-caption {
  align-self: stretch;
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.16px;
}

.qr-image {
  display: block;
  width: 280px;
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
}

.copy-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 20px 12px rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.copy-link svg {
  width: 1em;
  height: 1em;
}

.preview-column {
  min-width: 0;
  padding-top: 14px;
}

.phone-stage {
  position: relative;
  width: 293px;
  max-width: 100%;
  height: 675px;
  margin: 0;
}

.phone-frame {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  height: calc(100% - 40px);
  max-height: 635px;
  overflow: hidden;
  border-radius: 35px;
  background: rgba(0, 0, 0, 0.7);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.phone-notch {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 50%;
  width: 75px;
  height: 20px;
  border-radius: 40px;
  background: #000;
  transform: translateX(-50%);
}

.preview-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sticker-logo {
  position: absolute;
  z-index: 3;
  top: 108px;
  left: -115px;
  width: 176px;
  height: 176px;
  pointer-events: none;
}

.download-bar {
  position: fixed;
  z-index: 9999;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.9);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.download-button {
  display: flex;
  min-width: 0;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
}

.download-button.ios {
  color: #080808;
  background: #fff;
}

.download-button.android {
  color: #fff;
  background: linear-gradient(135deg, #2fbf71, #078345);
}

.download-icon {
  display: inline-flex;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.download-icon svg {
  width: 24px;
  height: 24px;
}

.download-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.download-copy small {
  overflow: hidden;
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: 44px;
    width: min(100% - 48px, 940px);
  }

  .phone-stage {
    margin: 0 auto;
  }

  .sticker-logo {
    left: -92px;
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 860px) {
  .page {
    min-height: 100svh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .site-header {
    position: relative;
    min-height: 64px;
    padding: 11px 16px;
  }

  .brand-logo {
    width: 102px;
    height: 36px;
  }

  .header-actions {
    gap: 8px;
  }

  .search-button {
    width: 38px;
  }

  .login-button {
    min-width: 82px;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero {
    display: flex;
    width: min(100% - 32px, 680px);
    min-height: auto;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding-top: 22px;
    padding-bottom: 30px;
  }

  .copy-column {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .app-switch {
    width: min(300px, 100%);
  }

  h1 {
    max-width: 560px;
    margin-top: 20px;
    font-size: 34px;
    line-height: 1.18;
    letter-spacing: 0.4px;
  }

  .subtitle {
    max-width: 520px;
    margin-top: 16px;
    font-size: 16px;
  }

  .qr-area {
    width: min(320px, 100%);
    margin-top: 32px;
  }

  .qr-card {
    padding: 20px;
  }

  .qr-image {
    width: min(240px, 100%);
  }

  .preview-column {
    width: 100%;
    padding-top: 0;
  }

  .phone-stage {
    width: min(220px, 64vw);
    height: auto;
    aspect-ratio: 293 / 675;
    margin: 0 auto;
  }

  .phone-frame {
    top: 14px;
    height: calc(100% - 28px);
    border-radius: 27px;
  }

  .phone-notch {
    top: 6px;
    width: 56px;
    height: 15px;
  }

  .sticker-logo {
    top: 76px;
    left: -58px;
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-inline: 12px;
  }

  .header-actions {
    gap: 2px;
  }

  .search-button {
    width: 34px;
  }

  .login-button {
    min-width: 76px;
    padding: 0 11px;
  }

  .hero {
    width: calc(100% - 24px);
    padding-top: 16px;
  }

  h1 {
    font-size: 30px;
  }

  .qr-area {
    width: min(300px, 100%);
  }

  .qr-card {
    padding: 16px;
  }

  .qr-image {
    width: min(218px, 100%);
  }

  .download-bar {
    gap: 8px;
    padding: 8px;
  }

  .download-button {
    min-height: 52px;
    gap: 6px;
    padding: 7px 8px;
  }

  .download-icon {
    width: 22px;
    height: 22px;
  }

  .download-icon svg {
    width: 21px;
    height: 21px;
  }

  .download-copy small {
    font-size: 9px;
  }

  .download-copy strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
