:root {
  --paper: #f7f8f5;
  --paper-deep: #eef3ee;
  --ink: #06213c;
  --ink-soft: #163c55;
  --muted: #5e6c70;
  --rule: #cfdad7;
  --green: #0b8068;
  --green-dark: #075944;
  --green-soft: #f1f8f4;
  --blue: #06213c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans Pro", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; }

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 17px;
  border-bottom: 2px solid var(--blue);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 600;
}

.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.hero {
  padding: 54px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .78fr);
  gap: 86px;
  align-items: start;
}

.hero-kicker,
.journal-label,
.section-label {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.journal-label { margin-top: 20px; }

h1, h2, h3, p, dd, dt { overflow-wrap: anywhere; }
h1, h2, h3 {
  margin: 0;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 8.2vw, 7.2rem);
  line-height: .92;
  font-weight: 700;
}

.hero-title {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: 16px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.18;
  text-align: center;
}

.hero-tagline {
  margin: 12px 0 0;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.7rem;
  line-height: 1.55;
}

.lead {
  max-width: 790px;
  margin: 22px 0 0;
  color: #203a4b;
  font-size: 1.08rem;
  line-height: 1.95;
}

.evidence-panel {
  border-top: 3px solid var(--blue);
  border-bottom: 1px solid var(--rule);
  padding-top: 24px;
}

.panel-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.evidence-panel strong {
  display: block;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.9rem;
  line-height: 1.2;
}

.evidence-panel dl { margin: 30px 0 0; }
.evidence-panel dl div {
  padding: 17px 0 20px;
  border-top: 1px solid var(--rule);
}

dt {
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 6px 0 0;
  color: #203a4b;
  line-height: 1.7;
}

.keyword-strip {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 44px;
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.keyword-strip span {
  padding: 12px 18px;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  font-size: .88rem;
}
.keyword-strip span:first-child { padding-left: 0; }
.keyword-strip span:last-child { border-right: 0; }

.install-section {
  padding: 42px 0 78px;
  text-align: center;
}

.install-section h2,
.section h2 {
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 2.45rem;
  line-height: 1.25;
}

.install-copy {
  max-width: 640px;
  margin: 12px auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.install-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 12px 10px 24px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
}

.install-command code {
  flex: 1 1 auto;
  text-align: left;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .98rem;
  line-height: 1.6;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  cursor: pointer;
  font: 700 .92rem/1 Arial, "Microsoft YaHei", sans-serif;
}
.copy-button:hover { background: #222; }

.section {
  padding: 86px 0 112px;
  border-top: 1px solid var(--rule);
}

.purpose-section {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.35fr);
  gap: 84px;
}

.purpose-intro > p:last-child {
  max-width: 430px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 2;
}

.purpose-points,
.workflow {
  list-style: none;
  margin: 0;
  padding: 0;
}

.purpose-points {
  display: grid;
  gap: 26px;
}

.purpose-points li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 4px;
}

.point-marker,
.workflow-number {
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
}

.point-copy h3,
.workflow h3 {
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.35;
}

.point-copy p,
.workflow p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.95;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--rule);
}

.workflow li {
  min-height: 220px;
  padding: 24px 22px 26px;
  background: var(--paper-deep);
}

.workflow-number {
  display: block;
  margin-bottom: 34px;
}

.compatibility-section { padding-bottom: 104px; }

.compatibility-intro {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 2;
}

.compatibility-card {
  margin-top: 28px;
  padding: 12px 32px 18px;
  border: 1px solid #bfded4;
  background: linear-gradient(90deg, #f5faf7 0%, #f0f8f4 100%);
}

.compatibility-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 20px 0;
}

.compatibility-row + .compatibility-row {
  border-top: 1px solid rgba(11, 128, 104, .14);
}

.compatibility-row strong {
  padding-top: 3px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.8;
}

.compatibility-row p {
  margin: 0;
  color: #53677e;
  font-size: .98rem;
  line-height: 2.05;
}

