/* 设计 tokens：沿用交互样板（CortexCloud SPEC §3）的暖白底、墨色字、签名渐变与缓动，
   官网和产品看起来是同一个品牌。官网额外放大了字号阶，用于大标题。 */
@font-face { font-family: 'Geist'; src: url('../fonts/geist.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../fonts/geist-mono.woff2') format('woff2-variations'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F6F5F2;
  --bg-2: #FBFAF8;
  --surface: #FFFFFF;
  --surface-2: #F2F0EC;
  --border: rgba(28, 25, 20, 0.08);
  --border-strong: rgba(28, 25, 20, 0.14);
  --text-1: #1B1A17;
  --text-2: #5C5952;
  --text-3: #74706A;
  --accent: #3D63DD;
  --ink: #141418;           /* 黑西装 / 墨镜 */
  --night: #2F2D33;         /* 故事段的「暮色」：比纯黑浅一大截、略带紫灰，和暖白之间过渡不突兀 */
  --dusk: #2F2D33;
  --night-text: #EEECE7;
  --night-text-2: #B1ADB5;
  --bowl-line: rgba(28, 25, 20, 0.16);
  --grad-signature: linear-gradient(135deg, #F4B98F 0%, #E9C6D9 48%, #A6CBF2 100%);

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* 缓动：出场用指数缓出（快起慢停），往返用三次缓入缓出；弹簧用 linear() 采样真实阻尼弹簧，旧浏览器退回贝塞尔 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.3, 1.25, 0.5, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-1: 0 1px 2px rgba(20, 18, 15, 0.06), 0 1px 1px rgba(20, 18, 15, 0.04);
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;
  --shadow-2: 0 8px 24px -8px rgba(20, 18, 15, 0.12), 0 2px 6px rgba(20, 18, 15, 0.05);
  --shadow-3: 0 24px 48px -12px rgba(20, 18, 15, 0.18), 0 4px 12px rgba(20, 18, 15, 0.06);

  --pad-x: clamp(20px, 5vw, 72px);
  --maxw: 1200px;
}

/* 支持 linear() 的浏览器用真实弹簧曲线（阻尼 0.75，过冲约 3%；bounce 版阻尼 0.55，过冲约 12%） */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, 0.044, 0.148, 0.281, 0.421, 0.555, 0.673, 0.773, 0.853, 0.914, 0.959, 0.99, 1.01, 1.022, 1.027, 1.028, 1.027, 1.024, 1.02, 1.016, 1.012, 1.009, 1.006, 1.004, 1.002, 1.001, 1, 1, 0.999, 1);
    --ease-bounce: linear(0, 0.056, 0.194, 0.372, 0.559, 0.731, 0.875, 0.985, 1.061, 1.106, 1.125, 1.124, 1.111, 1.09, 1.066, 1.043, 1.023, 1.008, 0.996, 0.989, 0.985, 0.984, 0.985, 0.987, 0.99, 0.993, 0.996, 0.998, 1, 1.001, 1.002, 1.001, 1);
  }
}
