:root {
  --bg: #fffafd;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-solid: #ffffff;
  --rose: #ff6fa8;
  --rose-strong: #e94386;
  --rose-soft: #ffe5ef;
  --rose-line: rgba(255, 255, 255, 0.9);
  --ink: #251f27;
  --muted: #756b75;
  --sage: #7aa89b;
  --gold: #c89554;
  --shadow: 0 24px 70px rgba(151, 58, 102, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(105deg, transparent 0 16%, rgba(255, 111, 168, 0.14) 21%, transparent 28% 50%, rgba(255, 213, 229, 0.58) 58%, transparent 68%),
    linear-gradient(130deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 249, 0.74) 42%, rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(112deg, rgba(255, 111, 168, 0.08) 0 1px, transparent 1px 58px);
  background-size: 190% 190%, 100% 100%, 180px 180px;
  animation: waterDrift 18s ease-in-out infinite alternate;
}

body::after {
  z-index: -1;
  opacity: 0.72;
  background:
    linear-gradient(78deg, transparent 0 20%, rgba(255, 255, 255, 0.84) 28%, transparent 36%),
    linear-gradient(286deg, transparent 0 52%, rgba(255, 182, 210, 0.22) 60%, transparent 74%);
  background-size: 170% 170%;
  filter: blur(12px);
  animation: waterDriftSoft 24s ease-in-out infinite alternate;
}

@keyframes waterDrift {
  from {
    background-position: 0% 18%, center, 0 0;
  }
  to {
    background-position: 86% 72%, center, 64px 32px;
  }
}

@keyframes waterDriftSoft {
  from {
    background-position: 82% 20%, 0% 50%;
  }
  to {
    background-position: 10% 80%, 84% 20%;
  }
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 68px;
  line-height: 1.06;
}

h2 {
  margin-bottom: 18px;
  font-size: 44px;
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 14px 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.metric-row,
.panel-top,
.mini-slots,
.footer,
.marquee {
  display: flex;
  align-items: center;
}

.brand {
  width: max-content;
}

.brand-logo {
  width: 142px;
  height: 48px;
  object-fit: contain;
}

.nav {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover,
.header-action:hover {
  color: var(--rose-strong);
}

.header-action {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(151, 58, 102, 0.08);
  font-size: 14px;
  font-weight: 800;
}

.menu-button {
  display: none;
  justify-self: end;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rose-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
}

.menu-button span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: 72px;
  min-height: calc(100vh - 76px);
  padding: 88px 72px 52px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-lede,
.section-copy,
.section-heading p,
.statement p,
.app-copy p,
.safety-list p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-lede,
.section-copy,
.app-copy p {
  max-width: 660px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}

.primary-button,
.secondary-button,
.final-cta a,
.phone-screen button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.primary-button,
.final-cta a,
.phone-screen button {
  padding: 0 24px;
  border: 0;
  background: var(--rose-strong);
  color: white;
  box-shadow: 0 16px 34px rgba(233, 67, 134, 0.26);
}

.secondary-button {
  padding: 0 22px;
  border: 1px solid var(--rose-line);
  background: rgba(255, 255, 255, 0.76);
}

.metric-row {
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  isolation: isolate;
}

.metric-row div {
  position: relative;
  width: 176px;
  height: 108px;
  padding: 18px 18px 16px;
  display: grid;
  align-content: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(151, 58, 102, 0.08);
  backdrop-filter: blur(12px);
  cursor: default;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform 360ms cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 360ms ease,
    background-color 360ms ease,
    border-color 360ms ease;
}

.metric-row div::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(112deg, transparent 0 38%, rgba(255, 255, 255, 0.72) 48%, transparent 60%);
  opacity: 0;
  transform: translateX(-120%);
  transition:
    opacity 260ms ease,
    transform 680ms cubic-bezier(0.2, 0.85, 0.2, 1);
  content: "";
}

.metric-row div:hover {
  z-index: 2;
  border-color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(151, 58, 102, 0.18);
  transform: translateY(-6px) scale(1.08);
}

.metric-row div:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.metric-row strong,
.metric-row span {
  position: relative;
  z-index: 1;
  display: block;
  transition:
    color 280ms ease,
    transform 320ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.metric-row strong {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
}

.metric-row div:hover strong {
  color: var(--rose-strong);
  transform: translateY(-2px);
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
}

.metric-row div:hover span {
  transform: translateY(2px);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual img {
  width: 100%;
  height: 650px;
  min-height: 500px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.assistant-panel {
  position: absolute;
  right: 42px;
  bottom: 30px;
  width: min(360px, 82%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 60px rgba(40, 20, 30, 0.18);
  backdrop-filter: blur(18px);
}

.panel-top {
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 900;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(122, 168, 155, 0.15);
}

.chat-line {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.is-customer {
  background: var(--rose-soft);
}

.is-ai {
  background: #f7f4f6;
}

.mini-slots {
  gap: 8px;
  margin-top: 12px;
}

.mini-slots span {
  flex: 1;
  padding: 8px 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 12px;
}

.statement,
.section,
.dashboard-preview,
.app-section,
.safety-section,
.final-cta {
  padding: 96px 72px;
}

.statement-inner {
  max-width: 960px;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(16px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.bento-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  min-height: 230px;
  padding: 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: var(--paper);
  backdrop-filter: blur(14px);
}

.feature-card.wide {
  grid-column: span 2;
}

.feature-card.tall {
  grid-row: span 2;
}

.feature-card.dark {
  background: var(--ink);
  color: white;
}

.feature-card.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.icon {
  display: block;
  width: max-content;
  height: auto;
  margin: 0 0 26px;
  color: var(--rose-strong);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.feature-card.dark .icon {
  color: #ffdbe9;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  gap: 44px;
  align-items: start;
}

.scene-list {
  display: grid;
  gap: 12px;
}

.scene-item {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.scene-item span,
.scene-item strong {
  display: block;
}

.scene-item span {
  margin-bottom: 8px;
  color: var(--rose-strong);
  font-weight: 900;
}

.scene-item strong {
  font-size: 18px;
  line-height: 1.5;
}

.scene-item.is-active {
  border-color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 229, 239, 0.82);
}

.dashboard-preview {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  padding-top: 0;
}

.preview-sidebar,
.preview-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.pill {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-strong);
  font-size: 12px;
  font-weight: 900;
}

.pill.hot {
  background: var(--ink);
  color: white;
}

.preview-sidebar strong {
  display: block;
  margin-bottom: 14px;
  font-size: 23px;
  line-height: 1.35;
}

.preview-sidebar p {
  color: var(--muted);
  line-height: 1.7;
}

.preview-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
}

.preview-card span,
.preview-card strong {
  display: block;
}

.preview-card span {
  color: var(--muted);
  font-size: 14px;
}

.preview-card strong {
  margin-top: 16px;
  font-size: 34px;
  line-height: 1.2;
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 96px;
  margin-top: 24px;
}

.bar-chart i {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--rose), var(--gold));
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 54px;
  align-items: center;
}

.phone-theater {
  position: relative;
  min-height: 560px;
}

.phone-shell {
  position: absolute;
  width: 260px;
  height: 500px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.phone-shell.front {
  right: 80px;
  top: 18px;
}

.phone-shell.back {
  left: 44px;
  top: 72px;
  opacity: 0.74;
}

.phone-screen {
  height: 100%;
  padding: 28px 18px;
  border-radius: 26px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 229, 239, 0.7)),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 111, 168, 0.18) 50%, transparent 60%);
}

.phone-screen strong {
  display: block;
  margin: 8px 0 18px;
  font-size: 24px;
  line-height: 1.24;
}

.phone-screen p {
  color: var(--muted);
}

.prompt-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  line-height: 1.55;
}

.phone-screen button {
  width: 100%;
  margin-top: 18px;
  font: inherit;
}

.line {
  height: 12px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(233, 67, 134, 0.18);
}

.line.short {
  width: 62%;
}

.floating-note {
  position: absolute;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 34px rgba(151, 58, 102, 0.12);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.note-a {
  right: 20px;
  top: 92px;
}

.note-b {
  left: 22px;
  bottom: 112px;
}

.note-c {
  right: 38px;
  bottom: 58px;
}

.motion-strip {
  position: relative;
  overflow: hidden;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.74);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 231, 241, 0.58), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(112deg, rgba(233, 67, 134, 0.08) 0 1px, transparent 1px 44px);
}

