:root {
  --bg: #0a0c12;
  --bg-soft: #0f121a;
  --card: #141824;
  --card-2: #181d2b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f6;
  --muted: #9ba3b5;
  --muted-2: #6f788c;
  --amber: #e8b477;
  --amber-dim: #b98a55;
  --amber-wash: rgba(232, 180, 119, 0.11);
  --wrap: 1120px;
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap { width: min(calc(100% - 48px), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--amber);
  color: #12141b;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #241d18, #13151e);
  border: 1px solid rgba(232, 180, 119, 0.28);
  color: var(--amber);
  flex: none;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { font-size: 17px; font-weight: 650; letter-spacing: .02em; line-height: 1.25; }
.brand-text small { display: block; font-size: 11px; font-weight: 400; color: var(--muted-2); letter-spacing: .06em; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--muted); }
.site-nav a { padding: 6px 0; transition: color .2s; }
.site-nav a:hover { color: var(--amber); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 92px; }
.hero-glow {
  position: absolute;
  width: 760px; height: 760px;
  right: -180px; top: -340px;
  background: radial-gradient(circle, rgba(232, 180, 119, 0.11), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .28) .7px, transparent .7px);
  background-size: 52px 52px;
  opacity: .12;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--amber); font-size: 13px; letter-spacing: .16em; font-weight: 600; margin-bottom: 20px; }
