@import url("./product-tokens.css");

:root {
  --mx: 42%;
  --my: 38%;
  --topbar-h: 4.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scrollbar-width: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--deep);
  overflow-x: hidden;
  padding-top: var(--topbar-h);
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Ambient glow behind the new hero — no 3D scene. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.45s ease, filter 0.45s ease;
  background:
    radial-gradient(
      560px 380px at var(--mx) var(--my),
      rgba(118, 48, 247, 0.28),
      transparent 64%
    ),
    radial-gradient(ellipse 80% 55% at 18% 42%, rgba(118, 48, 247, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 48%, rgba(168, 85, 247, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.82) 100%);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: var(--topbar-h);
  box-sizing: border-box;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  gap: 0.85rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 100%);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: text-shadow 0.25s ease, color 0.25s ease;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  color: #fafafa;
  background: linear-gradient(80deg, #a22cfc 0%, #7630f7 70%);
  box-shadow:
    0 0 0 1px rgba(162, 44, 252, 0.45),
    0 0 18px rgba(118, 48, 247, 0.55);
}

.topbar-brand:hover {
  text-shadow: 0 0 18px var(--accent-glow);
}

.topbar-brand:hover .brand-mark {
  box-shadow:
    0 0 0 1px rgba(162, 44, 252, 0.7),
    0 0 26px rgba(162, 44, 252, 0.7);
}

.topbar-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid rgba(250, 250, 250, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.topbar-menu-btn:hover,
.topbar-menu-btn[aria-expanded="true"] {
  background: rgba(118, 48, 247, 0.18);
  border-color: rgba(162, 44, 252, 0.45);
}

.topbar-menu-icon,
.topbar-menu-icon::before,
.topbar-menu-icon::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.topbar-menu-icon {
  position: relative;
}

.topbar-menu-icon::before,
.topbar-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.topbar-menu-icon::before {
  top: -5px;
}

.topbar-menu-icon::after {
  top: 5px;
}

.topbar-menu-btn[aria-expanded="true"] .topbar-menu-icon {
  background: transparent;
}

.topbar-menu-btn[aria-expanded="true"] .topbar-menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.topbar-menu-btn[aria-expanded="true"] .topbar-menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.topbar-backdrop {
  display: none;
}

.topbar-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.topbar-capsule {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.32rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(118, 48, 247, 0.35);
  transition:
    color var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.topbar-capsule.starlight::before,
.topbar-capsule.starlight::after {
  display: none;
}

.topbar-capsule:hover {
  color: #f2f7ff;
  background: rgba(118, 48, 247, 0.34);
  border-color: rgba(150, 200, 255, 0.95);
  box-shadow:
    0 6px 18px rgba(118, 48, 247, 0.35),
    0 0 24px rgba(162, 44, 252, 0.32);
}

@media (hover: hover) and (pointer: fine) {
  .topbar-capsule:hover {
    transform: translateY(-1px) scale(1.03);
  }
}

.topbar-capsule:focus-visible {
  outline: 1px solid rgba(162, 44, 252, 0.7);
  outline-offset: 3px;
}

.topbar-nav-auth {
  display: none;
}

.topbar-account {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-account .btn-primary {
  padding: 0.32rem 1.1rem;
  font-size: 0.86rem;
  line-height: 1.2;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.22),
    0 1px 6px rgba(0, 0, 0, 0.22),
    0 0 16px rgba(118, 48, 247, 0.22);
}

.link-quiet {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
}

.link-quiet::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition:
    width 0.25s ease,
    left 0.25s ease;
}

.link-quiet:hover {
  color: var(--ink);
}

.link-quiet:hover::after {
  left: 0;
  width: 100%;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.45rem;
  transition:
    background var(--dur-mid) var(--ease-out),
    color var(--dur-mid) var(--ease-out),
    border-color var(--dur-mid) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

/* .btn-primary { display:inline-flex } 会压过 UA 的 [hidden]，登录态 CTA 错乱 */
[hidden] {
  display: none !important;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  color: #fafafa;
  background: linear-gradient(80deg, #a22cfc 0%, #7630f7 30%);
  border: 1px solid transparent;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.25),
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(118, 48, 247, 0.28);
}

.btn-primary:hover {
  box-shadow:
    var(--shadow-md),
    0 0 48px rgba(162, 44, 252, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
  }
}

.btn-primary:active {
  transform: none;
  box-shadow:
    0 2px 10px rgba(118, 48, 247, 0.3),
    0 0 16px rgba(118, 48, 247, 0.2);
}

.btn-cta-pulse {
  animation: cta-breathe 3s ease-in-out infinite;
}

.btn-cta-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.35) 48%,
    transparent 62%
  );
  transform: translateX(-120%);
  transition: none;
  pointer-events: none;
}

.btn-cta-pulse:hover::before {
  animation: cta-sheen 0.7s ease forwards;
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: rgba(250, 250, 250, 0.35);
  background: rgba(250, 250, 250, 0.04);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Starlight shimmer + twinkle — shared by 注册 / 组件库 / 博客 */
.starlight {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.starlight > span {
  position: relative;
  z-index: 2;
}

.starlight::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(
    115deg,
    transparent 36%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 64%
  );
  transform: translateX(-60%) skewX(-12deg);
  animation: starlight-sheen 3.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.starlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1.4px at 14% 32%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(circle 1px at 38% 72%, rgba(255, 255, 255, 0.8), transparent 70%),
    radial-gradient(circle 1.6px at 62% 28%, rgba(255, 255, 255, 0.95), transparent 70%),
    radial-gradient(circle 1px at 78% 64%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(circle 1.2px at 88% 40%, rgba(255, 255, 255, 0.9), transparent 70%),
    radial-gradient(circle 1px at 26% 48%, rgba(200, 230, 255, 0.85), transparent 70%);
  animation: starlight-twinkle 1.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

/* Hero: first viewport only — product copy lives in .seo-body below */
.hero {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100svh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 1.5rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  box-sizing: border-box;
  gap: 1.75rem;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: auto;
  width: min(100%, 40rem);
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: rise-in var(--dur-enter) var(--ease-out) both;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: visible;
}

.hero-orb {
  position: relative;
  flex-shrink: 0;
  width: clamp(4.2rem, 8vw, 6.4rem);
  height: clamp(4.2rem, 8vw, 6.4rem);
  overflow: visible;
  animation: cortana-orb-breathe 4.2s ease-in-out infinite;
}

.hero-orb-aura,
.hero-orb-ripple,
.hero-orb-halo,
.hero-orb-ring,
.hero-orb-core,
.hero-orb-core-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* Soft Cortana bloom — ethereal listening circle */
.hero-orb-aura {
  inset: -42%;
  background:
    radial-gradient(circle, rgba(162, 44, 252, 0.32) 0%, rgba(34, 211, 238, 0.16) 30%, rgba(118, 48, 247, 0.08) 48%, transparent 70%);
  filter: blur(8px);
  animation: cortana-aura 3.8s ease-in-out infinite;
}

/* Listening ripples — soft expanding rings like Cortana */
.hero-orb-ripple {
  inset: 6%;
  border: 1.5px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.18);
  opacity: 0;
  animation: cortana-ripple 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.hero-orb-ripple:nth-child(3) {
  animation-delay: 1.05s;
}

.hero-orb-ripple:nth-child(4) {
  animation-delay: 2.1s;
}

.hero-orb-halo {
  inset: 2%;
  border: 1.5px solid rgba(196, 181, 253, 0.35);
  box-shadow:
    0 0 22px rgba(118, 48, 247, 0.4),
    0 0 36px rgba(34, 211, 238, 0.18),
    inset 0 0 18px rgba(34, 211, 238, 0.1);
  animation: cortana-halo 3.6s ease-in-out infinite;
}

.hero-orb-ring {
  inset: 10%;
}

.hero-orb-ring--outer {
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      rgba(34, 211, 238, 0.95) 22deg,
      rgba(162, 44, 252, 0.35) 48deg,
      transparent 78deg,
      transparent 150deg,
      rgba(162, 44, 252, 0.95) 178deg,
      rgba(34, 211, 238, 0.4) 210deg,
      transparent 250deg,
      transparent 300deg,
      rgba(129, 140, 248, 0.85) 328deg,
      transparent 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 1.5px));
  filter: drop-shadow(0 0 6px rgba(162, 44, 252, 0.55));
  animation: orb-spin 8.5s linear infinite;
  opacity: 1;
}

.hero-orb-ring--inner {
  inset: 22%;
  background:
    conic-gradient(
      from 110deg,
      transparent 0deg,
      rgba(233, 213, 255, 0.95) 16deg,
      transparent 48deg,
      transparent 170deg,
      rgba(34, 211, 238, 0.8) 198deg,
      transparent 240deg,
      transparent 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 1px));
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.45));
  animation: orb-spin 6s linear infinite reverse;
  opacity: 0.95;
}

