:root {
  --bg: #fff8f1;
  --paper: #ffffff;
  --ink: #2b211d;
  --muted: #756c67;
  --line: #eaded4;
  --brand: #d9826b;
  --brand-dark: #a75443;
  --mint: #5aa897;
  --blue: #4f76a8;
  --shadow: 0 24px 70px rgba(73, 48, 37, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  background: rgba(255, 248, 241, .9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(217, 130, 107, .28);
  overflow: hidden;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a:hover {
  color: var(--brand-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, .76fr);
  gap: 38px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: min(620px, calc(100vh - 72px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(38px, 5vw, 60px);
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-text {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(234, 222, 212, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.primary-action,
.secondary-action,
.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  font-weight: 900;
}

.primary-action {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 16px 32px rgba(217, 130, 107, .24);
}

.secondary-action {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  color: var(--brand-dark);
}

.share-action {
  border: 1px solid rgba(90, 168, 151, .34);
  background: rgba(238, 248, 244, .76);
  color: #36786a;
  cursor: pointer;
  font: inherit;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(300px, 82vw);
  border-radius: 34px;
  padding: 12px;
  background: #2b211d;
  box-shadow: var(--shadow);
}

.phone-bar {
  width: 92px;
  height: 5px;
  margin: 5px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.phone-screen {
  border-radius: 25px;
  background: linear-gradient(180deg, #fffaf6 0%, #f5fbf9 100%);
}

.screen-carousel {
  position: relative;
  aspect-ratio: 361 / 778;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 36px;
  background: #fffaf6;
}

.screen-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #fffaf6;
  opacity: 0;
  animation: screenFade 18s infinite;
}

.screen-slide:nth-child(2) {
  animation-delay: 4.5s;
}

.screen-slide:nth-child(3) {
  animation-delay: 9s;
}

.screen-slide:nth-child(4) {
  animation-delay: 13.5s;
}

.screen-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.screen-slide figcaption {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(43, 33, 29, .10);
}

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  z-index: 3;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 1px rgba(43, 33, 29, .12);
}

.carousel-dots span:nth-child(1) {
  animation: dotOne 18s infinite;
}

.carousel-dots span:nth-child(2) {
  animation: dotTwo 18s infinite;
}

.carousel-dots span:nth-child(3) {
  animation: dotThree 18s infinite;
}

.carousel-dots span:nth-child(4) {
  animation: dotFour 18s infinite;
}

@keyframes screenFade {
  0%, 24% { opacity: 1; }
  28%, 96% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes dotOne {
  0%, 20%, 100% { background: var(--brand); }
  25%, 95% { background: rgba(43, 33, 29, .28); }
}

@keyframes dotTwo {
  0%, 20%, 50%, 100% { background: rgba(43, 33, 29, .28); }
  25%, 45% { background: var(--brand); }
}

@keyframes dotThree {
  0%, 45%, 75%, 100% { background: rgba(43, 33, 29, .28); }
  50%, 70% { background: var(--brand); }
}

@keyframes dotFour {
  0%, 70%, 100% { background: rgba(43, 33, 29, .28); }
  75%, 95% { background: var(--brand); }
}

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 900;
}

.screen-title strong {
  color: var(--mint);
  font-size: 13px;
}

.safe-card,
.report-card,
.metric-grid div,
.feature,
.qr-card,
.scene-list div {
  background: var(--paper);
  border: 1px solid rgba(234, 222, 212, .8);
  box-shadow: 0 14px 34px rgba(73, 48, 37, .07);
}

.safe-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
}

.safe-card p,
.report-card p,
.feature p,
.qr-card p,
.section-heading p,
.scene-list span {
  color: var(--muted);
  line-height: 1.72;
}

.safe-card p,
.report-card p {
  margin: 5px 0 0;
  font-size: 13px;
}

.pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(90, 168, 151, .14);
}

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

.metric-grid div {
  min-height: 92px;
  border-radius: 8px;
  padding: 16px;
}

.metric-grid b {
  display: block;
  font-size: 24px;
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.report-card {
  margin-top: 16px;
  border-radius: 8px;
  padding: 18px;
}

.report-card span {
  color: var(--blue);
  font-weight: 900;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  font-size: 17px;
}

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

.feature {
  min-height: 218px;
  border-radius: 8px;
  padding: 22px;
}

.feature-art {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.feature h3,
.qr-card h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.qr-title-link {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff1e8;
  color: #a94f42;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  vertical-align: middle;
}

.qr-title-link:hover {
  background: #e08a72;
  color: #fff;
}

.feature p,
.qr-card p {
  margin: 0;
  font-size: 16px;
}

.why-section {
  padding-top: 24px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.why-grid article {
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid rgba(234, 222, 212, .82);
  box-shadow: 0 14px 34px rgba(73, 48, 37, .06);
}

.why-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #fff1e8;
  color: var(--brand-dark);
  font-weight: 950;
}

.why-grid h3 {
  margin: 22px 0 10px;
  font-size: 21px;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.workflow-section {
  padding-top: 36px;
}

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

.workflow-grid article {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(234, 222, 212, .82);
  box-shadow: 0 14px 34px rgba(73, 48, 37, .06);
}

.workflow-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f6e6de;
  color: var(--brand-dark);
  font-weight: 950;
}

.workflow-grid h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.workflow-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.privacy-section {
  padding-top: 24px;
}

.privacy-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(234, 222, 212, .86);
  box-shadow: 0 18px 42px rgba(73, 48, 37, .08);
}

.privacy-panel h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.privacy-panel p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.78;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.privacy-points span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafb;
  border: 1px solid rgba(234, 222, 212, .8);
  color: var(--ink);
  font-weight: 950;
}

.timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.timeline-modal.show {
  display: flex;
}

.timeline-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 33, 29, .36);
  backdrop-filter: blur(10px);
}

.timeline-dialog {
  position: relative;
  width: min(900px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  border-radius: 8px;
  background: #fffaf6;
  border: 1px solid rgba(234, 222, 212, .9);
  box-shadow: 0 34px 90px rgba(43, 33, 29, .25);
  padding: 30px;
}

.timeline-close {
  position: sticky;
  top: 0;
  float: right;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.timeline-head {
  max-width: 680px;
  margin-bottom: 22px;
}

.timeline-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}

.timeline-head p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.landing-timeline {
  display: grid;
  gap: 12px;
}

.landing-timeline-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(234, 222, 212, .9);
}

.landing-timeline-item time {
  color: var(--brand-dark);
  font-weight: 950;
}

.landing-timeline-item span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6e6de;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
}

.landing-timeline-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.landing-timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline-copy.can-expand {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-copy.expanded {
  display: block;
  overflow: visible;
}

.timeline-more-btn {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 950;
}

.timeline-image-button {
  display: block;
  width: min(520px, 100%);
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.timeline-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.timeline-image-preview {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.timeline-image-preview.show {
  display: flex;
}

.timeline-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 18, 16, .72);
  backdrop-filter: blur(8px);
}

.timeline-image-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(980px, 100%);
  max-height: calc(100vh - 36px);
}

.timeline-image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.timeline-image-close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
}

.timeline-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 18px;
}

