:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --ink: #16201f;
  --muted: #5f6d69;
  --line: #dce4df;
  --brand: #0f5c53;
  --brand-2: #d96f32;
  --dark: #0d1716;
  --shadow: 0 18px 50px rgba(24, 38, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
}

body.lang-en {
  font-family: Inter, Arial, sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

.anchor-target {
  scroll-margin-top: 88px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 0 44px;
  background: rgba(246, 247, 244, 0.9);
  border-bottom: 1px solid rgba(220, 228, 223, 0.8);
  backdrop-filter: blur(16px);
}

.brand {
  font-size: 1.04rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle,
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.lang-toggle {
  color: var(--ink);
  background: transparent;
}

.header-cta,
.button-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.button-secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.36);
}

.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  margin: 0;
  padding: 116px 44px 52px;
  color: #fff;
  background-image: url("../img/map-survey-shot.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 20, 18, 0.88), rgba(7, 20, 18, 0.5) 54%, rgba(7, 20, 18, 0.24)),
    linear-gradient(0deg, rgba(7, 20, 18, 0.78), rgba(7, 20, 18, 0.16));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-2);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 5rem;
  line-height: 0.95;
  font-weight: 850;
}

.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.18rem;
  line-height: 1.7;
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.section {
  padding: 84px 44px;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 34px;
  text-align: center;
}

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

.section h2,
.contact-section h2 {
  margin: 0;
  font-size: 2.7rem;
  line-height: 1.12;
}

.section-heading p,
.contact-copy p {
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.product-grid,
.company-grid,
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1160px;
  margin: 0 auto;
}

.product-card,
.company-grid article,
.timeline article,
.capability-grid article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(24, 38, 36, 0.06);
}

.product-card-featured {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.card-kicker,
.timeline span,
.company-grid span {
  margin: 0 0 16px;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-card h3,
.company-grid h3,
.timeline h3,
.capability-grid h3 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.25;
}

.product-card p,
.company-grid p,
.timeline p,
.capability-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.product-card-featured p {
  color: rgba(255, 255, 255, 0.78);
}

.text-link {
  color: #fff;
  font-weight: 800;
}

.status-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.product-section {
  background: #fff;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.screen-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

.screen-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.screen-frame figcaption {
  padding: 14px 16px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 24px auto 0;
}

.capability-grid article {
  min-height: 190px;
  box-shadow: none;
  background: var(--surface-2);
}


.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  padding: 84px 44px;
  background: var(--dark);
  color: #fff;
}

.contact-copy {
  max-width: 560px;
}

.mail-link {
  display: inline-flex;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form label:nth-child(5) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}

.contact-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.72) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form select option {
  color: var(--ink);
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

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

.contact-form .button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 800;
}

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

  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .hero {
    min-height: 500px;
    padding: 90px 24px 42px;
  }

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

  .section,
  .contact-section {
    padding: 64px 24px;
  }

  .product-grid,
  .company-grid,
  .timeline,
  .screens-grid,
  .capability-grid,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section h2,
  .contact-section h2 {
    font-size: 2.1rem;
  }
}

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

  .brand {
    font-size: 0.98rem;
  }

  .header-actions {
    gap: 8px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 460px;
  }

  .hero h1 {
    font-size: 2.6rem;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .section-heading {
    text-align: left;
  }

  .product-card,
  .company-grid article,
  .timeline article,
  .capability-grid article {
    min-height: auto;
    padding: 22px;
  }

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

  .site-footer {
    flex-direction: column;
    padding: 24px;
  }
}