/* Soft luminous disc — Cortana-like, not a solid marble */
.hero-orb-core {
  inset: 28%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55) 0%, rgba(233, 213, 255, 0.35) 28%, rgba(118, 48, 247, 0.42) 58%, rgba(34, 211, 238, 0.2) 78%, transparent 100%);
  box-shadow:
    0 0 28px rgba(162, 44, 252, 0.55),
    0 0 48px rgba(34, 211, 238, 0.22),
    inset 0 0 16px rgba(255, 255, 255, 0.28);
  animation: cortana-core 3.4s ease-in-out infinite;
}

.hero-orb-core-glow {
  inset: 12%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.85), rgba(196, 181, 253, 0.2) 42%, transparent 68%);
  filter: blur(2.5px);
  animation: cortana-core-glow 2.8s ease-in-out infinite;
}

/* Mobile-only stage above desk composer; hidden on desktop */
.hero-stage {
  display: none;
}

.hero-stage-orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-type {
  display: none;
  margin: 0;
  width: 100%;
  max-width: 18.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 4.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 250, 0.94);
  white-space: pre-line;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow: 0 0 28px rgba(118, 48, 247, 0.22);
}

.hero-type-caret {
  display: inline-block;
  width: 0.12em;
  height: 1.05em;
  margin-left: 0.12em;
  vertical-align: -0.12em;
  border-radius: 1px;
  background: linear-gradient(180deg, #e9d5ff, #a22cfc);
  box-shadow: 0 0 10px rgba(162, 44, 252, 0.7);
  opacity: 0;
}

.desk-composer-shell.is-awaiting-input {
  animation: composer-invite 2.2s ease-in-out infinite;
}

.brand {
  position: relative;
  z-index: 4;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-shadow: 0 0 36px var(--accent-glow);
}

.lede {
  position: relative;
  z-index: 4;
  margin: 1rem 0 0;
  width: 100%;
  max-width: 34rem;
  font-size: clamp(1rem, 1.2vw + 0.45rem, 1.2rem);
  line-height: 1.5;
  white-space: normal;
  color: var(--ink);
  font-weight: 500;
  animation: rise-in var(--dur-enter) var(--ease-out) 0.12s both;
}

/* Typewriter: invisible reserve locks height so typing never reflows the page */
.lede .tw-reserve,
.desk-sub .tw-reserve {
  display: block;
}

.lede .tw-live,
.desk-sub .tw-live {
  display: none;
}

/* Desktop: reserve 2-line slots so rotating copy never reflows */
@media (min-width: 901px) {
  .lede[data-typewriter],
  .desk-sub[data-typewriter] {
    animation: none;
    opacity: 1;
  }

  .lede[data-typewriter] {
    min-height: 3em;
  }

  .desk-sub[data-typewriter] {
    min-height: 3.2em;
  }

  .lede[data-typewriter] .tw-reserve,
  .desk-sub[data-typewriter] .tw-reserve {
    /* Keep out of layout; min-height on the slot prevents jump across rotating lines */
    position: absolute;
    visibility: hidden;
    pointer-events: none;
  }

  .lede[data-typewriter] .tw-live,
  .desk-sub[data-typewriter] .tw-live {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    opacity: 1;
    transition: opacity 0.35s var(--ease-out);
  }

  .lede.is-fading .tw-live,
  .desk-sub.is-fading .tw-live {
    opacity: 0;
  }
}

@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .lede[data-typewriter] .tw-reserve,
  .desk-sub[data-typewriter] .tw-reserve {
    position: static;
    visibility: visible;
  }

  .lede[data-typewriter] .tw-live,
  .desk-sub[data-typewriter] .tw-live {
    display: none;
  }
}

.lede.is-tw,
.desk-sub.is-tw {
  animation: none;
  opacity: 1;
}

.lede .tw-caret,
.desk-sub .tw-caret {
  display: inline-block;
  width: 0.1em;
  height: 1em;
  margin-left: 0.1em;
  vertical-align: -0.1em;
  border-radius: 1px;
  background: linear-gradient(180deg, #e9d5ff, #a22cfc);
  box-shadow: 0 0 8px rgba(162, 44, 252, 0.55);
  opacity: 0;
}

.lede.is-typing .tw-caret,
.desk-sub.is-typing .tw-caret {
  opacity: 1;
}

.lede.is-holding .tw-caret,
.desk-sub.is-holding .tw-caret {
  opacity: 1;
  animation: caret-blink 1.05s step-end infinite;
}

.lede.is-done .tw-caret,
.desk-sub.is-done .tw-caret {
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

button.btn-primary {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font: inherit;
}

.desk-sub {
  position: relative;
  z-index: 4;
  margin: 0.45rem 0 0;
  width: 100%;
  max-width: 32rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  animation: rise-in var(--dur-enter) var(--ease-out) 0.14s both;
}

.desk-composer {
  --desk-pad-x: 1.15rem;
  --desk-pad-y: 1rem;
  --desk-ctrl-h: 2.35rem;
  position: relative;
  z-index: 8;
  width: min(100%, 38rem);
  margin-top: 2.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  animation: rise-in var(--dur-enter) var(--ease-out) 0.16s both;
}

.desk-composer-shell {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: var(--desk-pad-y) var(--desk-pad-x) 0.85rem;
  border-radius: 22px;
  border: 1px solid rgba(118, 48, 247, 0.45);
  background: rgba(8, 6, 16, 0.72);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(118, 48, 247, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out);
}

.desk-composer-shell:focus-within {
  border-color: rgba(162, 44, 252, 0.45);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(118, 48, 247, 0.22),
    0 0 24px rgba(118, 48, 247, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.desk-composer textarea {
  display: block;
  width: 100%;
  min-height: 4.2rem;
  max-height: 9rem;
  resize: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  outline: none;
  overflow-y: auto;
}

.desk-composer textarea::placeholder {
  color: var(--muted);
}

.desk-composer-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--desk-ctrl-h);
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
}

.desk-attach,
.desk-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: var(--desk-ctrl-h);
  min-height: var(--desk-ctrl-h);
  box-sizing: border-box;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.desk-attach {
  appearance: none;
  cursor: pointer;
  padding: 0 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(118, 48, 247, 0.45);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}

.desk-attach:hover {
  border-color: rgba(162, 44, 252, 0.75);
  color: var(--ink);
  background: rgba(118, 48, 247, 0.16);
}

.desk-file-hint {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.desk-composer .desk-send.btn-primary {
  margin-left: auto;
  padding: 0 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.25),
    0 0 18px rgba(118, 48, 247, 0.4);
}

.desk-composer .desk-send.btn-primary:hover,
.desk-composer .desk-send.btn-primary:active {
  transform: none;
  box-shadow: 0 1px 10px rgba(118, 48, 247, 0.36);
}

.desk-examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 0;
  padding: 0 0.15rem;
}

.desk-chip {
  appearance: none;
  cursor: pointer;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.04);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.2;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.desk-chip:hover {
  border-color: rgba(162, 44, 252, 0.45);
  color: var(--ink);
  background: rgba(118, 48, 247, 0.14);
  transform: translateY(-1px);
}

.desk-chip:active {
  transform: scale(0.97);
  border-color: rgba(162, 44, 252, 0.55);
  color: var(--ink);
}

.desk-send.is-loading {
  pointer-events: none;
  opacity: 0.72;
}

.desk-reply {
  position: relative;
  z-index: 8;
  width: min(100%, 38rem);
  margin-top: 0.75rem;
  text-align: left;
}

.desk-card {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(118, 48, 247, 0.4);
  background: rgba(12, 8, 24, 0.82);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: flex;
  align-items: flex-start;
  gap: 1.35rem;
  margin-top: 1.85rem;
  max-width: 36rem;
}

.hero-stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #fff;
  white-space: nowrap;
}

