:root {
  --white: #ffffff;
  --mist: #f5f7f8;
  --blue-gray: #8fa6b3;
  --deep-blue: #314753;
  --sage: #aab7ad;
  --clay: #c7aa98;
  --ink: #23313a;
  --muted: #64737b;
  --line: #dfe7ea;
  --shadow: 0 18px 45px rgba(49, 71, 83, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif;
  line-height: 1.75;
}

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

.hero {
  min-height: 92vh;
  background:
    linear-gradient(135deg, rgba(245, 247, 248, 0.94), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at 18% 28%, rgba(170, 183, 173, 0.28), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(199, 170, 152, 0.22), transparent 28%);
  border-bottom: 1px solid var(--line);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--deep-blue);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--deep-blue);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep-blue);
  background: var(--white);
  font-size: 1.25rem;
}

.hero-content {
  display: grid;
  align-content: center;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(92vh - 78px);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.eyebrow,
.section-label {
  margin: 0 0 12px;
  color: var(--blue-gray);
  font-size: 0.92rem;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(2.25rem, 6vw, 4.85rem);
  line-height: 1.12;
}

h2 {
  margin: 0;
  color: var(--deep-blue);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.25;
}

h3 {
  margin: 0 0 10px;
  color: var(--deep-blue);
  font-size: 1.18rem;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: var(--white);
  background: var(--deep-blue);
  box-shadow: var(--shadow);
}

.secondary-button {
  color: var(--deep-blue);
  background: var(--white);
  border: 1px solid var(--line);
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.two-column,
.skills {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.section-copy p,
.cards p,
.steps p,
.skill-groups p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.section-copy {
  display: grid;
  gap: 16px;
}

.soft-band {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  background: var(--mist);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.soft-band h2,
#service h2 {
  max-width: 720px;
}

.steps,
.cards,
.skill-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.steps article,
.cards article,
.skill-groups article {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(49, 71, 83, 0.07);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-gray);
  font-weight: 800;
}

.skill-groups {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 0;
}

.skill-groups article {
  min-height: 180px;
  background: var(--mist);
}

.contact {
  margin-bottom: 56px;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 248, 0.96)),
    linear-gradient(90deg, rgba(143, 166, 179, 0.18), rgba(199, 170, 152, 0.16));
  box-shadow: var(--shadow);
}

.contact p {
  max-width: 720px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .nav {
    width: min(100% - 28px, 1120px);
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    right: 0;
    display: none;
    width: min(260px, calc(100vw - 28px));
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: grid;
    gap: 12px;
  }

  .hero-content,
  .section {
    width: min(100% - 28px, 1120px);
  }

  .hero-content {
    padding-top: 48px;
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .two-column,
  .skills,
  .steps,
  .cards,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .soft-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact {
    width: min(100% - 28px, 1120px);
    padding: 34px 22px;
  }
}
