:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5a6875;
  --paper: #f7f9fb;
  --surface: #ffffff;
  --line: #dbe3ea;
  --steel: #23445f;
  --blue: #1167b1;
  --teal: #127b72;
  --orange: #c96f2d;
  --shadow: 0 22px 55px rgba(16, 24, 32, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Microsoft JhengHei UI", "Noto Sans TC", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.25rem);
  color: #ffffff;
}

.brand,
.top-nav,
.header-action {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(10, 18, 27, 0.44);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.9rem;
  padding: 0.35rem 0.8rem 0.35rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--steel);
}

.top-nav {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
}

.top-nav a {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.header-action {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #101820;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("/home-assets/solidworks-web-preview.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  filter: saturate(0.94) contrast(1.08);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 23, 0.9), rgba(8, 15, 23, 0.78) 36%, rgba(8, 15, 23, 0.24) 66%, rgba(8, 15, 23, 0.03)),
    linear-gradient(0deg, rgba(8, 15, 23, 0.28), rgba(8, 15, 23, 0) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(58rem, calc(100% - 2rem));
  padding: 8.5rem clamp(1rem, 5vw, 4rem) clamp(2rem, 8vh, 4.5rem);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.output-band h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 56rem;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
  line-height: 1;
}

.hero-copy {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.copy-line {
  display: inline;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.primary-action {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.primary-action.dark {
  background: var(--ink);
  color: #ffffff;
  white-space: nowrap;
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.primary-action:hover,
.primary-action:focus-visible,
.secondary-action:hover,
.secondary-action:focus-visible,
.header-action:hover,
.header-action:focus-visible {
  transform: translateY(-1px);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 47rem;
  margin: 2.6rem 0 0;
}

.proof-strip div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 0.5rem;
}

.proof-strip dt {
  font-weight: 800;
}

.proof-strip dd {
  margin: 0.22rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(1rem, 5vw, 4rem);
}

.section-alt {
  background: #eef3f6;
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section h2,
.output-band h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
}

.steps-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.step-card,
.feature-grid article {
  min-height: 15rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.06);
}

.step-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.step-card h3,
.feature-grid h3 {
  margin: 0;
  font-size: 1.18rem;
}

.step-card p,
.feature-grid p,
.output-band p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.output-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  margin: 0 clamp(1rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 0.5rem;
  background:
    linear-gradient(135deg, rgba(17, 103, 177, 0.12), rgba(18, 123, 114, 0.12)),
    #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.output-band p {
  max-width: 48rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

  .proof-strip,
  .steps-grid,
  .feature-grid,
  .output-band {
    grid-template-columns: 1fr;
  }

  .output-band .primary-action {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0.75rem;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-content {
    width: 100%;
    padding: 7rem 1rem 2rem;
  }

  .header-action {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 9.5vw, 3rem);
  }

  .hero-copy,
  .proof-strip {
    max-width: 100%;
  }

  .hero-copy {
    word-break: break-all;
  }

  .copy-line {
    display: block;
  }

  .section h2,
  .output-band h2 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    word-break: break-all;
  }

  .proof-strip {
    gap: 0.65rem;
  }

  .primary-action,
  .secondary-action,
  .header-action {
    min-height: 2.85rem;
  }
}
