/* WUKON design tokens from 工程学妹-cn app/globals.css (742577e).
   Loaded only by the Jarvis homepage. Legacy aliases keep its existing layouts and demos intact. */
:root, :root[data-theme] {
  --theme-accent: #ff6a00;
  --brand-primary-strong: #cc5500;
  --brand-primary-soft: #fff5ee;
  --text-strong: #000;
  --text-regular: #333;
  --text-muted: #666;
  --text-soft: #999;
  --surface-canvas: #fff;
  --surface-page: #fff;
  --surface-elev-1: #fff;
  --surface-elev-2: #f5f5f5;
  --surface-elev-3: #eee;
  --border-soft: #eef0f2;
  --border-regular: #e1e8e9;
  --border-strong: #d8e2e4;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .04), 0 1px 3px rgb(0 0 0 / .06);
  --shadow-md: 0 6px 16px rgb(0 0 0 / .08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --wukon-font: "Instrument Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --accent-text: color-mix(in srgb, var(--brand-primary-strong) 80%, #000);

  --site-bg: var(--surface-canvas);
  --site-ground: var(--surface-page);
  --site-surface: var(--surface-elev-1);
  --site-surface-strong: var(--surface-elev-2);
  --site-ink: var(--text-strong);
  --site-ink-soft: var(--text-regular);
  --site-muted: var(--text-muted);
  --site-hair: var(--border-regular);
  --site-accent: var(--theme-accent);
  --site-accent-dark: var(--brand-primary-strong);
  --site-accent-light: var(--brand-primary-soft);
  --site-shadow: rgb(0 0 0 / .08);
  --site-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --utum-serif: var(--wukon-font);
  --utum-paper: var(--surface-page);
  --utum-cool: var(--surface-elev-2);
  --utum-ink: var(--text-strong);
  --utum-ink-soft: var(--text-regular);
  --utum-muted: var(--text-muted);
  --utum-line: var(--border-regular);
  --utum-accent: var(--theme-accent);
  --utum-accent-dark: var(--brand-primary-strong);
  --utum-accent-light: var(--brand-primary-soft);
  --utum-warm: var(--theme-accent);
}

:root[data-theme="dark"] {
  --brand-primary-soft: rgb(255 106 0 / .15);
  --text-strong: #fff;
  --text-regular: #ccc;
  --text-muted: #999;
  --text-soft: #666;
  --surface-canvas: #000;
  --surface-page: #111;
  --surface-elev-1: #111;
  --surface-elev-2: #222;
  --surface-elev-3: #333;
  --border-soft: rgb(255 255 255 / .07);
  --border-regular: rgb(255 255 255 / .12);
  --border-strong: rgb(255 255 255 / .16);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .35), 0 1px 3px rgb(0 0 0 / .45);
  --shadow-md: 0 8px 24px rgb(0 0 0 / .45);
  --accent-text: var(--theme-accent);
  --site-shadow: rgb(0 0 0 / .45);
}

html, body, .wrap { background: var(--surface-canvas); }
.wrap { overflow: clip; }
body { color: var(--text-regular); font: 400 15px/1.75 var(--wukon-font); }
body :is(h1, h2, h3, .btn, .product-tab, .lang button, .faq-item summary) { letter-spacing: 0; }
button, select, input { font-family: inherit; }
body a { color: var(--text-strong); }
body a:hover { color: var(--accent-text); }
body :is(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--theme-accent);
  outline-offset: 3px;
}

