/* ═══════════════════════════════════════════════════
   Evella · Landing
   token 直接沿用 app/app.css 那一套 Quiet Signal
   ═══════════════════════════════════════════════════ */

:root {
  --ink:      #35251F;
  --ink-700:  #4A3529;
  --ink-500:  #6E5546;
  --ink-300:  #A18978;
  --signal:   #E96F51;
  --clay:     #E7A47E;
  --peach:    #F6D2BE;
  --paper:    #FFF8F1;
  --bone:     #F4F0E8;

  --fg:       var(--ink);
  --fg-2:     rgba(53, 37, 31, .70);
  --fg-3:     rgba(53, 37, 31, .48);
  --hairline: rgba(53, 37, 31, .16);

  --grad-signal: linear-gradient(180deg, #F28A66 0%, #E96F51 50%, #DA5734 100%);
  --grad-paper:  linear-gradient(180deg, #FFFFFF 0%, #FFF3E9 45%, #FBE3D2 100%);
  --lift-strong: inset 0 -1.5px 1.5px rgba(53,37,31,.20), 0 3px 10px -2px rgba(53,37,31,.24);
  --lift-soft:   0 3px 10px -3px rgba(53,37,31,.16);
  --lift-card:   0 18px 44px -20px rgba(53,37,31,.34);

  --serif: 'Fraunces', Georgia, serif;
  --sans:  'Inclusive Sans', -apple-system, system-ui, sans-serif;

  --r-md: 20px; --r-lg: 28px; --r-full: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --pad: 24px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--fg);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* 颗粒 —— 和 app 里 #grain 同一张图。
   一定要按 section 分块铺：整页一层 fixed + mix-blend-mode 在滚动时
   会把浏览器合成器压垮，整屏白掉（原型里踩过一次）。 */
.grain { display: none; }
.hero, section, footer { position: relative; }
.hero::after, section::after, footer::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('img/grain-surface.png') 0 0 / 512px 512px;
  mix-blend-mode: overlay; opacity: .5;
}
.hero > *, section > *, footer > * { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ── type ───────────────────────────────────────── */
.eyebrow {
  font: 500 11px/16px var(--sans);
  letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(36px, 6.4vw, 74px); line-height: 1.08; }
h2 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.14; }
h3 { font-size: 21px; line-height: 1.3; }
h1 em, h2 em { font-style: italic; }
.lede { font-size: clamp(16px, 2.1vw, 19px); line-height: 1.65; color: var(--fg-2); }

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 56px; padding: 0 30px; border: 0; border-radius: var(--r-full);
  font: 500 16px/1 var(--sans); cursor: pointer; white-space: nowrap;
  transition: transform .16s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad-signal); color: var(--paper); box-shadow: var(--lift-strong); }
.btn.ghost {
  background: var(--grad-paper); color: var(--ink);
  border: 1px solid var(--hairline); box-shadow: var(--lift-soft);
}
.btn.sm { height: 44px; padding: 0 22px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }

/* ── nav ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,248,241,.94);
  border-bottom: 1px solid rgba(53,37,31,.08);
}
.nav .inner {
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { width: 30px; height: auto; }
.brand span { font: 400 25px/1 var(--serif); letter-spacing: -.02em; }
.nav .links { display: flex; gap: 30px; font-size: 15px; color: var(--fg-2); }
.nav .links a:hover { color: var(--ink); }

/* ── hero：一屏只有球 + slogan + 箭头，往下滚才展开 ───── */
/* 注意：.hero 不能有 overflow:hidden，body 也不能有 overflow-x:hidden，
   任何祖先上的 overflow 都会让 position:sticky 失效。 */