.hero-stat-num span {
  color: var(--accent-bright);
}

.hero-stat-copy h2 {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.hero-stat-copy p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-scroll {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(232, 220, 255, 0.78);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  animation: rise-in var(--dur-enter) var(--ease-out) 0.22s both;
  transition: color var(--dur-fast) var(--ease-out);
}

.hero-scroll::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
  animation: scroll-nudge 1.6s var(--ease-out) infinite;
}

.hero-scroll:hover {
  color: #fff;
}

.hero-gallery {
  position: relative;
  min-height: 28rem;
  height: min(62vh, 36rem);
  overflow: hidden;
}

.hero-gallery-tilt {
  position: absolute;
  inset: 0;
  padding: 0.7rem;
  box-sizing: border-box;
}

.hero-gallery-parallax {
  position: relative;
  height: 100%;
}

.hero-gallery.is-linked {
  pointer-events: none;
}

.hero-gallery-drift {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  height: 100%;
}

.hero-reel {
  --reel-gap: 0.55rem;
  --reel-dur: 18s;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 16px;
  container-type: size;
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.hero-reel-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  animation: reel-scroll-up var(--reel-dur) linear infinite;
}

.hero-reel[data-dir="down"] .hero-reel-track {
  animation-name: reel-scroll-down;
}

.hero-gallery.is-paused .hero-reel-track {
  animation-play-state: paused;
}

.hero-shot {
  --shot-h: calc((100cqh - 2 * var(--reel-gap)) / 3);
  position: relative;
  margin: 0 0 var(--reel-gap);
  flex: 0 0 var(--shot-h);
  width: 100%;
  height: var(--shot-h);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #12081f;
  box-shadow: 0 0 0 1px rgba(118, 48, 247, 0.12);
  transition:
    opacity 0.35s var(--ease-out),
    filter 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.hero-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  transform-origin: center;
  transition: transform 0.55s var(--ease-out);
}

.hero-gallery.is-linked .hero-shot {
  opacity: 0.92;
  filter: saturate(0.92) brightness(0.96);
}

.hero-shot.is-active {
  opacity: 1;
  filter: none;
  z-index: 2;
  border-color: rgba(162, 44, 252, 0.75);
  box-shadow:
    0 0 0 2px rgba(162, 44, 252, 0.5),
    0 8px 18px rgba(118, 48, 247, 0.28);
}

.hero-gallery.is-linked .hero-shot.is-active {
  opacity: 1;
  filter: none;
}

.hero-gallery.is-linked .hero-shot.is-active img {
  transform: scale(1.06);
}

.hero-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 22%,
    rgba(255, 255, 255, 0.22) 48%,
    transparent 72%
  );
  transform: translateX(-140%);
  animation: shot-sheen 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.hero-reel:nth-child(1) .hero-shot:nth-child(2)::before,
.hero-reel:nth-child(1) .hero-shot:nth-child(5)::before { animation-delay: 0.5s; }
.hero-reel:nth-child(1) .hero-shot:nth-child(3)::before,
.hero-reel:nth-child(1) .hero-shot:nth-child(6)::before { animation-delay: 1s; }
.hero-reel:nth-child(2) .hero-shot:nth-child(1)::before,
.hero-reel:nth-child(2) .hero-shot:nth-child(4)::before { animation-delay: 1.5s; }
.hero-reel:nth-child(2) .hero-shot:nth-child(2)::before,
.hero-reel:nth-child(2) .hero-shot:nth-child(5)::before { animation-delay: 2s; }
.hero-reel:nth-child(2) .hero-shot:nth-child(3)::before,
.hero-reel:nth-child(2) .hero-shot:nth-child(6)::before { animation-delay: 2.4s; }
.hero-reel:nth-child(3) .hero-shot:nth-child(1)::before,
.hero-reel:nth-child(3) .hero-shot:nth-child(4)::before { animation-delay: 0.3s; }
.hero-reel:nth-child(3) .hero-shot:nth-child(2)::before,
.hero-reel:nth-child(3) .hero-shot:nth-child(5)::before { animation-delay: 1.2s; }
.hero-reel:nth-child(3) .hero-shot:nth-child(3)::before,
.hero-reel:nth-child(3) .hero-shot:nth-child(6)::before { animation-delay: 2.8s; }
.hero-reel:nth-child(4) .hero-shot:nth-child(1)::before,
.hero-reel:nth-child(4) .hero-shot:nth-child(4)::before { animation-delay: 0.8s; }
.hero-reel:nth-child(4) .hero-shot:nth-child(2)::before,
.hero-reel:nth-child(4) .hero-shot:nth-child(5)::before { animation-delay: 1.8s; }
.hero-reel:nth-child(4) .hero-shot:nth-child(3)::before,
.hero-reel:nth-child(4) .hero-shot:nth-child(6)::before { animation-delay: 3.1s; }

.hero-shot span {
  position: absolute;
  left: 0.55rem;
  bottom: 0.5rem;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75);
}

.product-lines {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3.5rem)
    clamp(3rem, 8vh, 5.5rem);
  box-sizing: border-box;
  border-top: 1px solid rgba(250, 250, 250, 0.08);
  scroll-margin-top: calc(var(--topbar-h) + 0.75rem);
}

.product-lines-intro {
  max-width: 40rem;
  margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
}

.product-lines-eyebrow {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.product-lines-intro h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.product-lines-lead {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.lines-group {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.lines-group + .lines-group {
  margin-top: clamp(1.85rem, 4vh, 2.75rem);
}

.lines-group-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
}

.lines-group-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.lines-group-head p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(207, 207, 207, 0.55);
}

.lines-grid {
  display: grid;
  gap: 0.85rem;
}

.lines-grid-create {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(11.5rem, auto);
}

.lines-grid-create .line-card-featured {
  grid-column: span 2;
  grid-row: span 2;
}

.lines-grid-create .line-card-office {
  border-color: rgba(196, 160, 255, 0.42);
}

.lines-grid-collab {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lines-grid-toolkit {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.line-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 11.5rem;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(118, 48, 247, 0.28);
  background: rgba(8, 6, 16, 0.72);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  isolation: isolate;
  transition:
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.line-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.55s var(--ease-out), filter 0.35s ease;
  filter: saturate(0.92) brightness(0.72);
  z-index: 0;
}

.line-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(120deg, rgba(118, 48, 247, 0.22), transparent 55%);
  pointer-events: none;
}

.line-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 1rem 1.05rem 1.1rem;
}

.line-card-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  padding: 0.12rem 0.45rem;
  margin-bottom: 0.2rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  background: rgba(118, 48, 247, 0.62);
}