h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.28; letter-spacing: -.02em; font-weight: 680; }
h1 em { font-style: normal; color: var(--amber); }
.lede { margin-top: 26px; color: var(--muted); max-width: 560px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: transform .2s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #17131a; }
.btn-primary:hover { background: #f5c78d; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber-dim); }
.hero-meta { margin-top: 28px; font-size: 13px; color: var(--muted-2); display: flex; align-items: center; gap: 9px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }

.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone {
  position: relative;
  width: 252px; height: 500px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(155deg, #2b2f3b, #0e1016 55%, #242833);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; border-radius: 10px; background: #0b0d12; z-index: 3; }
.phone-screen {
  position: relative; overflow: hidden;
  height: 100%; border-radius: 34px;
  background: radial-gradient(circle at 50% 42%, #1a1c26, #080a0f 72%);
}
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #f4e1c2; opacity: .8;
  animation: twinkle 4s ease-in-out infinite;
}
.stars i:nth-child(1) { top: 14%; left: 18%; animation-delay: .1s; }
.stars i:nth-child(2) { top: 22%; left: 72%; animation-delay: .8s; }
.stars i:nth-child(3) { top: 31%; left: 34%; animation-delay: 1.5s; }
.stars i:nth-child(4) { top: 11%; left: 55%; animation-delay: 2.1s; }
.stars i:nth-child(5) { top: 39%; left: 84%; animation-delay: .4s; }
.stars i:nth-child(6) { top: 48%; left: 12%; animation-delay: 1.2s; }
.stars i:nth-child(7) { top: 27%; left: 48%; animation-delay: 2.7s; }
.stars i:nth-child(8) { top: 8%; left: 88%; animation-delay: 1.9s; }
.stars i:nth-child(9) { top: 43%; left: 62%; animation-delay: 3.1s; }
.stars i:nth-child(10) { top: 18%; left: 30%; animation-delay: 2.4s; }
.stars i:nth-child(11) { top: 36%; left: 76%; animation-delay: .6s; }
.stars i:nth-child(12) { top: 53%; left: 42%; animation-delay: 1.7s; }
.moon {
  position: absolute; top: 25%; left: 50%; transform: translateX(-50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #ffe0ab, #d89045 70%, #8f5626);
  box-shadow: 0 0 42px rgba(232, 180, 119, .28), 0 0 90px rgba(232, 180, 119, .12);
}
.sand i {
  position: absolute; top: -12px;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(255, 220, 170, .85);
  animation: fall linear infinite;
}
.sand i:nth-child(1) { left: 12%; animation-duration: 7s; animation-delay: -1s; }
.sand i:nth-child(2) { left: 20%; animation-duration: 9s; animation-delay: -4s; }
.sand i:nth-child(3) { left: 28%; animation-duration: 8s; animation-delay: -2s; }
.sand i:nth-child(4) { left: 35%; animation-duration: 11s; animation-delay: -6s; }
.sand i:nth-child(5) { left: 44%; animation-duration: 7.5s; animation-delay: -3s; }
.sand i:nth-child(6) { left: 52%; animation-duration: 10s; animation-delay: -7s; }
.sand i:nth-child(7) { left: 60%; animation-duration: 8.5s; animation-delay: -1.5s; }
.sand i:nth-child(8) { left: 68%; animation-duration: 9.5s; animation-delay: -5s; }
.sand i:nth-child(9) { left: 76%; animation-duration: 7.2s; animation-delay: -2.5s; }
.sand i:nth-child(10) { left: 84%; animation-duration: 10.5s; animation-delay: -4.5s; }
.sand i:nth-child(11) { left: 16%; animation-duration: 12s; animation-delay: -8s; }
.sand i:nth-child(12) { left: 40%; animation-duration: 9.8s; animation-delay: -6.5s; }
.sand i:nth-child(13) { left: 57%; animation-duration: 11.5s; animation-delay: -3.5s; }
.sand i:nth-child(14) { left: 72%; animation-duration: 8.2s; animation-delay: -7.5s; }
.sand i:nth-child(15) { left: 91%; animation-duration: 10.2s; animation-delay: -1.2s; }
.sand i:nth-child(16) { left: 6%; animation-duration: 8.8s; animation-delay: -5.5s; }
.sand i:nth-child(17) { left: 32%; animation-duration: 12.5s; animation-delay: -9s; }
.sand i:nth-child(18) { left: 49%; animation-duration: 7.8s; animation-delay: -4.2s; }
.sand i:nth-child(19) { left: 64%; animation-duration: 9.2s; animation-delay: -2.8s; }
.sand i:nth-child(20) { left: 79%; animation-duration: 11.2s; animation-delay: -6.2s; }
.phone-ui { position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; padding: 18px 22px 24px; font-size: 11px; color: rgba(255, 255, 255, .45); letter-spacing: .05em; }
.visual-caption { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
@keyframes fall { from { transform: translateY(0); opacity: 0; } 12% { opacity: .9; } 88% { opacity: .7; } to { transform: translateY(520px); opacity: 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }

/* ---------- sections ---------- */
.section { padding: 100px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 650px; margin-bottom: 52px; }
.section-head h2, .about-grid h2 { font-size: clamp(27px, 3.2vw, 38px); line-height: 1.35; letter-spacing: -.01em; }
.section-head > p:last-child { margin-top: 16px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: linear-gradient(160deg, var(--card-2), var(--bg-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.step-num { color: var(--amber-dim); font-size: 13px; letter-spacing: .12em; font-weight: 700; }
.step h3 { font-size: 18px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 14px; }

.section-apps { background: linear-gradient(180deg, var(--bg), #0c0e15 40%, var(--bg)); }
.feature { border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(165deg, #191d2a, #10131c 45%); padding: clamp(26px, 4vw, 52px); }
.feature-top { display: flex; gap: 24px; align-items: center; }
.app-icon { width: 82px; height: 82px; border-radius: 21px; flex: none; display: grid; place-items: center; }
.app-icon svg { width: 64px; height: 64px; }
.app-icon-sleep { background: #080a0f; border: 1px solid rgba(232, 180, 119, .22); }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.feature-tags span { font-size: 11px; color: var(--amber); border: 1px solid rgba(232, 180, 119, .28); background: var(--amber-wash); padding: 3px 10px; border-radius: 99px; }
.feature-heading h3 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.25; }
.feature-slogan { color: var(--muted); margin-top: 6px; font-size: 15px; }
.feature-lead { margin-top: 34px; font-size: 16px; color: #d5d9e3; max-width: 860px; }
.feature-quote { margin: 24px 0 0; padding: 18px 22px; border-left: 2px solid var(--amber-dim); background: rgba(232, 180, 119, .05); color: var(--muted); border-radius: 0 12px 12px 0; font-size: 14px; }
.subhead { font-size: 18px; margin: 44px 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.subhead-count { font-size: 12px; font-weight: 400; color: var(--muted-2); margin-left: 8px; letter-spacing: .08em; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 30px; }
.point { display: flex; gap: 14px; align-items: flex-start; }
.point > span { color: var(--amber); font-size: 22px; line-height: 1.2; width: 26px; flex: none; text-align: center; }
.point h5 { font-size: 15px; margin-bottom: 4px; }
.point p { font-size: 13.5px; color: var(--muted); }
.scene-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scene-group { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: rgba(255, 255, 255, .017); }
.scene-group h5 { font-size: 14px; color: var(--amber); display: flex; justify-content: space-between; align-items: center; }
.scene-group h5 small { color: var(--muted-2); font-weight: 400; }
.scene-group ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.scene-group li { font-size: 12.5px; color: #cbd1dd; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px; }
.feature-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.feature-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.feature-columns .subhead { margin-top: 40px; }
.plain-list li { position: relative; padding-left: 18px; color: var(--muted); font-size: 14px; margin-bottom: 9px; }
.plain-list li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--amber-dim); }
.disclaimer { margin-top: 34px; padding: 4px 24px 24px; border: 1px dashed rgba(232, 180, 119, .3); border-radius: 16px; background: rgba(232, 180, 119, .035); }
.disclaimer .subhead { margin-top: 28px; border-bottom-color: rgba(232, 180, 119, .18); }
.disclaimer p { color: var(--muted); font-size: 14px; }
.store-note { margin-top: 14px; color: var(--amber-dim) !important; font-size: 12.5px !important; }

.other-apps-head { margin: 62px 0 24px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.other-apps-head h3 { font-size: 22px; }
.other-apps-head p { color: var(--muted-2); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.app-card { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 18px; text-align: center; }
.mini-icon { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px; display: grid; place-items: center; }
.mini-icon svg { width: 30px; height: 30px; }
.mini-talk { background: linear-gradient(145deg, #8d62d8, #d471c2); color: #fff; }
.mini-money { background: #f7db8c; color: #6f4a11; }
.mini-status { background: #b9a2f6; color: #2e2455; }
.mini-mind { background: #b9d9e8; color: #1e4a65; }
.mini-horse { background: #f6f6f4; color: #a46a32; }
.app-card h4 { font-size: 15px; }
.platform { display: inline-block; margin-top: 4px; font-size: 11px; color: var(--muted-2); }
.pending { margin-top: 10px; font-size: 12px; color: var(--muted-2); }

.section-about { background: var(--bg-soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { color: var(--muted); font-size: 15px; }
.about-text p + p { margin-top: 16px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #080a0f; padding: 40px 0 26px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.footer-top > a { color: var(--muted); font-size: 13px; }
.footer-top > a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; font-size: 13px; color: var(--muted-2); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding: 76px 0 70px; }
  .hero-copy { max-width: 680px; }
  .steps { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 700px) {
  .wrap { width: min(calc(100% - 32px), var(--wrap)); }
  .site-nav { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 8px 16px 16px; border-top: 1px solid var(--line); background: rgba(10, 12, 18, .96); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a { padding: 9px 0; color: var(--muted); font-size: 14px; }
  .hero-grid { gap: 46px; }
  h1 { font-size: 32px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .feature-top { gap: 16px; }
  .app-icon { width: 64px; height: 64px; border-radius: 17px; }
  .app-icon svg { width: 50px; height: 50px; }
  .grid-2, .scene-groups, .feature-columns { grid-template-columns: 1fr; }
  .feature-columns { gap: 0; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 380px) {
  .app-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sand i, .stars i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