.compatibility-note {
  margin: 6px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(11, 128, 104, .14);
  color: #788692;
  font-size: .82rem;
  line-height: 1.9;
}

.site-footer {
  border-top: 1px solid var(--blue);
  padding: 58px 0 30px;
  color: #6f7d8c;
  font-family: Arial, "Microsoft YaHei", sans-serif;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.55fr .95fr .75fr;
  gap: 78px;
  align-items: start;
  padding-bottom: 50px;
}

.footer-brand .brand {
  margin-bottom: 18px;
  font-size: 1.42rem;
}

.footer-brand .brand img {
  width: 38px;
  height: 38px;
}

.footer-brand p,
.footer-column p,
.footer-column a {
  margin: 0;
  font-size: .84rem;
  line-height: 2.35;
}

.footer-column h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font: 700 .92rem/1.4 Arial, "Microsoft YaHei", sans-serif;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.footer-links a:hover,
.footer-column a:hover {
  color: var(--green-dark);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1.45fr .8fr;
  gap: 72px;
  padding-top: 34px;
  border-top: 1px solid #d7dedb;
}

.footer-bottom p {
  margin: 0 0 9px;
  font-size: .76rem;
  line-height: 2.15;
}

.copyright { text-align: right; }

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .purpose-section {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .workflow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .copyright { text-align: left; }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1180px);
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-grid {
    gap: 46px;
  }

  .hero-tagline {
    font-size: 1.38rem;
  }

  .keyword-strip span {
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .install-command {
    align-items: stretch;
    flex-direction: column;
    border-radius: 24px;
    padding: 18px;
  }

  .copy-button {
    min-height: 46px;
    align-self: center;
  }

  .section {
    padding: 64px 0 84px;
  }

  .workflow li {
    min-height: auto;
  }

  .compatibility-card {
    padding: 8px 20px 16px;
  }

  .compatibility-row {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 18px 0;
  }

  .compatibility-row p {
    line-height: 1.95;
  }

  .footer-main {
    gap: 42px;
    padding-bottom: 42px;
  }
}

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

