:root {
  --ocean: #07111f;
  --panel: #0e2137;
  --paper: #eaf2f8;
  --muted: #8fa7bb;
  --signal: #54d6c3;
  --warm: #ffb86b;
  --fault: #ff6b6b;
  --line: rgba(163, 195, 218, 0.18);
  --display: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --data: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { background: var(--ocean); scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--paper);
  background:
    linear-gradient(rgba(84, 214, 195, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 214, 195, 0.025) 1px, transparent 1px),
    var(--ocean);
  background-size: 48px 48px;
  font-family: var(--display);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

.ambient {
  position: fixed;
  z-index: 0;
  width: 42rem;
  height: 42rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: .12;
}

.ambient-a { top: -25rem; right: -12rem; background: var(--signal); }
.ambient-b { bottom: -30rem; left: -16rem; background: #376bb5; }

.shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
}

.identity {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.identity-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(84, 214, 195, .5);
  border-radius: 50%;
  color: var(--signal);
  font: 700 18px/1 var(--data);
  transform: rotate(-9deg);
}

.identity strong,
.identity small { display: block; }
.identity strong { letter-spacing: .18em; font: 700 14px/1.2 var(--data); }
.identity small { margin-top: 5px; color: var(--muted); font: 500 9px/1 var(--data); letter-spacing: .16em; }

.live-state {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font: 500 11px/1.4 var(--data);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 0 rgba(255, 184, 107, .45);
  animation: pulse 2.4s infinite;
}

.pulse.online { background: var(--signal); box-shadow: 0 0 0 0 rgba(84, 214, 195, .45); }
.pulse.offline { background: var(--fault); animation: none; }

@keyframes pulse {
  60% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: 56px;
  align-items: end;
  min-height: 430px;
  padding: 90px 0 66px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--signal);
  font: 600 10px/1 var(--data);
  letter-spacing: .2em;
}

.hero h1 {
  grid-column: 1;
  margin: 0;
  max-width: 760px;
  font-size: clamp(46px, 7.2vw, 94px);
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.hero h1 em { color: var(--signal); font-style: normal; font-weight: 300; }

.hero-copy {
  grid-column: 2;
  margin: 0 0 13px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.route-line {
  position: absolute;
  top: 38px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  background: var(--line);
}

.route-progress {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--warm));
  transition: width 1.2s cubic-bezier(.2,.8,.2,1);
}

.metric {
  position: relative;
  z-index: 1;
  padding: 0 22px;
  text-align: center;
}

.route-dot {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0 auto 28px;
  border: 4px solid var(--ocean);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px var(--signal);
}

.metric small,
.metric strong,
.metric > span:last-child { display: block; }
.metric small { color: var(--muted); font: 500 10px/1.2 var(--data); letter-spacing: .1em; }
.metric strong { margin: 8px 0 5px; font: 500 clamp(25px, 3vw, 38px)/1 var(--data); letter-spacing: -.06em; }
.metric > span:last-child { color: #68839a; font: 500 10px/1.3 var(--data); }

.destinations { padding: 100px 0 80px; }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -.04em; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }

.service-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 14px; }

.service {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(14, 33, 55, .64);
  text-decoration: none;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(84,214,195,.12), transparent 38%);
  content: "";
  opacity: 0;
  transition: opacity .25s ease;
}

.service:hover,
.service:focus-visible { transform: translateY(-5px); border-color: rgba(84,214,195,.55); background: rgba(15, 39, 64, .85); }
.service:hover::before,
.service:focus-visible::before { opacity: 1; }
.service:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }

.service-index { position: relative; z-index: 1; color: var(--muted); font: 500 9px/1 var(--data); letter-spacing: .14em; }
.service-symbol { position: absolute; top: 40px; right: 18px; color: rgba(234,242,248,.035); font-size: 130px; font-weight: 700; line-height: 1; }
.service-body { position: relative; z-index: 1; margin-top: auto; }
.service-body strong { display: block; margin-bottom: 12px; font-size: 25px; font-weight: 560; letter-spacing: -.03em; }
.service-body small { display: block; max-width: 300px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-action { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--signal); font: 500 11px/1 var(--data); }
.service-action b { font-size: 17px; font-weight: 400; transition: transform .2s ease; }
.service:hover .service-action b { transform: translate(3px, -3px); }

.service-status { position: absolute; z-index: 2; top: 25px; right: 24px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font: 500 9px/1 var(--data); }
.service-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--warm); }
.service-status i.online { background: var(--signal); }
.service-status i.offline { background: var(--fault); }

.service-source { min-height: 350px; }
.service-source .service-symbol { font-size: 105px; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  color: #5c7488;
  font: 500 9px/1 var(--data);
  letter-spacing: .12em;
}

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 74px 0 58px; }
  .hero-copy { grid-column: 1; max-width: 520px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-source { grid-column: 1 / -1; min-height: 260px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .masthead { min-height: 88px; }
  .live-state span:last-child { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding-top: 62px; }
  .hero h1 { font-size: clamp(42px, 14vw, 66px); }
  .route { grid-template-columns: 1fr 1fr; row-gap: 42px; }
  .route-line { display: none; }
  .route-dot { margin-bottom: 18px; }
  .section-heading { align-items: start; flex-direction: column; }
  .service-grid { grid-template-columns: 1fr; }
  .service-source { grid-column: auto; }
  .service { min-height: 310px; }
  footer { gap: 12px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