.line-card h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: #fff;
}

.line-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(232, 220, 255, 0.78);
}

.line-card-featured .line-card-body {
  padding: 1.35rem 1.35rem 1.45rem;
}

.line-card-featured h4 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.line-card-featured p {
  max-width: 28rem;
  font-size: 0.92rem;
  color: rgba(245, 240, 255, 0.88);
}

.line-card:hover,
.line-card:focus-visible {
  border-color: rgba(162, 44, 252, 0.72);
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(162, 44, 252, 0.28),
    0 16px 36px rgba(118, 48, 247, 0.28);
  outline: none;
}

.line-card:hover .line-card-media,
.line-card:focus-visible .line-card-media {
  transform: scale(1.1);
  filter: saturate(1.05) brightness(0.88);
}

.desk-card-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.desk-card-title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.desk-card-reason,
.desk-card-q {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.desk-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.desk-card-actions .btn-primary {
  height: 1.7rem;
  min-height: 1.7rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  box-shadow: 0 1px 8px rgba(118, 48, 247, 0.28);
}

.desk-card-actions .btn-primary:hover,
.desk-card-actions .btn-primary:active {
  transform: none;
}

.desk-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.desk-alt {
  appearance: none;
  cursor: pointer;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.desk-alt:hover,
.desk-alt.is-on {
  border-color: rgba(162, 44, 252, 0.5);
  color: var(--ink);
}

.desk-error {
  margin: 0;
  font-size: 0.88rem;
  color: #ffb4b4;
}

.desk-or {
  position: relative;
  z-index: 4;
  margin: 1.85rem 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.desk-or + .path-rail {
  margin-top: 0.9rem;
}

body.desk-listening .atmosphere {
  filter: saturate(1.08) brightness(1.06);
}

/* Centered path cards */
.path-rail {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.75rem;
  width: min(100%, 32rem);
  animation: rise-in var(--dur-enter) var(--ease-out) 0.18s both;
}

.path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 5.5rem;
  padding: 1.2rem 1.05rem;
  text-decoration: none;
  text-align: center;
  color: var(--ink);
  border-radius: var(--radius-md);
  border: 1px solid rgba(250, 250, 250, 0.16);
  background: rgba(10, 26, 40, 0.52);
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  /* 命中盒保持不动，避免边缘 hover 因 transform 抖动 */
  transform: none;
  transition:
    border-color var(--dur-mid) var(--ease-out),
    box-shadow var(--dur-mid) var(--ease-out),
    background var(--dur-mid) var(--ease-out);
}

/* 扩大稳定命中区，边缘移入不易丢失 hover */
.path-card::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
}

.path-card:focus-visible {
  outline: 2px solid rgba(162, 44, 252, 0.55);
  outline-offset: 3px;
}

.path-card-kicker {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  transition: color 0.28s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.path-card--code:hover,
.path-card--code:active,
.path-card--code.is-active,
body.focus-code .path-card--code,
.hero:has(.path-slogan--code:hover) .path-card--code,
.hero:has(.path-slogan--code.is-hot) .path-card--code {
  border-color: rgba(162, 44, 252, 0.72);
  background: rgba(16, 42, 68, 0.78);
  box-shadow:
    0 14px 36px rgba(118, 48, 247, 0.28),
    0 0 32px rgba(118, 48, 247, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.path-card--code:hover .path-card-kicker,
.path-card--code:active .path-card-kicker,
.path-card--code.is-active .path-card-kicker,
body.focus-code .path-card--code .path-card-kicker,
.hero:has(.path-slogan--code:hover) .path-card--code .path-card-kicker,
.hero:has(.path-slogan--code.is-hot) .path-card--code .path-card-kicker {
  color: var(--accent-bright);
  transform: translateY(-2px);
}

.path-card--code:hover .path-card-title,
.path-card--code:active .path-card-title,
.path-card--code.is-active .path-card-title,
body.focus-code .path-card--code .path-card-title,
.hero:has(.path-slogan--code:hover) .path-card--code .path-card-title,
.hero:has(.path-slogan--code.is-hot) .path-card--code .path-card-title {
  transform: translateY(-2px);
}

.path-card--design:hover,
.path-card--design:active,
.path-card--design.is-active,
body.focus-design .path-card--design,
.hero:has(.path-slogan--design:hover) .path-card--design,
.hero:has(.path-slogan--design.is-hot) .path-card--design {
  border-color: rgba(196, 75, 255, 0.55);
  background: rgba(10, 32, 30, 0.72);
  box-shadow:
    0 14px 36px rgba(40, 90, 80, 0.22),
    0 0 28px rgba(60, 120, 110, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.path-card--design:hover .path-card-kicker,
.path-card--design:active .path-card-kicker,
.path-card--design.is-active .path-card-kicker,
body.focus-design .path-card--design .path-card-kicker,
.hero:has(.path-slogan--design:hover) .path-card--design .path-card-kicker,
.hero:has(.path-slogan--design.is-hot) .path-card--design .path-card-kicker {
  color: var(--teal);
  transform: translateY(-2px);
}

.path-card--design:hover .path-card-title,
.path-card--design:active .path-card-title,
.path-card--design.is-active .path-card-title,
body.focus-design .path-card--design .path-card-title,
.hero:has(.path-slogan--design:hover) .path-card--design .path-card-title,
.hero:has(.path-slogan--design.is-hot) .path-card--design .path-card-title {
  transform: translateY(-2px);
}

.cta-row {
  position: relative;
  z-index: 8;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 1.75rem;
  animation: rise-in var(--dur-enter) var(--ease-out) 0.26s both;
}

/* Path slogans under「开始使用」— always visible small; enlarge on path focus */
.path-slogan-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: min(100%, 32rem);
  margin: 0;
}

.path-slogan {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.2rem 0.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font-family: var(--font-body);
  /* 字号固定，放大只用 transform，避免回流顶开命中区 */
  font-size: clamp(0.68rem, 1.1vw, 0.76rem);
  font-weight: 450;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--muted);
  opacity: 0.62;
  transform: scale(1);
  transform-origin: center center;
  filter: none;
  transition:
    color 0.35s ease,
    opacity 0.35s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    text-shadow 0.35s ease,
    letter-spacing 0.35s ease,
    font-weight 0.35s ease;
}

.path-slogan:focus-visible {
  outline: 2px solid rgba(162, 44, 252, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.path-slogan--code {
  color: rgba(160, 190, 230, 0.72);
}

.path-slogan--design {
  color: rgba(150, 200, 188, 0.7);
}

/* Enlarge + glow when matching path is hot (card / slogan / body focus) */
.path-slogan--code:hover,
.path-slogan--code.is-hot,
.path-slogan--code:focus-visible,
body.focus-code .path-slogan--code,
.hero:has(.path-card--code.is-active) .path-slogan--code,
.hero:has(.path-card--code:hover) .path-slogan--code {
  font-weight: 560;
  letter-spacing: 0.03em;
  color: rgba(162, 44, 252, 0.98);
  opacity: 1;
  transform: scale(1.12);
  text-shadow: 0 0 18px rgba(118, 48, 247, 0.38);
  animation: slogan-glow 2.8s ease-in-out 0.2s infinite;
}

.path-slogan--design:hover,
.path-slogan--design.is-hot,
.path-slogan--design:focus-visible,
body.focus-design .path-slogan--design,
.hero:has(.path-card--design.is-active) .path-slogan--design,
.hero:has(.path-card--design:hover) .path-slogan--design {
  font-weight: 560;
  letter-spacing: 0.03em;
  color: rgba(196, 75, 255, 0.98);
  opacity: 1;
  transform: scale(1.12);
  text-shadow: 0 0 18px rgba(196, 75, 255, 0.34);
  animation: slogan-glow 2.8s ease-in-out 0.2s infinite;
}

/* Dim the sibling when the other path is active */
body.focus-code .path-slogan--design,
.hero:has(.path-card--code.is-active) .path-slogan--design,
.hero:has(.path-card--code:hover) .path-slogan--design,
.hero:has(.path-slogan--code:hover) .path-slogan--design,
.hero:has(.path-slogan--code.is-hot) .path-slogan--design,
body.focus-design .path-slogan--code,
.hero:has(.path-card--design.is-active) .path-slogan--code,
.hero:has(.path-card--design:hover) .path-slogan--code,
.hero:has(.path-slogan--design:hover) .path-slogan--code,
.hero:has(.path-slogan--design.is-hot) .path-slogan--code {
  opacity: 0.42;
  transform: scale(0.98);
}

/* Frosted feature panels — taller proportion; title readable through blur */
.feature-panel {
  position: fixed;
  top: 52%;
  z-index: 7;
  width: min(34rem, 44vw);
  height: auto;
  min-height: min(86vh, 48rem);
  max-height: none;
  padding: 1.75rem 1.85rem 1.9rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(250, 250, 250, 0.18);
  background: rgba(8, 22, 36, 0.4);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  /* 先快后慢（ease-out）：起步迅速，末端减速落稳 */
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.9s var(--ease-out),
    visibility 0.9s;
}

/* Code focus → panel from RIGHT, covering most of brand */
.feature-panel--code {
  right: clamp(2rem, 6vw, 5rem);
  left: auto;
  transform: translate(3.25rem, -50%);
  text-align: left;
}

/* Design focus → panel from LEFT, covering most of brand */
.feature-panel--design {
  left: clamp(2rem, 6vw, 5rem);
  right: auto;
  transform: translate(-3.25rem, -50%);
  text-align: left;
}

/* JS body class OR CSS :has(hover/active) — 双通道，避免只靠 JS */
body.focus-code .feature-panel--code,
.hero:has(.path-card--code.is-active) .feature-panel--code,
.hero:has(.path-card--code:hover) .feature-panel--code,
.hero:has(.path-slogan--code:hover) .feature-panel--code,
.hero:has(.path-slogan--code.is-hot) .feature-panel--code,
body.focus-design .feature-panel--design,
.hero:has(.path-card--design.is-active) .feature-panel--design,
.hero:has(.path-card--design:hover) .feature-panel--design,
.hero:has(.path-slogan--design:hover) .feature-panel--design,
.hero:has(.path-slogan--design.is-hot) .feature-panel--design {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.feature-panel-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--muted);
  flex-shrink: 0;
}

.feature-panel--code .feature-panel-kicker {
  color: var(--accent-bright);
}

.feature-panel--design .feature-panel-kicker {
  color: var(--teal);
}

.feature-panel-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}

.feature-panel-lead {
  margin: 0 0 1rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.feature-menu {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  overflow: visible;
  flex: 0 0 auto;
  padding-right: 0;
}

.feature-menu-group {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(250, 250, 250, 0.1);
  background: rgba(0, 0, 0, 0.28);
}

.feature-menu-l2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.feature-panel--code .feature-menu-l2 {
  color: var(--accent-bright);
}

.feature-panel--design .feature-menu-l2 {
  color: var(--teal);
}

.feature-menu-l3 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-menu-l3 li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.feature-menu-l3 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 8px var(--accent-glow);
}

.feature-panel--design .feature-menu-l3 li::before {
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal-glow);
}

/* Mobile-only panel CTA — hidden on PC */
.feature-panel-cta {
  display: none;
}

/* Mobile-only expand toggle — hidden on PC */
.feature-panel-toggle {
  display: none;
}

/* Mobile-only compare swipe hint — hidden on PC */
.compare-swipe-hint {
  display: none;
}

/* Mid-wide: keep taller proportion */
@media (min-width: 901px) and (max-width: 1280px) {
  .feature-panel {
    width: min(30rem, 50vw);
    height: auto;
    min-height: min(74vh, 40rem);
    max-height: none;
    padding: 2rem 1.75rem 2.15rem;
    top: 52%;
  }

  .feature-panel-title {
    font-size: 1.5rem;
  }

  .feature-panel-lead {
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
  }

  .feature-menu {
    gap: 0.85rem;
  }

  .feature-menu-group {
    padding: 0.7rem 0.8rem 0.8rem;
  }

  .feature-menu-l2 {
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
  }

  .feature-menu-l3 {
    gap: 0.45rem;
  }

  .feature-menu-l3 li {
    font-size: 0.86rem;
  }
}

/* Second screen: product copy below the fold */
.seo-body {
  position: relative;
  z-index: 3;
  width: min(100%, 40rem);
  margin: 0 auto;
  padding: clamp(3.5rem, 10vh, 6rem) clamp(1.25rem, 5vw, 4rem)
    clamp(4rem, 12vh, 7rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
  box-sizing: border-box;
}

.seo-body h2,
.seo-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.seo-body h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  color: var(--ink);
}

.seo-body h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
}

.seo-body p {
  margin: 0;
}

.seo-body article {
  opacity: 0.92;
  transform: translateY(0);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
}

@media (max-width: 560px) {
  .lines-grid-create,
  .lines-grid-collab,
  .lines-grid-toolkit {
    grid-template-columns: 1fr;
  }

  .lines-grid-create .line-card-featured {
    grid-column: auto;
    min-height: 12rem;
  }

  .line-card {
    min-height: 10.5rem;
  }
}

.seo-body article.reveal-pending,
.compare-wins li.reveal-pending,
.compare-table tbody tr.reveal-pending,
.lines-group.reveal-pending,
.line-card.reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.seo-body article.is-inview,
.compare-wins li.is-inview,
.compare-table tbody tr.is-inview,
.lines-group.is-inview,
.line-card.is-inview {
  opacity: 1;
  transform: none;
}

/* ========== compare: vs other codegen tools ========== */
.compare {
  position: relative;
  z-index: 3;
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) clamp(1.25rem, 5vw, 4rem)
    clamp(4rem, 12vh, 7rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
  box-sizing: border-box;
}

.compare h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.03em;
}

.compare-lead {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.compare-wins {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  max-width: 42rem;
  display: grid;
  gap: 0.85rem;
}

.compare-wins li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
}

.compare-wins li.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.compare-wins li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 10px var(--accent-glow);
}

