:root {
  --ink: #11171d;
  --muted: #596570;
  --line: #d9e0e5;
  --paper: #ffffff;
  --soft: #f3f6f7;
  --navy: #071a2f;
  --navy-2: #0b2743;
  --cyan: #18bce5;
  --green: #2dbf73;
  --red: #d9213d;
  --max: 1240px;
  --header: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "Noto Sans JP", "Microsoft JhengHei", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.65;
}

body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
img { display: block; max-width: 100%; }

h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { letter-spacing: 0; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header);
  padding: 0 34px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 42px;
  height: 42px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1rem; }
.brand small { margin-top: 5px; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.12em; }

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
  font-size: 0.9rem;
  font-weight: 750;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after { transform: scaleX(1); }

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

.language-switch {
  display: grid;
  grid-template-columns: repeat(3, auto);
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.language-switch button {
  min-width: 38px;
  height: 34px;
  padding: 0 9px;
  color: inherit;
  border: 0;
  border-right: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 800;
}

.language-switch button:last-child { border-right: 0; }
.language-switch button.is-active { color: #fff; background: var(--red); }

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--red);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 850;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.menu-button span { display: block; height: 2px; margin: 4px 0; background: currentColor; }

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 880px;
  padding: 150px 64px 42px;
  overflow: hidden;
  color: #fff;
  background: #07111d;
}

.hero-media,
.hero-overlay { position: absolute; inset: 0; }

.hero-media {
  background: url("/assets/cover-boat.png") center 48% / cover no-repeat;
  transform: scale(1.01);
}

.hero-overlay { background: rgba(4, 11, 18, 0.64); }

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  margin-bottom: 82px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero .eyebrow { color: var(--cyan); }

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: 4.9rem;
  line-height: 1.08;
  font-weight: 900;
}

.hero-copy {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  font-weight: 850;
}

.button-primary { color: #fff; background: var(--red); }
.button-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.64); background: rgba(6, 14, 22, 0.3); }

.hero-signal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(900px, 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-signal div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 24px 4px 0; }
.hero-signal strong { color: var(--cyan); font-size: 0.85rem; }
.hero-signal span { font-weight: 750; }

.section { padding: 104px 48px; }
.section-shell { width: min(var(--max), 100%); margin: 0 auto; }

.mission-section { padding: 84px 48px; color: #fff; background: var(--navy); }
.mission-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr); gap: 80px; align-items: start; }

h2 { margin: 0; font-size: 3.35rem; line-height: 1.12; }
.mission-copy > p { margin: 4px 0 30px; color: rgba(255, 255, 255, 0.76); font-size: 1.13rem; }

.mission-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, 0.22); }
.mission-flow span { position: relative; padding: 18px 16px 0 0; color: var(--cyan); font-size: 0.79rem; font-weight: 850; }
.mission-flow span:not(:last-child)::after { position: absolute; top: 19px; right: 8px; content: "→"; color: rgba(255, 255, 255, 0.35); }