.hero {
  position: relative;
  /* 单一暖色渐变会显得平 —— 四层叠出来：
     球背后的光源、两角很淡的冷调（有冷才显得出暖）、四周压暗、底色本身加深 */
  background:
    radial-gradient(118% 74% at 50% 4%, rgba(255,253,250,.9) 0%, rgba(255,253,250,0) 48%),
    radial-gradient(86% 58% at 8% 100%,  rgba(146,112,128,.17) 0%, rgba(146,112,128,0) 64%),
    radial-gradient(86% 58% at 92% 94%,  rgba(146,112,128,.13) 0%, rgba(146,112,128,0) 62%),
    radial-gradient(142% 104% at 50% 40%, rgba(53,37,31,0) 50%, rgba(53,37,31,.12) 100%),
    linear-gradient(178deg, #FFF8F1 0%, #F9DAC6 38%, #EFAF89 72%, #DE9670 100%);
  text-align: center;
}
.hero-stage { height: 200vh; }
.hero-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 var(--pad);        /* 跟 nav 的 .wrap 用同一个值，才能和 logo 左边线对齐 */
  --p: 0; --r: 0;
  --orb: clamp(230px, max(34vh, 21vw), 440px);
}

/* ── 球 ─────────────────────────────────────────── */
.orb-stage {
  position: relative; z-index: 0; flex: 0 0 auto;
  width: 100%; height: var(--orb);
}
.orb-wrap {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--p) * -30px)) scale(calc(1 - var(--p) * 0.56));
  opacity: calc(1 - var(--p) * 0.6);
  will-change: transform, opacity;
}
.orb {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  /* 画布比球大一圈 —— 迸散时粒子会被方形画布边裁掉，露出直边 */
  width: calc(var(--orb) * 1.45); height: calc(var(--orb) * 1.45);
  display: block; cursor: pointer;
}
@media (hover: none) { .orb { cursor: default; } }
/* 外圈晕染用 radial-gradient，不用 filter: blur —— 大面积模糊会拖垮合成器 */
.orb-halo {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(clamp(380px, 54vh, 620px), 100vw);
  height: min(clamp(380px, 54vh, 620px), 100vw);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle,
    rgba(214,92,64,.30) 0%, rgba(230,118,86,.18) 30%,
    rgba(240,190,168,.11) 52%, transparent 72%);
  animation: halo 6.5s var(--ease-breath) infinite alternate;
}
@keyframes halo {
  from { transform: translate(-50%,-50%) scale(.92); opacity: .75; }
  to   { transform: translate(-50%,-50%) scale(1.06); opacity: 1; }
}

/* ── 愿望句 ─────────────────────────────────────── */
.q-layer { position: absolute; inset: 0; pointer-events: none; }
.q {
  position: absolute; max-width: min(330px, 24vw);
  opacity: 0; transform: translateY(20px) scale(.94);
  transition: opacity 2.3s var(--ease), transform 2.3s var(--ease);
}
/* 液态玻璃：底色是两层渐变 —— 上层是左上角的高光扫过，
   下层是本体。高光做进 background 而不是伪元素，才不会盖住文字。
   backdrop-filter 只加在这几个小胶囊上，不碰大面积模糊。 */
.q b {
  display: block; font: italic 400 clamp(15px, 1.05vw, 20px)/1.45 var(--serif); font-weight: 400;
  color: var(--ink); text-align: left;
  padding: 12px 22px; border-radius: var(--r-full);
  background:
    linear-gradient(158deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,247,241,.52) 100%);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  border: 1px solid rgba(255,255,255,.66);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 1px rgba(53,37,31,.05),
    0 1px 2px rgba(53,37,31,.05),
    0 12px 28px -10px rgba(53,37,31,.22);
}
.q.on { opacity: 1; transform: none; }

/* 她自己送上去的那一句 —— 底色偏暖一点、描边带一点珊瑚，
   跟别人的愿望句区分开，但不至于跳出来 */
