:root {
  --bg: #07090d;
  --panel: rgba(14, 18, 26, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f8fbff;
  --muted: #9ca9bc;
  --cyan: #2ee8ff;
  --green: #5dff90;
  --amber: #ffcf5a;
  --red: #ff5d6c;
  --blue: #3a8bff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px),
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.8px),
    radial-gradient(circle at 48% 86%, rgba(46, 232, 255, 0.22), transparent 30%),
    radial-gradient(ellipse at 50% 0%, rgba(58, 139, 255, 0.18), transparent 46%),
    #02040a;
  background-size: 96px 128px, 156px 210px, auto, auto, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  animation: starDrift 42s linear infinite;
}

body::before {
  position: fixed;
  right: -108px;
  top: -62px;
  z-index: -1;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, #010207 0 21%, rgba(1, 2, 7, 0.95) 22% 27%, transparent 30%),
    conic-gradient(from 24deg, transparent 0 9%, rgba(46, 232, 255, 0.12) 12%, rgba(255, 207, 90, 0.58) 21%, rgba(255, 93, 108, 0.22) 28%, transparent 36% 50%, rgba(93, 255, 144, 0.2) 58%, rgba(46, 232, 255, 0.5) 66%, transparent 75% 100%),
    radial-gradient(circle at 50% 50%, rgba(46, 232, 255, 0.2), transparent 62%);
  filter: blur(0.2px);
  opacity: 0.84;
  transform: rotate(-14deg) scaleY(0.74);
  animation: blackHoleSpin 18s linear infinite;
  pointer-events: none;
}

body::after {
  position: fixed;
  inset: -20% -35% auto auto;
  z-index: -1;
  width: 560px;
  height: 720px;
  content: "";
  background:
    linear-gradient(122deg, transparent 0 34%, rgba(255, 255, 255, 0.72) 35%, rgba(46, 232, 255, 0.35) 36%, transparent 42%),
    linear-gradient(122deg, transparent 0 56%, rgba(255, 207, 90, 0.62) 57%, rgba(255, 255, 255, 0.5) 58%, transparent 64%),
    linear-gradient(122deg, transparent 0 74%, rgba(93, 255, 144, 0.5) 75%, rgba(255, 255, 255, 0.35) 76%, transparent 82%);
  background-size: 240px 240px, 330px 330px, 420px 420px;
  opacity: 0.45;
  animation: meteorFall 6.8s linear infinite;
  pointer-events: none;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  position: relative;
  isolation: isolate;
  width: min(440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  border-inline: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(3, 5, 12, 0.2), rgba(3, 5, 12, 0.9)),
    radial-gradient(ellipse at 84% 12%, rgba(255, 207, 90, 0.13), transparent 32%);
}

.cosmic-mark {
  position: fixed;
  right: max(-72px, calc((100vw - 440px) / 2 - 72px));
  top: 72px;
  z-index: 0;
  color: transparent;
  font-size: 328px;
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: 0;
  text-shadow:
    0 0 28px rgba(46, 232, 255, 0.34),
    0 0 82px rgba(255, 207, 90, 0.18);
  -webkit-text-stroke: 2px rgba(233, 246, 255, 0.16);
  text-stroke: 2px rgba(233, 246, 255, 0.16);
  transform: rotate(-18deg);
  mix-blend-mode: screen;
  opacity: 0.72;
  animation: cosmicXDrift 9.5s ease-in-out infinite alternate;
  pointer-events: none;
  user-select: none;
}

