/* 首頁：單一內容寬度 */

.home-shell {
  width: min(100% - 2rem, 52rem);
  margin-inline: auto;
}

.home-hero {
  position: relative;
  z-index: 1;
  /* 讓背景圖在第一屏完整拉開 */
  min-height: calc(100vh - var(--qe-nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.home-hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--qe-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.home-hero__lead {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #e5e7eb;
  font-weight: 600;
}

.home-hero__sub {
  margin: 0.4rem 0 1.75rem;
  color: var(--qe-muted);
  font-size: 0.95rem;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  width: min(100%, 18rem);
  margin-inline: auto;
}

.home-hero__actions .qe-btn { width: 100%; }

.home-hero__link {
  color: var(--qe-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0;
}
.home-hero__link:hover { color: var(--qe-brand); }

.home-section {
  position: relative;
  z-index: 1;
  /* 半透明，讓背景圖繼續往下延伸可見 */
  background: rgba(5, 5, 5, 0.72);
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}
.home-section--last {
  padding-bottom: 5.5rem;
  border-bottom: none;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.72),
    rgba(5, 5, 5, 0.92)
  );
}

.home-h2 {
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: left;
}

.home-services {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-services li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 0;
  border-top: 1px solid var(--qe-border);
}
.home-services li:last-child {
  border-bottom: 1px solid var(--qe-border);
}
.home-services b {
  color: var(--qe-brand);
  font-size: 1rem;
}
.home-services span {
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.5;
}

.home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: s;
}
.home-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  align-items: start;
  counter-increment: s;
}
.home-steps li::before {
  content: counter(s);
  grid-row: 1 / span 2;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  border: 1px solid var(--qe-brand);
  color: var(--qe-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.home-steps b {
  font-size: 0.98rem;
  padding-top: 0.2rem;
}
.home-steps span {
  color: var(--qe-muted);
  font-size: 0.88rem;
  grid-column: 2;
}
.home-steps__cta { margin-top: 1.35rem; }

@media (min-width: 640px) {
  .home-shell { width: min(100% - 3rem, 52rem); }
  .home-hero { padding: 4.5rem 0 3.5rem; }
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: auto;
    gap: 0.75rem;
  }
  .home-hero__actions .qe-btn {
    width: auto;
    min-width: 9rem;
  }
  .home-services li {
    flex-direction: row;
    align-items: baseline;
    gap: 1.5rem;
  }
  .home-services b { flex: 0 0 4.5rem; }
  .home-section--last { padding-bottom: 4rem; }
}

@media (min-width: 900px) {
  .home-shell { width: min(100% - 4rem, 56rem); }
  .home-hero { padding: 5rem 0 4rem; }
  .home-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .home-steps li {
    grid-template-columns: 1fr;
    padding: 1rem;
    border: 1px solid var(--qe-border);
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.4);
  }
  .home-steps li::before {
    grid-row: auto;
    margin-bottom: 0.5rem;
  }
  .home-steps span { grid-column: auto; }
}