.q.mine b {
  background:
    linear-gradient(158deg, rgba(255,255,255,.74) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(255,240,231,.82) 0%, rgba(250,220,203,.64) 100%);
  border-color: rgba(240,170,144,.78);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 -1px 1px rgba(53,37,31,.05),
    0 1px 2px rgba(53,37,31,.05),
    0 12px 28px -10px rgba(214,92,64,.28);
}
.q.on b { animation: qbreathe 5.4s var(--ease-breath) infinite alternate; }
@keyframes qbreathe {
  from { transform: translateY(3px); }
  to   { transform: translateY(-5px); }
}
/* 横向位置咬着球边算，屏幕再宽也不会被甩开。
   粒子云的可见半径约 0.40×--orb，所以系数要大于它才不会压到球上；
   越靠近球的垂直中心圆越宽，系数就给得越大。 */
.q.s1 { right: calc(50% + max(var(--orb) * 0.42, 10.5vw)); top: 10%; }
.q.s2 { left:  calc(50% + max(var(--orb) * 0.47, 11.5vw)); top: 30%; }
.q.s3 { right: calc(50% + max(var(--orb) * 0.47, 11.5vw)); top: 56%; }
.q.s4 { left:  calc(50% + max(var(--orb) * 0.38, 10vw));   top: 78%; }

/* ── slogan + 后展开的那一组 ────────────────────── */
.hero-copy {
  position: relative; z-index: 2; flex: 0 0 auto;
  transform: translateY(calc(var(--p) * -110px));
  will-change: transform;
}
.hero-copy h1 {
  transform: scale(calc(1 + var(--p) * 0.1));
  transition: none;
}
/* 输入框和按钮组共用同一块位置：一个退场另一个顶上来，中间不留空洞。
   两者都绝对定位，所以第一屏 slogan 依然是真居中。 */
.hero-slot { position: relative; width: 100%; height: 54px; margin-top: 26px; }
.reveal {
  position: absolute; left: 50%; top: 50%;
  width: min(470px, calc(100vw - 48px));
  /* 偏移要跟 .reveal 的高度配套：现在组里只有按钮一行（56px），
     去掉小字之后高度少了 36px，偏移相应从 34 减到 16 */
  transform: translate(-50%, -50%) translateY(calc(16px + (1 - var(--r)) * 22px));
  opacity: var(--r);
  pointer-events: none;
}
.reveal.live { pointer-events: auto; }
.hero .lede {
  margin: 14px auto 0; max-width: min(580px, calc(100vw - 44px));
  font-size: clamp(15px, .95vw, 18px); line-height: 1.6; color: var(--fg-3);
  /* 让浏览器把各行长度配平，否则窄屏上会掉出"in Evella."这种两词孤行 */
  text-wrap: balance;
}
@media (max-width: 620px) {
  /* 收窄一点，第二句自然断成两行匀称的，而不是一行长 + 两个词 */
  .hero .lede { max-width: min(262px, calc(100vw - 64px)); }
}
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

