:root {
  --ink: #16181d;
  --muted: #626874;
  --line: #e2e5e9;
  --soft: #f5f7f8;
  --cyan: #13a7c7;
  --cyan-dark: #087e99;
  --green: #24885d;
  --amber: #a86100;
  --white: #ffffff;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(19, 167, 199, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(226, 229, 233, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.header-link,
.text-link {
  color: var(--cyan-dark);
  font-weight: 650;
}

.header-link {
  font-size: 14px;
}

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.home-intro {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 760;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.portal-section {
  padding: 46px 0 80px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.portal-card {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: #bdc4cb;
  box-shadow: 0 14px 34px rgba(22, 24, 29, 0.08);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 50px;
}

.card-number {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.status {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.5;
}

.status.ready {
  color: var(--green);
  background: #eaf6ef;
}

.status.pending {
  color: var(--amber);
  background: #fff3df;
}

.portal-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
}

.portal-card p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 700;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  justify-content: center;
  padding: 48px 0 90px;
}

.article-nav {
  position: sticky;
  top: 100px;
  align-self: start;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.article-nav strong {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
}

.article-nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-nav li + li {
  margin-top: 8px;
}

.article-nav a {
  color: var(--muted);
  font-size: 13px;
}

.article-nav a:hover {
  color: var(--cyan-dark);
}

.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.article-header h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 54px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin: 28px 0 10px;
  padding: 16px 18px;
  border-left: 3px solid var(--cyan);
  background: var(--soft);
  color: #424750;
  font-size: 14px;
}

.step {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 94px;
}

.step-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.step-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 780;
}

.step h2 {
  margin: 2px 0 4px;
  font-size: 23px;
  line-height: 1.35;
}

.step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tutorial-image {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.image-caption {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.completion {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid #b9dfcc;
  border-radius: 8px;
  background: #f2faf6;
}

.completion h2 {
  margin-bottom: 6px;
  font-size: 20px;
}

.completion p {
  margin: 0;
  color: #4c6559;
  font-size: 14px;
}

.placeholder {
  min-height: calc(100vh - 157px);
  padding: 72px 0 96px;
}

.placeholder-content {
  max-width: 720px;
}

.placeholder h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 6vw, 58px);
}

.placeholder-box {
  margin: 36px 0 30px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.placeholder-box strong {
  display: block;
  margin-bottom: 6px;
}

.placeholder-box p {
  margin: 0;
  color: var(--muted);
}

.primary-link {
  min-height: 44px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  color: var(--white);
  background: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  min-height: 70px;
}

.footer-inner a:hover {
  color: var(--cyan-dark);
}

@media (max-width: 840px) {
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 220px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px);
    gap: 0;
  }

  .article-nav {
    position: static;
  }

  .article-nav strong,
  .article-nav ol {
    display: none;
  }

  .back-link {
    margin-bottom: 16px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 60px;
  }

  .header-link {
    font-size: 0;
  }

  .header-link span {
    font-size: 18px;
  }

  .home-intro,
  .placeholder {
    padding-top: 46px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 16px;
  }

  .portal-section {
    padding-top: 34px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 5px;
  }

  .portal-card {
    min-height: 205px;
  }

  .card-top {
    margin-bottom: 35px;
  }

  .article-layout {
    padding-top: 28px;
  }

  .article-header h1 {
    font-size: 38px;
  }

  .step {
    padding: 34px 0;
  }

  .step-heading {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .step-index {
    width: 36px;
    height: 36px;
  }

  .step h2 {
    font-size: 20px;
  }
}

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

  .portal-card {
    transition: none;
  }
}

/* Client installation guide */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 3px;
  pointer-events: none;
}

.reading-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
}

.client-hero {
  min-height: 570px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #f7f8f6;
  overflow: hidden;
}

.client-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 70px;
  align-items: center;
  padding-top: 62px;
  padding-bottom: 62px;
}

.hero-back {
  margin-bottom: 34px;
}

.client-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(45px, 6vw, 76px);
}

.client-hero .lead {
  max-width: 630px;
}

.hero-facts {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-facts span {
  padding: 7px 10px;
  border: 1px solid #cfd4d8;
  border-radius: 6px;
  background: var(--white);
  color: #4d535d;
  font-size: 12px;
}

.terminal-scene {
  border: 1px solid #31353d;
  border-radius: 8px;
  background: #17191e;
  color: #e8ebef;
  box-shadow: 18px 18px 0 #dcecee;
  transform: rotate(1.5deg);
  animation: terminal-arrive 700ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.terminal-bar {
  height: 46px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #343841;
  color: #969da9;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 11px;
}

.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ed6b5f;
}

.terminal-bar i:nth-child(2) {
  background: #e9b34a;
}

.terminal-bar i:nth-child(3) {
  margin-right: 8px;
  background: #54b874;
}

.terminal-body {
  min-height: 275px;
  padding: 30px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  line-height: 1.8;
}

.terminal-body p {
  margin-bottom: 14px;
}

.terminal-body p > span:first-child {
  color: #43bfd7;
}

.terminal-result {
  color: #71d69b;
  animation: line-appear 550ms 500ms both;
}

.terminal-result.delay-one {
  animation-delay: 1000ms;
}

.terminal-cursor {
  animation: line-appear 550ms 1350ms both;
}

.cursor {
  color: var(--white) !important;
  animation: cursor-blink 850ms steps(2, jump-none) infinite;
}

.client-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 820px);
  gap: 66px;
  justify-content: center;
  padding-top: 62px;
  padding-bottom: 100px;
}

