@font-face {
  font-family: "HBN Lanting";
  src: url("./assets/fonts/FZLTZHJW.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "HBN Lanting";
  src: url("./assets/fonts/FZLTCHJW.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --ink: #101411;
  --black: #000000;
  --paper: #f8f3ef;
  --rose: #fee1de;
  --rose-deep: #d9958d;
  --brown: #4e2616;
  --brown-soft: #7b4b34;
  --amber: #f2a24a;
  --green: #8c9979;
  --green-deep: #31452c;
  --line: rgba(16, 20, 17, 0.14);
  --white-line: rgba(255, 255, 255, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "HBN Lanting", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(78, 38, 22, 0.26), rgba(140, 153, 121, 0.2)),
    #171311;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.stage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.phone {
  position: relative;
  width: min(100%, 430px);
  height: min(860px, calc(100svh - 36px));
  min-height: 720px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.topbar {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 10px;
  pointer-events: none;
}

.brand-logo {
  width: 74px;
  height: auto;
  filter: invert(1);
}

.brand-copy {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.2;
}

.brand-copy strong {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.phone.is-light .brand-logo {
  filter: none;
}

.phone.is-light .brand-copy {
  color: rgba(16, 20, 17, 0.58);
}

.phone.is-light .brand-copy strong {
  color: var(--ink);
}

.step-dots {
  position: absolute;
  z-index: 22;
  top: 76px;
  left: 22px;
  right: 22px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.dot {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.dot.is-active {
  background: var(--rose);
}

.phone.is-light .dot {
  background: rgba(78, 38, 22, 0.14);
}

.phone.is-light .dot.is-active {
  background: var(--brown);
}

.screens,
.screen {
  height: 100%;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 112px 22px 28px;
  scrollbar-width: none;
}

.screen::-webkit-scrollbar {
  display: none;
}

.screen.is-active {
  display: block;
  animation: fadeIn 220ms ease both;
}

.screen.intro,
.screen.micro,
.screen.poster {
  color: #fff;
  background:
    radial-gradient(circle at 78% 32%, rgba(242, 162, 74, 0.16), transparent 28%),
    linear-gradient(155deg, #030705 0%, #11120d 52%, #2f2119 100%);
}

.screen.scan,
.screen.routine {
  background:
    linear-gradient(180deg, rgba(254, 225, 222, 0.52), rgba(248, 243, 239, 0.94) 34%),
    var(--paper);
}

.screen.evidence {
  background:
    linear-gradient(180deg, rgba(140, 153, 121, 0.34), rgba(248, 243, 239, 0.96) 35%),
    var(--paper);
}

.lab-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(var(--white-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--white-line) 1px, transparent 1px);
  background-size: 44px 44px;
}

.intro-copy,
.section-title {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.intro .eyebrow,
.micro .eyebrow,
.poster .eyebrow {
  color: var(--rose);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 342px;
  font-size: 36px;
  line-height: 1.04;
  font-weight: 700;
}

h2 {
  max-width: 330px;
  font-size: 25px;
  line-height: 1.18;
  font-weight: 700;
}

.lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.5;
}

.hero-product {
  position: relative;
  z-index: 1;
  height: 354px;
  margin-top: 18px;
}

.hero-product img {
  position: absolute;
  bottom: 8px;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.42));
}

.product-water {
  left: 28px;
  width: 110px;
}

.product-lotion {
  right: 56px;
  width: 80px;
}

.amber-orbit {
  position: absolute;
  right: 8px;
  bottom: 46px;
  width: 214px;
  height: 214px;
  border: 1px solid rgba(242, 162, 74, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(242, 162, 74, 0.26) 0 3px, transparent 4px) 44% 12% / 40px 40px,
    radial-gradient(circle at 48% 48%, rgba(254, 225, 222, 0.16), transparent 58%);
  animation: slowSpin 14s linear infinite;
}

.intro-proof {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: -4px;
}

.intro-proof span {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid var(--white-line);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 4px;
  font-weight: 700;
}

.primary-action {
  color: #fff;
  background: var(--brown);
}

.intro .primary-action,
.micro .primary-action,
.poster .primary-action {
  color: var(--ink);
  background: var(--rose);
}

.primary-action.small {
  width: auto;
  min-width: 142px;
  margin-top: 0;
}

.secondary-action {
  width: auto;
  min-width: 122px;
  margin-top: 0;
  color: #fff;
  border: 1px solid var(--white-line);
  background: transparent;
}

.section-title {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.skin-scan {
  position: relative;
}

.skin-texture {
  position: relative;
  height: 308px;
  overflow: hidden;
  border: 1px solid rgba(78, 38, 22, 0.14);
  border-radius: 6px;
  background:
    radial-gradient(circle at 42% 28%, rgba(185, 102, 82, 0.18), transparent 10%),
    radial-gradient(circle at 64% 54%, rgba(96, 54, 41, 0.16), transparent 12%),
    radial-gradient(circle at 23% 64%, rgba(185, 102, 82, 0.13), transparent 12%),
    linear-gradient(135deg, #f8d8cf, #f3c3ba 45%, #eab0a5);
}

.spot {
  position: absolute;
  border-radius: 50%;
  background: rgba(103, 55, 39, 0.24);
  filter: blur(0.2px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.spot-a {
  left: 18%;
  top: 32%;
  width: 36px;
  height: 36px;
}

.spot-b {
  left: 62%;
  top: 24%;
  width: 24px;
  height: 24px;
}

.spot-c {
  left: 42%;
  top: 62%;
  width: 42px;
  height: 42px;
}

.spot-d {
  right: 14%;
  bottom: 20%;
  width: 28px;
  height: 28px;
}

.scan-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28%;
  width: 74px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.54), transparent),
    linear-gradient(90deg, transparent 0 45%, rgba(254, 225, 222, 0.9) 50%, transparent 55%);
  mix-blend-mode: screen;
}

.scan-readout {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(16, 20, 17, 0.76);
}

.scan-readout span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.66);
}

.scan-readout strong {
  font-size: 28px;
  transform: skewX(-14deg);
}

.range-row {
  margin-top: 18px;
}

.range-row input {
  width: 100%;
  accent-color: var(--brown);
}

.range-row span {
  display: block;
  min-height: 22px;
  margin-top: 8px;
  color: rgba(16, 20, 17, 0.66);
  font-size: 13px;
}

.finding-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.finding-strip span,
.formula-grid div {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  text-align: center;
}

.micro-stage {
  position: relative;
  height: 318px;
  overflow: hidden;
  border: 1px solid var(--white-line);
  background:
    radial-gradient(circle at 32% 48%, rgba(254, 225, 222, 0.16), transparent 18%),
    radial-gradient(circle at 68% 36%, rgba(140, 153, 121, 0.18), transparent 18%),
    rgba(255, 255, 255, 0.04);
}

.micro-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.micro-lens {
  position: absolute;
  left: calc(var(--lens-x, 50) * 1%);
  top: calc(var(--lens-y, 44) * 1%);
  width: 196px;
  height: 196px;
  border: 1px solid rgba(254, 225, 222, 0.88);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(242, 162, 74, 0.2), transparent 58%),
    rgba(254, 225, 222, 0.08);
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.14),
    0 0 32px rgba(242, 162, 74, 0.18);
}

.particle {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(242, 162, 74, 0.88);
  box-shadow: 0 0 18px rgba(242, 162, 74, 0.64);
}

.p1 {
  left: 36px;
  top: 54px;
}

.p2 {
  left: 98px;
  top: 34px;
  width: 15px;
  height: 15px;
}

.p3 {
  right: 38px;
  top: 92px;
  width: 24px;
  height: 24px;
}

.p4 {
  left: 72px;
  bottom: 36px;
  width: 12px;
  height: 12px;
}

.p5 {
  right: 76px;
  bottom: 58px;
}

.formula-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-top: 1px solid var(--white-line);
  color: rgba(255, 255, 255, 0.72);
}

