/* 首页（没登录时看到的第一页）. Colours and fonts come from login.css. */
body.home { font-size: 16px; }
.home-header-actions { display: flex; align-items: center; gap: 12px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.home-button:hover { border-color: var(--accent); color: var(--accent); }
.home-button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.home-button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent, #fff); }
.home-button.small { min-height: 44px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
main.home-main { display: block; flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 44px 72px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding: 36px 0 72px; }
.home-hero h1 { margin: 0; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.14; letter-spacing: -1.5px; font-weight: 750; }
.home-lead { margin: 22px 0 30px; max-width: 30em; color: var(--secondary); font-size: 19px; line-height: 1.7; }
.home-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.home-note { margin: 16px 0 0; color: var(--secondary); font-size: 14px; }
.home-preview { display: flex; justify-content: center; }
.home-preview-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 26px 24px; box-shadow: var(--shadow); }
.home-preview-kicker { margin: 0; color: var(--secondary); font-size: 13px; }
.home-preview-title { margin: 2px 0 14px; font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
.home-preview ul { list-style: none; margin: 0 0 18px; padding: 0; }
.home-preview li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.home-preview li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--secondary); opacity: .55; }
.home-preview li.next i { border: 2px solid var(--accent); opacity: 1; }
.home-preview li b { display: block; font-size: 15px; font-weight: 650; }
.home-preview li small { display: block; color: var(--secondary); font-size: 13px; }
.home-preview-start { margin: 0; text-align: center; background: var(--accent); color: var(--on-accent, #fff); border-radius: 22px; padding: 11px; font-weight: 600; font-size: 15px; }
.home-section { padding: 0 0 64px; }
.home-section h2, .home-end h2 { margin: 0 0 24px; font-size: 28px; letter-spacing: -.5px; }
.home-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.home-tag { display: inline-block; line-height: 22px; padding: 0 11px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 650; }
.home-card h3 { margin: 14px 0 6px; font-size: 19px; letter-spacing: -.2px; }
.home-card p, .home-fact p { margin: 0; color: var(--secondary); font-size: 15px; line-height: 1.7; }
.home-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 40px; }
.home-fact { border-top: 2px solid var(--text); padding-top: 16px; }
.home-fact h3 { margin: 0 0 6px; font-size: 18px; }
.home-fact a { color: var(--accent); white-space: nowrap; }
.home-end { text-align: center; padding: 16px 0 8px; }
.home-end .home-cta { justify-content: center; }
.home .site-footer a:not(.icp-link) { color: inherit; }
@media (max-width: 900px) {
  main.home-main { padding: 12px 22px 56px; }
  .home-hero { grid-template-columns: 1fr; gap: 36px; padding: 20px 0 56px; }
  .home-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-facts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  main.home-main { padding-inline: 15px; }
  .home-hero h1 { font-size: 36px; letter-spacing: -1px; }
  .home-lead { font-size: 17px; margin: 16px 0 24px; }
  .home-cta .home-button { flex: 1 1 0; padding: 0 12px; }
  .home-cards { grid-template-columns: 1fr; }
  .home-section h2, .home-end h2 { font-size: 23px; }
  .home-header-actions .home-button.small { display: none; }
}
/* 入场动画. The page arrives in order, unhurried: the headline, then the sample
   list one row at a time, then the six cards. Decoration only: with "reduce
   motion" switched on, or in a browser without these features, everything is
   simply there. No script is involved. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes home-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes home-fade { from { opacity: 0; } to { opacity: 1; } }
  .home-hero h1 { animation: home-rise .9s cubic-bezier(.25,.1,.25,1) .1s backwards; }
  .home-lead { animation: home-rise .9s cubic-bezier(.25,.1,.25,1) .26s backwards; }
  .home-hero .home-cta { animation: home-rise .9s cubic-bezier(.25,.1,.25,1) .42s backwards; }
  .home-note { animation: home-fade .8s ease .7s backwards; }
  .home-preview-card { animation: home-rise 1s cubic-bezier(.25,.1,.25,1) .3s backwards; }
  .home-preview-kicker, .home-preview-title { animation: home-fade .7s ease .7s backwards; }
  .home-preview li { animation: home-rise .7s cubic-bezier(.25,.1,.25,1) backwards; }
  .home-preview li:nth-child(1) { animation-delay: .85s; }
  .home-preview li:nth-child(2) { animation-delay: 1s; }
  .home-preview li:nth-child(3) { animation-delay: 1.15s; }
  .home-preview li:nth-child(4) { animation-delay: 1.3s; }
  .home-preview-start { animation: home-rise .7s cubic-bezier(.25,.1,.25,1) 1.5s backwards; }
  .home-main > .home-section:first-of-type h2 { animation: home-rise .8s cubic-bezier(.25,.1,.25,1) 1.1s backwards; }
  .home-cards .home-card { animation: home-rise .8s cubic-bezier(.25,.1,.25,1) backwards; }
  .home-cards .home-card:nth-child(1) { animation-delay: 1.25s; }
  .home-cards .home-card:nth-child(2) { animation-delay: 1.34s; }
  .home-cards .home-card:nth-child(3) { animation-delay: 1.43s; }
  .home-cards .home-card:nth-child(4) { animation-delay: 1.52s; }
  .home-cards .home-card:nth-child(5) { animation-delay: 1.61s; }
  .home-cards .home-card:nth-child(6) { animation-delay: 1.7s; }
  /* Further down, each block arrives as it scrolls into view (newer browsers). */
  @supports (animation-timeline: view()) {
    .home-main > .home-section:not(:first-of-type) h2, .home-fact, .home-end { animation: home-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
/* 首屏 (2026-11): the headline is centred and large; the sample card sits below it, tipped
   back, and stands up as the page scrolls (home-motion.js sets --home-lift from 0 to 1;
   without the script, or with reduced motion, it is simply upright). */
.home-hero { display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; padding: clamp(20px, 6vh, 64px) 0 72px; perspective: 1500px; }
.home-hero-text { max-width: 940px; }
.home-hero h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.08; letter-spacing: -2.5px; }
.home-hero h1 br { display: none; }
.home-lead { margin: 24px auto 32px; max-width: 26em; }
.home-hero .home-cta { justify-content: center; }
.home-preview { width: 100%; margin-top: clamp(34px, 7vh, 68px); text-align: left; transform-origin: 50% 0; transform: rotateX(calc((1 - var(--home-lift, 1)) * 38deg)) scale(calc(.88 + var(--home-lift, 1) * .12)); will-change: transform; }
.home-preview-card { max-width: 460px; }
@media (max-width: 900px) { .home-hero { gap: 0; padding: 16px 0 56px; } }
@media (max-width: 700px) { .home-hero h1 br { display: inline; } .home-hero h1 { letter-spacing: -1.2px; } }
@media (max-width: 560px) { .home-hero h1 { font-size: 42px; } .home-lead { margin: 18px auto 26px; } }

/* 动态背景 (home-motion.js). The canvas sits behind the first screen. Until the script
   has it drawing, it is not shown at all. */
.home-motion { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; display: none; }
.home-motion-on .home-motion { display: block; }
.home-motion-on body.home > :not(.home-motion) { position: relative; z-index: 1; }
.home-motion-on body.home .site-header { background: transparent; border-color: transparent; }
.home-motion-on .home-preview-card { background: color-mix(in srgb, var(--surface) 70%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); border-color: color-mix(in srgb, var(--text) 14%, transparent); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--text) 45%, transparent); }
.home-motion-on .home-preview li { border-color: color-mix(in srgb, var(--text) 12%, transparent); }
/* 产品演示 (home-motion.js). On a wide screen the sample card gives way to a short, silent,
   moving picture of the real pages, in a frame the shape of a browser window. The frame and
   a still picture show at once; the moving picture fades in when it has loaded. */
