:root {
  color-scheme: dark;
  --bg: #11100f;
  --bg-soft: #181413;
  --bg-warm: #211816;
  --panel: #1d1918;
  --panel-strong: #27201d;
  --text: #fff8ef;
  --muted: #c9b9aa;
  --line: rgba(255, 248, 239, 0.14);
  --amber: #f1a646;
  --amber-strong: #ffbd66;
  --teal: #29d8c7;
  --coral: #e85b86;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--teal);
  color: #05110f;
  padding: 10px 14px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 248, 239, 0.1);
  background: rgba(13, 11, 11, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(100% - 32px, var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(41, 216, 199, 0.55);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(41, 216, 199, 0.18), rgba(241, 166, 70, 0.14));
  color: var(--teal);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex: 1;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  padding: 24px 0;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-action,
.button,
.nav-toggle {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
}

.header-action {
  border: 1px solid rgba(41, 216, 199, 0.45);
  background: rgba(41, 216, 199, 0.1);
  color: var(--teal);
  padding: 0 14px;
}

.header-action:hover,
.header-action:focus-visible {
  background: rgba(41, 216, 199, 0.18);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.06);
  color: var(--text);
  padding: 0 12px;
}

.site-header svg,
.button svg,
.strip-item svg,
.service-card svg,
.job-grid svg,
.contact-link svg,
.mobile-contact svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(255, 248, 239, 0.08);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 7, 7, 0.88) 0%, rgba(8, 7, 7, 0.64) 32%, rgba(8, 7, 7, 0.1) 76%),
    linear-gradient(0deg, rgba(17, 16, 15, 0.68) 0%, rgba(17, 16, 15, 0.05) 42%, rgba(17, 16, 15, 0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.eyebrow,
.section-heading span,
.label,
.contact-copy span {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 18px;
  max-width: 650px;
  font-size: 4.6rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 0;
  color: #f3e8dc;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  padding: 12px 18px;
}

.button-primary {
  background: var(--amber);
  color: #190f08;
  box-shadow: 0 14px 30px rgba(241, 166, 70, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--amber-strong);
}

.button-secondary {
  background: rgba(255, 248, 239, 0.08);
  border-color: rgba(255, 248, 239, 0.28);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(41, 216, 199, 0.6);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: #efe1d0;
}

.hero-points li {
  border: 1px solid rgba(255, 248, 239, 0.18);
  border-radius: 6px;
  background: rgba(255, 248, 239, 0.08);
  padding: 6px 10px;
  font-weight: 700;
}

.quick-strip {
  width: min(100% - 32px, var(--max));
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strip-item {
  min-height: 116px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(29, 25, 24, 0.94);
  padding: 20px;
  box-shadow: var(--shadow);
}

.strip-item svg {
  color: var(--amber);
  margin-top: 3px;
}

.strip-item strong,
.strip-item span {
  display: block;
}

.strip-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 90px 0;
}

.section-warm {
  background: var(--bg-warm);
}

.section-dark {
  background: #0d0c0c;
}

.section-heading,
.card-grid,
.flow-list,
.faq-list,
.job-grid,
.area-tags,
.contact-section,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.contact-copy h2 {
  margin: 6px 0 10px;
  font-size: 2.35rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p,
.contact-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.service-card,
.price-card,
.flow-step,
.job-grid > div,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.service-card {
  min-height: 238px;
  padding: 22px;
}

.service-card svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
}

.service-card h3,
.price-card h3,
.flow-step h3 {
  margin: 16px 0 8px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.service-card p,
.flow-step p,
.price-card li {
  color: var(--muted);
  margin: 0;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  counter-reset: flow;
}

.flow-step {
  padding: 22px;
  background: rgba(17, 16, 15, 0.52);
}

.flow-step span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: rgba(41, 216, 199, 0.12);
  color: var(--teal);
  font-weight: 900;
}

.price-card {
  padding: 24px;
  min-height: 330px;
}

.price-card.highlight {
  background: linear-gradient(180deg, rgba(241, 166, 70, 0.16), rgba(29, 25, 24, 0.96));
  border-color: rgba(241, 166, 70, 0.42);
}

.price {
  margin: 12px 0 18px;
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-tags span {
  border: 1px solid rgba(41, 216, 199, 0.24);
  border-radius: 6px;
  background: rgba(41, 216, 199, 0.08);
  color: #e8fffc;
  padding: 9px 12px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

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

.job-grid > div {
  padding: 20px;
  display: grid;
  gap: 8px;
}

.job-grid svg {
  color: var(--amber);
}

.job-grid span {
  color: var(--muted);
}

.contact-section {
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 30px;
}

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

.contact-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: rgba(41, 216, 199, 0.5);
}

.contact-link svg {
  color: var(--teal);
}

.contact-link span {
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-link strong {
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 28px 0 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.mobile-contact {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 60;
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
  background: #f8eee0;
  color: #15100c;
  padding: 10px 14px;
  font-weight: 900;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1000px) {
  .header-action {
    display: none;
  }

  .site-nav {
    justify-content: flex-end;
    gap: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

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

  .card-grid.three,
  .job-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 74px;
  }

  .header-inner {
    min-height: 64px;
    width: min(100% - 24px, var(--max));
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px 12px 16px;
    background: rgba(13, 11, 11, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 248, 239, 0.08);
  }

  .hero {
    min-height: 560px;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 7, 7, 0.92) 0%, rgba(8, 7, 7, 0.72) 55%, rgba(8, 7, 7, 0.22) 100%),
      linear-gradient(0deg, rgba(17, 16, 15, 0.78) 0%, rgba(17, 16, 15, 0.08) 55%, rgba(17, 16, 15, 0.26) 100%);
  }

  .hero-content {
    width: min(100% - 24px, var(--max));
    padding: 54px 0 48px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-lede {
    font-size: 1.05rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quick-strip {
    width: min(100% - 24px, var(--max));
    margin-top: 12px;
    grid-template-columns: 1fr;
  }

  .strip-item {
    min-height: auto;
    box-shadow: none;
  }

  .section {
    padding: 66px 0;
  }

  .section-heading,
  .card-grid,
  .flow-list,
  .faq-list,
  .job-grid,
  .area-tags,
  .contact-section,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .section-heading h2,
  .contact-copy h2 {
    font-size: 2rem;
  }

  .card-grid.four,
  .flow-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .price-card,
  .flow-step {
    min-height: auto;
  }

  .site-footer {
    display: grid;
    padding-bottom: 92px;
  }

  .mobile-contact {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 248, 239, 0.16);
    border-radius: 8px;
    background: rgba(14, 12, 11, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
  }

  .mobile-contact a,
  .mobile-contact button {
    min-width: 0;
    min-height: 48px;
    border: 1px solid rgba(255, 248, 239, 0.12);
    border-radius: 8px;
    background: rgba(255, 248, 239, 0.07);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-weight: 900;
    cursor: pointer;
  }
}

@media (max-width: 420px) {
  .brand small {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .nav-toggle span {
    display: none;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero-points li {
    width: 100%;
  }

  .button {
    padding-left: 14px;
    padding-right: 14px;
  }
}
