:root {
  --page-bg: #faf8ff;
  --text-main: #191c1d;
  --text-sub: #595c5e;
  --purple-strong: #3525cd;
  --purple-light: #831ada;
  --purple-mid: #4f46e5;
  --nav-line: #f1f5f9;
  --card-border: rgba(255, 255, 255, 0.4);
  --card-bg: rgba(255, 255, 255, 0.72);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--page-bg);
}

body {
  overflow-x: hidden;
  color: var(--text-main);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button {
  font: inherit;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  min-height: calc(var(--app-height, 1vh) * 100);
  background:
    radial-gradient(circle at left 18% top 22%, rgba(199, 210, 254, 0.35) 0, rgba(199, 210, 254, 0.05) 26%, rgba(199, 210, 254, 0) 45%),
    radial-gradient(circle at right 12% top 42%, rgba(131, 26, 218, 0.18) 0, rgba(131, 26, 218, 0.05) 24%, rgba(131, 26, 218, 0) 46%),
    var(--page-bg);
}

.hero-page {
  width: 100%;
  min-height: 100vh;
  min-height: calc(var(--app-height, 1vh) * 100);
}

.hero-screen {
  position: relative;
  /* width: min(100%, 360px); */
  min-height: 891px;
  margin: 0 auto;
  padding-bottom: calc(140px + var(--safe-bottom));
  background: transparent;
}

.bg-blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  pointer-events: none;
}

.bg-blur-left {
  top: -55px;
  left: -39px;
  width: 195px;
  height: 554px;
  background: rgba(199, 210, 254, 0.2);
}

.bg-blur-right {
  top: 166px;
  right: -39px;
  width: 156px;
  height: 443px;
  background: rgba(131, 26, 218, 0.1);
}

.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 11px 23px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--nav-line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-text {
  font-size: 14px;
  line-height: 23px;
  letter-spacing: 1px;
  color: var(--purple-mid);
  white-space: nowrap;
}

.brand-icon {
  width: 17px;
  height: 17px;
}

.icon-brand-thumb {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.top-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 115px;
  height: 34px;
  border-radius: 999px;
  background: var(--purple-mid);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.headline-block {
  position: absolute;
  top: 82px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 336px;
  padding: 0 16px 24px;
  transform: translateX(-50%);
}

.headline-tag {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 1.65px;
  color: var(--purple-strong);
}

.headline-title {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 194px;
  margin: 0;
  font-size: 45px;
  font-weight: 400;
  line-height: 57.6px;
  text-align: center;
}

.headline-title span,
.headline-desc span {
  display: block;
}

.headline-desc {
  width: 304px;
  margin: 0;
  font-size: 14px;
  line-height: 18px;
  letter-spacing: 2px;
  text-align: center;
  color: var(--text-sub);
}

.visual-anchor {
  position: absolute;
  top: 335px;
  left: 50%;
  width: 277px;
  height: 346px;
  transform: translateX(-50%);
}

.glass-card {
  position: absolute;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -2px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  line-height: 13.5px;
  color: #131b2e;
}

.card-head > img {
  flex: none;
}

.card-icon {
  display: block;
  object-fit: contain;
}

.icon-engine {
  width: 11.65px;
  height: 9.33px;
}

.icon-global {
  width: 13.22px;
  height: 11.82px;
}

.card-accelerator {
  top: 8px;
  left: -40px;
  width: 128px;
  padding: 9px;
}

.network-panel {
  width: 110px;
  height: 50px;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #f8fafc;
}

.network-image {
  width: 110px;
  height: 50px;
  object-fit: cover;
  object-position: center;
  opacity: 0.36;
}

.phone-mockup {
  position: absolute;
  top: -5px;
  left: 47px;
  width: 182px;
  height: 363px;
}

.phone-body {
  position: relative;
  width: 176px;
  height: 360px;
  margin: 0 auto;
  padding: 8px;
  border-radius: 40px;
  background: #0f172a;
  box-shadow:
    0 0 0 2px #1e293b,
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: rotate(-1deg);
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 28.8px;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.phone-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.95;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 80px;
  height: 20px;
  border-radius: 0 0 12px 12px;
  background: #0f172a;
  transform: translateX(-50%);
}

.card-privacy {
  top: 24px;
  right: -48px;
  width: 144px;
  height: 75px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.7);
}