.motion-strip::before,
.motion-strip::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 160px;
  pointer-events: none;
  content: "";
}

.motion-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), rgba(255, 250, 253, 0));
}

.motion-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), rgba(255, 250, 253, 0));
}

.marquee {
  width: max-content;
  gap: 14px;
  padding-left: 14px;
  animation: marquee 34s linear infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

.marquee-item {
  position: relative;
  display: inline-flex;
  min-width: 178px;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 42px rgba(151, 58, 102, 0.1);
  color: var(--ink);
  font-weight: 800;
  backdrop-filter: blur(16px);
}

.marquee-item::before {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-strong);
  content: "✦";
}

.marquee-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.72) 44%, transparent 56%);
  opacity: 0.52;
  transform: translateX(-130%);
  animation: sheen 5.8s ease-in-out infinite;
  content: "";
}

.marquee-item b {
  display: block;
  margin-bottom: 3px;
  color: var(--rose-strong);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.marquee-item:nth-child(2n) {
  transform: translateY(8px);
}

.marquee-item:nth-child(3n) {
  min-width: 198px;
  background: rgba(255, 245, 249, 0.82);
}

.marquee-item.growth::before {
  background: rgba(200, 149, 84, 0.16);
  color: var(--gold);
  content: "◆";
}

.marquee-item.training::before {
  background: rgba(122, 168, 155, 0.16);
  color: var(--sage);
  content: "◐";
}

.marquee-item.knowledge::before {
  content: "◇";
}

.marquee-item.safety::before {
  background: var(--ink);
  color: white;
  content: "✓";
}

@keyframes sheen {
  0%,
  58% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.safety-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: center;
}

.safety-visual {
  position: relative;
  min-height: 420px;
  border: none;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 229, 239, 0.56)),
    repeating-linear-gradient(120deg, rgba(233, 67, 134, 0.08) 0 1px, transparent 1px 42px);
  box-shadow: var(--shadow);
}

