:root {
  --bg: #1b1b1b;
  --text: #ffffff;
  --muted: #c7c7c7;
  --brand: #8b5cf6;
  --brand-hover: #9d76f8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 52%, rgba(139, 92, 246, 0.08), transparent 26%),
    var(--bg);
}

.site-header,
.hero-content {
  width: min(73vw, 1120px);
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 2;
  height: 16vh;
  min-height: 86px;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(18px, 2.2vh, 28px);
}

.site-logo {
  display: block;
  width: clamp(58px, 4.5vw, 72px);
  height: auto;
}

.hero-content {
  display: grid;
  grid-template-columns: 54% 46%;
  height: calc(84vh - 56px);
  min-height: 470px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: 0 3vw 7vh 6vw;
}

.eyebrow,
h1 {
  margin: 0;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.65vw, 28px);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(22px, 1.75vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.description {
  max-width: 430px;
  margin: clamp(30px, 5vh, 54px) 0 0;
  color: var(--muted);
  font-size: clamp(13px, 0.86vw, 15px);
  line-height: 2;
  text-align: justify;
}

.download-button {
  width: min(240px, 75%);
  height: 54px;
  margin-top: clamp(35px, 5.5vh, 58px);
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.download-button:hover {
  background: var(--brand-hover);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.24);
  transform: translateY(-2px);
}

.download-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
}

.phone-glow {
  position: absolute;
  top: 23%;
  left: 50%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.13);
  filter: blur(70px);
  transform: translateX(-50%);
}

.phone-image {
  position: relative;
  display: block;
  width: auto;
  height: min(78vh, 830px);
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.35));
}

.site-footer {
  position: fixed;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 110px;
  background: #000000;
}

.site-footer img {
  display: block;
  width: auto;
  height: 48px;
}

.toast {
  position: fixed;
  z-index: 10;
  bottom: 34px;
  left: 50%;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  background: rgba(45, 45, 45, 0.96);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 100svh;
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 72%, rgba(139, 92, 246, 0.12), transparent 28%),
      var(--bg);
  }

  .site-header,
  .hero-content {
    width: 100%;
  }

  .site-header {
    height: auto;
    min-height: 0;
    padding: 24px 24px 0;
  }

  .site-logo {
    width: 62px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    align-self: auto;
    padding: 64px 24px 46px;
    text-align: center;
  }

  .eyebrow {
    font-size: 24px;
  }

  h1 {
    font-size: 24px;
  }

  .description {
    max-width: 520px;
    margin: 28px auto 0;
    font-size: 14px;
    line-height: 1.9;
    text-align: left;
  }

  .download-button {
    width: min(100%, 320px);
    height: 52px;
    margin-top: 34px;
  }

  .phone-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 10px 14px 150px;
    justify-content: center;
  }

  .phone-image {
    width: min(100%, 520px);
    height: auto;
  }

}

@media (max-height: 680px) and (min-width: 768px) {
  .site-header {
    height: 13vh;
  }

  .hero-content {
    height: calc(87vh - 48px);
  }

  .hero-copy {
    padding-bottom: 2vh;
  }

  .description {
    margin-top: 24px;
  }

  .download-button {
    height: 46px;
    margin-top: 26px;
  }

  .phone-image {
    height: 84vh;
  }
}

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