/* ── 小箭头 ─────────────────────────────────────── */
.cue {
  position: absolute; left: 50%; bottom: clamp(22px, 4vh, 44px);
  width: 42px; height: 42px; margin-left: -21px;
  display: grid; place-items: center; color: var(--fg-3);
  opacity: calc(1 - var(--p) * 3.2);
  animation: cue 2.4s var(--ease-breath) infinite;
}
.cue svg { width: 22px; height: 22px; }
@keyframes cue {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (max-height: 720px) {
  .orb-stage, .orb { height: clamp(180px, 26vh, 240px); }
  .orb { width: clamp(180px, 26vh, 240px); }
  .hero-copy { transform: translateY(calc(var(--p) * -80px)); }
}
@media (max-width: 900px) {
  /* 手机上一次只出一条，放在球正上方，宽一点少折行 —— 不存在遮挡问题 */
  .q.s2, .q.s3, .q.s4 { display: none; }
  .q.s1 {
    left: 50%; right: auto; top: auto; bottom: calc(100% + 10px);
    max-width: min(360px, 88vw); width: max-content;
    transform: translate(-50%, 14px) scale(.965);
  }
  .q.s1.on { transform: translate(-50%, 0); }
  .q b { text-align: center; font-size: 15px; padding: 13px 24px; }
  .hero-copy { transform: translateY(calc(var(--p) * -76px)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage { height: auto; }
  .hero-sticky { position: static; height: auto; padding: 72px 24px 88px; --p: 0; --r: 1; }
  .orb-halo, .q.on b, .cue { animation: none; }
  .reveal { position: static; transform: none; opacity: 1; width: auto; margin: 24px auto 0; }
  .q { transition: none; }
}

/* ── section shell ──────────────────────────────── */
section { padding: clamp(64px, 9vw, 118px) 0; scroll-margin-top: 80px; }
.sec-head { max-width: 620px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { margin-top: 12px; }
.sec-head .lede { margin-top: 16px; }

/* ── features ───────────────────────────────────── */
.features {
  background:
    radial-gradient(70% 46% at 50% 0%, rgba(255,248,241,.9) 0%, rgba(255,248,241,0) 70%),
    radial-gradient(80% 60% at 100% 100%, rgba(233,111,81,.06) 0%, rgba(233,111,81,0) 66%),
    var(--bone);
}
.grid {
  display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px);
  grid-template-columns: repeat(auto-fit, minmax(min(272px, 100%), 1fr));
}
/* 宽屏锁三列 —— auto-fit 在 1300 宽会挤出第四列，变成 4+2 */
@media (min-width: 880px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 26px 24px 28px;
  box-shadow: var(--lift-soft);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-paper); border: 1px solid var(--hairline); font-size: 20px;
  box-shadow: var(--lift-soft);
}
.card h3 { margin-top: 18px; }
.card p { margin-top: 9px; font-size: 15px; color: var(--fg-2); }

/* ── 五张可翻转的卡 ──────────────────────────────
   三层各管一件事，不然 transform 会互相抢：
   .flip 渐显 / .bob 浮动 / .inner 翻转 */
.deck {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(12px, 1.6vw, 22px);
  margin-top: clamp(40px, 6vw, 64px);
}
.deck .flip:nth-child(even) { margin-top: clamp(16px, 2.4vw, 34px); }

.flip {
  flex: 0 0 auto; width: clamp(168px, 17vw, 244px);
  aspect-ratio: 2 / 3;
  background: none; border: 0; padding: 0; cursor: pointer;
  opacity: 0; transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--i) * .13s);
}
.flip.in { opacity: 1; transform: none; }

.bob {
  display: block; width: 100%; height: 100%;
  perspective: 1200px;
  animation: bob 6.5s var(--ease-breath) infinite alternate;
  animation-delay: calc(var(--i) * -1.3s);
  animation-play-state: paused;          /* 露面之后才开始飘 */
}
.flip.in .bob { animation-play-state: running; }
@keyframes bob {
  from { transform: translateY(-7px); }
  to   { transform: translateY(7px); }
}

.inner {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d; -webkit-transform-style: preserve-3d;
  transition: transform 1.15s ease-in-out;
}
.flip:hover .inner,
.flip:focus-visible .inner,
.flip.on .inner { transform: rotateY(180deg); }

.face {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: clamp(18px, 1.8vw, 26px);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 46px -20px rgba(53,37,31,.44), 0 2px 6px -2px rgba(53,37,31,.16);
  /* 兜底：翻过去的那一面直接透明，backface-visibility 失效也不会露出镜像文字 */
  transition: opacity 0s linear .575s;   /* 瞬切，正好在转到 90° 那一刻 */
}
.front { transform: rotateY(0deg); opacity: 1; }
.flip:hover .front, .flip:focus-visible .front, .flip.on .front { opacity: 0; }
.back { opacity: 0; }
.flip:hover .back, .flip:focus-visible .back, .flip.on .back { opacity: 1; }
.front img { width: 100%; height: 100%; object-fit: cover; }
/* 照片压一层暖调 + 底部压暗，跟整站的陶土色接上，
   不然五张直出的图贴在纸色底上，AI 味很重 */