:root[data-theme] .nav { background: var(--surface-page); border-color: var(--border-regular); }
.nav-inner { height: 64px; gap: 16px; }
.nav-inner img { box-shadow: none; }
.product-tab { border: 1px solid transparent; }
.lang { gap: 2px; margin-right: 0; padding: 2px; border-radius: var(--radius-sm); }
body :is(.product-tab, .lang button, .theme-toggle, .side-nav__item, .btn, .jarvis-demo-window__controls button) {
  border-radius: var(--radius-sm);
}
body :is(.lang, .theme-toggle) { background: var(--surface-elev-2); border-color: var(--border-regular); }
body :is(.product-tab, .lang button, .theme-toggle) { color: var(--text-regular); }
body :is(.product-tab.active, .lang button.active, .theme-toggle.active) {
  color: var(--text-strong);
  border-color: var(--theme-accent);
  background: var(--brand-primary-soft);
  box-shadow: none;
}
body :is(.product-tab:not(.active):hover, .lang button:not(.active):hover, .theme-toggle:hover, .theme-toggle:focus-visible) {
  color: var(--text-strong);
  background: var(--surface-elev-3);
  border-color: var(--border-strong);
}
.side-nav {
  right: 12px;
  max-width: calc((100vw - 1120px) / 2 - 24px);
  padding: 6px;
  border-radius: var(--radius-md);
  background: var(--surface-page);
  box-shadow: var(--shadow-sm);
}
.side-nav__item { gap: 6px; padding-inline: 8px; font-size: 12px; line-height: 1.4; }
.side-nav__item.active .side-nav__dot { box-shadow: none; }
body .btn-light, body .jarvis-demo-window__controls button.is-active {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
  color: #000;
  box-shadow: none;
}
body .btn-light:hover { background: var(--brand-primary-strong); color: #000; }
body .btn-ghost { background: var(--surface-elev-1); border-color: var(--border-strong); color: var(--text-strong); }
body .btn-ghost:hover { background: var(--surface-elev-2); color: var(--text-strong); }

.hero { padding-top: 56px; }
body .hero h1 { margin-top: 0; color: var(--text-strong); background: none; font: 700 64px/1.12 var(--wukon-font); }
.hero .hero-actions { margin-top: 24px; }
.hero .hero-product { max-width: 1040px; margin-top: 32px; }
.wrap :is(.overview, .features, .general-case, .professional-cases, .pelican-demo-section, .saltline-entry, .agents, .download, .faq, .join) {
  padding-top: 64px;
  background: var(--surface-canvas);
}
.wrap :is(.overview, .general-case, .professional-cases, .saltline-entry) { scroll-margin-top: 80px; }
.wrap .overview { padding-top: 48px; }
.wrap :is(.overview, .features, .general-case, .professional-cases, .saltline-entry, .agents, .download, .faq, .join) h2 {
  color: var(--text-strong);
  font: 700 32px/1.25 var(--wukon-font);
  text-wrap: balance;
}
.wrap :is(.overview, .features, .general-case, .professional-cases, .saltline-entry, .agents, .faq) :is(.section-head, .features-inner, .general-case__intro, .professional-cases__head, .saltline-entry__copy, .agents-inner, .faq-inner)>p {
  color: var(--text-regular);
  font-size: 16px;
  line-height: 1.75;
}
body :is(.general-case__eyebrow, .professional-cases__head>span, .saltline-entry__eyebrow, .agent-more, .guide-link, .community-badge, .faq-item--guide .guide-steps li>b) {
  color: var(--accent-text);
}

/* Treat slides, screenshots, and the game as content; theme the surrounding controls and captions. */
body :is(.hero-product, .general-case__visual, .professional-case, .glass-card, .agent-card, .shot-card, .faq-list, .pelican-demo, .pelican-demo-section .gemini-demo-card, .pelican-demo-prompt, .saltline-entry__preview) {
  background: var(--surface-elev-1);
  border-color: var(--border-regular);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
body :is(.hero-product, .saltline-entry__preview) { border-radius: var(--radius-lg); }
:root[data-theme] :is(.hero-ppt-demo, .hero-product__meta, .hero-product--ppt figcaption, .general-case__chrome, .general-case__visual>figcaption, .jarvis-demo-window__chrome, .jarvis-demo-window__toolbar) {
  background: var(--surface-elev-2);
  border-color: var(--border-regular);
  color: var(--text-muted);
}
body :is(.hero-ppt-demo__sidebar, .hero-ppt-demo__project, .hero-ppt-demo__output, .hero-ppt-demo__inspector, .hero-ppt-demo__inspector>div, .hero-ppt-demo__canvas, .professional-case__artifacts, .ppt-case-modal__header) {
  border-color: var(--border-regular);
}
body :is(.hero-ppt-demo__project>strong, .hero-ppt-demo__output>strong, .hero-ppt-demo__inspector strong) { color: var(--text-strong); }
body :is(.hero-ppt-demo__project>span, .hero-ppt-demo__project>small, .hero-ppt-demo__step>b, .hero-ppt-demo__step small, .hero-ppt-demo__output>span, .hero-ppt-demo__output>em, .hero-ppt-demo__toolbar, .hero-ppt-demo__inspector>div>span) { color: var(--text-muted); }
body :is(.hero-ppt-demo__project>span, .hero-ppt-demo__output>span, .hero-ppt-demo__output>em, .hero-ppt-demo__inspector>div>span, .pelican-demo-prompt code) { font-family: var(--wukon-font); }
body :is(.hero-product__meta i, .hero-ppt-demo__status i, .hero-ppt-demo__check i, .hero-ppt-demo__progress i, .ppt-case-modal__progress i) { background: var(--theme-accent); box-shadow: none; }
body :is(.hero-ppt-demo__status b, .general-case__chrome em, .professional-case__topline b, .professional-case--ppt .professional-case__topline b, .community-badge) {
  background: var(--brand-primary-soft);
  color: var(--accent-text);
  border-color: var(--border-strong);
  border-radius: var(--radius-sm);
}
.hero-ppt-demo__canvas { background: var(--surface-elev-1); box-shadow: var(--shadow-sm); }
.hero-ppt-demo__step { color: var(--text-muted); }
.hero-ppt-demo__step>i { background: var(--text-soft); }
.hero-ppt-demo__scan { display: none; }
.hero-ppt-demo__canvas-badge { background: var(--surface-elev-1); border-color: var(--border-regular); color: var(--text-regular); box-shadow: var(--shadow-sm); }
.hero-ppt-demo__film { background: var(--surface-elev-1); border-color: var(--border-regular); color: var(--text-muted); }
.hero-ppt-demo__progress { background: var(--surface-elev-3); }

/* The inherited timeline also animates color, so its keyframes need theme tokens. */
@keyframes hero-ppt-step-cycle {
  0%, 19% { background: var(--brand-primary-soft); border-color: var(--theme-accent); color: var(--text-strong); transform: translateX(3px); }
  25%, 100% { background: transparent; border-color: transparent; color: var(--text-muted); transform: translateX(0); }
}
@keyframes hero-ppt-step-dot {
  0%, 19% { background: var(--theme-accent); box-shadow: none; }
  25%, 100% { background: var(--text-soft); box-shadow: none; }
}
@keyframes hero-ppt-film-cycle {
  0%, 19% { background: var(--theme-accent); border-color: var(--theme-accent); color: #000; }
  25%, 100% { background: var(--surface-elev-1); border-color: var(--border-regular); color: var(--text-muted); }
}

:root[data-theme] :is(.general-case__body, .general-case__report, .general-case__run, .general-case__chart, .general-case__summary) {
  background: var(--surface-elev-1);
  color: var(--text-regular);
  border-color: var(--border-regular);
}
:root[data-theme] .general-case__run li { background: var(--surface-elev-2); border-color: var(--border-regular); color: var(--text-regular); }
:root[data-theme] .general-case__run li:first-child { background: var(--brand-primary-soft); border-color: var(--theme-accent); color: var(--text-strong); }
body :is(.general-case__run-label, .general-case__run li>b, .general-case__report-head, .general-case__report-lead, .general-case__metrics span, .general-case__chart small, .general-case__summary p, .general-case__analysis span, .professional-case__topline, .professional-case p, .professional-case__steps b) { color: var(--text-muted); }
body :is(.general-case__run li i, .general-case__chrome i, .jarvis-demo-window__dots i, .jarvis-demo-window__dots i:nth-child(n)) { background: var(--text-soft); box-shadow: none; }
body :is(.general-case__run li:first-child i, .jarvis-demo-window__status i) { background: var(--theme-accent); box-shadow: none; }
body .jarvis-demo-window.is-paused .jarvis-demo-window__status i { background: var(--text-soft); }
body .general-case__metrics, body .general-case__metrics>div+div { border-color: var(--border-regular); }
.general-case__chart i, .general-case__chart i:nth-of-type(n) { background: var(--theme-accent); }
.general-case__chart i:nth-of-type(2) { opacity: .78; }
.general-case__chart i:nth-of-type(3) { opacity: .55; }
.professional-case::after { display: none; }
.professional-case__steps li, .professional-case__artifacts span {
  background: var(--surface-elev-2);
  border-color: var(--border-regular);
  color: var(--text-regular);
  border-radius: var(--radius-sm);
}
.professional-case__artifacts span { font-family: var(--wukon-font); }
.shot-card figcaption, .icp-footer .row, .icp-footer a { color: var(--text-muted); border-color: var(--border-regular); }
.glass-card p, .agent-card p, .faq-item p { color: var(--text-muted); font-size: 14px; line-height: 1.75; }
.faq-item summary, .faq-item summary .plus { color: var(--text-strong); }
.agent-card:hover { border-color: var(--theme-accent); box-shadow: var(--shadow-sm); }
.saltline-entry__preview:hover, .saltline-entry__preview:focus-visible { border-color: var(--theme-accent); box-shadow: var(--shadow-md); }

:root[data-theme] .download-band { background: var(--surface-elev-2); color: var(--text-strong); border-color: var(--border-regular); border-radius: var(--radius-lg); box-shadow: none; }
.download-band :is(.band-note, .band-note--sub) { color: var(--text-muted); }
.download-band [data-i18n="releaseNote"] { display: block; max-width: 620px; margin: 12px auto 0; color: var(--text-regular); }
.join-referral { background: var(--surface-elev-2); border-color: var(--border-regular); color: var(--text-regular); border-radius: var(--radius-sm); }
.ppt-case-modal__dialog { background: var(--surface-page); color: var(--text-strong); border-color: var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ppt-case-modal__header>div>span { color: var(--accent-text); }
.ppt-case-modal__count { color: var(--text-muted); }
.ppt-case-modal__footer input { accent-color: var(--theme-accent); }
.ppt-case-modal :is(.ppt-case-modal__close, .ppt-case-modal__nav, .ppt-case-modal__toggle) { background: var(--surface-elev-2); color: var(--text-strong); border-color: var(--border-strong); border-radius: var(--radius-sm); }
.ppt-case-modal :is(.ppt-case-modal__close, .ppt-case-modal__nav, .ppt-case-modal__toggle):hover { background: var(--surface-elev-3); }

@media (max-width: 900px) {
  body .hero h1 { font-size: 52px; }
  .nav-inner { gap: 12px; }
}
@media (max-width: 1399px) {
  .side-nav { display: none; }
}
@media (max-width: 560px) {
  .nav-inner { height: 56px; gap: 8px; padding-inline: 12px; }
  .product-tab { padding-inline: 8px; }
  .theme-toggle { margin-left: 0; }
  .hero { padding-top: 36px; }
  body .hero h1 { font-size: 36px; }
  .hero .hero-actions, .download-band .band-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 360px;
    margin: 20px auto 0;
  }
  :is(.hero-actions, .band-actions) .btn {
    min-width: 0;
    padding-inline: 8px !important;
    font-size: 14px !important;
    line-height: 1.25;
    white-space: normal;
  }
  :is(.hero-actions, .band-actions) .btn-light { grid-column: 1 / -1; }
  .hero .hero-product { margin-top: 24px; }
  .hero-ppt-demo__step { grid-template-columns: 15px minmax(0, 1fr) 6px; }
  .hero-ppt-demo__step strong, .hero-ppt-demo__step small { white-space: normal; }
  .wrap :is(.overview, .features, .general-case, .professional-cases, .pelican-demo-section, .saltline-entry, .agents, .download, .faq, .join) { padding-top: 48px; }
  .wrap :is(.overview, .features, .general-case, .professional-cases, .saltline-entry, .agents, .download, .faq, .join) h2 { font-size: 26px; }
}
@media (max-width: 360px) {
  .nav-inner { gap: 6px; padding-inline: 8px; }
  .nav-inner img { width: 26px; height: 26px; }
  .product-tab { padding-inline: 6px; }
  .lang button { padding-inline: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .hero-ppt-demo__step--1 { background: var(--brand-primary-soft) !important; border-color: var(--theme-accent) !important; color: var(--text-strong) !important; }
  body .hero-ppt-demo__step i { animation: none !important; }
  body .hero-ppt-demo__step--1 i { background: var(--theme-accent); }
  body .hero-ppt-demo__film--1 { background: var(--theme-accent) !important; border-color: var(--theme-accent) !important; color: #000 !important; }
}
