/* ============================================================
   搁这儿 ForNow — product site
   Dark-first, macOS-native landing page. No frameworks.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  color-scheme: dark; /* native dark form controls, scrollbars, autofill */

  --bg:        #0a0a0c;
  --bg-2:      #0e0e11;
  --surface:   #141418;
  --surface-2: #1a1a20;
  --surface-3: #212129;
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #f4f4f6;
  --text-dim:  #a6a6ad;
  --text-faint:#808089; /* ≥4.5:1 against all backgrounds (WCAG AA) */

  --blue:   #1c19df;
  --teal:   #24cda1;
  --magenta:#da2882;
  --yellow: #c3c625;
  --grad:   linear-gradient(120deg, #24cda1 0%, #1c19df 52%, #da2882 100%);
  --grad-soft: linear-gradient(120deg, rgba(36,205,161,.16), rgba(218,40,130,.16));
  --grad-btn: linear-gradient(120deg, #1c19df 0%, #da2882 100%);

  --green: #37e0a0;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.3);
  --shadow:    0 14px 40px rgba(0,0,0,.45);
  --shadow-lg: 0 30px 90px rgba(0,0,0,.6);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-notch: cubic-bezier(.16, 1, .3, 1);

  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "PingFang SC", "Helvetica Neue", "Microsoft YaHei", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
kbd {
  font-family: var(--font);
  font-size: .85em;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .05em .45em;
  color: var(--text);
  white-space: nowrap;
}
::selection { background: rgba(28,25,223,.45); color: #fff; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--surface-2); color: var(--text);
  padding: 10px 18px; border-radius: 0 0 12px 12px; z-index: 200;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

/* focus visibility */
:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Shared bits ---------- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Even, balanced line breaks for display headings (progressive enhancement) */
.hero__title, .section__title, .privacy__title, .download__title {
  text-wrap: balance;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(218,40,130,.55);
}

/* Buttons */
.btn {
  --pad: 12px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--lg { --pad: 15px 30px; font-size: 16px; }
.btn--sm { --pad: 9px 18px; font-size: 14px; }
.btn__apple { margin-top: -2px; }

.btn--primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 8px 26px rgba(28,25,223,.35), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(218,40,130,.45), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,.04);
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  background: rgba(10,10,12,.62);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10,10,12,.82);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 13px 24px;
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { display: inline-flex; filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
.brand__name {
  font-weight: 700; font-size: 18px; letter-spacing: .01em;
  display: inline-flex; align-items: baseline; gap: 7px;
  white-space: nowrap;
}
.brand__name em {
  font-style: normal; font-weight: 600; font-size: 12.5px;
  color: var(--text-faint); letter-spacing: .06em;
}
.nav__links {
  display: flex; gap: 28px; margin-left: auto;
  font-size: 14.5px; color: var(--text-dim); font-weight: 500;
}
.nav__links a { position: relative; transition: color .2s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width .25s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 4px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 104px) 24px 0;
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: -20% 0 auto 0; height: 720px;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(28,25,223,.24), transparent 70%),
    radial-gradient(40% 50% at 72% 12%, rgba(218,40,130,.16), transparent 70%),
    radial-gradient(40% 50% at 28% 16%, rgba(36,205,161,.13), transparent 70%);
  filter: blur(6px);
  pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.hero__title {
  font-size: clamp(40px, 7.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 22px 0 0;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-dim);
  line-height: 1.7;
}
.hero__actions {
  margin-top: 34px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--text-faint); }

/* ---------- The Stage / Notch demo ---------- */
.stage {
  position: relative;
  max-width: 940px;
  margin: clamp(40px, 6vw, 68px) auto 0;
  z-index: 1;
}
.stage__screen {
  position: relative;
  height: 420px;
  border-radius: 22px 22px 20px 20px;
  background:
    radial-gradient(120% 90% at 50% -10%, #23242e 0%, #16161c 42%, #0d0d11 100%);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
/* subtle wallpaper light at the bottom */
.stage__screen::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
  background: radial-gradient(80% 100% at 50% 120%, rgba(28,25,223,.10), transparent 70%);
  pointer-events: none;
}

/* faux menu bar */
.menubar {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  font-size: 12.5px; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.05);
  backdrop-filter: blur(10px);
  z-index: 1;
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 15px; }
.mb-logo { width: 14px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.55); }
.mb-item { opacity: .78; }
.mb-item--bold { font-weight: 700; opacity: 1; }
.mb-icon { display: inline-flex; opacity: .85; color: rgba(255,255,255,.85); }
.mb-clock { font-variant-numeric: tabular-nums; opacity: .9; }