.timeline-foot a {
  color: var(--brand-dark);
  font-weight: 900;
}

.scene-band {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - 1160px) / 2));
  background: #fff;
}

.scene-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.scene-list div {
  min-height: 150px;
  border-radius: 8px;
  padding: 22px;
}

.scene-list strong {
  display: block;
  margin-bottom: 10px;
  font-size: 19px;
}

.download-section {
  padding-bottom: 92px;
}

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

.qr-card {
  position: relative;
  border-radius: 8px;
  padding: 22px;
  text-align: center;
}

.qr-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 14px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.status-ready {
  background: rgba(90, 168, 151, .14);
  color: #36786a;
}

.status-soon {
  background: #fff1e8;
  color: var(--brand-dark);
}

.qr-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(210px, 100%);
  margin: 0 auto;
  border: 1px dashed #d4b8a9;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(217, 130, 107, .08) 50%, transparent 50%) 0 0 / 24px 24px,
    linear-gradient(rgba(217, 130, 107, .08) 50%, transparent 50%) 0 0 / 24px 24px,
    #fffaf6;
  color: var(--brand-dark);
  font-weight: 950;
}

.qr-image-box {
  padding: 12px;
  background: #fff;
  border-style: solid;
}

.qr-image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .feature-grid,
  .why-grid,
  .workflow-grid,
  .scene-list,
  .qr-grid {
    grid-template-columns: 1fr 1fr;
  }

  .privacy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: min(100% - 28px, 1160px);
    gap: 12px;
  }

  .nav {
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    padding-top: 18px;
    gap: 28px;
  }

  .hero-copy {
    max-width: 362px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 31px;
    line-height: 1.12;
    word-break: break-all;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.68;
  }

  .hero-actions a,
  .hero-actions button {
    width: 100%;
  }

  .feature-grid,
  .why-grid,
  .workflow-grid,
  .scene-list,
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .privacy-panel {
    padding: 22px;
  }

  .privacy-points {
    grid-template-columns: 1fr;
  }

  .landing-timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-dialog {
    padding: 22px;
  }

  .phone {
    width: min(320px, 88vw);
  }

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