.formula-note strong {
  color: var(--rose);
  font-size: 18px;
}

.formula-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.formula-grid div {
  color: rgba(255, 255, 255, 0.72);
  border-color: var(--white-line);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.formula-grid strong {
  color: #fff;
  font-size: 15px;
}

.evidence-wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.proof-card {
  min-height: 158px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(78, 38, 22, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.proof-card span {
  color: rgba(16, 20, 17, 0.56);
  font-size: 12px;
}

.proof-card strong {
  color: var(--brown);
  font-size: 30px;
  line-height: 1;
  transform: skewX(-14deg);
  transform-origin: left center;
}

.proof-card p {
  color: rgba(16, 20, 17, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.routine-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(78, 38, 22, 0.16);
  background:
    linear-gradient(135deg, rgba(254, 225, 222, 0.72), rgba(140, 153, 121, 0.22)),
    rgba(255, 255, 255, 0.5);
}

.routine-products {
  position: relative;
}

.routine-products img {
  position: absolute;
  bottom: 22px;
  max-height: 295px;
  opacity: 0.42;
  transform: scale(0.9);
  transition: 240ms ease;
  filter: drop-shadow(0 18px 22px rgba(78, 38, 22, 0.2));
}

.routine-water {
  left: 22px;
  width: 96px;
}

.routine-lotion {
  right: 12px;
  width: 70px;
}

.routine-products img.is-selected {
  opacity: 1;
  transform: scale(1);
}

.routine-copy {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px 18px 24px 6px;
}

.routine-copy span {
  color: var(--brown-soft);
  font-size: 12px;
}

.routine-copy strong {
  font-size: 26px;
}

.routine-copy p {
  color: rgba(16, 20, 17, 0.66);
  font-size: 14px;
  line-height: 1.7;
}

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

.segmented button {
  min-height: 44px;
  border: 1px solid rgba(78, 38, 22, 0.18);
  color: rgba(16, 20, 17, 0.72);
  background: rgba(255, 255, 255, 0.46);
}

.segmented button.is-active {
  color: #fff;
  background: var(--brown);
}

.poster-card {
  position: relative;
  overflow: hidden;
  min-height: 562px;
  padding: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 42%, rgba(242, 162, 74, 0.28), transparent 26%),
    linear-gradient(155deg, var(--rose) 0 43%, #fff7f4 43% 100%);
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(78, 38, 22, 0.2);
  pointer-events: none;
}

.poster-logo-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 11px;
  color: rgba(16, 20, 17, 0.58);
}

.poster-logo {
  width: 86px;
  filter: none;
}

.poster-theme {
  position: relative;
  z-index: 1;
  margin-top: 52px;
  color: var(--brown);
  font-size: 13px;
}

.poster-card h2 {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 33px;
  line-height: 1.08;
}

.poster-card h2 + p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: rgba(16, 20, 17, 0.64);
  font-size: 14px;
}

.poster-products {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  height: 252px;
}

.poster-products img {
  position: absolute;
  bottom: 0;
  filter: drop-shadow(0 18px 24px rgba(78, 38, 22, 0.22));
}

.poster-products img:first-child {
  left: 28px;
  width: 94px;
}

.poster-products img:last-child {
  right: 76px;
  width: 68px;
}

.poster-stamp {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 186px;
  width: 138px;
  min-height: 138px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(78, 38, 22, 0.3);
  border-radius: 50%;
  color: var(--brown);
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
}

.poster-stamp strong {
  font-size: 28px;
  line-height: 1;
  transform: skewX(-14deg);
}

.poster-stamp span {
  font-size: 11px;
  line-height: 1.35;
}

.poster-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.poster.is-sealed .poster-card {
  box-shadow: inset 0 0 0 4px rgba(242, 162, 74, 0.42);
}

.poster.is-sealed #sealPoster {
  background: var(--green);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  .stage {
    display: block;
    padding: 0;
  }

  .phone {
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-height: 760px) {
  .screen {
    padding-top: 100px;
  }

  .hero-product {
    height: 308px;
  }

  .product-water {
    width: 112px;
  }

  .product-lotion {
    width: 82px;
  }

  .skin-texture,
  .micro-stage {
    height: 254px;
  }

  .poster-card {
    min-height: 500px;
  }
}