.front::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(233,111,81,.12) 0%, rgba(53,37,31,0) 32%,
                            rgba(53,37,31,.28) 72%, rgba(53,37,31,.62) 100%);
}
/* 内圈一道细高光，卡片才有厚度不像贴纸 */
.front::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; border: 1px solid rgba(255,255,255,.30);
}
.tag {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 3;
  font: 400 13px/18px var(--serif); color: var(--paper); text-align: left;
  text-shadow: 0 1px 8px rgba(53,37,31,.55);
}
.back {
  transform: rotateY(180deg);
  background: var(--grad-paper); border: 1px solid var(--hairline);
  display: grid; place-items: center; padding: 22px;
}
.back em {
  font: italic 400 clamp(15px, 1.45vw, 19px)/1.5 var(--serif);
  color: var(--ink); text-align: center;
}

@media (max-width: 900px) {
  .deck {
    justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
    padding: 8px var(--pad) 26px;
    scroll-snap-type: x mandatory;
  }
  .deck::-webkit-scrollbar { display: none; }
  .flip { width: 210px; scroll-snap-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .flip { opacity: 1; transform: none; transition: none; }
  .bob { animation: none; }
  .inner { transition: none; }
}


/* ── sample player ──────────────────────────────── */
.sample {
  background: linear-gradient(180deg, #C28061 0%, #E8D6CB 58%, #DFD5CF 100%);
}
.player {
  max-width: 560px; margin: clamp(32px, 5vw, 48px) auto 0;
  background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.5);
  border-radius: var(--r-lg); padding: 26px 24px 24px; box-shadow: var(--lift-card);
}
.player .row { display: flex; align-items: center; gap: 16px; }
.player .play {
  width: 62px; height: 62px; flex: 0 0 auto; border: 0; border-radius: var(--r-full);
  background: var(--grad-signal); box-shadow: var(--lift-strong);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .16s var(--ease);
}
.player .play:active { transform: scale(.94); }
.player .play svg { width: 24px; height: 24px; fill: var(--paper); }
.player .meta { min-width: 0; text-align: left; }
.player .meta b { display: block; font: 400 19px/1.25 var(--serif); font-weight: 400; }
.player .meta small { font-size: 13px; color: var(--fg-3); }
.player .bar { height: 3px; border-radius: 2px; background: rgba(53,37,31,.16); margin-top: 20px; position: relative; }
.player .bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--signal); }
.player .line {
  margin-top: 20px; min-height: 62px; display: flex; align-items: center; justify-content: center;
  font: 400 20px/1.35 var(--serif); color: var(--ink); text-align: center;
  transition: opacity .4s var(--ease);
}
.player .hint { margin-top: 6px; font-size: 12px; color: var(--fg-3); }

/* ── final cta ──────────────────────────────────── */
.final { text-align: center; background: var(--paper); }
.final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.mail { display: flex; gap: 8px; max-width: 420px; margin: 26px auto 0; }
.mail input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: var(--r-full);
  border: 1px solid var(--hairline); background: var(--grad-paper);
  font: 400 15px var(--sans); color: var(--ink); outline: none;
}
.mail input::placeholder { color: var(--ink-300); }
.mail .btn { height: 52px; }
.said { margin-top: 12px; font-size: 14px; color: var(--signal); min-height: 20px; }

/* ── footer ─────────────────────────────────────── */
footer { background: var(--bone); padding: 40px 0; border-top: 1px solid rgba(53,37,31,.08); }
footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer small { font-size: 13px; color: var(--fg-3); }
footer .links { display: flex; gap: 22px; font-size: 14px; color: var(--fg-2); }

