/* Taichi Office — Chromatic System */
:root {
  color-scheme: light;
  --taiyi-purple: #7654F6;
  --taiyi-yellow: #F5D547;
  --taiyi-red: #F05243;
  --taiyi-blue: #315CF5;
  --taiyi-blue-muted: #536FAF;

  --taiyi-ink: #191919;
  --taiyi-paper: #F7F6F2;
  --taiyi-line: #DEDDD7;
  --taiyi-surface: #FFFFFF;
}

html { zoom: 1.21; }

body {
  color: var(--taiyi-ink);
  background: var(--taiyi-paper);
}

/* Keep the animated particle canvas and its mouse / click controls. */
.particle-canvas { opacity: .12; }

.topbar {
  background: rgba(247, 246, 242, .95);
  border-bottom: 1px solid var(--taiyi-line);
  backdrop-filter: blur(14px);
}

.brand small { color: #686760; }
.nav-links { color: var(--taiyi-ink); }
.nav-links a:hover,
.hero-manual-link:hover { color: var(--taiyi-purple); }

.button {
  border-color: var(--taiyi-line);
  border-radius: 6px;
  background: var(--taiyi-surface);
  color: var(--taiyi-ink);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:enabled:hover { transform: translateY(-2px); }
.button:enabled:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; transform: none; }

.button-primary,
.button-primary:hover {
  border-color: var(--taiyi-blue);
  background: var(--taiyi-blue);
  color: #fff;
  box-shadow: none;
}

.button-primary:disabled,
.button-primary:disabled:hover {
  border-color: #E5E4DF;
  background: #EAE9E4;
  color: #77766F;
  box-shadow: none;
  filter: none;
}

.demo-hero { padding-top: clamp(48px, 6.4vw, 78px); padding-bottom: 48px; }
.demo-hero .hero-grid { gap: clamp(28px, 4vw, 54px); }

/* Asymmetric composition: decorative, not interactive. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-grid { position: relative; z-index: 1; }

.original-hero::before,
.original-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: clamp(150px, 20vw, 300px);
  height: clamp(150px, 20vw, 300px);
  right: 5%;
  top: 12%;
  background: var(--taiyi-yellow);
  border-radius: 2px;
  transform: rotate(8deg);
}

.hero::after {
  width: clamp(100px, 13vw, 190px);
  height: clamp(100px, 13vw, 190px);
  right: 22%;
  bottom: 7%;
  background: var(--taiyi-purple);
  border-radius: 50%;
}

/* Typography */
.hero-copy-block {
  position: relative;
  max-width: 760px;
  text-align: left;
}

.original-hero .hero-copy-block {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  max-width: 100%;
  color: var(--taiyi-ink);
  letter-spacing: -.045em;
  line-height: 1.02;
}

.demo-hero h1.hero-title {
  color: var(--taiyi-ink);
  font-size: clamp(42px, 4.7vw, 62px);
  letter-spacing: -.045em;
}

.hero-brand-cn { color: var(--taiyi-purple); text-shadow: none; }
.original-hero h1 em { color: var(--taiyi-ink); text-shadow: none; }
.demo-hero .title-accent { color: var(--taiyi-purple); text-shadow: none; }
.eyebrow { color: var(--taiyi-purple); }

.hero-copy {
  max-width: 620px;
  margin-inline: 0;
  color: #4C4B47;
  line-height: 1.9;
}

.original-hero .hero-copy {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
}

.original-hero .hero-copy-line { white-space: nowrap; }

/* Give the three-line homepage statement more breathing room without growing the hero. */
.original-hero .hero-actions { margin-top: 18px; }
.original-hero .hero-meta { margin-top: 20px; }

.demo-hero .hero-copy.hero-copy--lead {
  max-width: 500px;
  color: #4C4B47;
  font-size: 15px;
  line-height: 1.8;
}

.hero-meta { color: #64635D; }
.meta-dot { background: var(--taiyi-blue); }
.hero-manual-link { color: var(--taiyi-ink); }

.task-composer { margin-top: 25px; }
.task-composer > label { color: var(--taiyi-ink); font-size: 12px; }

.task-input-shell {
  gap: 8px;
  padding: 8px;
  border-color: var(--taiyi-line);
  border-radius: 8px;
  background: var(--taiyi-surface);
  box-shadow: none;
}

.task-input-shell:focus-within {
  border-color: var(--taiyi-blue);
  box-shadow: 0 0 0 3px rgba(49, 92, 245, .1);
}

.task-input-shell textarea { color: var(--taiyi-ink); }
.task-input-shell textarea::placeholder { color: #76756F; }

.task-submit,
.task-submit:hover {
  border-radius: 6px;
  background: var(--taiyi-blue);
  color: #fff;
  box-shadow: none;
}

.task-submit:hover { filter: brightness(1.08); }
.task-examples { gap: 7px; margin-top: 10px; }

.example-chip {
  padding: 5px 8px;
  border-color: var(--taiyi-line);
  border-radius: 5px;
  background: var(--taiyi-surface);
  color: #45443F;
}

.example-chip:hover,
.example-chip[aria-pressed="true"] {
  border-color: var(--taiyi-purple);
  background: rgba(118, 84, 246, .07);
  color: var(--taiyi-purple);
}

/* Keep the workflow reveal and staged demo intact, with readable light surfaces. */
.workflow-demo,
.workflow-demo.is-revealed {
  border-color: var(--taiyi-line);
  border-radius: 10px;
  background: var(--taiyi-surface);
  box-shadow: 0 14px 38px rgba(25, 25, 25, .06);
}

.workflow-demo::after { display: none; }
.workflow-kicker { color: #706F69; }
.workflow-head-copy strong,
.workflow-task-copy strong,
.workflow-step-copy strong,
.workflow-result-head strong { color: var(--taiyi-ink); }
.workflow-task-copy small,
.workflow-task-copy span,
.workflow-step-copy small,
.workflow-step-state { color: #676660; }

.workflow-status {
  border: 1px solid var(--taiyi-line);
  border-radius: 5px;
  background: #FBFAF7;
  color: #45443F;
}

.workflow-status[data-state="running"] { color: var(--taiyi-blue); }
.workflow-status[data-state="complete"] { color: #4B741B; }
.workflow-status-dot { background: var(--taiyi-purple); }
.workflow-status[data-state="complete"] .workflow-status-dot { background: #76A82B; }

.workflow-task-card {
  border-color: var(--taiyi-line);
  border-radius: 7px;
  background: #FBFAF7;
}

.workflow-task-icon {
  border-color: rgba(49, 92, 245, .2);
  border-radius: 7px;
  background: rgba(49, 92, 245, .06);
  color: var(--taiyi-blue);
}

.workflow-local-badge,
.workflow-result-head span {
  border-radius: 4px;
  background: rgba(118, 84, 246, .08);
  color: var(--taiyi-purple);
}

.workflow-track span,
.workflow-progress-bar span { background: var(--taiyi-blue); }

.workflow-step.is-active {
  border-radius: 6px;
  background: rgba(118, 84, 246, .06);
}

.workflow-step.is-active .workflow-step-state,
.workflow-step.is-active .workflow-step-copy strong { color: var(--taiyi-purple); }
.workflow-step.is-done,
.workflow-step.is-done .workflow-step-state { color: #4B741B; }

.workflow-node {
  border-color: var(--taiyi-blue-muted);
  background: var(--taiyi-blue-muted);
  box-shadow: none;
  color: #fff;
}

.workflow-step.is-active .workflow-node,
.workflow-step.is-done .workflow-node {
  border-color: var(--taiyi-blue-muted);
  background: var(--taiyi-blue-muted);
  box-shadow: none;
  color: #fff;
}

.workflow-result {
  border-color: var(--taiyi-line);
  border-radius: 7px;
  background: #FBFAF7;
}

.workflow-result-list li { color: #45443F; }
.workflow-result-list li::before { background: var(--taiyi-blue); }
.workflow-result-foot,
.workflow-result-detail,
.workflow-foot { border-color: var(--taiyi-line); }
.result-detail-toggle { color: var(--taiyi-blue); }
.demo-disclaimer { color: #595852; }
.demo-disclaimer strong { color: var(--taiyi-ink); }
.workflow-foot-note { color: #595852; }
.workflow-foot-note i { background: var(--taiyi-blue); }
.workflow-progress-meta strong { color: var(--taiyi-ink); }

/* Section rhythm and light page surfaces. */
.section {
  padding-top: 40px;
  border-top-color: var(--taiyi-line);
}

.section-head h2,
.gallery-intro h2 { color: var(--taiyi-ink); }
.section-head p { color: #55544F; }
.product-showcase { padding-bottom: 48px; }
.gallery-kicker { color: #696862; }
.gallery-title { color: #33322F; }
.gallery-status { color: var(--taiyi-blue); }

.platform-panel {
  border-color: var(--taiyi-line);
  border-radius: 8px;
  background: var(--taiyi-surface);
  box-shadow: none;
}

.platform-heading { color: var(--taiyi-ink); }
.platform-heading span { color: #686761; }

/* Improve contrast in the cloud workflow preview on the light showcase panel. */
.platform-panel.cloud-platform .cloud-visual svg { stroke: var(--taiyi-blue); }
.platform-panel.cloud-platform .cloud-visual strong { color: var(--taiyi-ink); }
.platform-panel.cloud-platform .cloud-visual small {
  color: #55544F;
  font-size: 8px;
}

.platform-panel.cloud-platform .cloud-running {
  border-color: #A8D5B7;
  background: #EAF5EE;
  color: #285B3A;
}

.platform-panel.cloud-platform .cloud-running i,
.platform-panel.cloud-platform .cloud-note i {
  background: #347A4A;
  box-shadow: none;
}

.platform-panel.cloud-platform .cloud-step {
  border-color: #C9C8C2;
  background: #FBFAF7;
}

.platform-panel.cloud-platform .cloud-step b,
.platform-panel.cloud-platform .cloud-step.is-running b {
  color: var(--taiyi-ink);
}

.platform-panel.cloud-platform .cloud-step.is-running {
  border-color: #8098E8;
  background: #F0F3FF;
  box-shadow: none;
}

.platform-panel.cloud-platform .cloud-arrow {
  color: var(--taiyi-blue);
  animation-name: cloud-arrow-readable;
}

.platform-panel.cloud-platform .cloud-progress { background: #DEDDD7; }
.platform-panel.cloud-platform .cloud-progress span { background: var(--taiyi-blue); }
.platform-panel.cloud-platform .cloud-note { color: #55544F; font-size: 8px; }

@keyframes cloud-arrow-readable {
  0%, 100% { opacity: .7; text-shadow: none; }
  50% { opacity: 1; text-shadow: none; }
}

.screen-tab {
  border-color: var(--taiyi-line);
  border-radius: 5px;
  background: var(--taiyi-surface);
  color: #45443F;
}

.screen-tab:hover { border-color: var(--taiyi-purple); color: var(--taiyi-purple); }

.screen-tab[aria-selected="true"],
.employee-ui-tab[aria-selected="true"] {
  border-color: var(--taiyi-purple);
  background: rgba(118, 84, 246, .06);
  color: var(--taiyi-purple);
  box-shadow: none;
}

.mobile-task-device {
  padding: 4px;
  border-color: #111214;
  border-radius: 26px;
  background: #111214;
  box-shadow: 0 12px 30px rgba(25, 25, 25, .12);
}

.mobile-task-screen {
  border-radius: 21px;
}

.architecture-diagram {
  border-color: var(--taiyi-line);
  border-radius: 8px;
  background: var(--taiyi-surface);
}

.architecture-platform,
.architecture-systems,
.architecture-endpoint,
.architecture-steps span {
  border-color: var(--taiyi-line);
  border-radius: 5px;
  background: #FBFAF7;
}

.architecture-platform h3,
.architecture-systems h3,
.architecture-orchestrator h3,
.architecture-endpoint h3 { color: var(--taiyi-ink); }

.architecture-platform p,
.architecture-systems p,
.architecture-endpoint p { color: #55544F; }

.architecture-endpoint[data-tone="blue"] { color: var(--taiyi-blue); background: rgba(49, 92, 245, .055); }
.architecture-endpoint[data-tone="green"] { color: #6B8B14; background: rgba(245, 213, 71, .16); }
.architecture-endpoint[data-tone="violet"] { color: var(--taiyi-purple); background: rgba(118, 84, 246, .055); }
.architecture-connector { color: var(--taiyi-blue); }

.architecture-orchestrator {
  border-color: rgba(118, 84, 246, .2);
  border-radius: 6px;
  background: rgba(118, 84, 246, .045);
}

.architecture-steps span { color: var(--taiyi-ink); }

.advantage-item { border-top-color: var(--taiyi-line); }
.advantage-item h3 { color: var(--taiyi-ink); }
.advantage-item p { color: #4C4B47; }
.advantage-item[data-tone="green"] .advantage-icon { color: #6B8B14; }
.advantage-item[data-tone="blue"] .advantage-icon { color: var(--taiyi-blue); }
.advantage-item[data-tone="violet"] .advantage-icon { color: var(--taiyi-purple); }

.cta-panel {
  border-color: var(--taiyi-line);
  border-radius: 7px;
  background: var(--taiyi-surface);
}

.cta-panel h2 { color: var(--taiyi-ink); }
.cta-panel p { color: #55544F; }
footer { border-top-color: var(--taiyi-line); color: #55544F; }
.footer-brand { color: var(--taiyi-ink); }

/* Keep pointer response local; use a clean blue rather than a warm brown glow. */
.employee-card::after,
.quick-card::after,
.summary-card::after,
.entry-ui-card::after,
.task-pair-card::after,
.chapter .card::after {
  background: radial-gradient(
    150px circle at var(--pointer-x, 50%) var(--pointer-y, 50%),
    rgba(49, 92, 245, .08),
    transparent 72%
  );
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--taiyi-blue);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .original-hero::before {
    width: 130px;
    height: 130px;
    right: -35px;
    top: 5%;
  }

  .original-hero::after {
    width: 76px;
    height: 76px;
    right: 28%;
    bottom: 3%;
  }

  .hero-copy-block { text-align: left; }
}

@media (max-width: 600px) {
  .demo-hero { padding-top: 36px; padding-bottom: 34px; }
  .original-hero .hero-copy-line { white-space: normal; }
  .original-hero .hero-copy { font-size: 14px; line-height: 1.7; }
  .original-hero .hero-actions { margin-top: 16px; }
  .original-hero .hero-meta { margin-top: 17px; }
  .workflow-demo,
  .workflow-demo.is-revealed { border-radius: 7px; }
  .section { padding-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
