:root {
  color-scheme: light;
  --ink: #151515;
  --text: #242424;
  --muted: #6d6d6d;
  --paper: #f3f3f1;
  --surface: #ffffff;
  --panel: #f8f8f7;
  --line: #d8d8d3;
  --line-strong: #b7b7b0;
  --solidworks-red: #d71920;
  --selection: #2f5f9e;
  --shadow: 0 22px 58px rgba(0, 0, 0, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .035) 1px, transparent 1px),
    linear-gradient(180deg, #f7f7f5 0%, #ffffff 48%, #efefec 100%);
  background-size: 38px 38px, auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 247, .92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.brand-name {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-name span:first-child {
  font-size: 16px;
}

.brand-name span:last-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-link {
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.button-download {
  color: #fff;
  background: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .18);
}

.button-download:hover,
.button-download:focus {
  transform: translateY(-1px);
  background: #000;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: #fff;
}

.button-secondary:hover,
.button-secondary:focus {
  border-color: var(--ink);
}

.button-large {
  min-height: 48px;
  padding: 0 22px;
  font-size: 15px;
}

.compact-download {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(620px, 1.42fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: clamp(36px, 6vw, 76px) clamp(18px, 4vw, 56px) clamp(32px, 6vw, 64px);
}

.hero > * {
  min-width: 0;
}

.hero-copy {
  max-width: 640px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #333;
  font-size: 14px;
  font-weight: 850;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--solidworks-red);
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.lead {
  margin: 24px 0 0;
  max-width: 600px;
  color: #444;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.68;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.meta-row span {
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #3f3f3f;
  background: rgba(255, 255, 255, .74);
  font-size: 12px;
  font-weight: 700;
}

.cad-workbench {
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #9f9f98;
  border-radius: 8px;
  background: #fbfbfa;
  box-shadow: var(--shadow);
}

.workbench-titlebar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: #ededeb;
}

.window-controls {
  display: inline-flex;
  gap: 6px;
}

.window-controls span {
  width: 10px;
  height: 10px;
  border: 1px solid #9d9d99;
  border-radius: 50%;
  background: #fff;
}

.workbench-title {
  min-width: 0;
  overflow: hidden;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-manager {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(74px, auto));
  gap: 6px;
  align-items: stretch;
  min-height: 58px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #f5f5f3;
}

.command-manager-label {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.command-manager button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #252525;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.command-manager button.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
}

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(150px, .56fr) minmax(320px, 1.2fr) minmax(240px, .8fr);
  min-height: 520px;
  min-width: 0;
}

.feature-tree,
.property-panel {
  min-width: 0;
  background: var(--panel);
}

.feature-tree {
  border-right: 1px solid var(--line);
}

.property-panel {
  border-left: 1px solid var(--line);
}

.feature-tree h2,
.property-panel h2 {
  margin: 0;
  min-height: 38px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: #303030;
  font-size: 13px;
  font-weight: 900;
}

.feature-tree ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 10px 8px;
  list-style: none;
}

.feature-tree li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #343434;
  font-size: 13px;
  font-weight: 650;
}

.feature-tree li span {
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
}

.feature-tree li.active {
  border-color: #c9c9c4;
  background: #fff;
}

.feature-tree li.done span {
  border-color: var(--solidworks-red);
  background: var(--solidworks-red);
}

.model-viewport {
  position: relative;
  overflow: hidden;
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(310px, 1fr) auto;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, .055) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px;
}

.viewport-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 6px;
  align-items: center;
}

.viewport-toolbar span,
.dimension {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #3a3a3a;
  background: rgba(255, 255, 255, .88);
  font-size: 12px;
  font-weight: 750;
}

.dimension {
  position: absolute;
  z-index: 3;
}

.dimension-top {
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
}

.dimension-side {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.gear-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
}

.axis {
  position: absolute;
  background: rgba(0, 0, 0, .16);
}

.axis-x {
  width: 72%;
  height: 1px;
}