.card-privacy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at right 70% bottom 18%, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0) 48%);
  opacity: 0.9;
  pointer-events: none;
}

.card-privacy > * {
  position: relative;
  z-index: 1;
}

.browser-dots {
  display: flex;
  gap: 2px;
  height: 6px;
}

.browser-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.browser-dots span:nth-child(1) {
  background: #f87171;
}

.browser-dots span:nth-child(2) {
  background: #fbbf24;
}

.browser-dots span:nth-child(3) {
  background: #34d399;
}

.browser-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  opacity: 0.3;
}

.browser-lines span {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: #e2e8f0;
}

.browser-lines span:first-child {
  width: 126px;
}

.browser-lines span:last-child {
  width: 94.5px;
}

.privacy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 4px;
  min-height: 17.33px;
  font-size: 8px;
  line-height: 12px;
  color: #131b2e;
}

.privacy-row span {
  display: block;
  width: 48px;
  line-height: 12px;
  white-space: nowrap;
}

.privacy-row > img {
  display: block;
  object-fit: contain;
}

.icon-privacy-lock {
  width: 10.67px;
  height: 13.33px;
}

.card-player {
  bottom: 32px;
  left: -40px;
  width: 160px;
  height: 118px;
  padding: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
}

.video-cover {
  position: relative;
  width: 158px;
  height: 80px;
  margin: 0;
  background: #0f172a;
}

.video-cover-image {
  width: 158px;
  height: 80px;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0.6;
}

.play-button {
  position: absolute;
  top: 24px;
  left: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.play-button > img {
  display: block;
  object-fit: contain;
}

.icon-play-triangle {
  width: 8.25px;
  height: 10.5px;
}

.player-info {
  width: 158px;
  height: 36px;
  padding: 8px;
}

.player-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 9px;
  line-height: 13.5px;
}

.player-text span:first-child {
  flex: 0 0 60px;
  color: #334155;
  white-space: nowrap;
}

.player-text span:last-child {
  flex: 0 0 32px;
  font-size: 8px;
  line-height: 12px;
  color: #6366f1;
  text-align: left;
  white-space: nowrap;
}

.player-progress {
  width: 142px;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.player-progress i {
  display: block;
  width: 33.33%;
  height: 100%;
  background: #6366f1;
}

.card-global {
  right: -42px;
  bottom: 6px;
  width: 128px;
  padding: 9px;
  transform: rotate(2deg);
}

.comic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.comic-frame {
  width: 52px;
  height: 78px;
  overflow: hidden;
  border-radius: 4px;
  background: #e0e7ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.comic-frame-right {
  background: #f3e8ff;
}

.comic-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.comic-image-left {
  object-position: center top;
}

.comic-image-right {
  object-position: center 18%;
}

.cta-wrap {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 12px calc(83px + var(--safe-bottom));
  pointer-events: none;
}

.cta-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(289px, calc(100vw - 48px));
  height: 52px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple-strong) 0%, var(--purple-light) 100%);
  box-shadow:
    0 10px 15px -3px rgba(53, 37, 205, 0.2),
    0 4px 6px -4px rgba(53, 37, 205, 0.2);
  font-size: 16px;
  line-height: 24px;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.top-action:hover,
.cta-button:hover,
.play-button:hover {
  opacity: 0.96;
}

.top-action:active,
.cta-button:active,
.play-button:active {
  transform: translateY(1px) scale(0.995);
}

.top-action:focus-visible,
.cta-button:focus-visible,
.play-button:focus-visible {
  outline: 2px solid rgba(79, 70, 229, 0.35);
  outline-offset: 2px;
}

@media (max-width: 359px) {
  .hero-screen {
    width: 100%;
  }

  .headline-block {
    width: calc(100% - 24px);
  }

  .headline-title {
    width: auto;
    font-size: 40px;
    line-height: 1.22;
  }

  .headline-desc {
    width: 100%;
    letter-spacing: 1px;
  }
}