@media (max-width: 620px) {
  .nav .links { display: none; }
  .nav .btn { display: none; }          /* 会把 logo 挤掉 */
  .hero { text-align: left; }
  .hero .lede { margin-left: 0; }
  .hero .cta { justify-content: flex-start; flex-wrap: nowrap; }
  .hero .cta .btn { flex: 0 1 auto; width: auto; padding: 0 22px; }
  .sec-head.center { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .orb-halo, .q.on b { animation: none; }
  .q { transition: none; }
}

/* ── 试听：三段切换 ─────────────────────────────── */
.tracks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 9px;
  margin-top: clamp(26px, 3.4vw, 38px);
}
.trk {
  border: 1px solid rgba(255,255,255,.5); border-radius: var(--r-full);
  padding: 9px 18px; cursor: pointer;
  background: rgba(255,255,255,.34); color: var(--ink);
  font: 400 14px/20px var(--serif);
  transition: background .28s var(--ease), border-color .28s var(--ease);
}
.trk:hover { background: rgba(255,255,255,.55); }
.trk.on {
  background: var(--grad-signal); color: var(--paper);
  border-color: transparent; box-shadow: var(--lift-soft);
}

/* ── waitlist 弹窗 ──────────────────────────────── */
.wl {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(53,37,31,.42);
  animation: wl-in .22s var(--ease);
}
.wl[hidden] { display: none; }
@keyframes wl-in { from { opacity: 0; } to { opacity: 1; } }
.wl-card {
  position: relative; width: min(460px, 100%);
  max-height: calc(100dvh - 48px); overflow-y: auto;
  background: var(--grad-paper); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 34px 30px 30px;
  box-shadow: 0 30px 70px -24px rgba(53,37,31,.5);
  text-align: center;
  animation: wl-pop .34s var(--ease);
}
@keyframes wl-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.wl-card h3 { font: 400 26px/32px var(--serif); color: var(--ink); }
.wl-card p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.wl-x {
  position: absolute; right: 12px; top: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: none; color: var(--fg-3); cursor: pointer;
  display: grid; place-items: center;
}
.wl-x:hover { background: rgba(53,37,31,.07); color: var(--ink); }
.wl-x svg { width: 17px; height: 17px; }
.wl-tally { display: block; width: 100%; height: 360px; border: 0; margin-top: 16px; }
.wl-card .wl-fallback { font-size: 13px; }
.wl-fallback a { color: var(--ink); text-decoration: underline; }
@media (max-width: 620px) {
  .wl { padding: 12px; }
  .wl-card { padding: 42px 16px 22px; max-height: calc(100dvh - 24px); }
}

/* ── 功能卡 hover ────────────────────────────────
   抬起 + 投影加深，另外有一团跟着指针走的暖光 */
