:root {
  --brand-900: #0d47a1;
  --brand-700: #1565c0;
  --brand-500: #2196f3;
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #667085;
  --line: #d9e2ec;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --success: #0f9f6e;
  --warning: #b7791f;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

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

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

.shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link img {
  width: 198px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}

.main-nav a:hover {
  background: #eaf3ff;
  color: var(--brand-900);
}

.mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.mobile-call-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  isolation: isolate;
  height: min(720px, calc(100svh - 104px));
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/hero-ops-workspace.webp?v=20260625b");
  background-size: cover;
  background-position: center right;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 12, 28, 0.92) 0%, rgba(7, 28, 60, 0.78) 46%, rgba(7, 20, 44, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 12, 28, 0.40), rgba(5, 12, 28, 0.10));
}

.hero-content {
  padding: 58px 0 68px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--brand-500);
}

.hero .eyebrow {
  color: #83c7ff;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: 50px;
  line-height: 1.15;
  font-weight: 900;
}

.hero-title-brand,
.hero-title-company {
  display: inline;
}

.hero-lead {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 850;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.button.primary {
  background: var(--brand-500);
  color: #fff;
}

.button.primary:hover {
  background: #0f7fe1;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

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

.button.light {
  color: var(--brand-900);
  background: #fff;
  border-color: #bfdbfe;
}

.button.light:hover {
  background: #eaf3ff;
}

.signal-strip {
  background: #07152d;
  color: #fff;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.signal-grid div {
  min-height: 116px;
  padding: 22px;
  background: #07152d;
}

.signal-grid strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.signal-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.section {
  padding: 90px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading h2,
.fit-layout h2,
.contact-layout h2 {
  margin: 0;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 900;
}

.section-heading p:not(.section-kicker),
.contact-layout p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 24px 26px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eef6ff;
}

.inline-cta strong,
.inline-cta span {
  display: block;
}

.inline-cta strong {
  font-size: 20px;
  line-height: 1.35;
}

.inline-cta span {
  margin-top: 4px;
  color: var(--muted);
}

.service-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.service-card:hover {
  border-color: #a7c9f7;
  box-shadow: var(--shadow);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--brand-900);
  font-weight: 900;
}

.service-card h3,
.method-item h3,
.fit-columns h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
}

.service-card p,
.method-item p {
  margin: 0;
  color: var(--muted);
}

.method-section,
.fit-section {
  background: var(--wash);
}

.method-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.method-list {
  display: grid;
  gap: 16px;
}

.method-item {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-item span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand-900);
  font-size: 14px;
  font-weight: 900;
}

.operations-section {
  background: #0b172e;
  color: #fff;
}

.operations-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.operations-section .section-heading p:not(.section-kicker),
.operations-section .clean-list {
  color: rgba(255, 255, 255, 0.74);
}

.public-ops-layout {
  align-items: start;
}

.deliverable-list {
  display: grid;
  gap: 14px;
}

.deliverable-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.deliverable-item span {
  display: inline-flex;
  margin-bottom: 14px;
  color: #83c7ff;
  font-weight: 900;
}

.deliverable-item strong,
.deliverable-item p {
  display: block;
}

.deliverable-item strong {
  font-size: 20px;
  line-height: 1.35;
}

.deliverable-item p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.70);
}

.clean-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 28px;
}

.clean-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand-500);
}

.fit-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 54px;
}

.fit-about {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.fit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.fit-columns > div {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.muted-list li::before {
  background: #98a2b3;
}

.contact-section {
  padding: 88px 0;
  background: #fff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.contact-card:hover {
  border-color: #a7c9f7;
  background: #eef6ff;
}

.contact-card.static:hover {
  border-color: var(--line);
  background: var(--wash);
}

.contact-card span {
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
}

.contact-card strong {
  color: var(--brand-900);
  font-size: 22px;
  word-break: break-word;
}

.contact-card small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer-inner img {
  width: 150px;
}

.footer-inner strong,
.footer-inner span {
  display: block;
}

.footer-inner span,
.footer-inner p {
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

.mid-cta {
  background: var(--brand-900);
  padding: 52px 0;
}

.mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mid-cta-text h3 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.35;
}

.mid-cta-text p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  font-size: 17px;
}

.mid-cta-button {
  flex-shrink: 0;
  background: #fff;
  color: var(--brand-900);
  font-weight: 900;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.mid-cta-button:hover {
  background: #e8f0fe;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 132px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    row-gap: 8px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-top: 8px;
    border-top: 1px solid var(--line);
    gap: 6px;
  }

  .main-nav a {
    min-height: 34px;
    padding: 6px 4px;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-actions {
    display: flex;
  }

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

  .method-layout,
  .operations-layout,
  .fit-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .operations-layout {
    gap: 36px;
  }
}

@media (max-width: 640px) {
  .mid-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .mid-cta-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .shell {
    width: calc(100% - 32px);
    max-width: 1120px;
  }

  .header-inner {
    min-height: auto;
    gap: 12px;
  }

  .brand-link img {
    width: 164px;
  }

  .hero {
    height: calc(100svh - 92px);
    min-height: 690px;
    align-items: end;
  }

  .hero::before {
    background-position: 64% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(5, 12, 28, 0.94) 0%, rgba(7, 28, 60, 0.78) 58%, rgba(7, 20, 44, 0.40) 100%);
  }

  .hero-content {
    padding: 44px 0 46px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-title-company {
    display: block;
  }

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

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .inline-cta {
    display: grid;
    padding: 22px;
  }

  .inline-cta .button {
    width: 100%;
  }

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

  .section,
  .contact-section {
    padding: 68px 0;
  }

  .section-heading h2,
  .fit-layout h2,
  .contact-layout h2 {
    font-size: 29px;
  }

  .section-heading p:not(.section-kicker),
  .contact-layout p {
    font-size: 16px;
  }

  .service-card {
    min-height: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 390px) {
  .brand-link img {
    width: 148px;
  }

  .hero {
    min-height: 660px;
  }

  .hero h1 {
    font-size: 31px;
  }
}
