:root {
  --ink: #0e1b2a;
  --muted: #607084;
  --line: #dfe6ee;
  --panel: #f6f8fb;
  --brand: #0e3a5b;
  --brand-2: #136f8f;
  --gold: #c99a2e;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(14, 27, 42, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  color: var(--white);
  background: var(--brand);
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(223, 230, 238, 0.82);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(14, 58, 91, 0.24);
}

.brand strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2b3d52;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  transition: background 0.2s;
}

.site-nav a:hover {
  background: #eef4f8;
}

.nav-cta {
  color: var(--white);
  background: var(--brand);
}

.site-nav .nav-cta:hover {
  background: #092a43;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 130px clamp(20px, 6vw, 84px) 80px;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 24, 0.84), rgba(5, 14, 24, 0.34) 58%, rgba(5, 14, 24, 0.1)),
    url("assets/hero-tech-studio.jpg") center / cover no-repeat;
  background-image:
    linear-gradient(90deg, rgba(5, 14, 24, 0.84), rgba(5, 14, 24, 0.34) 58%, rgba(5, 14, 24, 0.1)),
    image-set(
      url("assets/hero-tech-studio.webp") type("image/webp"),
      url("assets/hero-tech-studio.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: clamp(20px, 6vw, 84px);
  bottom: 0;
  width: min(520px, 52vw);
  height: 8px;
  background: var(--gold);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--brand-2);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.hero-lead {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

.button.primary {
  color: #071826;
  background: var(--gold);
}

.button.primary:hover {
  background: #dbaa38;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(201, 154, 46, 0.3);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 52px 0 0;
  width: min(680px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.14);
}

.hero-facts div {
  padding: 18px;
  background: rgba(5, 14, 24, 0.35);
}

dt {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.64);
}

dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: 92px clamp(20px, 6vw, 84px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  background: var(--white);
}

.intro-copy {
  color: #405269;
  font-size: 18px;
}

.section-heading {
  max-width: 780px;
}

.services {
  background: var(--panel);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service-card {
  position: relative;
  min-height: 286px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(14, 27, 42, 0.06);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-2), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.card-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.service-card p {
  color: #55667a;
}

.process {
  background: #ffffff;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  counter-reset: step;
}

.timeline li {
  min-height: 220px;
  padding: 30px;
  border-right: 1px solid var(--line);
  counter-increment: step;
}

.timeline li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

.timeline li:last-child {
  border-right: 0;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 22px;
}

.timeline span {
  color: #526278;
}

.faq {
  background: var(--panel);
}

.faq-list {
  max-width: 860px;
  margin-top: 34px;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-list details[open] {
  box-shadow: 0 12px 30px rgba(14, 27, 42, 0.08);
}

.faq-list summary {
  position: relative;
  padding: 18px 52px 18px 22px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
  transition: transform 0.25s;
}

.faq-list details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 22px 20px;
  color: #55667a;
}

.faq-list details p a {
  color: var(--brand-2);
  font-weight: 700;
}

.about {
  background: #ffffff;
}

.company-panel {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.company-panel dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.company-panel div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.company-panel div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.company-panel div:last-child {
  grid-column: 1 / -1;
  border-bottom: 0;
  border-right: 0;
}

.contact {
  padding-top: 110px;
  padding-bottom: 110px;
  background: linear-gradient(135deg, #0e3a5b, #092538);
  color: var(--white);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 42px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-box p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.contact-info a {
  transition: opacity 0.2s;
}

.contact-info a:hover {
  opacity: 0.85;
}

.contact-phone {
  color: var(--gold);
  font-size: 28px;
  font-weight: 900;
}

.contact-mail {
  color: #9fd3e8;
  font-weight: 700;
  word-break: break-all;
}

.contact-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  color: #071826;
  background: #06c755;
  border-radius: 8px;
  font-weight: 900;
}

.contact-line:hover {
  background: #05b34c;
  opacity: 1;
}

.contact-info address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.84);
}

.contact-info span {
  color: rgba(255, 255, 255, 0.84);
}

.contact-form {
  display: grid;
  gap: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.contact-form h3 {
  margin-bottom: 6px;
  color: var(--white);
}

.contact-form label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  color: var(--white);
  font-family: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: transparent;
}

.contact-form .button {
  margin-top: 14px;
}

.form-status {
  min-height: 1.5em;
  margin: 6px 0 0;
  font-size: 15px;
  color: #9fd3e8;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 84px);
  color: #677589;
  border-top: 1px solid var(--line);
}

.site-footer a {
  color: var(--brand);
  font-weight: 900;
}

/* 捲動顯示動效 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-card,
  .button {
    transition: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px 14px;
  }

  .hero {
    min-height: 700px;
    padding-top: 120px;
  }

  .hero-facts,
  .intro,
  .service-grid,
  .timeline,
  .company-panel dl,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

  .timeline li {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline li:last-child {
    border-bottom: 0;
  }

  .company-panel div,
  .company-panel div:nth-child(odd) {
    border-right: 0;
  }
}

@media (max-width: 640px) {
  .brand strong {
    max-width: 210px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 680px;
    padding-bottom: 58px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline li {
    min-height: auto;
    padding: 24px;
  }

  .company-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-phone {
    font-size: 24px;
  }

  .site-footer {
    flex-direction: column;
  }
}