.client-index {
  position: sticky;
  top: 104px;
  align-self: start;
  padding-right: 20px;
}

.index-label {
  display: block;
  margin-bottom: 16px;
  color: #9399a2;
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.client-index button {
  width: 100%;
  min-height: 42px;
  padding: 8px 0;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border: 0;
  color: #747b86;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.client-index button i {
  font-size: 10px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.client-index button:hover,
.client-index button.active {
  color: var(--ink);
  transform: translateX(3px);
}

.client-index button.active i {
  color: var(--cyan-dark);
}

.index-meter {
  position: absolute;
  top: 39px;
  right: 0;
  width: 2px;
  height: 210px;
  background: var(--line);
}

.index-meter span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top center;
}

.client-content {
  min-width: 0;
}

.install-section {
  padding: 38px 0 78px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 82px;
}

.install-section:first-child {
  padding-top: 0;
}

.section-kicker {
  margin-bottom: 12px;
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 800;
}

.install-section > h2,
.product-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

.section-intro {
  max-width: 710px;
  margin-bottom: 28px;
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-panel {
  min-height: 230px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.choice-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(22, 24, 29, 0.09);
}

.choice-panel.dark {
  color: var(--white);
  background: #20232a;
  border-color: #20232a;
}

.choice-number {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 800;
}

.choice-panel.dark .choice-number {
  color: #6cd1e4;
}

.choice-panel strong {
  margin-top: 46px;
  font-size: 25px;
}

.choice-panel small {
  color: var(--muted);
  font-size: 12px;
}

.choice-panel.dark small {
  color: #aab0ba;
}

.choice-panel em {
  margin-top: auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.version-note {
  margin-top: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 14px;
  border-left: 3px solid #df8c13;
  background: #fff8ec;
  font-size: 13px;
}

.version-note span {
  color: #665c4d;
}

.product-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 22px;
}

.official-chip {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 5px;
  color: var(--green);
  background: #eaf6ef;
  font-size: 11px;
  font-weight: 760;
}

.official-chip.dark {
  color: #f1f3f5;
  background: #2a2e35;
}

.platform-tabs,
.script-filters {
  margin: 24px 0 28px;
  padding: 4px;
  display: inline-flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.platform-tabs button,
.script-filter {
  min-width: 104px;
  min-height: 38px;
  padding: 7px 13px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 680;
  cursor: pointer;
}

.platform-tabs button.active,
.script-filter.active {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(22, 24, 29, 0.08);
}

.platform-panel,
.download-list {
  display: none;
}

.platform-panel.active,
.download-list.active {
  display: block;
  animation: panel-enter 260ms ease both;
}

.requirements-bar {
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.requirements-bar span {
  min-width: 0;
  padding: 13px 10px;
  color: var(--muted);
  font-size: 12px;
}

.requirements-bar span + span {
  border-left: 1px solid var(--line);
}

.requirements-bar b {
  display: block;
  color: var(--ink);
  font-size: 11px;
}

.method-heading > span,
.method-grid > div > span {
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 780;
}

.method-heading h3 {
  margin: 5px 0 6px;
  font-size: 25px;
}

.method-heading p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.command-block {
  min-height: 68px;
  margin: 16px 0;
  padding: 12px 12px 12px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #31363e;
  border-radius: 7px;
  color: #f1f3f4;
  background: #1b1e24;
}

.command-block > div {
  min-width: 0;
}

.command-block span {
  display: block;
  color: #8d96a2;
  font-size: 10px;
  font-family: inherit;
}

.command-block code {
  display: block;
  overflow-x: auto;
  color: #f0f3f4;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  white-space: nowrap;
}

.copy-button {
  min-width: 62px;
  min-height: 36px;
  border: 1px solid #484f59;
  border-radius: 5px;
  color: #dce2e6;
  background: #292d35;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.copy-button:hover {
  border-color: #6b7480;
}

.install-actions {
  margin: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.download-button {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid #cbd1d6;
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  transition: border-color 150ms ease, transform 150ms ease;
}

.download-button:hover {
  border-color: #8e969f;
  transform: translateY(-1px);
}

.download-button.primary {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.download-button.compact {
  margin-top: 8px;
}

.visual-steps {
  margin: 32px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.visual-steps.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.visual-steps li {
  min-width: 0;
  padding: 18px 14px;
}

.visual-steps li + li {
  border-left: 1px solid var(--line);
}

.visual-steps li > span {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 800;
}

.visual-steps strong {
  display: block;
  margin-top: 17px;
  font-size: 14px;
}

.visual-steps p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.wide-figure {
  margin: 30px 0;
}

.wide-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wide-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.method-details,
.faq-list details {
  border-top: 1px solid var(--line);
}

.method-details {
  padding: 17px 0;
}

.method-details summary,
.faq-list summary {
  font-weight: 720;
  cursor: pointer;
}

.method-details p,
.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.security-note {
  margin: 25px 0;
  padding: 17px 19px;
  border-left: 3px solid #d48a13;
  background: #fff8eb;
}

.security-note.strong {
  border-left-color: #d33b47;
  background: #fff2f3;
}

.security-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.security-note p {
  margin: 0;
  color: #675e51;
  font-size: 13px;
}

.method-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.method-grid.triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.method-grid > div {
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.method-grid h3 {
  margin: 8px 0 5px;
  font-size: 17px;
}

.method-grid p {
  color: var(--muted);
  font-size: 12px;
}

.method-grid a {
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 720;
}

.method-grid .command-block {
  min-height: 58px;
  padding: 9px 9px 9px 12px;
}

.method-grid .command-block code {
  max-width: 210px;
  font-size: 11px;
}

.first-run {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.first-run > div {
  min-width: 0;
  padding: 14px;
}

.first-run > div + div {
  border-left: 1px solid var(--line);
}

.first-run span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.first-run code {
  font-size: 11px;
  white-space: nowrap;
}

.script-filters {
  margin-bottom: 20px;
}

.download-row {
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.download-row:last-child {
  border-bottom: 1px solid var(--line);
}

.download-row h3 {
  margin: 3px 0 2px;
  font-size: 17px;
}

.download-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.download-badge {
  color: var(--cyan-dark);
  font-size: 10px;
  font-weight: 760;
}

.faq-list {
  margin-top: 26px;
}

.faq-list details {
  padding: 18px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.source-links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: var(--muted);
  font-size: 12px;
}

.source-links span {
  color: var(--ink);
  font-weight: 760;
}

.source-links a:hover {
  color: var(--cyan-dark);
}

.ccs-hero {
  background: #f1f7f5;
}

.ccs-flow-scene {
  width: min(520px, 100%);
  min-height: 340px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 34px 1fr 34px 1fr;
  align-items: center;
  animation: terminal-arrive 620ms ease both;
}

.flow-node {
  min-width: 0;
  min-height: 150px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #cdd8d5;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(22, 24, 29, 0.06);
}

.flow-node i {
  color: var(--cyan-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.flow-node strong {
  font-size: 17px;
  line-height: 1.2;
}

.flow-node span {
  color: var(--muted);
  font-size: 11px;
}

.flow-node.active {
  border-color: #f2ad71;
  box-shadow: 0 16px 34px rgba(218, 104, 28, 0.12);
  transform: translateY(-14px);
}

.flow-node.active i {
  color: #bd5514;
}

.flow-node.dark {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.flow-node.dark span {
  color: #bdc4cd;
}

.flow-line {
  height: 2px;
  overflow: hidden;
  background: #cbd4d7;
}

.flow-line span {
  width: 45%;
  height: 100%;
  display: block;
  background: var(--cyan);
  animation: flow-pulse 1.8s ease-in-out infinite;
}

.ccs-download-head {
  margin: 26px 0 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 3px solid #db671d;
  background: #fff6ee;
}

.ccs-download-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ccs-download-head span {
  color: var(--muted);
  font-size: 12px;
}

.ccs-download-head strong {
  font-size: 20px;
}

.ccs-download-head p {
  margin: 0;
  color: #704224;
  font-size: 12px;
}

.ccs-install-notes {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.ccs-install-notes > div {
  padding: 18px;
}

.ccs-install-notes > div + div {
  border-left: 1px solid var(--line);
}

.ccs-install-notes span {
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ccs-install-notes p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.guide-shot-grid {
  margin-top: 24px;
  display: grid;
  gap: 18px;
  align-items: start;
}

.guide-shot-grid.split-wide {
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.7fr);
}

.guide-shot-grid.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-shot-grid.handoff-grid {
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
}

.guide-shot-grid figure,
.guide-figure,
.restart-layout figure {
  margin: 0;
}

.guide-shot-grid img,
.guide-figure img,
.restart-layout img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.guide-shot-grid figcaption,
.guide-figure figcaption,
.restart-layout figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.guide-shot-grid .compact-shot {
  align-self: center;
}

.guide-figure {
  margin-top: 24px;
}

.guide-figure.narrow {
  width: min(520px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.field-spec {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.field-spec > span {
  color: var(--cyan-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-spec dl {
  margin: 14px 0;
}

.field-spec dl > div {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  border-bottom: 1px solid var(--line);
}

.field-spec dt {
  color: var(--muted);
  font-size: 13px;
}

.field-spec dd {
  margin: 0;
  font-weight: 720;
}

.field-spec p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.success-checks {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #b9dbca;
  border-radius: 8px;
  background: #eff9f4;
}

.success-checks > div {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.success-checks > div + div {
  border-left: 1px solid #cbe5d8;
}

.success-checks i {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.success-checks span {
  font-size: 12px;
  font-weight: 680;
}

.restart-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.test-conversation {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8fa;
}

.test-conversation > div {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.test-conversation > div + div {
  margin-top: 14px;
}

.test-conversation span {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.test-conversation .assistant span {
  background: var(--green);
}

.test-conversation p {
  min-height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.ccs-faq {
  margin-top: 28px;
}

@keyframes flow-pulse {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(260%); }
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 480ms ease, transform 480ms ease;
}

.reveal-item.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes terminal-arrive {
  from { opacity: 0; transform: translateY(18px) rotate(1.5deg); }
  to { opacity: 1; transform: translateY(0) rotate(1.5deg); }
}

@keyframes line-appear {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 940px) {
  .client-hero-inner {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .terminal-scene {
    width: min(600px, calc(100% - 20px));
  }

  .ccs-flow-scene {
    width: min(640px, 100%);
  }

  .client-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .client-index {
    top: 68px;
    z-index: 12;
    padding: 8px 0;
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
  }

  .index-label,
  .index-meter {
    display: none;
  }

  .client-index button {
    width: auto;
    min-width: max-content;
    grid-template-columns: auto auto;
    gap: 6px;
    padding: 6px 12px;
  }

  .client-index button:first-of-type {
    padding-left: 0;
  }

  .client-index button:hover,
  .client-index button.active {
    transform: none;
  }
}

@media (max-width: 680px) {
  .client-hero {
    min-height: auto;
  }

  .client-hero-inner {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .client-hero h1 {
    font-size: 42px;
  }

  .terminal-scene {
    box-shadow: 10px 10px 0 #dcecee;
  }

  .terminal-body {
    min-height: 235px;
    padding: 23px 19px;
    font-size: 12px;
  }

  .client-layout {
    padding-top: 20px;
  }

  .install-section {
    padding-bottom: 58px;
  }

  .choice-grid,
  .method-grid,
  .method-grid.triple {
    grid-template-columns: 1fr;
  }

  .choice-panel {
    min-height: 205px;
  }

  .version-note {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .product-heading {
    display: block;
  }

  .official-chip {
    display: inline-block;
    margin-bottom: 8px;
  }

  .platform-tabs,
  .script-filters {
    width: 100%;
    overflow-x: auto;
  }

  .platform-tabs button,
  .script-filter {
    flex: 1 0 auto;
    min-width: 94px;
  }

  .requirements-bar {
    grid-template-columns: 1fr;
  }

  .requirements-bar span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .command-block {
    align-items: stretch;
  }

  .command-block code {
    max-width: calc(100vw - 145px);
  }

  .visual-steps,
  .visual-steps.four {
    grid-template-columns: 1fr 1fr;
  }

  .visual-steps li:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .visual-steps li:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .first-run {
    grid-template-columns: 1fr;
  }

  .first-run > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .download-row {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .install-actions .text-link {
    width: 100%;
    text-align: center;
  }

  .ccs-flow-scene {
    min-height: 480px;
    padding: 10px 28px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 28px 1fr 28px 1fr;
  }

  .flow-node {
    min-height: 112px;
  }

  .flow-node.active {
    transform: translateX(8px);
  }

  .flow-line {
    width: 2px;
    height: 28px;
    margin: 0 auto;
  }

  .flow-line span {
    width: 100%;
    height: 45%;
  }

  .ccs-download-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .ccs-install-notes,
  .guide-shot-grid.split-wide,
  .guide-shot-grid.equal,
  .guide-shot-grid.handoff-grid,
  .success-checks,
  .restart-layout {
    grid-template-columns: 1fr;
  }

  .ccs-install-notes > div + div,
  .success-checks > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .terminal-scene,
  .terminal-result,
  .terminal-cursor,
  .cursor,
  .platform-panel.active,
  .download-list.active,
  .reveal-item {
    animation: none;
    transition: none;
  }

  .reveal-item {
    opacity: 1;
    transform: none;
  }

  .flow-line span {
    animation: none;
  }
}
