:root {
  color-scheme: dark;
  --bg: #050507;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.14);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --soft: rgba(255, 255, 255, 0.38);
  --accent: #f7f0dc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 214, 154, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(143, 188, 255, 0.16), transparent 30rem),
    linear-gradient(135deg, #030305 0%, #09090d 48%, #15100d 100%);
  color: var(--text);
  font-family: "LXGW WenKai Screen", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

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

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

.narrow {
  width: min(860px, calc(100% - 40px));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  filter: drop-shadow(0 10px 28px rgba(255, 255, 255, 0.16));
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 72px;
  align-items: center;
  min-height: 760px;
  padding: 72px 0 96px;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.primary {
  color: #111;
  background: var(--accent);
  box-shadow: 0 18px 48px rgba(247, 240, 220, 0.18);
}

.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.phone {
  position: relative;
  width: 320px;
  height: 660px;
  margin: 0 auto;
  border-radius: 54px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 44px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 7rem),
    radial-gradient(circle at 50% 45%, rgba(175, 139, 255, 0.22), transparent 12rem),
    linear-gradient(180deg, #111318, #050506 62%, #000);
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.88));
}

.top-pills {
  position: absolute;
  top: 52px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  color: rgba(255,255,255,0.42);
  font-size: 12px;
  z-index: 2;
}

.top-pills span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.watermark {
  position: absolute;
  top: 132px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  text-shadow: 0 4px 22px rgba(0,0,0,0.8);
  z-index: 2;
}

.record-dot {
  position: absolute;
  left: 50%;
  bottom: 54px;
  width: 76px;
  height: 76px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 4px solid white;
  z-index: 2;
}

.record-dot::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #ff2b30;
  transition: border-radius 0.28s ease, transform 0.28s ease;
}

.bottom-line {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 112px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.8);
  z-index: 2;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.36;
  pointer-events: none;
}

.orb-one {
  width: 180px;
  height: 180px;
  left: 42%;
  top: 16%;
  background: #f7f0dc;
}

.orb-two {
  width: 220px;
  height: 220px;
  right: 4%;
  bottom: 18%;
  background: #7fa8ff;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 96px;
}

.principles article,
.doc,
.support-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.principles article {
  border-radius: 28px;
  padding: 28px;
}

.num {
  color: var(--soft);
  font-size: 13px;
  letter-spacing: 0.16em;
}

h2 {
  margin: 20px 0 12px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.principles p,
.doc p {
  color: var(--muted);
  line-height: 1.8;
}

.statement {
  padding: 86px 0 120px;
  text-align: center;
}

.statement p {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(28px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.07em;
}

.doc {
  margin: 72px 0 96px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
}

.doc h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.doc a {
  color: var(--accent);
  border-bottom: 1px solid rgba(247,240,220,0.28);
}

.doc hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.support-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
  padding: 22px;
  border-radius: 22px;
  background: var(--panel);
}

.support-card span { color: var(--muted); }
.support-card a { color: var(--accent); }

/* ── FAQ list (support page) ─────────────────────────────────────────── */

.faq-list {
  margin: 20px 0 0;
  padding: 0;
}

.faq-item {
  margin: 0 0 20px;
  padding: 20px;
  border-radius: 16px;
  background: var(--panel);
}

.faq-item dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.faq-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 0 20px 34px;
  color: var(--soft);
  font-size: 13px;
}

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

  .phone {
    width: min(320px, 100%);
    height: 620px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

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

/* ── Nav: sticky + full-bleed blur on scroll ─────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Full-bleed backdrop behind the sticky nav */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto;
  height: 80px;
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

body.nav-scrolled::before {
  opacity: 1;
}

/* ── Language toggle button ──────────────────────────────────────────── */

.lang-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ── Hero entrance animation (CSS keyframes, no JS flash) ────────────── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

.hero-copy .eyebrow { animation: fade-up 0.6s ease 0.05s  both; }
.hero-copy h1       { animation: fade-up 0.65s ease 0.15s both; }
.hero-copy .lead    { animation: fade-up 0.6s ease 0.28s  both; }
.hero-copy .actions { animation: fade-up 0.6s ease 0.40s  both; }
.hero .phone        { animation: fade-up 0.7s ease 0.22s  both; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow,
  .hero-copy h1,
  .hero-copy .lead,
  .hero-copy .actions,
  .hero .phone { animation: none; }
}

/* ── Scroll reveal (below-fold) ──────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ── Phone recording simulation ──────────────────────────────────────── */

.record-dot {
  transition: border-color 0.25s ease;
}

/* Inner red square during recording */
.record-dot::after {
  transition: border-radius 0.28s ease, transform 0.28s ease;
}

.record-dot.recording {
  border-color: rgba(255, 255, 255, 0.5);
}

.record-dot.recording::after {
  border-radius: 7px;
  transform: scale(0.66);
}

/* Recording duration timer */
.record-timer {
  position: absolute;
  bottom: 208px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 26px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

/* "已保存" toast that pops up after recording stops */
.phone-toast {
  position: absolute;
  bottom: 148px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
  pointer-events: none;
}

.phone-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Orb: smooth parallax transitions ────────────────────────────────── */

.orb {
  transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
