/* ───────── tokens ───────── */
:root {
  --bg: #fbf8f7;
  --bg-2: #ffffff;
  --blush: #fde9ec;
  --ink: #151413;
  --muted: #6b6563;
  --faint: #a49d9a;
  --line: #ece6e3;
  --rose: #e0163c;
  --rose-soft: #fbe3e7;
  --hand: #10201b;
  --dial: #ffffff;
  --dial-num: #2a2826;
  --tick: #c9c3c0;
  --shadow: 0 1px 2px rgb(60 20 25 / 0.05), 0 12px 32px -8px rgb(60 20 25 / 0.14), 0 40px 80px -24px rgb(60 20 25 / 0.12);
  --radius: 28px;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e0e;
    --bg-2: #181616;
    --blush: #2a1418;
    --ink: #f3efed;
    --muted: #a39b98;
    --faint: #6d6663;
    --line: #2a2625;
    --rose: #ff3d5e;
    --rose-soft: #3a1820;
    --hand: #f3efed;
    --dial: #1c1a1a;
    --dial-num: #e8e3e1;
    --tick: #4a4442;
    --shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 60px -20px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* ───────── base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--rose-soft); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

[hidden] { display: none !important; }

/* language switch */
html[data-lang='zh'] .en, html[data-lang='en'] .zh { display: none !important; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; font-weight: 800; }
h1 em, h2 em { font-style: normal; color: var(--rose); }
html[data-lang='zh'] h1, html[data-lang='zh'] h2 { letter-spacing: 0; }
p { margin: 0; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
html[data-lang='zh'] .eyebrow { letter-spacing: 0.12em; }
.sub { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 34em; }
.fine { font-size: 13px; color: var(--faint); margin-top: 18px; }
.pill {
  display: inline-block;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--rose-soft);
  color: var(--rose);
  margin-left: 4px;
}
.pill-light { background: rgb(255 255 255 / 0.18); color: #fff; }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: var(--bg-2); }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
@media (prefers-color-scheme: dark) { .store-badge { background: #fff; color: #000; } }
.store-badge svg { width: 26px; height: 26px; }
.store-badge .badge-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-badge small { font-size: 11px; opacity: 0.85; }
.store-badge strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge[aria-disabled='true'] { cursor: default; }
.store-badge:not([aria-disabled='true']):active { transform: scale(0.97); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 99px;
  border: 0;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed='true'] { background: var(--rose); color: #fff; box-shadow: none; }

/* ───────── nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  height: 36px;
  min-width: 52px;
  padding: 0 12px;
  border-radius: 99px;
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang:hover { background: var(--bg-2); }

/* ───────── layout ───────── */
main { overflow: clip; }
.section { max-width: var(--max); margin: 0 auto; padding: 120px 20px 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .sub { margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(34px, 5vw, 56px); }
.feature-copy h2 { font-size: clamp(32px, 4.4vw, 50px); }

/* ───────── hero ───────── */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 20px 40px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -200px -40vw auto 30%;
  height: 900px;
  background: radial-gradient(closest-side, var(--blush), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
h1 { font-size: clamp(44px, 6.6vw, 80px); }
html[data-lang='zh'] h1 { font-size: clamp(44px, 6.4vw, 76px); line-height: 1.14; }
.lede { font-size: 19px; color: var(--muted); margin-top: 24px; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

.hero-clock { margin: 0; display: flex; flex-direction: column; align-items: center; }
.dial-card {
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dial);
  box-shadow: var(--shadow);
  padding: 2%;
}
.dial { width: 100%; height: 100%; overflow: visible; }
.dial .tick { stroke: var(--tick); stroke-linecap: round; }
.dial .tick.major { stroke: var(--dial-num); }
.dial .num {
  fill: var(--dial-num);
  font: 500 22px var(--sans);
  text-anchor: middle;
  dominant-baseline: central;
  cursor: pointer;
  transition: fill 0.2s;
}
.dial .num-hit { fill: transparent; cursor: pointer; }
.dial .num.now { fill: var(--rose); font-weight: 600; }
.dial .num.peek { fill: var(--rose); font-weight: 700; }
.dial g:hover > .num { fill: var(--rose); }
#hand-hour rect, #hand-min rect { fill: var(--hand); }
#hand-sec rect { fill: var(--rose); }
.dial .hub { fill: var(--rose); }
#dial-cat { transition: opacity 0.35s var(--ease); }
#dial-cat.swap { opacity: 0; }
.hero-clock figcaption { display: flex; align-items: center; gap: 12px; margin-top: 28px; min-height: 34px; }
.dial-time { font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dial-note { color: var(--muted); font-size: 15px; }
.dial-hint { margin-top: 10px; font-size: 13px; color: var(--faint); }

/* ───────── phones ───────── */
.phone { position: relative; }
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 1236;
  filter: drop-shadow(0 24px 40px rgb(60 20 25 / 0.16)) drop-shadow(0 4px 10px rgb(60 20 25 / 0.08));
}
@media (prefers-color-scheme: dark) { .phone img { filter: drop-shadow(0 24px 48px rgb(0 0 0 / 0.6)); } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio-card .phone { max-width: 300px; margin: 0 auto 28px; transition: transform 0.6s var(--ease); }
.trio-card:hover .phone { transform: translateY(-6px); }
.trio-card h3 { font-size: 22px; margin-bottom: 8px; text-align: center; }
.trio-card p { color: var(--muted); font-size: 16px; max-width: 22em; margin: 0 auto; text-align: center; }

/* ───────── features ───────── */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.feature-flip .feature-copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 16px; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23e0163c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.2s;
}
.cat img { width: 84%; height: 84%; margin: 8%; object-fit: contain; }
.cat span {
  position: absolute;
  left: 8px;
  top: 6px;
  font: 600 11px var(--mono);
  color: var(--faint);
}
.cat:hover { transform: scale(1.06); z-index: 1; }
.cat.now { box-shadow: inset 0 0 0 2px var(--rose); }
.cat.now span { color: var(--rose); }

.orbit-card {
  justify-self: center;
  width: min(100%, 460px);
  aspect-ratio: 1;
  border-radius: 22%;
  background: var(--dial);
  box-shadow: var(--shadow);
  padding: 3%;
}
.orbit { width: 100%; height: 100%; }
.orbit .track { fill: none; stroke: var(--line); stroke-width: 1.5; }
.orbit .digit { fill: var(--faint); font: 500 19px var(--sans); text-anchor: middle; dominant-baseline: central; }
.orbit .digit.on { fill: var(--ink); font-weight: 600; font-size: 28px; }
.orbit .frame { fill: none; stroke: var(--rose); stroke-width: 3; }
.orbit .frame-fill { fill: var(--dial); opacity: 0.86; }
.orbit .sep { stroke: var(--line); stroke-width: 1.5; }
.orbit-controls { margin-top: 26px; }

/* ───────── widgets ───────── */
.widgets { max-width: none; padding-left: 0; padding-right: 0; }
.widgets-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 56px;
  border-radius: 40px;
  background: #0d0b0b;
  color: #f3efed;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
  overflow: hidden;
}
.widgets .eyebrow, .widgets .sub { color: #a39b98; }
.widgets h2 em { color: #ff4d6b; }
.widgets .ticks li::before { background-color: rgb(255 77 107 / 0.18); }
.widgets-img { width: 100%; max-width: 360px; justify-self: center; border-radius: 24px; }

/* ───────── privacy ───────── */
.privacy-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.privacy-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.privacy-list li { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--line); }
.privacy-list li:last-child { border-bottom: 1px solid var(--line); }
.privacy-list strong { font-size: 19px; }
.privacy-list li > span { color: var(--muted); font-size: 16px; }

/* ───────── pricing ───────── */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.plan {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan h3 { font-size: 22px; }
.plan-price { font-size: 34px; font-weight: 800; margin-top: 10px; letter-spacing: -0.02em; }
.plan .ticks { margin-top: 24px; }
.plan-plus {
  background: linear-gradient(160deg, #ff3358, #d40f35 55%, #a50a2a);
  color: #fff;
  box-shadow: 0 30px 60px -24px rgb(212 15 53 / 0.55);
}
.plan-plus .ticks li::before {
  background-color: rgb(255 255 255 / 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-note { font-size: 13px; opacity: 0.8; margin-top: 22px; }

/* ───────── faq ───────── */
.faq { max-width: 860px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-list details p { color: var(--muted); padding: 0 40px 24px 0; }

/* ───────── final + footer ───────── */
.final { text-align: center; padding: 140px 20px 120px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.final img { border-radius: 22px; box-shadow: var(--shadow); }
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer p a { text-decoration: underline; text-underline-offset: 3px; }

/* ───────── reveal ───────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────── responsive ───────── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; text-align: left; }
  .hero-clock { order: -1; }
  .dial-card { width: min(84vw, 400px); }
  .section { padding-top: 88px; }
  .section-head { margin-bottom: 40px; }
  .trio { grid-template-columns: 1fr; gap: 56px; }
  .trio-card .phone { max-width: 260px; }
  .feature, .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-flip .feature-copy { order: 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .widgets { padding-left: 12px; padding-right: 12px; }
  .widgets-inner { grid-template-columns: 1fr; padding: 48px 24px; border-radius: 28px; gap: 40px; }
  .plans { grid-template-columns: 1fr; }
  .faq-list summary { font-size: 17px; }
  .sub, .lede { font-size: 17px; }
}
@media (max-width: 420px) {
  .cta-row .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}