.compare-wins strong {
  display: block;
  margin-bottom: 0.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.compare-caption {
  caption-side: top;
  text-align: left;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(207, 207, 207, 0.45);
}

.compare-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.25rem;
  outline: none;
}

.compare-scroll:focus-visible {
  box-shadow: 0 0 0 1px var(--accent-bright);
}

.compare-table {
  width: 100%;
  min-width: 42rem;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  border-bottom-color: rgba(250, 250, 250, 0.22);
  white-space: nowrap;
}

.compare-table thead th:first-child,
.compare-table tbody th {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.compare-table tbody th {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(207, 207, 207, 0.7);
}

.compare-sub {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--muted);
  white-space: normal;
}

.compare-col--us {
  color: var(--ink);
  background: linear-gradient(
    180deg,
    rgba(118, 48, 247, 0.1) 0%,
    rgba(118, 48, 247, 0.04) 100%
  );
  box-shadow: inset 1px 0 0 rgba(118, 48, 247, 0.35),
    inset -1px 0 0 rgba(118, 48, 247, 0.35);
}

.compare-table thead .compare-col--us {
  color: var(--accent-bright);
  box-shadow: inset 1px 0 0 rgba(118, 48, 247, 0.45),
    inset -1px 0 0 rgba(118, 48, 247, 0.45);
}

.compare-table tbody tr {
  opacity: 0.92;
  transform: translateY(0);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out),
    background-color var(--dur-mid) ease;
}