.home-demo { display: none; }
.home-demo-on .home-preview-card { display: none; }
.home-demo-on .home-demo { display: block; position: relative; width: min(100%, 880px); aspect-ratio: 1040 / 650; margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent); background: var(--surface) center / cover no-repeat padding-box; box-shadow: 0 40px 100px -36px rgba(8, 12, 30, .55); }
.home-demo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.home-demo img.ready { opacity: 1; }
/* 结尾 (2026-11): the last section is a dark band in both looks. Behind the words is a
   still picture of ribbons; on a wide screen home-end.js draws the same ribbons moving,
   with a three-dimensional microphone in front of them, on a canvas laid over it. */
.home-end { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; min-height: 400px; margin-top: 28px; padding: 56px clamp(24px, 6vw, 72px); border-radius: 28px; background: #070913 url(/home-end.jpg) center / cover no-repeat; color: #f4f6ff; text-align: left; }
.home-end::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 9, 19, .88) 0%, rgba(7, 9, 19, .50) 46%, rgba(7, 9, 19, 0) 100%); }
.home-end-stage { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.home-end-stage.ready { opacity: 1; }
.home-end-text { position: relative; }
.home-end h2 { margin-bottom: 28px; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -1px; color: #fff; }
.home-end .home-cta { justify-content: flex-start; }
@media (max-width: 700px) { .home-end { min-height: 300px; padding: 44px 22px; justify-content: center; text-align: center; border-radius: 22px; } .home-end::after { background: rgba(7, 9, 19, .55); } .home-end .home-cta { justify-content: center; } }
/* Round 10U6: on a phone the moving microphone stands above the words (Kevin). The band is
   taller and the words sit at its bottom; the still picture is the same as before. */
@media (max-width: 779px) { .home-end:has(.home-end-stage.ready) { min-height: 520px; align-items: flex-end; padding-bottom: 40px; } .home-end:has(.home-end-stage.ready)::after { background: linear-gradient(180deg, rgba(7, 9, 19, 0) 0%, rgba(7, 9, 19, .1) 50%, rgba(7, 9, 19, .72) 100%); } }