/* Dedicated responsive layout for tablets and phones */
@media (max-width: 700px) {
  .site-header,
  .site-footer,
  main {
    width: calc(100% - 28px);
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0 13px;
  }

  .brand {
    gap: 8px;
    font-size: 1.22rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav {
    width: auto;
    justify-content: flex-end;
    gap: 14px;
    font-size: .80rem;
    white-space: nowrap;
  }

  .hero {
    padding: 34px 0 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-kicker,
  .journal-label,
  .section-label {
    font-size: .69rem;
    letter-spacing: .02em;
  }

  .journal-label {
    margin-top: 14px;
    line-height: 1.55;
  }

  h1 {
    font-size: clamp(4.15rem, 21vw, 5rem);
    line-height: .94;
  }

  .hero-title {
    display: flex;
    width: 100%;
    margin-top: 14px;
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    line-height: 1.16;
  }

  .hero-title span {
    white-space: nowrap;
  }

  .hero-tagline {
    margin-top: 18px;
    font-size: 1.22rem;
    line-height: 1.62;
  }

  .lead {
    margin-top: 18px;
    font-size: .98rem;
    line-height: 1.88;
  }

  .evidence-panel {
    padding-top: 20px;
  }

  .evidence-panel strong {
    font-size: 1.55rem;
    line-height: 1.3;
  }

  .evidence-panel dl {
    margin-top: 22px;
  }

  .evidence-panel dl div {
    padding: 14px 0 16px;
  }

  .keyword-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 26px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .keyword-strip::-webkit-scrollbar {
    display: none;
  }

  .keyword-strip span {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
    font-size: .78rem;
    white-space: nowrap;
  }

  .keyword-strip span:first-child {
    padding-left: 0;
  }

  .install-section {
    padding: 34px 0 60px;
  }

  .install-section h2,
  .section h2 {
    font-size: 2rem;
  }

  .install-copy {
    margin: 10px auto 18px;
    font-size: .94rem;
    line-height: 1.8;
  }

  .install-command {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 17px;
    border-radius: 22px;
  }

  .install-command code {
    width: 100%;
    font-size: .82rem;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .copy-button {
    width: 100%;
    min-height: 46px;
    padding: 0 18px;
  }

  .section {
    padding: 58px 0 72px;
  }

  .purpose-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .purpose-intro > p:last-child {
    margin-top: 16px;
    font-size: .96rem;
    line-height: 1.9;
  }

  .purpose-points {
    gap: 28px;
  }

  .purpose-points li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .point-marker,
  .workflow-number {
    font-size: 1.2rem;
  }

  .point-copy h3,
  .workflow h3 {
    font-size: 1.04rem;
    line-height: 1.45;
  }

  .point-copy p,
  .workflow p {
    font-size: .92rem;
    line-height: 1.85;
  }

  .workflow {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 26px;
    background: transparent;
  }

  .workflow li {
    min-height: 0;
    padding: 20px;
    border: 1px solid var(--rule);
  }

  .workflow-number {
    margin-bottom: 18px;
  }

  .compatibility-section {
    padding-bottom: 72px;
  }

  .compatibility-intro {
    margin-top: 14px;
    font-size: .94rem;
    line-height: 1.85;
  }

  .compatibility-card {
    margin-top: 22px;
    padding: 6px 18px 14px;
  }

  .compatibility-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 17px 0;
  }

  .compatibility-row strong {
    padding-top: 0;
    font-size: .96rem;
  }

  .compatibility-row p {
    font-size: .90rem;
    line-height: 1.82;
  }

  .compatibility-note {
    padding-top: 13px;
    font-size: .78rem;
    line-height: 1.75;
  }

  .site-footer {
    padding: 44px 0 24px;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-main {
    padding-bottom: 34px;
  }

  .footer-brand .brand {
    margin-bottom: 14px;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
  }

  .footer-bottom {
    padding-top: 26px;
  }

  .copyright {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .nav {
    gap: 10px;
    font-size: .76rem;
  }

  .hero-title {
    font-size: 1.92rem;
  }

  .hero-tagline {
    font-size: 1.15rem;
  }
}


/* 16:9 native simulated workflow shown above Install */
.operation-demo-section {
  padding: 24px 0 58px;
}

.operation-demo {
  position: relative;
  width: min(756px, 70%);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
}

.sim-browser {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid #c9d5d2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(6, 33, 60, .12);
}

.sim-browser-bar {
  position: relative;
  display: flex;
  align-items: center;
  height: 8.8%;
  min-height: 34px;
  padding: 0 1.5%;
  border-bottom: 1px solid #dfe6e4;
  background: #f1f4f3;
  font-size: clamp(7px, .85vw, 12px);
}

.sim-window-dots {
  display: flex;
  gap: .45em;
  width: 9%;
}

.sim-window-dots i {
  display: block;
  width: .82em;
  height: .82em;
  border-radius: 50%;
  background: #c3ccca;
}

.sim-window-dots i:first-child { background: #dca69c; }
.sim-window-dots i:nth-child(2) { background: #dcc997; }
.sim-window-dots i:nth-child(3) { background: #9fc9b4; }

.sim-tabs {
  display: flex;
  align-self: flex-end;
  gap: .35em;
  height: 78%;
  width: 34%;
}

.sim-tabs-single {
  width: 17%;
}

.sim-tab {
  min-width: 0;
  flex: 1;
  padding: 0 .9em;
  border: 0;
  border-radius: .7em .7em 0 0;
  background: transparent;
  color: #6e7c81;
  font: inherit;
  font-weight: 700;
  pointer-events: none;
}

.sim-tab.is-active {
  background: #fff;
  color: var(--ink);
}

.sim-address {
  display: flex;
  align-items: center;
  width: 38%;
  height: 50%;
  margin-left: auto;
  padding: 0 1.1em;
  border: 1px solid #d9e1df;
  border-radius: 999px;
  background: #fff;
  color: #839093;
}

.sim-stage {
  position: relative;
  height: 91.2%;
  overflow: hidden;
  background: #f8faf9;
}

.sim-view {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}

.sim-view.is-active {
  opacity: 1;
  transform: none;
}

.sim-ai-view {
  display: flex;
  background: #f8faf9;
}

.sim-sidebar {
  position: relative;
  width: 16.5%;
  padding: 3.5% 2.2%;
  border-right: 1px solid #e2e8e6;
  background: #f1f5f3;
}

.sim-app-mark {
  display: grid;
  width: 2.5em;
  height: 2.5em;
  place-items: center;
  margin-bottom: 2em;
  border-radius: .7em;
  background: var(--blue);
  color: #fff;
  font: 800 clamp(7px, .9vw, 13px)/1 Arial, sans-serif;
}

.sim-side-line {
  display: block;
  width: 68%;
  height: .55em;
  margin: 1.25em 0;
  border-radius: 999px;
  background: #d8e1de;
}

.sim-side-line.is-long { width: 86%; }
.sim-side-line.is-short { width: 46%; }

.sim-sidebar-bottom {
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 8%;
}

.sim-side-dot {
  display: block;
  width: 1.45em;
  height: 1.45em;
  margin-bottom: .8em;
  border-radius: 50%;
  background: #cad7d2;
}

.sim-ai-main {
  position: relative;
  flex: 1;
  min-width: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(11, 128, 104, .035), transparent 34%),
    #fff;
}

.sim-ai-header {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 10%;
  min-height: 42px;
  padding: 0 3%;
  border-bottom: 1px solid #edf1ef;
  color: var(--ink);
  font-size: clamp(7px, .95vw, 14px);
}

.sim-ai-header > strong { font-weight: 700; }

.sim-mode-control {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7em;
}

.sim-web-only {
  padding: .38em .62em;
  border: 1px solid #d9e2e6;
  border-radius: 999px;
  background: #f4f7f8;
  color: #6d7d84;
  font: 700 .88em/1.2 inherit;
  transition: opacity .3s ease;
}

.sim-web-only.is-dimmed { opacity: .32; }

.sim-mode-control > span {
  color: var(--green-dark);
  font-weight: 800;
}

.sim-mode-control > button {
  padding: .52em .8em;
  border: 1px solid #d2ddda;
  border-radius: .6em;
  background: #fff;
  color: #607177;
  font: inherit;
  pointer-events: none;
}

.sim-mode-menu {
  position: absolute;
  top: calc(100% + .55em);
  right: 0;
  width: 13.8em;
  padding: .45em;
  border: 1px solid #d5dfdc;
  border-radius: .65em;
  background: #fff;
  box-shadow: 0 10px 28px rgba(6, 33, 60, .13);
  opacity: 0;
  transform: translateY(-.3em) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}

.sim-mode-menu.is-open {
  opacity: 1;
  transform: none;
}

.sim-mode-menu span {
  display: block;
  padding: .65em .7em;
  border-radius: .45em;
  color: #5c6d73;
}

.sim-mode-menu .sim-mode-agent {
  color: var(--ink);
  font-weight: 800;
}

.sim-mode-menu .sim-mode-agent.is-selected {
  background: var(--green-soft);
  color: var(--green-dark);
}

.sim-chat {
  position: absolute;
  top: 10%;
  left: 0;
  right: 0;
  bottom: 17%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 4% 10% 2%;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #cbd7d3 transparent;
}

.sim-chat::-webkit-scrollbar { width: 5px; }
.sim-chat::-webkit-scrollbar-track { background: transparent; }
.sim-chat::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #cbd7d3;
}

.sim-welcome {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: .8em;
  color: #526970;
  font-size: clamp(8px, 1.15vw, 17px);
  transition: opacity .25s ease, transform .25s ease;
}

.sim-welcome.is-hidden {
  opacity: 0;
  transform: translateY(-8px);
}

.sim-welcome-icon {
  display: grid;
  width: 2.8em;
  height: 2.8em;
  place-items: center;
  border: 1px solid #c7ded6;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.35em;
}

.sim-user-message,
.sim-assistant-message,
.sim-install-success,
.sim-tool-run,
.sim-result {
  opacity: 0;
  transform: translateY(1em);
  transition: opacity .36s ease, transform .36s ease;
}

.sim-user-message.is-visible,
.sim-assistant-message.is-visible,
.sim-install-success.is-visible,
.sim-tool-run.is-visible,
.sim-result.is-visible {
  opacity: 1;
  transform: none;
}

.sim-user-message {
  width: fit-content;
  max-width: 78%;
  margin: 0 0 2.1% auto;
  padding: 1.25% 1.65%;
  border-radius: 1em 1em .25em 1em;
  background: #eef3f6;
  color: #29424f;
  font-size: clamp(7px, .86vw, 13px);
  line-height: 1.55;
}

.sim-query-message { max-width: 88%; }

.sim-assistant-message {
  width: 76%;
  margin: 0 0 2.1%;
  color: #485f67;
  font-size: clamp(7px, .82vw, 12px);
  line-height: 1.5;
}

.sim-assistant-name {
  margin-bottom: .55em;
  color: #778589;
  font-weight: 800;
}

.sim-assistant-message p { margin: 0 0 .65em; }

.sim-progress-row {
  display: flex;
  align-items: center;
  gap: .55em;
  width: 88%;
  max-height: 0;
  padding: 0;
  overflow: hidden;
  border-bottom: 0 solid #edf2f0;
  opacity: 0;
  transform: translateY(.35em);
  transition:
    max-height .28s ease,
    padding .28s ease,
    border-width .28s ease,
    opacity .28s ease,
    transform .28s ease;
}

.sim-progress-row.is-complete {
  max-height: 3em;
  padding: .4em 0;
  border-bottom-width: 1px;
  opacity: 1;
  transform: none;
}

.sim-progress-row span {
  color: var(--green);
  font-weight: 900;
}

.sim-install-success {
  display: flex;
  align-items: center;
  gap: .8em;
  width: 62%;
  margin: 0 0 2.3%;
  padding: 1.2% 1.5%;
  border: 1px solid #bfe0d4;
  border-radius: .75em;
  background: #eff8f4;
  color: var(--green-dark);
  font-size: clamp(7px, .85vw, 13px);
}

.sim-install-success > span {
  display: grid;
  flex: 0 0 auto;
  width: 2em;
  height: 2em;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.sim-install-success strong,
.sim-install-success small { display: block; }

.sim-install-success small {
  margin-top: .2em;
  color: #71817f;
  font-size: .88em;
}

.sim-tool-run {
  width: 66%;
  margin: 0 0 2.1%;
  padding: 1.15% 1.4%;
  border: 1px solid #c8ddd6;
  border-radius: .75em;
  background: #f4faf7;
  color: #586f72;
  font-size: clamp(7px, .82vw, 12px);
}

.sim-tool-run > div {
  display: flex;
  align-items: center;
  gap: .7em;
}

.sim-tool-run strong { color: var(--green-dark); }
.sim-tool-run p { margin: .45em 0 0; }

.sim-spinner {
  width: 1em;
  height: 1em;
  border: .16em solid #cfe1db;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: sim-spin .9s linear infinite;
}

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

.sim-result {
  width: 100%;
  margin: 0 0 3%;
  padding: 0;
  background: transparent;
  color: #4e646d;
  font-size: clamp(7px, .80vw, 12px);
  line-height: 1.58;
}

.sim-result-chunk {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  scroll-margin-top: 1em;
  opacity: 0;
  transform: translateY(.75em);
  transition:
    max-height .42s ease,
    margin .32s ease,
    opacity .32s ease,
    transform .32s ease;
}

.sim-result-chunk.is-visible {
  max-height: 140em;
  margin: 0 0 1.05em;
  opacity: 1;
  transform: none;
}

.sim-result h4 {
  margin: .2em 0 .7em;
  color: var(--ink);
  font-size: 1.38em;
  line-height: 1.25;
}

.sim-result h5 {
  margin: 0 0 .42em;
  color: var(--ink);
  font-size: 1.06em;
  line-height: 1.35;
}

.sim-result p { margin: 0; }

.sim-result ul {
  margin: .25em 0 0;
  padding-left: 1.45em;
}

.sim-result li {
  margin: .26em 0;
}

.sim-result li strong {
  color: var(--green-dark);
}

.sim-result-summary {
  padding-top: .65em;
  border-top: 1px solid #e4ebe8;
  color: #435b63;
  font-weight: 700;
}

.sim-literature-note {
  padding: .72em .9em;
  border-left: .22em solid var(--green);
  background: #f4faf7;
  color: #52676f;
}

.sim-paper-chunk {
  display: grid;
  gap: .72em;
}

.sim-paper-entry {
  padding: .75em .9em;
  border: 1px solid #dbe5e1;
  border-radius: .7em;
  background: #fbfcfb;
}

.sim-paper-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: .3em;
  color: #75858a;
  font-size: .9em;
}

.sim-paper-meta span {
  color: var(--green-dark);
  font-weight: 800;
}

.sim-paper-meta b {
  color: #65767b;
  font-weight: 700;
}

.sim-paper-entry > strong {
  display: block;
  color: var(--ink);
  font-size: 1.01em;
  line-height: 1.45;
}

.sim-paper-entry > p {
  margin-top: .25em;
  color: #586d74;
}

.sim-composer {
  position: absolute;
  z-index: 7;
  left: 10%;
  right: 10%;
  bottom: 3.7%;
  display: flex;
  align-items: center;
  min-height: 10%;
  max-height: 12%;
  padding: 1.05% 6% 1.05% 1.8%;
  border: 1px solid #ccd8d5;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: 0 6px 20px rgba(6, 33, 60, .05);
  color: #344e59;
  font-size: clamp(7px, .82vw, 12px);
}

.sim-composer-text {
  display: -webkit-box;
  min-height: 1.2em;
  max-height: 2.9em;
  overflow: hidden;
  line-height: 1.4;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sim-caret {
  width: 1px;
  height: 1.2em;
  margin-left: .12em;
  background: var(--ink);
  opacity: 0;
}

.sim-caret.is-visible {
  opacity: 1;
  animation: sim-caret .8s step-end infinite;
}

@keyframes sim-caret { 50% { opacity: 0; } }

.sim-send {
  position: absolute;
  right: 1.2%;
  bottom: 17%;
  display: grid;
  width: 2.45em;
  height: 2.45em;
  place-items: center;
  border: 0;
  border-radius: .75em;
  background: var(--ink);
  color: #fff;
  font: 800 1em/1 Arial, sans-serif;
  pointer-events: none;
}

.sim-littrue-view {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 25%, rgba(11, 128, 104, .08), transparent 40%),
    #f7f8f5;
}

.sim-littrue-logo {
  position: absolute;
  top: 8%;
  left: 7%;
  color: var(--ink);
  font: 700 clamp(13px, 2vw, 28px)/1 Georgia, "Times New Roman", serif;
}

.sim-install-card {
  width: 74%;
  padding: 4.8% 5%;
  border: 1px solid #cfdbd7;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 16px 42px rgba(6, 33, 60, .08);
}

.sim-install-card > p {
  margin: 0 0 1.3em;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(9px, 1.45vw, 21px);
  font-weight: 700;
}

.sim-copy-line {
  display: flex;
  align-items: center;
  gap: 1.2%;
  padding: 1.1% 1.1% 1.1% 2%;
  border: 1px solid #d3dedb;
  border-radius: 999px;
  background: #fbfcfb;
}

.sim-copy-line code {
  flex: 1;
  min-width: 0;
  color: #324c58;
  font: 500 clamp(6px, .82vw, 12px)/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-copy-line button {
  flex: 0 0 auto;
  padding: .75em 1.35em;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: 700 clamp(6px, .75vw, 11px)/1 Arial, sans-serif;
  pointer-events: none;
  transition: transform .2s ease, background .2s ease;
}

.sim-copy-line button.is-pressed {
  transform: scale(.96);
  background: var(--green-dark);
}

.sim-copy-confirm {
  display: block;
  margin: .8em 0 0 auto;
  color: var(--green-dark);
  font-size: clamp(6px, .75vw, 11px);
  font-weight: 800;
  text-align: right;
  opacity: 0;
  transition: opacity .2s ease;
}

.sim-copy-confirm.is-visible { opacity: 1; }

/* WorkBuddy-inspired LitTrue-only connector trust view */
.sim-mcp-overlay {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4%;
  background: rgba(224, 229, 228, .78);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.sim-mcp-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.sim-mcp-modal {
  width: 76%;
  min-height: 73%;
  padding: 3.2% 3.5%;
  border: 1px solid #d3dad8;
  border-radius: 1.2em;
  background: #fff;
  box-shadow: 0 18px 50px rgba(20, 32, 38, .14);
  color: #2f3639;
  font-size: clamp(7px, .80vw, 12px);
}

.sim-mcp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 2.2%;
  border-bottom: 1px solid #e5e9e8;
}

.sim-mcp-head strong {
  display: block;
  margin-bottom: .25em;
  color: #202426;
  font-size: 1.35em;
}

.sim-mcp-head span {
  color: #6b7478;
}

.sim-mcp-head b {
  color: #687174;
  font-size: 1.6em;
  font-weight: 400;
}

.sim-mcp-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1%;
  margin: 2.4% 0 2.2%;
}

.sim-mcp-search > span,
.sim-mcp-search button {
  display: flex;
  align-items: center;
  min-height: 3em;
  padding: 0 1em;
  border: 1px solid #d5ddda;
  border-radius: .65em;
  background: #fff;
  color: #727c7f;
  font: inherit;
}

.sim-mcp-search button {
  color: #31383a;
  font-weight: 700;
}

.sim-mcp-count {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4%;
}

.sim-mcp-count strong { color: #303638; }

.sim-mcp-row {
  display: flex;
  align-items: center;
  gap: 1.2%;
  min-height: 4.5em;
}

.sim-mcp-chevron {
  color: #929b9e;
  font-size: 1.8em;
}

.sim-mcp-logo {
  display: grid;
  width: 3.2em;
  height: 3.2em;
  place-items: center;
  border-radius: .8em;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.sim-mcp-info {
  min-width: 0;
}

.sim-mcp-info strong,
.sim-mcp-info small {
  display: block;
}

.sim-mcp-info strong {
  color: #252b2d;
  font-size: 1.08em;
}

.sim-mcp-info small {
  margin-top: .2em;
  color: #5f696c;
}

.sim-mcp-status-dot {
  width: .7em;
  height: .7em;
  margin-left: .15em;
  border-radius: 50%;
  background: #7d8588;
}

.sim-mcp-toggle {
  position: relative;
  width: 3.7em;
  height: 1.95em;
  margin-left: auto;
  border-radius: 999px;
  background: #ecefed;
  transition: background .3s ease;
}

.sim-mcp-toggle i {
  position: absolute;
  top: .17em;
  left: .18em;
  width: 1.6em;
  height: 1.6em;
  border-radius: 50%;
  background: #fff;
  transition: transform .3s ease;
}

.sim-mcp-toggle.is-on {
  background: #0fbf6b;
}

.sim-mcp-toggle.is-on i {
  transform: translateX(1.7em);
}

.sim-mcp-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin: 1% 0 0 4.5%;
  padding: 1.25% 1.4%;
  border: 1px solid #efc690;
  border-radius: .7em;
  background: #fff8ef;
  color: #6d5544;
  transition: opacity .25s ease, transform .25s ease;
}

.sim-mcp-trust.is-hidden {
  opacity: 0;
  transform: translateY(-.4em);
}

.sim-mcp-trust button {
  flex: 0 0 auto;
  padding: .62em 1.05em;
  border: 0;
  border-radius: .55em;
  background: #2764e7;
  color: #fff;
  font: 800 1em/1 Arial, sans-serif;
}

.sim-mcp-trusted {
  display: flex;
  align-items: center;
  gap: .9em;
  margin: 1.5% 0 0 4.5%;
  padding: 1.25% 1.4%;
  border: 1px solid #bfe0d4;
  border-radius: .7em;
  background: #eff8f4;
  color: var(--green-dark);
  opacity: 0;
  transform: translateY(.5em);
  transition: opacity .3s ease, transform .3s ease;
}

.sim-mcp-trusted.is-visible {
  opacity: 1;
  transform: none;
}

.sim-mcp-trusted > span {
  display: grid;
  width: 2em;
  height: 2em;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.sim-mcp-trusted strong,
.sim-mcp-trusted small {
  display: block;
}

.sim-mcp-trusted small {
  margin-top: .2em;
  color: #647572;
}

@media (max-width: 700px) {
  .operation-demo-section {
    padding: 18px 0 44px;
  }

  .operation-demo {
    width: min(94%, 756px);
  }

  /* Keep the simulated desktop truly proportional inside the short
     16:9 mobile canvas. Desktop min-heights otherwise consume about
     one fifth of the available height and push the composer off-screen. */
  .sim-browser-bar {
    height: 8.8%;
    min-height: 0;
  }

  .sim-ai-header {
    height: 10%;
    min-height: 0;
  }

  .sim-browser { border-radius: 10px; }
  .sim-web-only { display: none; }

  .sim-mcp-modal {
    width: 88%;
    min-height: 78%;
  }

  .sim-result {
    font-size: clamp(6px, 1.8vw, 10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sim-view,
  .sim-mode-menu,
  .sim-user-message,
  .sim-assistant-message,
  .sim-install-success,
  .sim-tool-run,
  .sim-result,
  .sim-result-chunk,
  .sim-mcp-overlay,
  .sim-mcp-toggle,
  .sim-mcp-toggle i {
    transition: none;
  }

  .sim-spinner,
  .sim-caret.is-visible {
    animation: none;
  }
}


/* Community */
.community-section {
  padding: 86px 0 96px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

.community-section h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 2.45rem;
  line-height: 1.25;
}

.community-copy {
  max-width: 620px;
  margin: 14px auto 28px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.9;
}

.community-qr {
  display: block;
  width: min(310px, 78vw);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: #fff;
}

.community-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

/* Public beta terms */
.legal-main {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-hero {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--rule);
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
}

.legal-meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.legal-content {
  padding: 54px 0 86px;
}

.legal-content section {
  padding: 0 0 34px;
  margin: 0 0 34px;
  border-bottom: 1px solid var(--rule);
}

.legal-content section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 14px;
  color: var(--ink);
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: 1.28rem;
  line-height: 1.45;
}

.legal-content p {
  margin: 0 0 12px;
  color: #294455;
  font-size: .98rem;
  line-height: 1.95;
}

.legal-content a {
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back {
  color: var(--green-dark);
  font-size: .9rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .community-section {
    padding: 58px 0 68px;
  }

  .community-section h2 {
    font-size: 2rem;
  }

  .community-copy {
    margin-bottom: 22px;
    font-size: .94rem;
    line-height: 1.8;
  }

  .community-qr {
    width: min(260px, 76vw);
  }

  .legal-main {
    width: calc(100% - 28px);
  }

  .legal-hero {
    padding: 40px 0 34px;
  }

  .legal-content {
    padding: 38px 0 64px;
  }

  .legal-content h2 {
    font-size: 1.16rem;
  }

  .legal-content p {
    font-size: .94rem;
    line-height: 1.9;
  }
}