.card {
  position: relative; overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-color .45s var(--ease);
}
.card::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: 0;
  transition: opacity .45s var(--ease);
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%),
                              rgba(233,111,81,.14), transparent 66%);
}
.card > * { position: relative; z-index: 1; }
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 46px -24px rgba(53,37,31,.36), var(--lift-soft);
  border-color: rgba(53,37,31,.24);
}
.card:hover::after { opacity: 1; }
.card .ico { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.card:hover .ico { transform: translateY(-2px) scale(1.07); }

/* ── 渐变光点光标 ────────────────────────────────
   只在有精确指针的设备上替换原生光标；输入框保留 I 形，
   否则打字的时候找不到插入点 */
.cur, .cur-halo {
  display: none; position: fixed; left: 0; top: 0; z-index: 300;
  pointer-events: none; border-radius: 50%;
  will-change: transform;
}
.cur {
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: radial-gradient(circle,
    rgba(255,246,240,.98) 0%, rgba(242,138,102,.92) 46%, rgba(233,111,81,0) 74%);
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease);
}
.cur-halo {
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: radial-gradient(circle,
    rgba(242,138,102,.30) 0%, rgba(233,111,81,.14) 42%, rgba(233,111,81,0) 70%);
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease);
}
.cur.hot { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
.cur-halo.hot { width: 84px; height: 84px; margin: -42px 0 0 -42px; }
.cur.off, .cur-halo.off { opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  input, textarea { cursor: text; }
  .cur, .cur-halo { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  body { cursor: auto; }
  .cur, .cur-halo { display: none !important; }
  .card { transition: none; }
}

/* ── 卡片区的小星星拖尾 ─────────────────────────── */
.spark {
  position: fixed; z-index: 299; pointer-events: none;
  width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  animation: spark .95s var(--ease) forwards;
  filter: drop-shadow(0 0 4px rgba(242,138,102,.5));
}
.spark svg { display: block; width: 100%; height: 100%; }
@keyframes spark {
  0%   { opacity: 0; transform: translate(0,0) scale(.25) rotate(0deg); }
  20%  { opacity: 1; transform: translate(calc(var(--dx) * .28), calc(var(--dy) * .28)) scale(1) rotate(var(--r)); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.4) rotate(var(--r)); }
}
@media (prefers-reduced-motion: reduce) { .spark { display: none; } }

/* ── 超宽屏：整体往两边放开，别都挤在中间一条 ───── */
@media (min-width: 1600px) {
  :root { --max: 1300px; --pad: 40px; }
}
@media (min-width: 2000px) {
  :root { --max: 1480px; }
}

/* ── hero 里的许愿输入框 ─────────────────────────
   材质和愿望气泡同一套 —— 输进去的那句话待会儿会变成一个气泡飞上去，
   两者长得一样，「同一类东西」这件事才立得住。 */
.wish {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  position: absolute; left: 50%; top: 0;
  transform: translateX(-50%);
  width: min(368px, calc(100vw - 48px));
  padding: 6px 6px 6px 20px;
  /* 按钮那一组浮上来的同时它退场 —— 这只是首屏的小彩蛋，不参与转化 */
  opacity: calc(1 - var(--r, 0) * 1.6);
  border-radius: var(--r-full);
  background:
    linear-gradient(158deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(255,255,255,.74) 0%, rgba(255,247,241,.56) 100%);
  backdrop-filter: blur(14px) saturate(155%);
  -webkit-backdrop-filter: blur(14px) saturate(155%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 1px 2px rgba(53,37,31,.05),
    0 12px 28px -10px rgba(53,37,31,.2);
  transition: box-shadow .45s var(--ease), border-color .45s var(--ease),
              transform .45s var(--ease);
}
.wish:focus-within {
  border-color: rgba(255,255,255,.95);
  /* 必须带上 translateX(-50%)，否则会把居中冲掉、整个框往右跳 */
  transform: translateX(-50%) translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 0 0 4px rgba(233,111,81,.13),
    0 18px 38px -14px rgba(53,37,31,.28);
}
.wish.gone { pointer-events: none; }
.wish input {
  flex: 1; min-width: 0; height: 40px; border: 0; background: none; outline: none;
  font: italic 400 16px/22px var(--serif); color: var(--ink);
}
.wish input::placeholder { color: var(--ink-300); opacity: 1; }

.wish-go {
  width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%;
  background: var(--grad-signal); color: var(--paper);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--lift-strong);
  opacity: .34; transform: scale(.86);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.wish.ready .wish-go { opacity: 1; transform: none; }
.wish-go svg { width: 17px; height: 17px; }
.wish-go:active { transform: scale(.93); }

/* 打字的时候把飘着的愿望句压下去，注意力留给她自己那句 */
.q-layer { transition: opacity .5s var(--ease); }
.q-layer.dim { opacity: .22; }

/* 落地之后那一行很轻的回应 —— 绝对定位，不挤动布局 */
.wish-said {
  position: absolute; left: 0; right: 0; top: calc(100% + 14px);
  margin: 0; text-align: center;
  font: italic 400 14px/20px var(--serif); color: var(--fg-3);
  opacity: 0; transform: translateY(-4px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.wish-said.on { opacity: 1; transform: none; }

/* 送上去的那句话 —— 飞行途中的气泡 */
.wish-fly {
  position: fixed; z-index: 120; pointer-events: none;
  max-width: 330px; padding: 12px 22px; border-radius: var(--r-full);
  font: italic 400 17px/1.45 var(--serif); color: var(--ink); text-align: center;
  background:
    linear-gradient(158deg, rgba(255,255,255,.78) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(180deg, rgba(255,240,231,.86) 0%, rgba(250,220,203,.68) 100%);
  border: 1px solid rgba(240,170,144,.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 14px 30px -10px rgba(53,37,31,.26);
}

/* 手机上不要这个彩蛋 —— 首屏本来就窄，键盘一弹整块编排就乱了。
   槽位留给那两个按钮。 */
@media (max-width: 900px) {
  .wish { display: none; }

  /* nav 是 fixed 的，会压住居中内容的上沿 —— 气泡就挂在最上面，
     文字一长就被切进导航栏里。给 sticky 留出导航高度，球也收小一档。 */
  .hero-sticky { padding-top: 96px; --orb: clamp(190px, 27vh, 270px); }

  /* 手机上不做"滚动才出现"，两个按钮直接在首屏；
     并且靠左，跟标题、描述在同一条左边线上 */
  .reveal {
    opacity: 1; pointer-events: auto;
    left: 0; width: 100%;
    transform: translateY(calc(-50% + 12px));
  }
  /* hero-copy 是收缩宽度的 flex 子项，会被居中 ——
     不撑满的话左边线跟着标题走，而不是跟着容器边距 */
  .hero-copy, .hero-slot { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .wish, .wish-go, .q-layer { transition: none; }
}

/* ── hero 水波纹 ─────────────────────────────────
   垫在球和文案下面。整块只画细线，不做模糊，
   所以不会像大面积 filter 那样拖垮合成器。 */
.ripple {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .ripple { display: none; } }

/* ── hero 的水面 ─────────────────────────────────
   这张图是冷银灰的，直接铺会把暖色压灰。用 soft-light 混合 ——
   只取它的光影结构，色相仍然由下面那几层暖渐变决定。
   顶部用遮罩淡掉：上面是光，下面才是水。 */
.water {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('img/water.jpg') center 62% / cover no-repeat;
  mix-blend-mode: soft-light;
  opacity: .1;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 34%, #000 72%, #000 100%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 34%, #000 72%, #000 100%);
}

/* ── 调参面板（只在 ?tune=1 出现）───────────────── */
.tune {
  position: fixed; right: 16px; top: 82px; z-index: 400;
  width: 224px; padding: 14px 14px 12px;
  background: rgba(255,248,241,.97); border: 1px solid var(--hairline);
  border-radius: 16px; box-shadow: 0 18px 44px -18px rgba(53,37,31,.4);
  font: 400 12px/1.4 var(--sans); color: var(--ink);
}
.tune b { display: block; margin-bottom: 10px; font: 500 11px/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.tune label { display: block; margin-bottom: 11px; position: relative; }
.tune label i { float: right; font-style: normal; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.tune input[type=range] { width: 100%; margin-top: 5px; accent-color: var(--signal); }
.tune select {
  width: 100%; margin-top: 5px; height: 28px; border-radius: 8px;
  border: 1px solid var(--hairline); background: #fff;
  font: 400 12px var(--sans); color: var(--ink);
}
.tune-row { display: flex; gap: 6px; margin-top: 4px; }
.tune-row button {
  flex: 1; height: 28px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--grad-paper);
  font: 500 12px var(--sans); color: var(--ink);
}
.tune code {
  display: block; margin-top: 9px; padding-top: 9px;
  border-top: 1px solid var(--hairline);
  font: 400 10.5px/1.5 ui-monospace, monospace; color: var(--fg-3); word-break: break-word;
}