.section-heading { width: min(790px, 100%); margin-bottom: 42px; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-heading.light { color: #fff; }
.section-heading.light > p:last-child { color: rgba(255, 255, 255, 0.68); }

.capabilities-section { background: var(--soft); }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid article { min-height: 230px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.capability-grid span { color: var(--red); font-size: 0.8rem; font-weight: 900; }
.capability-grid h3 { margin: 38px 0 10px; font-size: 1.35rem; line-height: 1.25; }
.capability-grid p { margin: 0; color: var(--muted); }

.platform-section { color: #fff; background: #061525; }
.platform-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.platform-tabs button { min-height: 42px; padding: 0 16px; color: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background: transparent; cursor: pointer; font-weight: 800; }
.platform-tabs button.is-active { color: #00111e; border-color: var(--cyan); background: var(--cyan); }

.platform-stage { position: relative; min-height: 650px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: #020b14; }
.platform-stage > img { width: 100%; height: 650px; object-fit: contain; }
.platform-caption { position: absolute; right: 0; bottom: 0; width: min(440px, 100%); padding: 24px 28px; background: rgba(4, 15, 26, 0.94); border-top: 1px solid rgba(255, 255, 255, 0.18); border-left: 1px solid rgba(255, 255, 255, 0.18); }
.platform-caption > p:first-child { margin: 0 0 8px; color: var(--cyan); font-size: 0.75rem; font-weight: 900; text-transform: uppercase; }
.platform-caption h3 { margin: 0 0 8px; font-size: 1.35rem; }
.platform-caption > p:last-child { margin: 0; color: rgba(255, 255, 255, 0.68); }

.stack-section { background: #fff; }
.stack-layout { display: grid; grid-template-columns: minmax(280px, 0.75fr) minmax(500px, 1.25fr); gap: 90px; }
.stack-intro { position: sticky; top: 110px; align-self: start; }
.stack-intro p:last-child { margin-top: 18px; color: var(--muted); }
.stack-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.stack-list li { display: grid; grid-template-columns: 74px 1fr; gap: 20px; align-items: center; min-height: 104px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.stack-list b { color: var(--red); font-size: 1.35rem; }
.stack-list div { display: grid; }
.stack-list strong { font-size: 1.08rem; }
.stack-list span { color: var(--muted); font-size: 0.92rem; }

.applications-section { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr); min-height: 760px; background: var(--soft); }
.application-visual { min-width: 0; overflow: hidden; }
.application-visual img { width: 100%; height: 100%; object-fit: cover; }
.application-content { display: flex; flex-direction: column; justify-content: center; padding: 80px 7%; }
.application-content h2 { margin-bottom: 32px; }
.application-list { border-top: 1px solid var(--line); }
.application-list article { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.application-list article > span { color: var(--red); font-size: 0.78rem; font-weight: 900; }
.application-list h3 { margin: 0 0 4px; font-size: 1.08rem; }
.application-list p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.media-section { color: #fff; background: var(--navy-2); }
.media-section .section-heading > p:last-child { color: rgba(255, 255, 255, 0.7); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.video-item { min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #02070b; }
.video-frame video,
.video-frame iframe { width: 100%; height: 100%; border: 0; object-fit: contain; }
.video-item > div:last-child { padding: 22px; }
.video-item h3 { margin: 0 0 8px; font-size: 1.3rem; }
.video-item p { margin: 0; color: rgba(255, 255, 255, 0.68); font-size: 0.92rem; }

.split-heading { display: grid; grid-template-columns: 1fr 0.75fr; gap: 60px; align-items: end; width: 100%; }
.split-heading > p { margin-bottom: 8px !important; }

.news-section { background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.news-card { display: grid; grid-template-rows: 220px 1fr; min-height: 440px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.news-card img { width: 100%; height: 220px; object-fit: cover; }
.news-card-content { display: flex; flex-direction: column; padding: 22px; }
.news-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; color: var(--red); font-size: 0.72rem; font-weight: 900; text-transform: uppercase; }
.news-card h3 { margin: 0 0 10px; font-size: 1.25rem; line-height: 1.28; }
.news-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.news-card button { align-self: flex-start; margin-top: auto; padding: 16px 0 0; color: var(--navy); border: 0; background: transparent; cursor: pointer; font-weight: 900; }
.news-more { display: block; min-height: 44px; margin: 28px auto 0; padding: 0 18px; color: var(--navy); border: 1px solid var(--navy); border-radius: 6px; background: #fff; font-weight: 900; cursor: pointer; }

.team-section { background: var(--soft); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.team-card { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.team-image { height: 310px; background-color: #e8eef3; background-repeat: no-repeat; background-size: 220% auto; background-position: left 17%; }
.team-card-content { padding: 22px; }
.team-card h3 { margin: 0; font-size: 1.35rem; }
.team-role { margin: 4px 0 14px; color: var(--red); font-size: 0.82rem; font-weight: 850; }
.team-bio { min-height: 78px; margin: 0; color: var(--muted); font-size: 0.92rem; }
.team-expertise { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; font-weight: 800; }

.contact-section { position: relative; padding: 108px 48px; overflow: hidden; color: #fff; background: #091523; }
.contact-media { position: absolute; inset: 0; background: url("/assets/edge-deployment.png") center / cover no-repeat; opacity: 0.2; }
.contact-layout { position: relative; display: grid; grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.6fr); gap: 90px; align-items: center; }
.contact-layout > div > p:last-child { color: rgba(255, 255, 255, 0.72); font-size: 1.05rem; }
.contact-layout address { display: grid; gap: 10px; font-style: normal; }
.contact-layout address > * { display: block; padding: 15px 16px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; background: rgba(255, 255, 255, 0.06); }
.contact-layout address [data-map-link] { display: grid; gap: 3px; }
.contact-layout address [data-map-link] small { color: var(--cyan); font-size: 0.72rem; font-weight: 850; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; padding: 30px 48px; color: rgba(255, 255, 255, 0.7); background: #050a0f; font-size: 0.86rem; }
.site-footer div { display: grid; }
.site-footer strong { color: #fff; }
.site-footer p { margin: 0; }
.site-footer a { color: #fff; font-weight: 800; }

.content-dialog { width: min(820px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 8px; color: var(--ink); background: #fff; }
.content-dialog::backdrop { background: rgba(2, 8, 13, 0.76); }
.content-dialog > img { width: 100%; height: 350px; object-fit: cover; background: var(--soft); }
.dialog-body { padding: 30px; }
.dialog-body h2 { font-size: 2.2rem; }
.dialog-body > p:last-child { white-space: pre-line; color: var(--muted); }
.dialog-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.dialog-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: var(--soft); }
.dialog-close { position: sticky; z-index: 2; top: 10px; float: right; width: 42px; height: 42px; margin: 10px 10px -52px 0; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(5, 12, 18, 0.78); cursor: pointer; font-size: 1.5rem; }

.empty-state { grid-column: 1 / -1; padding: 44px; text-align: center; color: var(--muted); border: 1px solid var(--line); }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto 1fr; padding: 0 22px; }
  .main-nav { position: absolute; top: var(--header); right: 0; left: 0; display: none; align-items: stretch; padding: 12px 24px 20px; color: var(--ink); background: #fff; border-bottom: 1px solid var(--line); }
  .site-header.is-open .main-nav { display: grid; }
  .header-actions { justify-self: end; }
  .menu-button { display: block; }
  .mission-grid { gap: 48px; }
  h1 { font-size: 4.2rem; }
  h2 { font-size: 2.85rem; }
}

@media (max-width: 900px) {
  .hero { min-height: 820px; padding: 130px 28px 34px; }
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  .section { padding: 78px 28px; }
  .mission-section { padding: 70px 28px; }
  .mission-grid, .stack-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .capability-grid, .news-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-intro { position: static; }
  .applications-section { grid-template-columns: 1fr; }
  .application-visual { min-height: 440px; }
  .platform-stage, .platform-stage > img { min-height: 0; height: 520px; }
  .contact-section { padding: 78px 28px; }
}

@media (max-width: 640px) {
  :root { --header: 66px; }
  .site-header { padding: 0 14px; }
  .brand { min-width: auto; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .contact-link { display: none; }
  .language-switch button { min-width: 34px; height: 32px; padding: 0 7px; font-size: 0.68rem; }
  .hero { min-height: 760px; padding: 110px 20px 26px; }
  .hero-media { background-position: 62% center; }
  .hero-inner { margin-bottom: 44px; }
  h1 { font-size: 2.65rem; }
  h2 { font-size: 2rem; }
  .hero-copy { font-size: 1.02rem; }
  .hero-actions { display: grid; }
  .hero-signal { grid-template-columns: 1fr; }
  .hero-signal div { grid-template-columns: 38px 1fr; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
  .mission-flow { grid-template-columns: 1fr; }
  .mission-flow span { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .mission-flow span:not(:last-child)::after { top: 10px; right: 0; content: "↓"; }
  .section, .mission-section, .contact-section { padding: 62px 20px; }
  .capability-grid, .news-grid, .team-grid, .video-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 200px; }
  .platform-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .platform-stage, .platform-stage > img { height: 370px; }
  .platform-caption { position: static; border-left: 0; }
  .platform-stage { height: auto; }
  .stack-list li { grid-template-columns: 52px 1fr; }
  .application-visual { min-height: 300px; }
  .application-content { padding: 58px 20px; }
  .split-heading { grid-template-columns: 1fr; gap: 12px; }
  .news-card { min-height: 410px; }
  .team-image { height: 290px; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; padding: 26px 20px; }
  .content-dialog > img { height: 240px; }
  .dialog-body { padding: 22px; }
  .dialog-body h2 { font-size: 1.7rem; }
  .dialog-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
