:root {
  --pink: #f85aa9;
  --pink-2: #ffb3d9;
  --pink-3: #fff2fa;
  --violet: #b684ff;
  --mint: #80efb0;
  --sky: #83def6;
  --yellow: #ffe45b;
  --ink: #25212a;
  --muted: #8e8794;
  --line: rgba(248, 90, 169, 0.18);
  --card: rgba(255, 255, 255, 0.88);
  --shadow: 0 18px 45px rgba(248, 90, 169, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(248, 90, 169, 0.2), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(128, 239, 176, 0.16), transparent 24%),
    linear-gradient(135deg, #fff8fd, #f7fbff);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.stage {
  width: min(1120px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px;
  display: grid;
  grid-template-columns: 390px minmax(280px, 1fr);
  gap: 42px;
  align-items: center;
}

.phone {
  width: 390px;
  height: 812px;
  padding: 10px;
  border-radius: 48px;
  background: #1d1d21;
  box-shadow: 0 30px 80px rgba(32, 21, 39, 0.25);
}

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  background: var(--pink-3);
}

.status-bar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 36px 0;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
}

.dynamic-island {
  width: 122px;
  height: 32px;
  border-radius: 999px;
  background: #050505;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.app-shell {
  position: absolute;
  inset: 0;
}

.page {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 72px 18px 100px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 180, 218, 0.98), rgba(255, 245, 251, 0.88) 42%, rgba(255, 255, 255, 0.92) 100%);
}

.page.no-bottom {
  padding-bottom: 28px;
}

.mini-capsule {
  position: absolute;
  top: 70px;
  right: 18px;
  z-index: 20;
  width: 74px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-radius: 999px;
  color: #fff;
  background: rgba(151, 97, 130, 0.34);
  backdrop-filter: blur(14px);
  font-weight: 800;
}

.top-title {
  position: sticky;
  top: -72px;
  z-index: 10;
  height: 42px;
  margin: -4px -4px 16px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  text-align: center;
  font-weight: 800;
}

.back-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 26px;
}