.shield-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 160px;
  height: 190px;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 80px 80px 44px 44px;
  background: rgba(255, 255, 255, 0.62);
}

.safety-visual span {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  background: white;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.safety-visual span:nth-child(2) {
  left: 16%;
  top: 20%;
}

.safety-visual span:nth-child(3) {
  right: 14%;
  top: 28%;
}

.safety-visual span:nth-child(4) {
  left: 20%;
  bottom: 20%;
}

.safety-visual span:nth-child(5) {
  right: 16%;
  bottom: 24%;
}

.safety-list {
  display: grid;
  gap: 14px;
}

.safety-list p {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.safety-list strong {
  color: var(--ink);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
}

.final-cta h2 {
  max-width: 820px;
}

.final-cta p {
  max-width: 720px;
  margin-bottom: 0;
}

.footer {
  justify-content: space-between;
  gap: 20px;
  padding: 24px 72px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.74);
}

.footer a:hover {
  color: white;
}

@media (max-width: 1180px) {
  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 38px;
  }

  .site-header,
  .hero,
  .statement,
  .section,
  .dashboard-preview,
  .app-section,
  .safety-section,
  .final-cta,
  .footer {
    padding-left: 40px;
    padding-right: 40px;
  }

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

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .header-action {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--rose-line);
    border-radius: 12px;
    background: white;
    box-shadow: var(--shadow);
  }

  .site-header.is-open .nav a {
    padding: 12px;
  }

  .hero,
  .split,
  .dashboard-preview,
  .app-section,
  .safety-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .preview-main {
    grid-template-columns: 1fr;
  }

  .phone-theater {
    min-height: 620px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 30px;
  }

  .site-header,
  .hero,
  .statement,
  .section,
  .dashboard-preview,
  .app-section,
  .safety-section,
  .final-cta,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-logo {
    width: 120px;
  }

  .hero-visual {
    min-height: auto;
  }

  .hero-visual img {
    height: 440px;
    min-height: 440px;
    border-radius: 18px;
  }

  .metric-row div {
    width: 100%;
    max-width: 260px;
  }

  .assistant-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 24px);
    margin: -88px auto 0;
  }

  .feature-grid,
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.wide,
  .feature-card.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .phone-shell {
    width: 230px;
    height: 460px;
  }

  .phone-shell.front {
    right: 0;
  }

  .phone-shell.back {
    left: 0;
  }

  .floating-note {
    display: none;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.app-link-body {
  min-height: 100vh;
  background: var(--paper-solid);
}

.app-link-body::before,
.app-link-body::after {
  display: none;
}

.download-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 22px 72px;
}

