:root {
  --bg: #0a0a0f;
  --bg2: #10101a;
  --card: #171721;
  --card-hover: #1d1d29;
  --line: #262633;
  --text: #ececf2;
  --muted: #9d9dac;
  --accent: #ff6b35;
  --accent2: #ffa06a;
  --green: #4caf7d;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav .btn-sm { margin-left: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ff8f4d);
  color: #fff;
  font-weight: 700;
  padding: 13px 30px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(255,107,53,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,107,53,.4); }
.btn.btn-sm { padding: 8px 18px; font-size: 13px; box-shadow: none; }
.btn.btn-lg { font-size: 18px; padding: 15px 44px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 480px at 72% -10%, rgba(255,107,53,.2), transparent 60%),
    radial-gradient(760px 420px at 8% 8%, rgba(76,175,125,.12), transparent 60%),
    var(--bg2);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 88px 20px 72px;
}
.hero-inner { max-width: 880px; margin: 0 auto; }
.brand-pill {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--accent2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 62px; letter-spacing: 3px; line-height: 1.15; }
.hero h1 span { color: var(--accent); }
.slogan-top {
  color: var(--accent2);
  font-size: 14px;
  letter-spacing: 3px;
  margin: 8px 0 0;
}
.slogan { color: var(--muted); font-size: 17px; margin: 16px 0 34px; }
.download-box { margin-top: 6px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Feature page hero */
.feature-hero { padding: 72px 20px 60px; }
.feature-icon { font-size: 58px; line-height: 1; margin-bottom: 14px; }
.feature-hero h1 { font-size: 48px; letter-spacing: 1px; }
.feature-hero .lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 640px;
  margin: 14px auto 30px;
}
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.breadcrumb a { color: var(--accent2); }

/* ---------- Sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 58px 20px 8px; }
.section-title { text-align: center; margin-bottom: 30px; }
.section-title h2 { font-size: 28px; }
.section-title p { color: var(--muted); margin-top: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

/* ---------- Feature cards grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.feat {
  display: flex;
  flex-direction: column;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.feat:hover {
  border-color: var(--accent);
  background: var(--card-hover);
  transform: translateY(-3px);
}
.feat .icon { font-size: 30px; margin-bottom: 10px; }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14px; flex: 1; }
.feat .more { color: var(--accent2); font-size: 13px; margin-top: 14px; font-weight: 600; }

/* ---------- Point cards (feature pages) ---------- */
.point .icon { font-size: 28px; margin-bottom: 10px; }
.point h3 { font-size: 17px; margin-bottom: 8px; }
.point p { color: var(--muted); font-size: 14px; }

/* ---------- Steps ---------- */
.steps ol { padding-left: 22px; }
.steps li { margin-bottom: 12px; }
.steps li strong { color: var(--accent2); }
.steps li:last-child { margin-bottom: 0; }

/* ---------- Download card ---------- */
.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 200px at 85% 0%, rgba(255,107,53,.10), transparent 65%),
    var(--card);
}
.ver-num { font-size: 32px; font-weight: 800; color: var(--accent2); }
.ver-code { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.ver-desc { font-weight: 600; margin-bottom: 8px; }
.ver-notes { padding-left: 20px; color: var(--muted); font-size: 14px; }
.ver-notes li { margin-bottom: 4px; }

/* ---------- Specs ---------- */
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.specs-grid div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}
.specs-grid span { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 30px;
}
.cta h2 { font-size: 26px; margin-bottom: 22px; }
.cta .back-link { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 14px; }
.cta .back-link:hover { color: var(--accent2); }

/* ---------- Footer ---------- */
footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero { padding: 64px 18px 52px; }
  .hero h1 { font-size: 44px; }
  .feature-hero h1 { font-size: 36px; }
  .grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; text-align: center; }
  .ver-notes { text-align: left; }
  .nav-inner { gap: 10px; }
  .nav-links { margin-left: 0; order: 3; width: 100%; justify-content: center; }
  .nav .btn-sm { margin-left: auto; }
}

/* ============================================================
   Feature screens (homepage, screen 2+) — image half, copy half
   ============================================================ */