.hero-section {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  padding: 14px 38px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

/*.brand-logo {*/
/*  position: relative;*/
/*  width: 38px;*/
/*  height: 38px;*/
/*  flex: 0 0 auto;*/
/*  border: 1px solid rgba(46, 232, 255, 0.68);*/
/*  border-radius: 10px;*/
/*  background: rgba(7, 12, 18, 0.9);*/
/*  box-shadow: 0 0 26px rgba(46, 232, 255, 0.22);*/
/*}*/

/*.brand-logo::before,*/
/*.brand-logo::after,*/
/*.brand-logo i {*/
/*  position: absolute;*/
/*  content: "";*/
/*  background: var(--cyan);*/
/*}*/

/*.brand-logo::before {*/
/*  width: 21px;*/
/*  height: 2px;*/
/*  left: 8px;*/
/*  top: 10px;*/
/*  box-shadow: 0 8px 0 var(--amber), 0 16px 0 var(--green);*/
/*}*/

/*.brand-logo::after {*/
/*  width: 2px;*/
/*  height: 21px;*/
/*  left: 18px;*/
/*  top: 8px;*/
/*}*/

/*.brand-logo i {*/
/*  width: 7px;*/
/*  height: 7px;*/
/*  right: 6px;*/
/*  bottom: 6px;*/
/*  background: var(--red);*/
/*}*/

.brand-lockup b,
.brand-lockup small {
  display: block;
}

.brand-lockup b {
  font-size: 20px;
  line-height: 1;
}

.brand-lockup small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.update-pill {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: var(--green);
  border: 1px solid rgba(93, 255, 144, 0.35);
  border-radius: 999px;
  background: rgba(93, 255, 144, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.hero-copy {
  padding-top: 1px;
}

.kicker {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 7px;
  font-size: clamp(34px, 11vw, 49px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 0;
  color: #d5deed;
  font-size: 14px;
  line-height: 1.48;
}

.route-center,
.notice-strip,
.feature-card,
.safety-section {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.route-center {
  padding: 8px;
}

.route-center-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.route-center-head span,
.section-title span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.route-center-head strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.route-center-head em {
  color: var(--green);
  font-style: normal;
  font-size: 19px;
  font-weight: 950;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 8px;
  margin-top: 8px;
}

.primary-actions button,
.route-actions button {
  min-height: 36px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.primary-actions button:first-child,
.route-actions button:first-child {
  color: #02080b;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(46, 232, 255, 0.25);
}

.primary-actions button:last-child,
.route-actions button:last-child {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.route-list {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.route-card {
  padding: 5px 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}

.route-card-primary {
  border-color: rgba(46, 232, 255, 0.42);
  background: rgba(46, 232, 255, 0.08);
}

.route-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px;
}

.route-main h3 {
  margin-bottom: 0;
  font-size: 12px;
}

.route-main p {
  display: none;
  max-width: 178px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.route-main strong {
  font-size: 12px;
  white-space: nowrap;
}

.route-latency-fast {
  color: var(--green);
}

.route-latency-busy {
  color: var(--amber);
}

.route-latency-slow,
.route-latency-offline {
  color: var(--red);
}

.route-latency-pending {
  color: var(--blue);
}

.route-meter {
  height: 4px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.route-meter span {
  display: block;
  width: var(--meter-width);
  height: 100%;
  border-radius: inherit;
  animation: meterPulse 1.45s ease-in-out infinite alternate;
}

.route-meter-fast span {
  background: var(--green);
  box-shadow: 0 0 14px rgba(93, 255, 144, 0.44);
}

.route-meter-busy span {
  background: var(--amber);
  box-shadow: 0 0 14px rgba(255, 207, 90, 0.42);
}

.route-meter-slow span,
.route-meter-offline span {
  background: var(--red);
  box-shadow: 0 0 14px rgba(255, 93, 108, 0.44);
}

.route-meter-pending span {
  background: var(--blue);
  box-shadow: 0 0 14px rgba(58, 139, 255, 0.38);
}

.route-meta {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.route-meta > span:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.status {
  color: #04100a;
  background: var(--green);
}

.status-congested {
  background: var(--amber);
}

.status-maintenance {
  color: var(--text);
  background: rgba(255, 93, 108, 0.34);
}

.tag {
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.route-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 8px;
}

.notice-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding: 10px;
}

.notice-strip > span {
  align-self: start;
  padding: 5px 7px;
  color: #0a0a04;
  border-radius: 999px;
  background: var(--amber);
  font-size: 11px;
  font-weight: 950;
}

.notice-strip h2 {
  margin-bottom: 3px;
  font-size: 16px;
}

.notice-strip p {
  margin-bottom: 0;
  color: #d4deec;
  font-size: 12px;
  line-height: 1.52;
}

.color-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.color-bar {
  min-height: 30px;
  padding-top: 8px;
  color: #050609;
  border-radius: 8px;
  background: var(--bar-color);
  text-align: center;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 0 22px color-mix(in srgb, var(--bar-color) 30%, transparent);
}

.right-rail {
  position: fixed;
  right: max(5px, calc((100vw - 440px) / 2 + 5px));
  top: 50%;
  z-index: 10;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.right-rail a {
  width: 26px;
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 8px 0;
  color: #0a0f14;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(46, 232, 255, 0.86);
  box-shadow: 0 8px 20px rgba(46, 232, 255, 0.16);
  font-size: 11px;
  font-weight: 950;
  writing-mode: vertical-rl;
}

.right-rail a:nth-child(2) {
  background: var(--green);
}

.feature-section,
.safety-section {
  position: relative;
  z-index: 1;
  margin: 0 40px 0 16px;
  padding: 28px 0 18px;
}

.section-title {
  margin-bottom: 14px;
}

.section-title h2,
.safety-section h2 {
  margin: 3px 0 0;
  font-size: 28px;
}

.feature-grid {
  display: grid;
  gap: 10px;
}

.feature-card {
  min-height: 128px;
  padding: 14px;
}

.feature-card span {
  color: var(--cyan);
  font-weight: 950;
}

.feature-card h3 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.feature-card p,
.safety-section p {
  margin-bottom: 0;
  color: #d6dfec;
  line-height: 1.65;
}

.safety-section {
  margin-bottom: 24px;
  padding: 18px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  padding: 11px 14px;
  color: #050b08;
  border-radius: 999px;
  background: var(--green);
  font-size: 13px;
  font-weight: 950;
  transform: translate(-50%, 72px);
  opacity: 0;
  transition: 200ms ease;
}

.toast-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

@keyframes starDrift {
  from {
    background-position: 0 0, 0 0, center, center, center;
  }

  to {
    background-position: 96px 128px, -156px 210px, center, center, center;
  }
}

@keyframes blackHoleSpin {
  from {
    transform: rotate(-14deg) scaleY(0.74);
  }

  to {
    transform: rotate(346deg) scaleY(0.74);
  }
}

@keyframes meteorFall {
  from {
    background-position: 280px -220px, 520px -340px, 680px -120px;
  }

  to {
    background-position: -180px 420px, -40px 500px, 140px 620px;
  }
}

@keyframes cosmicXDrift {
  from {
    transform: translate3d(0, 0, 0) rotate(-18deg) scale(0.96);
    opacity: 0.52;
  }

  to {
    transform: translate3d(-18px, 24px, 0) rotate(-13deg) scale(1.04);
    opacity: 0.82;
  }
}

@keyframes meterPulse {
  from {
    transform: scaleX(0.92);
  }

  to {
    transform: scaleX(1);
  }
}

@media (min-width: 760px) {
  .page-shell {
    width: min(1100px, 100%);
  }

  .hero-section {
    min-height: auto;
    padding: 28px 72px 34px;
  }

  .route-actions {
    display: grid;
  }

  .route-main {
    align-items: center;
  }

  .route-main h3 {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .route-main p {
    display: block;
  }

  .route-main strong {
    font-size: 16px;
  }

  .status,
  .tag {
    min-height: 20px;
    padding: 0 7px;
    font-size: 11px;
  }

  .route-meta {
    display: flex;
  }

  .feature-section,
  .safety-section {
    margin-inline: 72px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .right-rail {
    right: 24px;
  }
}

@media (max-width: 390px) {
  .cosmic-mark {
    right: -88px;
    top: 84px;
    font-size: 300px;
  }

  .hero-section {
    padding-left: 12px;
    padding-right: 36px;
  }

  .feature-section,
  .safety-section {
    margin-left: 12px;
    margin-right: 36px;
  }

  h1 {
    font-size: 34px;
  }

  .route-main p {
    max-width: 150px;
  }
}

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