.axis-y {
  width: 1px;
  height: 72%;
}

.gear-orbit {
  position: relative;
  width: clamp(190px, 24vw, 286px);
  aspect-ratio: 1;
  border: 1px dashed #999;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
}

.gear-shape {
  position: absolute;
  inset: 12%;
  border: 1px solid #111;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 0 24%, #fff 25% 33%, transparent 34%),
    repeating-conic-gradient(from 0deg, #1c1c1c 0deg 7deg, #ededed 7deg 12deg, transparent 12deg 18deg);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, .14));
  animation: gear-spin 7s linear infinite;
}

.gear-core {
  position: absolute;
  inset: 39%;
  border: 8px solid #111;
  border-radius: 50%;
  background: #fff;
}

.stage-readout {
  display: grid;
  gap: 5px;
  align-self: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
}

.stage-readout strong {
  color: #181818;
  font-size: 16px;
}

.stage-readout span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.property-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-bottom: 12px;
}

.command-panel,
.client-panel {
  margin: 0 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.command-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.demo-command {
  min-height: 76px;
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.demo-command::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 1.08em;
  margin-left: 4px;
  vertical-align: -2px;
  background: var(--solidworks-red);
  animation: cursor-blink 1s steps(2, start) infinite;
}

.tool-stack {
  display: grid;
  gap: 7px;
  margin: 0 12px;
}

.tool-chip {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #444;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.tool-chip.active {
  border-color: var(--ink);
  color: #fff;
  background: var(--ink);
  animation: tool-pulse 1.6s ease-in-out infinite;
}

.client-panel {
  display: grid;
  gap: 10px;
  border-color: #bcbcb6;
}

.client-status {
  display: inline-flex;
  justify-self: start;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #303030;
  background: #f6f6f4;
  font-size: 12px;
  font-weight: 850;
}

.client-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.client-panel p {
  margin: 0;
  color: #4f4f4f;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.client-panel small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.workbench-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-top: 1px solid var(--line);
  color: #333;
  background: #eeeeeb;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f8b4c;
}

.section {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.section-muted {
  background: #f5f5f3;
}

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

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: 0;
}

.section-note {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.feature {
  min-height: 220px;
  padding: 22px;
  background: #fff;
}

.feature mark {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 18px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #202020;
  background: #f3f3f1;
  font-size: 12px;
  font-weight: 900;
}

.feature h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.flow-step {
  min-height: 184px;
  padding: 24px;
  background: #fff;
}

.flow-step span {
  color: var(--solidworks-red);
  font-size: 13px;
  font-weight: 900;
}

.flow-step h3 {
  margin: 15px 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.download-section {
  background: #fff;
}

.download-dock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px),
    #f7f7f5;
  background-size: 30px 30px;
}

.download-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: #303030;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.download-dock h2 {
  font-size: clamp(28px, 3.8vw, 44px);
}

.download-dock p {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
}

.footer-left {
  justify-self: start;
}

.footer-center {
  justify-self: center;
  text-align: center;
}

.footer-right {
  justify-self: end;
  text-align: right;
}

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

@keyframes tool-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, .24);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(0, 0, 0, 0);
  }
}

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

@media (max-width: 1220px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .workbench-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature-tree,
  .property-panel {
    border: 0;
  }

  .feature-tree {
    border-bottom: 1px solid var(--line);
  }

  .property-panel {
    border-top: 1px solid var(--line);
  }

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

  .download-dock {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    justify-content: flex-start;
  }

  .nav-link {
    display: none;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 42px);
  }

  .lead {
    font-size: 16px;
  }

  .workbench-titlebar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .compact-download {
    grid-column: 1 / -1;
    width: 100%;
  }

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

  .command-manager-label {
    grid-column: 1 / -1;
    min-height: 24px;
    padding: 0;
  }

  .feature-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    justify-self: center;
    text-align: center;
  }

  .button {
    width: 100%;
  }
}
