:root {
  color-scheme: light;
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #162734;
  --muted: #627684;
  --line: rgba(72, 116, 139, 0.18);
  --cyan: #2fb7c8;
  --blue: #366f9f;
  --mint: #75c7a2;
  --amber: #c89a3a;
  --rack: #dfeaf0;
  --shadow: 0 30px 90px rgba(42, 92, 118, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.92), rgba(233, 247, 254, 0.76) 42%, rgba(247, 251, 252, 0.94)),
    radial-gradient(circle at 82% 0%, rgba(47, 183, 200, 0.22), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "IBM Plex Sans JP", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7.6rem, rgba(54, 111, 159, 0.08) 7.65rem 7.72rem, transparent 7.78rem),
    linear-gradient(rgba(54, 111, 159, 0.055) 1px, transparent 1px);
  background-size: 8rem 100%, 100% 4.8rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 78%);
  z-index: -2;
}

#signal-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
  pointer-events: none;
  z-index: -1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 252, 255, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 36px rgba(70, 113, 136, 0.08);
}

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

.brand-mark {
  display: grid;
  width: 4.2rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(54, 111, 159, 0.16);
  background: #fff;
  box-shadow: 0 12px 24px rgba(54, 111, 159, 0.1);
  overflow: hidden;
}

.brand-mark img,
.panel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand small {
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.08rem;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 2rem);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(4rem, 8vw, 7.5rem) clamp(1rem, 5vw, 5rem) 3rem;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(-7rem, -8vw, -2rem);
  bottom: -5rem;
  width: min(54vw, 44rem);
  height: 82%;
  background:
    repeating-linear-gradient(90deg, rgba(22, 39, 52, 0.13) 0 1px, transparent 1px 3.2rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(222, 239, 247, 0.4));
  clip-path: polygon(20% 0, 100% 10%, 92% 100%, 0 86%);
  transform: perspective(900px) rotateY(-14deg) skewY(-4deg);
  opacity: 0.72;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--blue);
  font: 700 0.78rem "IBM Plex Sans JP", sans-serif;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 1.1rem;
  font-size: clamp(4.3rem, 12vw, 9.6rem);
  line-height: 0.82;
  font-weight: 900;
}

h2 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 900;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.hero-lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.35rem);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 183, 200, 0.58);
  box-shadow: 0 14px 28px rgba(47, 183, 200, 0.16);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
}

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

.command-panel {
  position: relative;
  border: 1px solid rgba(54, 111, 159, 0.18);
  border-radius: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(235, 246, 251, 0.82));
  box-shadow: var(--shadow);
  padding: 1.2rem;
  overflow: hidden;
}

.command-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 45%, rgba(47, 183, 200, 0.15) 48%, transparent 52% 100%);
  transform: translateX(-60%);
  animation: scan 5s ease-in-out infinite;
}

.panel-logo {
  position: relative;
  display: grid;
  width: 12rem;
  height: 5.6rem;
  place-items: center;
  margin-bottom: 1rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
}

.panel-topline,
.metric-grid,
.server-rack {
  position: relative;
}

.panel-topline {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 700 0.74rem "IBM Plex Sans JP", sans-serif;
}

.live-dot {
  color: #118a74;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.metric-grid div,
.service-card,
.city {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.metric-grid div {
  min-height: 7rem;
  padding: 1rem;
}

small {
  color: var(--muted);
}

.metric-grid strong {
  display: block;
  margin-top: 0.7rem;
  line-height: 1.25;
}

.server-rack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.8rem;
  background: linear-gradient(90deg, rgba(223, 234, 240, 0.72), rgba(255, 255, 255, 0.54));
}

.server-rack span {
  height: 2.9rem;
  border: 1px solid rgba(54, 111, 159, 0.16);
  background:
    linear-gradient(90deg, var(--cyan) 0 0.45rem, transparent 0.45rem 1rem, var(--amber) 1rem 1.25rem, transparent 1.25rem),
    repeating-linear-gradient(90deg, rgba(22, 39, 52, 0.16) 0 1px, transparent 1px 1.3rem),
    linear-gradient(180deg, #ffffff, var(--rack));
}

.intro-band {
  border-block: 1px solid var(--line);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 5vw, 5rem);
  background: rgba(255, 255, 255, 0.56);
}

.intro-band p {
  max-width: 64rem;
  margin: 0;
  color: #304b5d;
  font-size: clamp(1.15rem, 2.4vw, 2rem);
  line-height: 1.65;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.service-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.15fr;
  grid-auto-rows: minmax(14rem, auto);
  gap: 1rem;
}

.service-card {
  min-height: 15rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 0.65rem;
  box-shadow: 0 20px 52px rgba(54, 111, 159, 0.09);
}

.service-card.tall {
  grid-row: span 2;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88), rgba(117, 199, 162, 0.18));
}

.service-card.wide {
  grid-column: span 2;
}

.service-card.dark {
  background: linear-gradient(160deg, rgba(54, 111, 159, 0.12), rgba(255, 255, 255, 0.7));
}

.card-index {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--cyan);
  font: 700 0.8rem "IBM Plex Sans JP", sans-serif;
}

.service-card p,
.ops-copy p,
.city p,
.contact p {
  color: var(--muted);
  line-height: 1.75;
}

.operations {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 2rem;
  background:
    linear-gradient(90deg, rgba(47, 183, 200, 0.1), transparent),
    rgba(255, 255, 255, 0.46);
  border-block: 1px solid var(--line);
}

.timeline {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: var(--line);
}

.timeline div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: center;
  min-height: 6rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.timeline span {
  color: var(--amber);
  font: 700 0.78rem "IBM Plex Sans JP", sans-serif;
  text-transform: uppercase;
}

.map-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1rem;
}

.city {
  min-height: 17rem;
  padding: 1.2rem;
  border-radius: 0.65rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(222, 239, 247, 0.42)),
    rgba(255, 255, 255, 0.74);
}

.city.active {
  background: linear-gradient(135deg, rgba(117, 199, 162, 0.23), rgba(255, 255, 255, 0.86));
}

.city span {
  display: block;
  color: var(--blue);
  font: 700 0.8rem "IBM Plex Sans JP", sans-serif;
  margin-bottom: 5rem;
}

.city strong {
  display: block;
  font-size: 2rem;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 clamp(1rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(47, 183, 200, 0.32);
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(47, 183, 200, 0.11));
  box-shadow: var(--shadow);
}

.contact h2 {
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

@keyframes scan {
  0%,
  45% {
    transform: translateX(-80%);
  }
  100% {
    transform: translateX(80%);
  }
}

@media (max-width: 880px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .section-heading,
  .operations,
  .map-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    width: 86vw;
    height: 44%;
    opacity: 0.42;
  }

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

  .service-card.tall,
  .service-card.wide {
    grid-column: auto;
    grid-row: auto;
  }

  .contact,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3.3rem, 22vw, 5.2rem);
  }

  nav {
    gap: 0.65rem;
    font-size: 0.84rem;
  }

  .brand {
    min-width: 0;
  }

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

  .timeline div {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .button {
    width: 100%;
  }
}
