:root {
  --page-width: min(100vw, 390px);
  --content-width: min(calc(100vw - 48px), 342px);
  --card-width: min(calc(100vw - 80px), 310px);
  --primary: #474dc5;
  --bg: #f3f7fc;
  --text-main: #191c1e;
  --text-body: #616161;
  --card-bg: rgba(255, 255, 255, 0.7);
  --card-border: rgba(255, 255, 255, 0.4);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
}

button {
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}

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

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.88) 0, rgba(255, 255, 255, 0) 34%),
    var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.topbar__inner {
  width: var(--page-width);
  min-height: 80px;
  margin: 0 auto;
  padding: 23px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand__text {
  font-size: 14px;
  line-height: 23px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__icon {
  width: 17px;
  height: 17px;
}

.topbar__cta {
  width: 115px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 28px;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 100%);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.page {
  width: 100%;
  padding: 75px 0 calc(130px + env(safe-area-inset-bottom));
}

.hero {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-card {
  position: relative;
  width: 256px;
  height: 500px;
  padding: 18px;
  border: 6px solid #1e293b;
  border-radius: 48px;
  background: #0f172a;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.phone-card__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 35.2px;
  background:
    radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.12) 0, rgba(255, 255, 255, 0) 34%),
    #ffffff;
}

.phone-card__power-wrap {
  position: absolute;
  top: 92px;
  left: 46px;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(71, 77, 197, 0.2);
}

.phone-card__power-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2px solid rgba(71, 77, 197, 0.2);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: #ffffff;
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.phone-card__power-ring img {
  width: 40px;
  height: 40px;
}

.phone-card__status {
  position: absolute;
  top: 284px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  text-align: center;
}

.phone-card__status-title {
  margin: 0;
  color: var(--primary);
  font-size: 20px;
  line-height: 28px;
}

.phone-card__status-desc {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 20px;
}

.phone-card__speed {
  position: absolute;
  right: 24px;
  bottom: 48px;
  left: 24px;
}

.phone-card__speed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 16px;
  color: #64748b;
  font-size: 12px;
  line-height: 16px;
}

.phone-card__speed-row span:last-child {
  color: var(--primary);
}

.phone-card__speed-track {
  position: relative;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
}

.phone-card__speed-value {
  position: absolute;
  inset: 0 auto 0 0;
  width: 75%;
  background: var(--primary);
}

.phone-card__notch {
  position: absolute;
  top: 0;
  left: 50%;
  width: 128px;
  height: 24px;
  border-radius: 0 0 16px 16px;
  background: #1e293b;
  transform: translateX(-50%);
}

.hero__text {
  margin-top: 32px;
  text-align: center;
}

.hero__text h1 {
  margin: 0;
  font-size: clamp(38px, 12.3vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.96px;
  background: linear-gradient(180deg, #191c1e 0%, #464653 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero__text p {
  margin: 14px 0 0;
  color: var(--text-body);
  font-size: 18px;
  line-height: 29.25px;
}

.feature-group {
  width: var(--content-width);
  margin: 72px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-group--offset {
  margin-top: 47px;
}

.glass-card {
  padding: 33px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  background: var(--card-bg);
  box-shadow: 0 20px 40px rgba(124, 131, 253, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card--full {
  width: 100%;
}

.glass-card--left {
  width: var(--card-width);
  margin-right: auto;
}

.glass-card--right {
  width: var(--card-width);
  margin-left: auto;
}

.glass-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.glass-card__header h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 400;
  line-height: 28.8px;
}

.glass-card__icon {
  width: 36px;
  height: 32px;
}

.icon-browser,
.icon-comic {
  width: 38px;
  height: 35.8px;
}

.acceleration-demo {
  position: relative;
  display: grid;
  place-items: center;
  height: 128px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
  background: #f2f3f6;
}

.acceleration-demo__bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32.5px;
  opacity: 0.2;
}

.acceleration-demo__bars span {
  width: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.acceleration-demo p {
  position: relative;
  margin: 0;
  color: #464653;
  font-size: 12px;
  line-height: 12px;
  letter-spacing: 1.2px;
}

.browser-shot {
  position: relative;
  height: 128px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.browser-shot__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px);
  transform: scale(1.04);
}

.browser-shot__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 31.5px;
  transform: translate(-50%, -50%);
}

.media-card {
  position: relative;
  height: 128px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 8px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card__progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.media-card__progress span {
  display: block;
  width: 66.66%;
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(124, 131, 253, 0.8);
}

.comic-list {
  position: relative;
  height: 128px;
  margin-top: 16px;
}

.comic {
  position: absolute;
  bottom: 0;
  width: 80px;
  height: 112px;
  overflow: hidden;
  border-radius: 4px;
  background: #edeef1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.comic--left {
  left: 0;
  transform: rotate(-5deg) translateY(-4px);
}

.comic--center {
  left: 91px;
  transform: rotate(2deg);
}

.comic--center img {
  height: 154.8%;
  object-fit: fill;
  transform: translateY(-14.1%);
}

.comic--right {
  right: 0;
  transform: rotate(8deg);
}

.download-bar {
  position: fixed;
  right: 20px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 20px;
  z-index: 30;
  pointer-events: none;
}

.download-bar__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(calc(100vw - 40px), 342px);
  height: 55px;
  margin: 0 auto;
  border-radius: 999px;
  color: #f8f9fa;
  font-size: 18px;
  line-height: 28px;
  background: linear-gradient(90deg, #6366f1 0%, #22d3ee 100%);
  box-shadow:
    0 4px 8.8px rgba(65, 158, 239, 0.25),
    0 25px 50px -12px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}

.download-bar__button img {
  width: 16px;
  height: 16px;
}

@media (max-width: 360px) {
  .topbar__inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .glass-card {
    padding-right: 24px;
    padding-left: 24px;
  }

  .brand__text {
    font-size: 13px;
  }

  .topbar__cta {
    width: 104px;
  }
}