/* The notch itself (wrapper; the trigger button inside is the hit target) */
.notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 205px; height: 34px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 5;
  display: flex; flex-direction: column; align-items: center;
  transition: width .5s var(--ease-notch), height .5s var(--ease-notch),
              box-shadow .4s var(--ease);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
  overflow: hidden;
}
.notch__trigger {
  position: absolute; inset: 0; z-index: 4;
  padding: 0; background: transparent; border: 0;
  border-radius: inherit; cursor: pointer;
}
.notch__trigger:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: -4px;
}
.notch__pill {
  position: absolute; top: 0; left: 0; right: 0; height: 34px;
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity .28s var(--ease);
}
.notch__hint { color: rgba(255,255,255,.34); display: inline-flex; transition: color .3s var(--ease); }
.notch:hover .notch__hint { color: rgba(255,255,255,.7); }

/* drop-ready ring */
.notch__ring {
  position: absolute; inset: 3px; border-radius: 0 0 18px 18px;
  border: 1.5px dashed transparent; pointer-events: none;
  transition: border-color .3s var(--ease), inset .3s var(--ease);
}

/* HOVER / DROP-READY state */
.notch.is-ready {
  width: 240px; height: 52px;
  box-shadow: 0 10px 34px rgba(195,198,37,.35), 0 0 0 1px rgba(195,198,37,.4);
}
.notch.is-ready .notch__ring { border-color: rgba(195,198,37,.6); }
.notch.is-ready .notch__hint { color: var(--yellow); }

/* OPEN state */
.notch.is-open {
  width: 372px; height: 316px;
  border-radius: 0 0 26px 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06);
}
.notch.is-open .notch__pill { opacity: 0; }

/* panel content */
.notch__panel {
  position: absolute; inset: 0;
  padding: 16px 16px 12px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease) .1s, transform .4s var(--ease-notch) .05s;
  pointer-events: none;
  display: flex; flex-direction: column;
}
.notch.is-open .notch__panel { opacity: 1; transform: none; }

.panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 4px 4px 10px;
}
.panel__title { font-weight: 700; font-size: 15px; }
.panel__meta { font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

.panel__list { display: flex; flex-direction: column; gap: 6px; }
.chip {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 11px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
  opacity: 0; transform: translateY(6px);
}
.notch.is-open .chip { animation: chipIn .42s var(--ease-notch) forwards; animation-delay: calc(.12s + var(--i) * .06s); }
@keyframes chipIn { to { opacity: 1; transform: none; } }

/* quick entry bar (demo of the real app's bottom input field) */
.quick-entry {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-faint);
  font-size: 12.5px;
}
.quick-entry svg { flex: none; color: var(--text-faint); }
.quick-entry__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-entry__caret {
  flex: none; width: 1.5px; height: 13px; border-radius: 1px;
  background: var(--magenta);
  animation: caretBlink 1.1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.chip__icon { flex: none; width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center; background: rgba(255,255,255,.06); }
.chip__icon--soft { background: rgba(255,255,255,.05); }
.chip__thumb { flex: none; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; position: relative; }
.chip__thumb-g { position: absolute; inset: 0;
  background: linear-gradient(135deg, #1c19df, #da2882 55%, #24cda1); }
.chip__body { display: flex; flex-direction: column; min-width: 0; }
.chip__name {
  font-size: 12.5px; font-weight: 500; color: #ededf0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px;
}
.chip__sub { font-size: 10.5px; color: var(--text-faint); margin-top: 1px; }

/* flying file */
.flyer {
  position: absolute; z-index: 6;
  left: 20%; top: 78%;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px 7px 8px;
  background: rgba(30,30,36,.92);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 12px; color: #eee;
  box-shadow: var(--shadow);
  opacity: 0; transform: scale(.9);
  pointer-events: none;
}
.flyer.is-flying { animation: fly 1.5s var(--ease) forwards; }
@keyframes fly {
  0%   { opacity: 0; left: 18%; top: 82%; transform: scale(.9) rotate(-4deg); }
  15%  { opacity: 1; }
  70%  { opacity: 1; left: 50%; top: 20%; transform: translateX(-50%) scale(.82) rotate(2deg); }
  100% { opacity: 0; left: 50%; top: 4%;  transform: translateX(-50%) scale(.4) rotate(0); }
}

/* toast */
.toast {
  position: absolute; z-index: 7;
  left: 50%; top: 62px; transform: translate(-50%, 6px);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: rgba(20,22,20,.92);
  border: 1px solid rgba(55,224,160,.3);
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #d7fff0;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.stage__caption {
  margin-top: 20px; text-align: center;
  font-size: 13.5px; color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.stage__caption kbd { font-size: 12px; }
.stage__dotline { display: inline-flex; gap: 4px; }
.stage__dotline span { width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }
.stage__dotline span:nth-child(2) { background: var(--magenta); }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
.section { padding: clamp(72px, 11vw, 128px) 24px; position: relative; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 14px;
}
.section__title {
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.14; letter-spacing: -0.02em; font-weight: 700;
}
.section__lead {
  margin-top: 16px; font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim); line-height: 1.7;
}

/* ---------- Problem ---------- */
.problem { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.prob-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.prob-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px 24px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.prob-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.prob-card__no {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
}
.prob-card h3 { font-size: 17px; font-weight: 650; margin: 14px 0 9px; letter-spacing: -.01em; }
.prob-card p { font-size: 14px; color: var(--text-dim); line-height: 1.65; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step__visual {
  position: relative; height: 148px;
  border-radius: var(--radius);
  background: radial-gradient(120% 100% at 50% 0%, #1c1d24, #131318);
  border: 1px solid var(--line);
  overflow: hidden; margin-bottom: 22px;
}
.step__num {
  position: absolute; right: 14px; bottom: 10px;
  font-size: 40px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.06);
}
.mini-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 84px; height: 16px; background: #000; border-radius: 0 0 10px 10px;
}
.mini-notch--open { width: 130px; height: 60px; box-shadow: 0 6px 16px rgba(0,0,0,.5); }
.mini-notch--open::before {
  content: ""; position: absolute; inset: 10px 12px auto; height: 8px; border-radius: 4px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 16px 0 rgba(255,255,255,.1);
}
/* typing step: typed text flies into the panel */
.mini-caret {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  color: var(--magenta); font-weight: 300; line-height: 1;
  animation: caretBlink 1.1s steps(1) infinite;
}
.mini-text {
  position: absolute; left: 50%; top: 88px; transform: translateX(-50%);
  width: max-content; max-width: 88%;
  font-size: 12px; color: #eee;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-2);
  border-radius: 9px; padding: 7px 12px;
  opacity: 0; animation: typeIn 3s var(--ease) infinite;
}
@keyframes typeIn {
  0%, 14%  { opacity: 0; transform: translateX(-50%) translateY(8px); }
  32%, 82% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100%    { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.88); }
}
.mini-file {
  position: absolute; left: 50%; width: 30px; height: 38px; border-radius: 5px;
  background: linear-gradient(160deg, #fff, #d9d9de);
  box-shadow: var(--shadow-sm);
}
.mini-file--in { animation: fileIn 2.6s var(--ease) infinite; }
.mini-file--out { animation: fileOut 2.6s var(--ease) infinite; }
@keyframes fileIn {
  0%   { top: 96px; transform: translateX(-50%) scale(1); opacity: 0; }
  18%  { opacity: 1; }
  70%  { top: 20px; transform: translateX(-50%) scale(.7); opacity: 1; }
  85%,100% { top: 8px; transform: translateX(-50%) scale(.3); opacity: 0; }
}
@keyframes fileOut {
  0%   { top: 16px; transform: translateX(-50%) scale(.4); opacity: 0; }
  20%  { opacity: 1; }
  75%  { top: 92px; transform: translateX(-50%) scale(1); opacity: 1; }
  100% { top: 104px; transform: translateX(-50%) scale(1); opacity: 0; }
}
.step h3 { font-size: 20px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 9px; }
.step p { font-size: 14.5px; color: var(--text-dim); line-height: 1.7; }
.step p strong { color: var(--text); font-weight: 650; }

/* ---------- Content types ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.type-card:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); }
.type-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--line);
}
.type-card__icon--file { color: #ff7ab0; background: rgba(218,40,130,.12); }
.type-card__icon--img  { color: #5fdcc0; background: rgba(36,205,161,.12); }
.type-card__icon--text { color: #d9dc4f; background: rgba(195,198,37,.12); }
.type-card__icon--link { color: #8f8fff; background: rgba(28,25,223,.14); }
.type-card h3 { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.type-card__desc { font-size: 13.5px; color: var(--text-dim); margin: 8px 0 16px; line-height: 1.6; }
.type-card__actions { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; }
.type-card__actions li {
  font-size: 12px; color: var(--text-dim);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  padding: 4px 10px; border-radius: 999px;
}
.type-note {
  margin-top: 34px; text-align: center; font-size: 14.5px; color: var(--text-dim);
}
.prio {
  color: var(--text); font-weight: 600;
  background: var(--grad-soft); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
  display: inline-block; margin-top: 4px;
}

/* ---------- Panel showcase ---------- */
.panel-show { background: var(--bg-2); }
.panel-show__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.feature-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.feature-list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; color: var(--text);
}
.feature-list svg { flex: none; color: var(--green);
  background: rgba(55,224,160,.12); border-radius: 50%; padding: 4px; box-sizing: content-box; width: 16px; height: 16px; }

.mock-panel {
  background: linear-gradient(180deg, #17171d, #121216);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateX(4deg);
}
.mock-panel__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.mock-panel__title { font-weight: 700; font-size: 15px; }
.mock-panel__meta { font-size: 12px; color: var(--text-faint); }
.mock-panel__rows { padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.mrow {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid transparent;
  transition: background .2s var(--ease);
}
.mrow.is-selected { background: rgba(28,25,223,.12); border-color: rgba(28,25,223,.32); }
.mrow__ck {
  flex: none; width: 17px; height: 17px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
.mrow.is-selected .mrow__ck {
  border-color: transparent; background: var(--blue);
  position: relative;
}
.mrow.is-selected .mrow__ck::after {
  content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.mrow__ic { flex: none; width: 30px; height: 30px; border-radius: 8px; }
.mrow__ic--file { background: rgba(218,40,130,.18); border: 1px solid rgba(218,40,130,.32); }
.mrow__ic--img  { background: linear-gradient(135deg, #24cda1, #1c19df); }
.mrow__ic--text { background: rgba(195,198,37,.16); border: 1px solid rgba(195,198,37,.3); }
.mrow__ic--link { background: rgba(28,25,223,.16); border: 1px solid rgba(28,25,223,.32); }
.mrow__tx { display: flex; flex-direction: column; min-width: 0; }
.mrow__tx b { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__tx i { font-style: normal; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; }
.mock-panel__foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.mfoot-tag { font-size: 12.5px; color: var(--text-dim); }
.mfoot-actions { display: flex; gap: 8px; }
.mfoot-btn {
  font-size: 12.5px; padding: 6px 13px; border-radius: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.mfoot-btn--danger { color: #ff9a9a; background: rgba(255,80,80,.1); border-color: rgba(255,80,80,.24); }
.mock-panel__entry {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-faint);
  background: rgba(255,255,255,.015);
}
.mock-panel__entry svg { flex: none; }
.mock-panel__entry span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-caret {
  flex: none; width: 1.5px; height: 13px; border-radius: 1px;
  background: var(--magenta);
  animation: caretBlink 1.1s steps(1) infinite;
}

/* ---------- Principles ---------- */
.prin-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.prin {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px 22px;
  min-height: 200px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.prin:hover { transform: translateY(-4px); border-color: var(--line-2); }
.prin__tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  color: var(--magenta); background: var(--grad-soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}
.prin__big {
  margin-top: auto; padding-top: 18px;
  font-size: 26px; font-weight: 750; line-height: 1.12; letter-spacing: -.02em;
}
.prin__big span { font-size: 15px; color: var(--text-faint); font-weight: 600; }
.prin__desc { margin-top: 10px; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Privacy ---------- */
.privacy {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(55,224,160,.08), transparent 60%),
    var(--bg);
}
.privacy__inner { max-width: 760px; text-align: center; }
.privacy__badge {
  width: 84px; height: 84px; margin: 0 auto 26px;
  display: grid; place-items: center;
  color: var(--green);
  background: rgba(55,224,160,.08);
  border: 1px solid rgba(55,224,160,.2);
  border-radius: 24px;
}
.privacy__title { font-size: clamp(28px, 4.6vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.privacy__lead { margin: 20px auto 0; max-width: 640px; font-size: 17px; color: var(--text-dim); line-height: 1.75; }
.privacy__pills { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 550;
  background: var(--surface); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 999px;
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(55,224,160,.7); }

/* ---------- Fallback ---------- */
.fallback__inner {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 72px); align-items: center;
}
.fallback__ways { display: flex; flex-direction: column; gap: 14px; }
.way {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.way:hover { transform: translateX(4px); border-color: var(--line-2); }
.way__ic {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--teal);
  background: var(--grad-soft); border: 1px solid var(--line);
}
.way h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 4px; }
.way p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Roadmap ---------- */
.roadmap { background: var(--bg-2); }
.road-list {
  list-style: none; max-width: 760px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px;
}
.road-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15.5px; color: var(--text-dim);
  padding: 16px 4px; border-bottom: 1px solid var(--line);
}
.road-dot {
  flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 10px rgba(28,25,223,.45);
}

/* ---------- Changelog / 更新说明 ---------- */
.changelog__card {
  max-width: 780px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 34px);
}
.changelog__head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.changelog__ver {
  font-size: 15px; font-weight: 800; letter-spacing: .01em;
  color: transparent; background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
}
.changelog__date { font-size: 13px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.changelog__badge {
  margin-left: auto; white-space: nowrap;
  font-size: 12px; font-weight: 650;
  color: var(--green);
  background: rgba(55,224,160,.1);
  border: 1px solid rgba(55,224,160,.26);
  padding: 3px 11px; border-radius: 999px;
}
.changelog__list { list-style: none; margin-top: 12px; }
.changelog__list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 4px;
  font-size: 14.5px; color: var(--text-dim); line-height: 1.65;
  border-bottom: 1px solid var(--line);
}
.changelog__list li:last-child { border-bottom: 0; padding-bottom: 4px; }
.changelog__list strong { color: var(--text); font-weight: 650; }
.c-tag {
  flex: none; margin-top: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 2.5px 8px; border-radius: 6px;
}
.c-tag--new    { color: #6fe3b0; background: rgba(55,224,160,.12); }
.c-tag--better { color: #9b9bff; background: rgba(28,25,223,.16); }
.c-tag--safe   { color: #7fd0ff; background: rgba(38,160,255,.12); }

/* ---------- Download CTA ---------- */
.download { padding: clamp(40px, 8vw, 80px) 24px clamp(80px, 12vw, 130px); }
.download__inner {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 84px) 28px;
  overflow: hidden;
}
.download__glow {
  position: absolute; inset: auto 0 -50% 0; height: 320px;
  background: radial-gradient(50% 100% at 50% 100%, rgba(28,25,223,.32), transparent 70%);
  pointer-events: none;
}
.download__title { position: relative; font-size: clamp(30px, 5vw, 52px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.download__sub { position: relative; margin-top: 16px; font-size: 18px; color: var(--text-dim); }
.download__actions { position: relative; margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.download__hint { font-size: 13px; color: var(--text-faint); }
.download__gh {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 550; color: var(--text-dim);
  transition: color .2s var(--ease);
}
.download__gh:hover { color: var(--text); }
.download__gh svg { flex: none; opacity: .85; }

/* ---------- 404 ---------- */
.page-404 { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf { text-align: center; max-width: 540px; }
.nf__kicker {
  font-size: clamp(56px, 10vw, 92px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1; margin-bottom: 14px;
}
.nf__title { font-size: clamp(26px, 4.4vw, 40px); font-weight: 700; letter-spacing: -.02em; }
.nf__sub { margin: 14px 0 30px; font-size: 16px; color: var(--text-dim); }
.nf__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 24px 32px; background: var(--bg); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
}
.footer__brand { display: flex; gap: 14px; align-items: flex-start; }
.footer__name { font-weight: 700; font-size: 17px; display: flex; align-items: baseline; gap: 7px; }
.footer__name em { font-style: normal; font-size: 12px; color: var(--text-faint); font-weight: 600; letter-spacing: .06em; }
.footer__tag { font-size: 13.5px; color: var(--text-dim); margin-top: 4px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col h4 { font-size: 13px; color: var(--text-faint); font-weight: 600; letter-spacing: .04em; margin-bottom: 3px; }
.footer__col a { font-size: 14px; color: var(--text-dim); transition: color .2s var(--ease); width: fit-content; }
.footer__col a:hover { color: var(--text); }
.footer__soon { font-size: 14px; color: var(--text-faint); width: fit-content; }
.footer__bottom {
  max-width: var(--maxw); margin: 40px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 12.5px; color: var(--text-faint);
}

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .btn--github .gh-label { display: none; } /* GitHub 按钮在小屏只留图标 */
  .prob-grid, .type-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-show__inner, .fallback__inner { grid-template-columns: 1fr; }
  .fallback__text { text-align: center; }
  .fallback__text .section__kicker,
  .fallback__text .section__lead { text-align: center; }
  .road-list { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .mock-panel { transform: none; }
}
@media (max-width: 620px) {
  .nav__inner { padding: 12px 16px; gap: 12px; }
  .hero { padding-left: 20px; padding-right: 20px; }
  .hero__title { font-size: clamp(32px, 9vw, 44px); }
  .stage__screen { height: 360px; }
  .notch.is-open { width: 300px; height: 314px; }
  .prob-grid, .type-grid, .prin-grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; }
  .nav .btn { width: auto; } /* 导航按钮保持紧凑，不被拉伸 */
  .br-wide { display: none; }
  .footer__cols { grid-template-columns: 1fr; }
  .chip__name { max-width: 190px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .notch { transition: none; }
}
