/* 首屏：生命游戏画布铺满黑底，菌菇在标题下方的落点成形。文案在脚本加载前即可见。 */
.home-page .home-hero-section { position: relative; isolation: isolate; overflow: hidden; padding: 18px 40px 0; background: #121110; }
.home-page .home-hero-section .home-landing-nav { position: relative; top: 0; max-width: 1360px; margin: 0 auto; }
.home-page .home-brand-logo { display: block; flex-shrink: 0; object-fit: contain; border-radius: 12px; overflow: hidden; }
.home-page .home-footer-wordmark .home-brand-logo { width: 44px; height: 44px; }
.home-page .mobile-site-footer .home-footer-wordmark { gap: 10px; }
.home-page .mobile-site-footer .home-brand-logo { width: 36px; height: 36px; }
.home-page .mobile-site-footer .home-footer-wordmark strong { font-size: 26px; }
.home-page .home-landing-hero { max-width: 1360px; padding: 64px 0 48px; text-align: center; }
/* 标签→标题、标题→菌菇两段视觉间距相等；菌菇比文字少约 4px 字形内边距，故下方补 4px。 */
.home-page :is(.home-landing-hero, .mobile-home-hero) { --hero-gap: 24px; }
.home-page .home-landing-hero > p:not(.home-client-status) { max-width: 850px; margin: 14px auto 0; font-size: 15px; line-height: 1.7; }
.home-page .home-hero-actions { margin-top: 20px; gap: 12px; flex-wrap: wrap; }
.home-page .home-hero-actions :is(.home-client-download, .home-browser-start) { min-height: 52px; border-radius: 12px; }
.home-page .home-landing-hero .home-client-status { margin-top: 10px; font-size: 12px; overflow-wrap: anywhere; }
.home-page .home-platform-heading { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.home-page .home-platform-heading > p { max-width: 720px; margin: 0; align-self: center; }
.home-page .home-platform-audience { justify-content: center; margin-top: 20px; }

.home-page .hero-life { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.home-page .hero-life canvas { display: block; }
.home-page .home-hero-demo { position: relative; min-width: 0; width: 100%; margin: 0; }
.home-page .hero-growth-scene { position: relative; }
.home-page .hero-growth-title,
.home-page .mobile-home-hero .hero-growth-title {
  position: relative;
  z-index: 2;
  margin: 0;
  padding-top: 0;
  max-width: none;
  color: #f4f1eb;
  font-size: clamp(34px, min(3.3vw, 5.5svh), 50px);
  line-height: 1.12;
  font-weight: 640;
  letter-spacing: -.045em;
  text-align: center;
}
.home-page .hero-growth-title > span { display: block; overflow: hidden; padding: 3px 0; white-space: nowrap; }
.home-page .hero-growth-title b {
  display: inline-block;
  font-weight: inherit;
  transform-origin: 40% 100%;
  transition: transform .9s cubic-bezier(.16, 1.3, .3, 1), opacity .24s ease-out;
}
.home-page .hero-growth-title > span:nth-child(2) b { transition-duration: .78s, .2s; transition-timing-function: cubic-bezier(.12, 1.4, .28, 1), ease-out; }
.home-page .hero-growth-title > span:nth-child(3) b { transition-duration: 1.08s, .3s; }
.home-page .hero-growth-title > span:nth-child(4) b { transition-duration: .88s, .24s; transition-timing-function: cubic-bezier(.18, 1.36, .3, 1), ease-out; }
.home-page .home-hero-demo.is-animated[data-copy-step="0"] .hero-growth-title > span:nth-child(n+2) b,
.home-page .home-hero-demo.is-animated[data-copy-step="1"] .hero-growth-title > span:nth-child(n+3) b,
.home-page .home-hero-demo.is-animated[data-copy-step="2"] .hero-growth-title > span:nth-child(n+4) b { opacity: 0; transform: translateY(115%) rotate(3deg) scale(.94); }
.home-page .home-hero-demo.is-animated[data-copy-step="0"] .hero-growth-title > span:first-child b { animation: hero-copy-arrive 1.05s cubic-bezier(.14, 1.4, .3, 1) both; }
.home-page .home-hero-demo.is-animated:not(.is-running) * { animation-play-state: paused !important; }
@keyframes hero-copy-arrive { from { opacity: 0; transform: translateY(115%) rotate(-3deg) scale(.92); } to { opacity: 1; transform: none; } }
.home-page .hero-growth-garden { width: min(70%, 740px); height: clamp(200px, calc(100svh - 620px), 280px); margin: calc(var(--hero-gap) + 4px) auto 12px; pointer-events: none; }

.home-page .hero-demo-caption { display: flex; justify-content: flex-end; align-items: center; max-width: 760px; min-height: 36px; margin-inline: auto; padding: 0; }
.home-page .hero-demo-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; background: rgba(18, 17, 16, .6); color: #c2bcb2; font: inherit; cursor: pointer; }
.home-page .hero-demo-toggle[hidden] { display: none; }
.home-page .hero-demo-toggle:hover { background: rgba(255, 255, 255, .08); }
.home-page .hero-demo-toggle:focus-visible { outline: 2px solid #f4f1eb; outline-offset: 3px; }
.home-page .hero-demo-toggle-icon { width: 12px; font-size: 12px; }

/* 黑底上的导航、说明文字与按钮。 */
.home-page .home-hero-section .home-landing-nav { border-color: rgba(255, 255, 255, .08); background: rgba(18, 17, 16, .72); box-shadow: none; }
.home-page .home-hero-section .home-wordmark { color: #f4f1eb; }
.home-page .home-hero-section .home-wordmark small { color: #9c958b; }
.home-page .home-hero-section :is(.home-landing-links a, .home-landing-links button, .home-nav-login) { color: #c2bcb2; }
.home-page .home-hero-section :is(.home-landing-links a, .home-landing-links button, .home-nav-login):hover { color: #f4f1eb; }
.home-page .home-hero-section .home-nav-start { background: #f4f1eb; color: #121110; }
.home-page .home-hero-section .home-nav-start:hover { background: #fff; }
.home-page .home-landing-hero > p:not(.home-client-status),
.home-page .mobile-home-hero-inner > p { color: #c2bcb2; }
.home-page .home-landing-hero .home-client-status,
.home-page .mobile-home-hero .mobile-client-status { color: #78726a; }
.home-page :is(.home-landing-hero, .mobile-home-hero) .home-client-download { background: #f4f1eb; color: #121110; box-shadow: none; }
.home-page :is(.home-landing-hero, .mobile-home-hero) .home-client-download small { background: rgba(18, 17, 16, .08); }
.home-page :is(.home-landing-hero, .mobile-home-hero) .home-browser-start { color: #f4f1eb; border-color: rgba(255, 255, 255, .28); background: transparent; }
.home-page :is(.home-landing-hero, .mobile-home-hero) .home-browser-start:hover { background: rgba(255, 255, 255, .08); }

@media (min-width: 769px) {
  body.home-page.home-landing-active .main { padding: 0 0 80px; }
  body.home-page.home-landing-active .main > #tab-home { display: grid; max-width: none; margin: 0; grid-template-columns: minmax(40px, 1fr) minmax(0, 1800px) minmax(40px, 1fr); }
  .home-page #tab-home > * { grid-column: 2; min-width: 0; }
  .home-page #tab-home > .home-hero-section { grid-column: 1 / -1; }
}
@media (max-width: 1099px) and (min-width: 769px) {
  .home-page .hero-growth-title { font-size: 42px; }
  .home-page .hero-growth-garden { width: 80%; height: 220px; }
}
@media (max-width: 768px) {
  .home-page .mobile-home-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100svh;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    margin: -20px -14px 0;
    padding: max(28px, env(safe-area-inset-top, 0px)) 16px max(34px, env(safe-area-inset-bottom, 0px));
    background: #121110;
  }
  .home-page .mobile-home-hero { --hero-gap: 20px; }
  .home-page .mobile-home-hero .hero-growth-title { font-size: clamp(26px, 6.7vw, 36px); line-height: 1.22; }
  .home-page .hero-growth-title > span { padding-block: 4px; }
  .home-page .hero-growth-garden { width: 96%; max-width: 460px; height: 200px; }
  .home-page .hero-demo-caption { min-height: 36px; font-size: 9px; }
  .home-page .hero-demo-toggle { min-height: 36px; }
  .home-page .mobile-home-hero-inner > p { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-hero-demo .hero-growth-title b { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
  .home-page .hero-demo-toggle { display: none; }
}

/* 手机端角标 logo：首屏左上（反白）/ 第二屏右上（深色） */
.home-page .mobile-home-hero,
.home-page .mobile-workspace-showcase { position: relative; }
.home-page .mobile-corner-logo {
  position: absolute;
  z-index: 3;
  width: clamp(64px, 18vw, 84px);
  height: auto;
  pointer-events: none;
}
.home-page .mobile-corner-logo-link {
  position: absolute;
  z-index: 3;
  top: calc(env(safe-area-inset-top, 0px) + 18px);
  left: 20px;
  display: block;
  line-height: 0;
  width: clamp(64px, 18vw, 84px);
}
.home-page .mobile-corner-logo-link .mobile-corner-logo { position: static; width: 100%; }
.home-page .mobile-corner-logo--showcase { top: 20px; right: 20px; }
/* 第二屏标题居中，首行会伸到右上角：给标题留出 logo 的高度（720×426 → 高 = 宽 × 0.5917） */
.home-page .mobile-workspace-showcase .mobile-workspace-heading { padding-top: calc(clamp(64px, 18vw, 84px) * 0.5917 - 16px); }
/* 矮屏（如 iPhone SE）首屏内容垂直居中后会顶到 logo，补一段顶部内边距 */
@media (max-width: 768px) and (max-height: 780px) {
  .home-page .mobile-home-hero-inner { padding-top: calc(env(safe-area-inset-top, 0px) + 30px + clamp(64px, 18vw, 84px) * 0.5917); }
}
@media (min-width: 769px) {
  .home-page .mobile-corner-logo,
  .home-page .mobile-corner-logo-link { display: none; }
}

/* 新品牌标志（横版，含 mindroom 字样）：黑底导航用反白版，页脚用深色版。 */
.home-page .home-wordmark--logo { gap: 0; }
.home-page .home-wordmark .home-logo-mark { width: auto; height: 46px; border-radius: 0; }
.home-page .home-footer-wordmark .home-logo-mark { display: block; width: auto; height: 54px; }
.home-page .mobile-site-footer .home-logo-mark { height: 46px; }

/* 已有邀请码 / 账号的人直接去登录：黑底上的一行浅色文字链接，放在主按钮下方。 */
.home-page .home-hero-login { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; color: #c2bcb2; font-size: 14px; text-decoration: none; }
.home-page .home-hero-login:hover { color: #f4f1eb; text-decoration: underline; text-underline-offset: 3px; }
.home-page .home-hero-login span { transition: transform .18s ease; }
.home-page .home-hero-login:hover span { transform: translateX(2px); }
.home-page .mobile-home-hero-actions .home-hero-login { width: 100%; margin-top: -2px; }
.home-page .home-hero-login--desktop { margin-top: 6px; font-size: 13px; }
.home-page .home-landing-hero .home-hero-login--desktop { color: #a39d93; }