.download-header-logo {
  width: 142px;
  height: 48px;
  object-fit: contain;
}

.download-back {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 30px rgba(151, 58, 102, 0.08);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.app-link-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(460px, 0.72fr);
  min-height: 100vh;
  align-items: center;
  gap: clamp(48px, 8vw, 124px);
  overflow: hidden;
  padding: 112px 8vw 72px;
  background: url("./assets/beauty-ai-hero.png") center / cover no-repeat;
}

.app-link-hero::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 255, 255, 0.4), transparent 32%),
    linear-gradient(98deg, rgba(255, 250, 253, 0.96) 0 42%, rgba(255, 246, 250, 0.84) 65%, rgba(255, 250, 253, 0.72));
  content: "";
}

.app-link-content {
  position: relative;
  z-index: 1;
  width: min(650px, 100%);
}

.app-link-content h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 5.2vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.app-link-lede {
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.app-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.latest-promise {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 0;
  color: #675d67;
  font-size: 13px;
  font-weight: 700;
}

.latest-promise span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 6px rgba(122, 168, 155, 0.15);
}

.download-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 32px 90px rgba(110, 39, 74, 0.2);
  backdrop-filter: blur(24px);
}

.download-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 44%);
  pointer-events: none;
  content: "";
}

.download-card-head {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0e8ed;
}

.android-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(145deg, var(--ink), #4d414c);
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.download-card-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.download-card-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.release-status {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-strong);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.release-loading,
.release-empty {
  display: grid;
  min-height: 340px;
  place-content: center;
  justify-items: center;
  padding: 36px 16px;
  text-align: center;
}

.release-loading[hidden],
.release-content[hidden],
.release-empty[hidden] {
  display: none;
}

.release-loading p,
.release-empty p {
  max-width: 330px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.release-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--rose-soft);
  border-top-color: var(--rose-strong);
  border-radius: 50%;
  animation: releaseSpin 0.9s linear infinite;
}

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

.release-content {
  padding-top: 24px;
}

.release-version-row {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 10px;
}

.release-version-row div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #fff7fa;
}

.release-version-row span,
.download-notes > span {
  display: block;
  margin-bottom: 7px;
  color: #8d818b;
  font-size: 11px;
  font-weight: 800;
}

.release-version-row strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.download-notes {
  min-height: 112px;
  margin: 16px 0 20px;
  padding: 16px;
  border: 1px solid #f2e8ed;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.download-notes p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #574d55;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.download-button {
  width: 100%;
  gap: 10px;
  font-size: 16px;
}

.download-button span {
  font-size: 20px;
}

.download-button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.download-help {
  margin: 12px 0 0;
  color: #948891;
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

.release-empty::before {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 22px;
  background: var(--rose-soft);
  color: var(--rose-strong);
  font-size: 28px;
  font-weight: 900;
  content: "↓";
}

.release-empty strong {
  font-size: 20px;
}

.release-empty button {
  margin-top: 22px;
  padding: 10px 18px;
  border: 1px solid #eadce3;
  border-radius: 999px;
  background: white;
  color: var(--rose-strong);
  cursor: pointer;
  font-weight: 800;
}

@media (max-width: 980px) {
  .app-link-hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 132px;
  }

  .download-card {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .download-header {
    padding: 16px 20px;
  }

  .download-header-logo {
    width: 118px;
    height: 40px;
  }

  .download-back {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .app-link-hero {
    min-height: 100svh;
    align-items: start;
    gap: 34px;
    padding: 112px 20px 40px;
    background-position: 64% center;
  }

  .app-link-hero::before {
    background: rgba(255, 250, 253, 0.9);
  }

  .app-link-content h1 {
    font-size: 40px;
  }

  .app-link-lede {
    font-size: 17px;
  }

  .app-link-actions .primary-button,
  .app-link-actions .secondary-button {
    width: 100%;
  }

  .latest-promise {
    margin-top: 24px;
    font-size: 12px;
  }

  .download-card {
    padding: 20px;
    border-radius: 22px;
  }

  .download-card-head {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .android-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 19px;
  }

  .release-status {
    grid-column: 1 / -1;
    width: max-content;
  }

  .release-version-row {
    grid-template-columns: 1fr 1fr;
  }

  .release-version-row div:first-child {
    grid-column: 1 / -1;
  }
}