.compare-table tbody tr.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.compare-table tbody tr:hover td,
.compare-table tbody tr:hover th {
  background-color: rgba(250, 250, 250, 0.03);
}

.compare-table tbody tr:hover .compare-col--us {
  background: linear-gradient(
    180deg,
    rgba(118, 48, 247, 0.16) 0%,
    rgba(118, 48, 247, 0.08) 100%
  );
}

.compare-note {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 0.85rem;
  color: rgba(207, 207, 207, 0.45);
}

.compare-cta {
  display: inline-flex;
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
  }

  .hero-gallery {
    display: none;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
  }

  .lines-grid-create {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lines-grid-create .line-card-featured {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 13rem;
  }

  .lines-grid-toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full-page loading while hub / SPA boots after click */
.hub-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(118, 48, 247, 0.22), transparent 60%),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.hub-loading.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hub-loading[hidden] {
  display: none;
}

.hub-loading.is-on[hidden] {
  display: flex;
}

.hub-loading-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: 18rem;
  text-align: center;
}

.hub-loading-orb {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 0.35rem;
}

.hub-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    conic-gradient(from 90deg, #a22cfc, #7630f7, #22d3ee, #a22cfc) border-box;
  animation: hub-spin 0.9s linear infinite;
}

.hub-loading-core {
  position: absolute;
  inset: 28%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #e9d5ff, transparent 55%),
    radial-gradient(circle at 70% 70%, #22d3ee, #7630f7 70%);
  box-shadow: 0 0 22px rgba(162, 44, 252, 0.65);
}

.hub-loading-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}

.hub-loading-hint {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(207, 207, 207, 0.65);
}

body.hub-navigating {
  overflow: hidden;
}

@media (max-width: 900px) {
  .compare-table {
    min-width: 38rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.7rem 0.65rem;
  }

  .compare-table thead th:first-child,
  .compare-table tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.96);
    box-shadow: 1px 0 0 var(--line);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-glow {
  0%,
  100% {
    text-shadow: 0 0 28px rgba(118, 48, 247, 0.18);
  }
  50% {
    text-shadow: 0 0 48px rgba(118, 48, 247, 0.32);
  }
}

@keyframes orb-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slogan-glow {
  0%,
  100% {
    opacity: 1;
    filter: brightness(1);
  }
  50% {
    opacity: 0.88;
    filter: brightness(1.12);
  }
}

@keyframes cta-breathe {
  0%,
  100% {
    box-shadow:
      0 4px 16px rgba(118, 48, 247, 0.25),
      0 0 24px rgba(118, 48, 247, 0.2);
  }
  50% {
    box-shadow:
      0 8px 28px rgba(118, 48, 247, 0.42),
      0 0 40px rgba(162, 44, 252, 0.32);
  }
}

@keyframes starlight-sheen {
  0%,
  45% {
    transform: translateX(-65%) skewX(-12deg);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  70%,
  100% {
    transform: translateX(65%) skewX(-12deg);
    opacity: 0;
  }
}

@keyframes starlight-twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
  70% {
    opacity: 0.45;
  }
}

@keyframes cta-sheen {
  to {
    transform: translateX(120%);
  }
}

@keyframes orb-ripple {
  0% {
    transform: scale(0.72);
    opacity: 0.65;
  }
  70% {
    opacity: 0.18;
  }
  100% {
    transform: scale(2.05);
    opacity: 0;
  }
}

@keyframes cortana-ripple {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  12% {
    opacity: 0.7;
  }
  70% {
    opacity: 0.12;
  }
  100% {
    transform: scale(2.15);
    opacity: 0;
  }
}

@keyframes cortana-aura {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes cortana-halo {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.04);
  }
}

@keyframes cortana-core {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.06);
    filter: brightness(1.12);
  }
}

@keyframes cortana-core-glow {
  0%,
  100% {
    opacity: 0.65;
    transform: translate(-4%, -6%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(6%, 4%) scale(1.12);
  }
}

@keyframes gallery-sway {
  0%,
  100% {
    transform: perspective(1400px) rotateY(-14deg) rotateZ(-5deg) scale(1.02);
  }
  50% {
    transform: perspective(1400px) rotateY(-10deg) rotateZ(-3deg) scale(1.03);
  }
}

@keyframes reel-scroll-up {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, -50%, 0);
  }
}