.hero {
  position: relative;
  min-height: 286px;
  margin: -72px -18px 18px;
  padding: 88px 18px 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.96), transparent 20%),
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.72), transparent 16%),
    linear-gradient(160deg, #ff82bd, #ffe2f1 62%, #fff6fb);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 230px;
  height: 230px;
  right: -26px;
  top: 56px;
  background:
    radial-gradient(circle at 50% 38%, #ffe5ef 0 16%, transparent 17%),
    radial-gradient(ellipse at 48% 54%, #ffd2d8 0 22%, transparent 23%),
    radial-gradient(ellipse at 42% 45%, #f7c4af 0 38%, transparent 39%);
  filter: saturate(1.1);
  opacity: 0.92;
}

.hero::after {
  width: 170px;
  height: 220px;
  right: 54px;
  top: 78px;
  transform: rotate(-9deg);
  background:
    linear-gradient(100deg, transparent 0 28%, rgba(253, 185, 177, 0.8) 30% 36%, transparent 38%),
    radial-gradient(ellipse at 56% 24%, #f3cfba 0 38%, transparent 39%),
    linear-gradient(#ffdfd7, #ffd6cd);
  clip-path: ellipse(40% 48% at 55% 35%);
  opacity: 0.95;
}

.membership-pill {
  position: relative;
  z-index: 4;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  color: #5f5061;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 16px rgba(255, 105, 176, 0.18);
}

.hero-title {
  position: relative;
  z-index: 3;
  margin: 156px 0 0;
  font-size: 48px;
  line-height: 0.92;
  color: rgba(255, 131, 189, 0.42);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.86);
  letter-spacing: 0;
}

.feature-grid {
  position: relative;
  z-index: 6;
  display: grid;
  gap: 12px;
}

.feature-grid.primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: -22px;
}

.feature-grid.secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  min-height: 122px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 8px;
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(248, 90, 169, 0.08);
}

.feature-card.small {
  min-height: 98px;
}

.feature-card strong {
  font-size: 15px;
  white-space: nowrap;
}

.badge {
  position: absolute;
  top: -10px;
  right: 10px;
  min-width: 44px;
  height: 22px;
  padding: 0 8px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.badge.purple {
  background: var(--violet);
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: #332a36;
  background: var(--pink-2);
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.4);
  font-weight: 900;
}

.icon.dark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #3c3b40, #17161a);
}

.icon.green {
  background: #b9ff9e;
}

.icon.yellow {
  background: var(--yellow);
}

.icon.blue {
  background: var(--sky);
}

.icon.violet {
  background: #dec2ff;
}

.section-head {
  margin: 28px 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.link-button {
  color: #9a929f;
  background: transparent;
  font-weight: 700;
}

.tutorial-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tutorial-mini {
  height: 126px;
  border-radius: 12px;
  padding: 14px 10px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.88), transparent 16%),
    linear-gradient(145deg, #ffaad0, #ffddeb);
  color: #fff;
  overflow: hidden;
  text-align: left;
}

.tutorial-mini span {
  display: block;
  margin-top: 24px;
  color: #ff4f9c;
  font-size: 15px;
  font-weight: 900;
}

.bottom-nav {
  position: absolute;
  z-index: 40;
  left: 42px;
  right: 42px;
  bottom: 0;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 30px rgba(104, 68, 91, 0.16);
}

.nav-button {
  height: 54px;
  display: grid;
  place-items: center;
  background: transparent;
  color: #232027;
  font-size: 25px;
}

.nav-button.active {
  color: var(--pink);
}

.upload-box,
.prompt-box,
.option-row,
.cost-bar,
.profile-card,
.login-card,
.feed-card {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(248, 90, 169, 0.08);
}

.form-label {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 800;
}

.upload-box {
  min-height: 126px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #aaa1ad;
  padding: 18px;
}

.upload-box strong {
  display: block;
  margin-bottom: 6px;
  color: #2d2531;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  height: 46px;
  margin-bottom: -1px;
}

.segmented button {
  background: rgba(255, 255, 255, 0.62);
  color: #9d94a2;
  font-weight: 800;
}

.segmented button.active {
  color: var(--ink);
  background: #fff;
  border-radius: 10px 10px 0 0;
}

.prompt-box {
  min-height: 190px;
  border-radius: 0 0 12px 12px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #aaa1ad;
}

.prompt-box textarea {
  width: 100%;
  min-height: 148px;
  resize: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.counter {
  justify-self: end;
  color: #b9b1bd;
  font-size: 12px;
}

.option-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.option-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.choice {
  min-height: 58px;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.choice.active {
  color: var(--pink);
  outline: 1.5px solid var(--pink);
}

.choice small {
  display: block;
  margin-top: 5px;
  color: #b7aeb9;
  font-size: 11px;
}

.cost-bar {
  position: sticky;
  bottom: 0;
  z-index: 14;
  margin: 22px -18px -100px;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 20px;
  border-radius: 18px 18px 0 0;
}

.cost {
  color: var(--pink);
  font-weight: 900;
  font-size: 19px;
}

.generate {
  min-width: 148px;
  height: 52px;
  border-radius: 12px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.generate[disabled] {
  opacity: 0.88;
}

.notice {
  margin: 14px 0;
  color: #a8a0ac;
  font-size: 12px;
}

.tutorial-page .tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.tab {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.tab.active {
  color: var(--pink);
  outline: 1px solid rgba(248, 90, 169, 0.45);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 12px;
}

.tutorial-card button {
  width: 100%;
  height: 168px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.96), transparent 16%),
    linear-gradient(145deg, #ffacd2, #ffe3ed);
  color: #ff5eaa;
  font-size: 22px;
  font-weight: 900;
  text-align: left;
  padding: 18px;
}

.tutorial-card strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.tutorial-detail {
  min-height: 100%;
  color: #fff;
  background: linear-gradient(160deg, #100d13, #2d1025 48%, #08080a);
}

.tutorial-player {
  height: 690px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
}

.video-art {
  flex: 1;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 54% 34%, rgba(255, 97, 173, 0.58), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-align: center;
}

.progress {
  height: 42px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  color: #d9cbd6;
  font-size: 12px;
}

.bar {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) 0 20%, rgba(255, 255, 255, 0.28) 20%);
}

.feed-page {
  padding-left: 0;
  padding-right: 0;
  background: #fff;
}

.feed-card {
  min-height: 690px;
  margin: -18px 0 0;
  padding: 76px 26px 26px;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.75)),
    radial-gradient(circle at 70% 48%, rgba(38, 114, 82, 0.28), transparent 30%);
}

.feed-card h2 {
  margin: 0 0 20px;
  color: #22785b;
  font-size: 46px;
  line-height: 1.22;
  letter-spacing: 0;
}

.feed-card h3 {
  margin: 0 0 44px;
  font-size: 26px;
  line-height: 1.32;
  font-weight: 800;
}

.feed-person {
  width: 210px;
  height: 280px;
  margin: 0 auto 28px;
  border-radius: 120px 120px 18px 18px;
  background:
    radial-gradient(ellipse at 50% 18%, #f7d9c9 0 28%, transparent 29%),
    linear-gradient(180deg, transparent 0 31%, #147856 32% 100%);
  box-shadow: 0 18px 42px rgba(30, 85, 65, 0.22);
}

.feed-hook {
  margin-top: 42px;
  font-size: 19px;
  font-weight: 900;
}

.profile-page {
  background: linear-gradient(180deg, #ffe3f2 0 24%, #fff 52%);
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 8px 0 18px;
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 48% 36%, #ffd1c2 0 28%, transparent 29%),
    linear-gradient(145deg, #fc8bbd, #bb6cff);
}

.profile-card {
  border-radius: 10px;
  padding: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ff5fb2, #ff9dcb);
}

.profile-card button {
  float: right;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  color: #d03d8f;
  background: #ffe6f3;
  font-weight: 900;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
  text-align: center;
  font-weight: 800;
}

.invite {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
  padding: 12px;
  border-radius: 10px;
  background: #fff0f8;
  color: var(--ink);
}

.invite strong {
  display: block;
  color: #f03f9b;
}

.login-button {
  width: 100%;
  height: 54px;
  margin-top: 20px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 900;
}

.login-hero {
  min-height: 330px;
  margin: -72px -18px 24px;
  padding: 120px 28px 28px;
  background:
    radial-gradient(circle at 55% 34%, rgba(255, 255, 255, 0.98), transparent 28%),
    linear-gradient(145deg, #ff9cc9, #fff0f8);
  display: flex;
  align-items: flex-end;
}

.login-card {
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.black-button {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border-radius: 9px;
  background: #17161a;
  color: #fff;
  font-weight: 900;
}

.agreement {
  margin-top: 14px;
  color: #9c939f;
  font-size: 12px;
}

.notes {
  max-width: 560px;
}

.notes .eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-weight: 900;
  text-transform: uppercase;
}

.notes h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 0.98;
  letter-spacing: 0;
}

.notes p {
  color: #5d5562;
  line-height: 1.8;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.note-grid div {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(92, 54, 79, 0.08);
}

.note-grid strong,
.note-grid span {
  display: block;
}

.note-grid span {
  margin-top: 8px;
  color: #6d6470;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .stage {
    min-height: auto;
    padding: 20px 12px 32px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .phone {
    width: min(390px, 100vw - 24px);
    height: min(812px, calc((100vw - 24px) * 2.08));
  }

  .notes {
    order: -1;
    padding: 0 4px;
  }

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