.feature-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 76px 0 44px;
  position: relative;
  overflow: hidden;
}
.feature-screen:nth-of-type(even) { background: var(--bg2); }
.screen-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
}
.media-left .screen-inner { flex-direction: row; }
.media-right .screen-inner { flex-direction: row-reverse; }

.screen-media {
  width: 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.screen-text {
  width: 50%;
  min-width: 0;
  padding: 0 44px;
}
.media-left .screen-text { padding-left: 56px; }
.media-right .screen-text { padding-right: 56px; }

/* gradient fade on the edge that faces the copy */
.screen-media.fade-right {
  -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  mask-image: linear-gradient(to right, #000 86%, transparent 100%);
}
.screen-media.fade-left {
  -webkit-mask-image: linear-gradient(to left, #000 86%, transparent 100%);
  mask-image: linear-gradient(to left, #000 86%, transparent 100%);
}

/* ---------- photo frames ---------- */
.media-frame { width: 100%; }
.media-frame.photo {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  background: var(--card);
}
.media-frame.photo > img {
  width: 100%;
  height: 62vh;
  max-height: 640px;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.chip {
  position: absolute;
  top: 14px;
  background: rgba(10,10,15,.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  white-space: nowrap;
}
.chip.left { left: 14px; }
.chip.right { right: 14px; }

/* ---------- before / after stabilization ---------- */
.split { display: flex; }
.split-half { width: 50%; overflow: hidden; position: relative; }
.split-half img {
  width: 100%;
  height: 62vh;
  max-height: 640px;
  min-height: 360px;
  object-fit: cover;
  display: block;
}
.split-half.blur img { filter: blur(6px) saturate(.82) brightness(.88); }
.split::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 6%;
  bottom: 6%;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 14px rgba(255,255,255,.55);
}
.chip.blur-chip { background: rgba(30,30,40,.72); }
.chip.clear-chip { background: rgba(76,175,125,.88); }

/* ---------- voice waveform ---------- */
.waveform {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(10,10,15,.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.16);
}
.waveform i {
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #7fd4ff, #ffffff);
  height: 6px;
  animation: wave 1s ease-in-out infinite;
}
.waveform i:nth-child(2) { animation-delay: .12s; }
.waveform i:nth-child(3) { animation-delay: .24s; }
.waveform i:nth-child(4) { animation-delay: .36s; }
.waveform i:nth-child(5) { animation-delay: .48s; }
.waveform i:nth-child(6) { animation-delay: .6s; }
.waveform i:nth-child(7) { animation-delay: .72s; }
.waveform i:nth-child(8) { animation-delay: .84s; }
@keyframes wave {
  0%, 100% { height: 6px; }
  50% { height: 20px; }
}

/* ---------- double-tap mockup (phone + live companion) ---------- */
.mockup-scene {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.phone {
  width: 205px;
  height: 415px;
  border-radius: 30px;
  background: #050507;
  padding: 9px;
  border: 1px solid #2a2a35;
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
  position: relative;
  z-index: 1;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #101018;
}
.game-scene {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, #ffd166 0 4.5%, transparent 5%),
    linear-gradient(180deg, #7ec8f7 0 52%, #3fae5a 52% 100%);
}
.game-scene::before {
  content: '';
  position: absolute;
  left: -12%;
  bottom: 26%;
  width: 60%;
  height: 26%;
  background: linear-gradient(180deg, #2f8f4a, #2a7f42);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  transform: rotate(-8deg);
}
.game-scene::after {
  content: '';
  position: absolute;
  right: -10%;
  bottom: 30%;
  width: 55%;
  height: 20%;
  background: linear-gradient(180deg, #6db39b, #4f9380);
  border-radius: 50% 50% 0 0 / 90% 90% 0 0;
  transform: rotate(6deg);
}
.cam-ui { position: absolute; inset: 0; }
.cam-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 12px;
}
.cam-label {
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 10px;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 999px;
}
.cam-gear {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.cam-bottom {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.cam-record {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 999px;
}
.cam-record i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255,59,48,.32);
}
.cam-hint {
  background: rgba(0,0,0,.58);
  color: #ffd9c7;
  font-size: 10px;
  padding: 4px 11px;
  border-radius: 999px;
}

/* double-tap hand + ripples */
.tap-hand {
  position: absolute;
  top: 16%;
  right: 2%;
  width: 92px;
  height: 118px;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
}
.ripple-wrap {
  position: absolute;
  top: 38%;
  left: 50%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}
.ripple {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 50%;
  transform: scale(.25);
  opacity: 0;
  animation: tap 1.5s cubic-bezier(.25,.8,.4,1) infinite;
}
.ripple.r2 { animation-delay: .75s; }
@keyframes tap {
  0% { transform: scale(.22); opacity: .95; }
  70% { opacity: .35; }
  100% { transform: scale(1.25); opacity: 0; }
}
.tap-badge {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, 30px);
  background: rgba(255,107,53,.95);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 6px 18px rgba(255,107,53,.45);
}

/* live companion panel */
.companion {
  width: 236px;
  border-radius: 14px;
  background: #15151d;
  border: 1px solid #2c2c38;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  z-index: 1;
}
.cp-head {
  background: linear-gradient(90deg, #fe2c55, #ff7a45);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-head .cp-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.cp-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.cp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #b7b7c4;
}
.cp-row b { color: #fff; font-weight: 600; }
.cp-row .blue { color: #5cc8ff; }
.cp-preview {
  height: 82px;
  border-radius: 8px;
  border: 1px solid #2c2c38;
  background:
    radial-gradient(circle at 78% 24%, #ffd166 0 5%, transparent 6%),
    linear-gradient(180deg, #6cb8ea 0 55%, #3a9c55 55% 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.82);
  font-size: 11px;
}
.cp-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #4caf7d;
}
.cp-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf7d;
  box-shadow: 0 0 8px #4caf7d;
}
.cp-start {
  background: linear-gradient(135deg, #fe2c55, #ff7a45);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 0;
  border-radius: 8px;
  margin-top: 2px;
}

/* ---------- screen copy ---------- */
.screen-no {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.screen-text h2 { font-size: 33px; line-height: 1.28; margin-bottom: 12px; }
.screen-sub { color: var(--accent2); font-weight: 600; margin-bottom: 20px; font-size: 16px; }
.screen-points { list-style: none; }
.screen-points li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 15px;
}
.screen-points li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), #ff8f4d);
}
.screen-points strong { color: var(--text); }

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(64px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.d2 { transition-delay: .16s; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- responsive for feature screens ---------- */
@media (max-width: 860px) {
  .feature-screen { min-height: auto; padding: 64px 0 40px; }
  .screen-inner, .media-left .screen-inner, .media-right .screen-inner {
    flex-direction: column;
  }
  .screen-media, .screen-text { width: 100%; }
  .screen-media {
    height: 46vh;
    min-height: 300px;
    -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%) !important;
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%) !important;
  }
  .media-frame.photo > img,
  .split-half img {
    height: 46vh;
    min-height: 300px;
  }
  .screen-text { padding: 26px 4px 6px; }
  .media-left .screen-text, .media-right .screen-text { padding-left: 4px; padding-right: 4px; }
  .screen-text h2 { font-size: 26px; }
  .mockup-scene { gap: 18px; }
  .phone { width: 180px; height: 365px; }
  .companion { width: 210px; }
}

@media (max-width: 520px) {
  .mockup-scene {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .phone { width: 148px; height: 300px; padding: 7px; border-radius: 22px; }
  .phone-screen { border-radius: 16px; }
  .cam-label { font-size: 8px; padding: 2px 6px; }
  .cam-gear { width: 20px; height: 20px; font-size: 11px; }
  .cam-record { font-size: 10px; padding: 5px 10px; }
  .cam-record i { width: 7px; height: 7px; }
  .cam-hint { font-size: 8px; padding: 3px 8px; }
  .tap-hand { width: 62px; height: 84px; top: 12%; right: 0; }
  .ripple-wrap { width: 54px; height: 54px; }
  .tap-badge { font-size: 9px; padding: 3px 9px; }
  .companion { width: 168px; border-radius: 10px; }
  .cp-head { font-size: 11px; padding: 8px 10px; }
  .cp-head .cp-logo { width: 18px; height: 18px; font-size: 11px; }
  .cp-body { padding: 9px; gap: 7px; }
  .cp-row { font-size: 10px; }
  .cp-preview { height: 62px; font-size: 10px; }
  .cp-status { font-size: 10px; }
  .cp-start { font-size: 11px; padding: 7px 0; }
}