@keyframes reel-scroll-down {
  from {
    transform: translate3d(0, -50%, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes shot-pan {
  0%,
  100% {
    background-position: 0% 20%;
  }
  50% {
    background-position: 100% 80%;
  }
}

@keyframes shot-sheen {
  0%,
  42% {
    transform: translateX(-140%);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  72%,
  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes scroll-nudge {
  0%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  50% {
    transform: translateY(3px) rotate(45deg);
  }
}


@keyframes caret-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes composer-invite {
  0%,
  100% {
    border-color: rgba(118, 48, 247, 0.42);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(118, 48, 247, 0.12),
      0 0 22px rgba(118, 48, 247, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    border-color: rgba(162, 44, 252, 0.78);
    box-shadow:
      0 16px 40px rgba(0, 0, 0, 0.42),
      0 0 0 1px rgba(162, 44, 252, 0.28),
      0 0 34px rgba(162, 44, 252, 0.32),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

@keyframes composer-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(162, 44, 252, 0.35);
    opacity: 0.9;
  }
  70%,
  100% {
    box-shadow: 0 0 0 14px rgba(162, 44, 252, 0);
    opacity: 0;
  }
}

@keyframes cortana-orb-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes stage-glow-breathe {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes stage-spark {
  0%,
  100% {
    transform: translateY(0) scale(0.75);
    opacity: 0.25;
  }
  50% {
    transform: translateY(-8px) scale(1.15);
    opacity: 1;
  }
}

@keyframes hub-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fallback-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Desktop: keep centered stack; panels float left/right */
@media (min-width: 901px) {
  .hero {
    justify-content: center;
  }

  .hero-copy {
    width: min(100%, 56rem);
  }

  .lede {
    white-space: nowrap;
  }

  .path-rail {
    width: min(100%, 32rem);
  }

  .path-card {
    min-height: 5.75rem;
    padding: 1.3rem 1.15rem;
  }

  .cta-row {
    margin-top: 1.85rem;
  }

  .feature-panel-toggle,
  .compare-swipe-hint {
    display: none;
  }
}

/* Mobile / tablet: stage on top; panels expand under path cards */
@media (max-width: 900px) {
  :root {
    --topbar-h: 3.35rem;
  }

  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  body {
    padding-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
  }

  .topbar {
    width: 100%;
    max-width: 100%;
    height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) max(0.75rem, env(safe-area-inset-right, 0px)) 0
      max(0.75rem, env(safe-area-inset-left, 0px));
    gap: 0.4rem;
    box-sizing: border-box;
    flex-wrap: nowrap;
  }

  .topbar-menu-btn {
    display: inline-flex;
    order: 1;
    width: 2.15rem;
    height: 2.15rem;
  }

  .topbar-brand {
    order: 2;
    font-size: 0.92rem;
    gap: 0.4rem;
    min-width: 0;
  }

  .topbar-brand .brand-mark {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.68rem;
  }

  .topbar-account {
    order: 3;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* 窄屏同时露出登录与注册紧凑入口；登录态由 data-auth 脚本隐藏并改显工作台 */
  .topbar-account .link-quiet {
    padding: 0.38rem 0.15rem;
    font-size: 0.8rem;
  }

  .topbar-account .btn-primary {
    padding: 0.38rem 0.78rem;
    font-size: 0.8rem;
    border-radius: var(--radius-pill);
  }

  .topbar-nav {
    position: fixed;
    top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));
    left: 0.75rem;
    right: 0.75rem;
    z-index: 22;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: auto;
    max-width: none;
    padding: 0.65rem;
    white-space: normal;
    border-radius: 14px;
    border: 1px solid rgba(250, 250, 250, 0.1);
    background: rgba(8, 6, 16, 0.96);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  }

  .topbar-nav.is-open {
    display: flex;
  }

  .topbar-nav .topbar-nav-auth {
    display: inline-flex;
  }

  .topbar-nav .topbar-capsule {
    width: 100%;
    justify-content: flex-start;
    padding: 0.72rem 0.95rem;
    font-size: 0.92rem;
    border-radius: 10px;
    animation: none;
    box-shadow: none;
    transform: none;
  }

  .topbar-nav .topbar-capsule:hover {
    transform: none;
  }

  .topbar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, 0.55);
  }

  .topbar-backdrop[hidden] {
    display: none;
  }

  body.topbar-menu-open {
    overflow: hidden;
  }

  main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .hero {
    justify-content: flex-start;
    width: 100%;
    max-width: none;
    margin: 0;
    /* Do NOT use 100svh: WeChat/iOS visual viewport is shorter, so the
       first paint lands on the bottom of hero (= 产品能力). */
    min-height: 0;
    height: auto;
    /* 顶部留白：光圈的 glow/aura 会向外扩 40%+，避免被固定 Header 压住 */
    padding: 1.2rem max(0.85rem, env(safe-area-inset-right, 0px)) 1rem
      max(0.85rem, env(safe-area-inset-left, 0px));
    overflow-x: clip;
    box-sizing: border-box;
    gap: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: none;
    margin: 0;
    gap: 0;
  }

  .hero-gallery {
    display: none;
  }

  .product-lines {
    width: 100%;
    max-width: none;
    padding: 2rem max(0.75rem, env(safe-area-inset-right, 0px)) 3rem
      max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .lines-grid-create {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(10.5rem, auto);
  }

  .lines-grid-create .line-card-featured {
    grid-column: 1 / -1;
    grid-row: span 1;
    min-height: 12.5rem;
  }

  .lines-grid-collab,
  .lines-grid-toolkit {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desk-composer {
    --desk-pad-x: 1rem;
    --desk-pad-y: 0.9rem;
    --desk-ctrl-h: 2.35rem;
    width: 100%;
    max-width: none;
    margin-top: 0.35rem;
  }

  .desk-reply {
    width: 100%;
    max-width: none;
  }

  .desk-composer-shell {
    padding-bottom: 0.8rem;
    border-radius: 16px;
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.16),
      0 0 16px rgba(118, 48, 247, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  .desk-composer-shell:focus-within {
    box-shadow:
      0 8px 22px rgba(0, 0, 0, 0.14),
      0 0 0 1px rgba(118, 48, 247, 0.22),
      0 0 16px rgba(118, 48, 247, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  .desk-composer textarea {
    min-height: 3.4rem;
    max-height: 8rem;
    padding: 0.15rem 0.1rem 0.35rem;
    margin-bottom: 0.55rem;
    font-size: 16px; /* 避免 iOS 聚焦自动放大 */
    line-height: 1.5;
  }

  .desk-composer-bar {
    margin-top: 0.4rem;
    gap: 0.35rem;
  }

  .desk-attach {
    padding: 0 0.7rem;
    font-size: 0.78rem;
  }

  .desk-composer .desk-send.btn-primary {
    padding: 0 1rem;
    font-size: 0.82rem;
  }

  .desk-examples {
    flex-wrap: nowrap;
    gap: 0.35rem;
    margin: 0.65rem 0 0;
    padding: 0 0 0.15rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .desk-examples::-webkit-scrollbar {
    display: none;
  }

  .desk-chip {
    flex: 0 0 auto;
    padding: 0.4rem 0.7rem;
    font-size: 0.76rem;
    -webkit-tap-highlight-color: transparent;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: 0 0 auto;
    min-height: 0;
  }

  .hero-greeting {
    display: none;
  }

  .lede,
  .desk-sub {
    display: none;
  }

  .hero-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    /* Cap stage so typewriter never steals first-screen space from textarea */
    flex: 0 0 auto;
    height: 7.6rem;
    min-height: 7.6rem;
    max-height: 7.6rem;
    margin: 0 0 0.85rem;
    gap: 0.55rem;
    overflow: visible;
    cursor: text;
  }

  .hero-stage-orb-wrap {
    width: clamp(2.75rem, 11vw, 3.4rem);
    height: clamp(2.75rem, 11vw, 3.4rem);
    flex-shrink: 0;
    transform: scale(1);
    transition: transform 0.55s var(--ease-out);
  }

  .hero-stage.is-typing .hero-stage-orb-wrap {
    transform: scale(1.03);
  }

  .hero-stage.is-ready .hero-stage-orb-wrap,
  .hero-stage.is-holding .hero-stage-orb-wrap {
    transform: scale(1);
    animation: cortana-orb-breathe 3.8s ease-in-out infinite;
  }

  .hero-stage-glow {
    position: absolute;
    inset: -42%;
    border-radius: 50%;
    background:
      radial-gradient(circle, rgba(162, 44, 252, 0.4) 0%, rgba(34, 211, 238, 0.12) 38%, rgba(118, 48, 247, 0.1) 52%, transparent 72%);
    filter: blur(1.5px);
    animation: stage-glow-breathe 3.6s ease-in-out infinite;
    pointer-events: none;
  }

  .hero-orb--stage {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
  }

  .hero-orb--stage .hero-orb-ripple {
    inset: 4%;
  }

  .hero-orb--stage .hero-orb-aura {
    inset: -48%;
  }

  .hero-type {
    /* 光标由 JS 绝对定位到最后一个字符末尾，避免被挤出下一行 */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    /* Fixed 2-line slot — typing/fading must not change layout height */
    width: 100%;
    max-width: min(20.5rem, 92vw);
    height: 3.6em;
    min-height: 3.6em;
    max-height: 3.6em;
    margin: 0;
    padding: 0.15rem 0.65rem;
    overflow: visible;
    font-size: clamp(0.95rem, 3.6vw, 1.08rem);
    line-height: 1.65;
    letter-spacing: 0.03em;
    text-align: center;
    color: rgba(250, 250, 250, 0.96);
    opacity: 0;
    transform: none;
    transition: opacity 0.35s var(--ease-out);
  }

  .hero-type-text {
    display: block;
    width: 100%;
    overflow: visible;
  }

  .hero-type-caret {
    /* JS 按最后一个字符的 rect 定位；默认藏起来避免闪烁 */
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
    visibility: hidden;
  }

  .hero-type-caret.is-placed {
    visibility: visible;
  }

  .hero-stage.is-typing .hero-type,
  .hero-stage.is-holding .hero-type,
  .hero-stage.is-ready .hero-type {
    opacity: 1;
    transform: none;
  }

  .hero-stage.is-fading .hero-type {
    opacity: 0;
    transform: none;
  }

  .hero-stage.is-typing .hero-type-caret,
  .hero-stage.is-holding .hero-type-caret,
  .hero-stage.is-ready .hero-type-caret {
    opacity: 1;
  }

  .hero-stage.is-holding .hero-type-caret,
  .hero-stage.is-ready .hero-type-caret {
    animation: caret-blink 1.05s step-end infinite;
  }

  .desk-composer-shell.is-awaiting-input::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(162, 44, 252, 0.35);
    animation: composer-ring 2.2s ease-out infinite;
  }

  .desk-composer-shell {
    position: relative;
  }

  .hero-scroll {
    display: none;
  }

  .path-rail {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .path-card {
    min-height: 4.75rem;
    padding: 1rem 0.85rem;
  }

  .cta-row {
    width: 100%;
    max-width: 100%;
  }

  .cta-row .btn-lg {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .path-slogan-slot {
    width: 100%;
    gap: 0.55rem;
  }

  .path-slogan {
    font-size: 0.74rem;
    pointer-events: none;
    cursor: default;
  }

  .feature-panel {
    position: relative;
    top: auto;
    left: auto !important;
    right: auto !important;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0.85rem auto 0;
    transform: none !important;
    max-height: none;
    padding: 1.75rem 1.5rem;
    border-width: 1px;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 3;
    justify-content: flex-start;
    box-sizing: border-box;
    scroll-margin-top: calc(var(--topbar-h) + env(safe-area-inset-top, 0px) + 0.75rem);
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    transition:
      border-color 0.3s ease,
      box-shadow 0.3s ease;
  }

  .feature-panel-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin: 0.35rem 0 0.15rem;
    padding: 0.55rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(250, 250, 250, 0.22);
    background: rgba(118, 48, 247, 0.12);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .feature-panel-toggle:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 2px;
  }

  .feature-panel .feature-menu {
    display: none;
    margin-top: 0.85rem;
  }

  .feature-panel.is-expanded .feature-menu {
    display: flex;
  }

  /* 移动端：两块说明常驻在路径卡下方 */
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    order: 2;
  }

  .feature-panel--code {
    order: 3;
  }

  .feature-panel--design {
    order: 4;
    margin-bottom: 1.5rem;
  }

  .feature-panel-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.15rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: #fafafa;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border: 1px solid transparent;
    box-shadow:
      0 4px 16px rgba(118, 48, 247, 0.28),
      0 0 20px rgba(118, 48, 247, 0.18);
  }

  .compare-swipe-hint {
    display: block;
    margin: 0 0 0.65rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: center;
  }

  .site-beian {
    padding-bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  .topbar {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
    gap: 0.3rem;
  }

  .topbar-brand {
    font-size: 0.84rem;
  }

  .topbar-account {
    gap: 0.3rem;
  }

  .topbar-account .link-quiet {
    padding: 0.34rem 0.1rem;
    font-size: 0.72rem;
  }

  .topbar-account .btn-primary {
    padding: 0.34rem 0.62rem;
    font-size: 0.76rem;
  }

  .hero {
    padding-inline: max(0.6rem, env(safe-area-inset-left, 0px))
      max(0.6rem, env(safe-area-inset-right, 0px));
  }

  .desk-attach {
    padding: 0 0.55rem;
  }

  .path-card {
    min-height: 4.25rem;
    padding: 0.85rem 0.65rem;
  }

  .path-card-title {
    font-size: 0.95rem;
  }

  .path-slogan {
    font-size: 0.68rem;
  }
}

/* ICP 备案悬挂（工信部要求显著位置公示） */
.site-beian {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 1.25rem 1.35rem;
  background: rgba(0, 0, 0, 0.92);
  border-top: 1px solid rgba(250, 250, 250, 0.1);
}

.site-beian a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: rgba(250, 250, 250, 0.55);
  text-decoration: none;
}

.site-beian a:hover {
  color: rgba(250, 250, 250, 0.85);
  text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage,
  .hero-stage-glow,
  .hero-stage-orb-wrap,
  .hero-type,
  .hero-type-caret,
  .desk-composer-shell.is-awaiting-input,
  .desk-composer-shell.is-awaiting-input::after,
  .hero-copy,
  .lede,
  .cta-row,
  .path-rail,
  .brand,
  .btn-cta-pulse,
  .topbar-capsule,
  .starlight::before,
  .starlight::after,
  .feature-panel,
  .path-slogan,
  .atmosphere,
  .desk-sub,
  .desk-composer,
  .desk-composer-shell,
  .hero-orb,
  .hero-orb-ripple,
  .hero-orb-ring,
  .hero-orb-aura,
  .hero-orb-halo,
  .hero-orb-core,
  .hero-orb-core-glow,
  .lede .tw-caret,
  .desk-sub .tw-caret,
  .hero-gallery-tilt,
  .hero-gallery-drift,
  .hero-reel-track,
  .hero-shot,
  .hero-shot img,
  .hero-shot::before,
  .seo-body article,
  .compare-wins li,
  .compare-table tbody tr {
    animation: none;
    transition: none;
  }

  .btn-primary:hover,
  .btn-ghost:hover,
  .path-card:hover,
  .path-card:active,
  .path-card.is-active,
  .topbar-capsule:hover,
  .desk-chip:hover,
  .desk-chip:active,
  .line-card:hover,
  .line-card:focus-visible {
    transform: none;
  }

  .hero-gallery-tilt {
    transform: none;
  }

  .hero-shot img,
  .hero-gallery.is-linked .hero-shot.is-active img {
    transform: none;
  }

  .line-card-media,
  .line-card:hover .line-card-media,
  .line-card:focus-visible .line-card-media {
    transform: none;
    transition: none;
  }

  .hub-loading-ring,
  .hero-scroll::after {
    animation: none;
  }

  .hero-gallery-parallax,
  .hero-gallery.is-linked .hero-gallery-parallax {
    transform: none;
    transition: none;
  }

  .btn-cta-pulse::before {
    display: none;
  }

  .seo-body article.reveal-pending,
  .compare-wins li.reveal-pending,
  .compare-table tbody tr.reveal-pending,
  .lines-group.reveal-pending,
  .line-card.reveal-pending {
    opacity: 1;
    transform: none;
  }

  body.desk-listening .atmosphere {
    filter: none;
  }
}

.theme-toggle {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0.78rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

html[data-theme="light"] .atmosphere {
  background:
    radial-gradient(
      560px 380px at var(--mx) var(--my),
      rgba(107, 33, 232, 0.14),
      transparent 64%
    ),
    radial-gradient(ellipse 80% 55% at 18% 42%, rgba(124, 58, 237, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 82% 48%, rgba(147, 51, 234, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(247, 243, 251, 0.2) 0%, rgba(243, 238, 248, 0.85) 100%);
}

html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 243, 251, 0.55) 100%);
}

html[data-theme="light"] .desk-composer-shell,
html[data-theme="light"] .line-card {
  background: rgba(255, 255, 255, 0.88);
}

html[data-theme="light"] .desk-composer-shell {
  box-shadow:
    0 10px 28px rgba(28, 18, 48, 0.08),
    0 0 20px rgba(107, 33, 232, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .desk-composer-shell:focus-within {
  box-shadow:
    0 12px 32px rgba(28, 18, 48, 0.1),
    0 0 0 1px rgba(107, 33, 232, 0.16),
    0 0 20px rgba(107, 33, 232, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* 移动端亮色：同步弱化输入框阴影，与暗色移动端一致 */
@media (max-width: 900px) {
  html[data-theme="light"] .desk-composer-shell {
    box-shadow:
      0 6px 18px rgba(28, 18, 48, 0.06),
      0 0 16px rgba(107, 33, 232, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }

  html[data-theme="light"] .desk-composer-shell:focus-within {
    box-shadow:
      0 8px 22px rgba(28, 18, 48, 0.08),
      0 0 0 1px rgba(107, 33, 232, 0.16),
      0 0 16px rgba(107, 33, 232, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
  }
}

html[data-theme="light"] .hero-type {
  color: var(--ink);
}

html[data-theme="light"] .hero-scroll {
  color: rgba(28, 18, 48, 0.9);
}

html[data-theme="light"] .hero-scroll:hover {
  color: var(--accent-hover);
}

/* 亮色下胶囊常态纯透明；移动端展开菜单的白底由 .is-open 提供 */
html[data-theme="light"] .topbar-capsule:not(:hover):not(:focus-visible) {
  background: transparent;
  border-color: transparent;
}

html[data-theme="light"] .topbar-nav.is-open {
  background: rgba(255, 255, 255, 0.96);
}

html[data-theme="light"] .topbar-backdrop {
  background: rgba(28, 18, 48, 0.28);
}
