:root {
  --bg: #f6fbff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-2: #edf7ff;
  --text: #101828;
  --muted: #617084;
  --line: #d7e7f7;
  --line-strong: #b8d4ef;
  --blue: #1e94ff;
  --blue-dark: #075fb7;
  --blue-soft: #e8f5ff;
  --cyan: #24c7e8;
  --green: #13a779;
  --violet: #536dfe;
  --amber: #b7791f;
  --danger: #c2410c;
  --terminal: #0b1324;
  --terminal-soft: #111d32;
  --on-primary: #ffffff;
  --shadow: 0 24px 64px rgba(19, 83, 145, 0.12);
  --shadow-lg: 0 30px 80px rgba(13, 72, 132, 0.18);
  --plane-card-height: 108px;
  --plane-step: calc((var(--plane-card-height) + 14px) * -1);
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #06111f;
  --surface: rgba(11, 24, 41, 0.9);
  --surface-strong: #0d1b2e;
  --surface-2: #10243d;
  --text: #edf6ff;
  --muted: #98abc4;
  --line: #203a58;
  --line-strong: #31567b;
  --blue: #39a3ff;
  --blue-dark: #91ccff;
  --blue-soft: rgba(57, 163, 255, 0.14);
  --cyan: #42d9ee;
  --green: #1fd0a0;
  --terminal: #050b15;
  --terminal-soft: #0b1728;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(30, 148, 255, 0.1), transparent 34%),
    linear-gradient(215deg, rgba(36, 199, 232, 0.08), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 48%, #f7fcff 100%);
  color: var(--text);
  font-family:
    "Inter", "Noto Sans SC", "Noto Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

html[data-theme="dark"] body {
  background:
    linear-gradient(135deg, rgba(57, 163, 255, 0.18), transparent 34%),
    linear-gradient(215deg, rgba(66, 217, 238, 0.1), transparent 32%),
    linear-gradient(180deg, #06111f 0%, #08182a 54%, #06131b 100%);
}

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

code {
  font-family:
    "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  height: 64px;
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

html[data-theme="dark"] .topbar {
  background: rgba(8, 13, 22, 0.72);
}

.brand,
.nav,
.actions,
.button-row,
.base-card div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 780;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: contain;
}

.nav {
  justify-content: center;
  gap: 0.35rem;
}

.nav a {
  border-radius: 8px;
  color: #5e6878;
  padding: 0.45rem 0.74rem;
  font-size: 0.92rem;
  font-weight: 680;
}

html[data-theme="dark"] .nav a {
  color: #9fb0c7;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: #eef6ff;
  color: var(--blue-dark);
}

html[data-theme="dark"] .nav a:hover,
html[data-theme="dark"] .nav a[aria-current="page"] {
  background: rgba(47, 145, 255, 0.14);
  color: #dbeafe;
}

.actions,
.button-row {
  gap: 0.65rem;
}

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 2px;
}

.segmented button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 0.56rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

html[data-theme="dark"] .segmented {
  background: rgba(15, 23, 42, 0.72);
}

.primary,
.ghost,
.base-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 8px;
  padding: 0.45rem 0.88rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.primary {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary:hover,
.ghost:hover,
.base-card button:hover {
  transform: translateY(-1px);
}

.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: #263244;
}

html[data-theme="dark"] .ghost {
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
}

.large {
  min-height: 40px;
  padding-inline: 1rem;
}

.shell {
  width: min(1088px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 110px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 448px;
  gap: 3.6rem;
  min-height: 650px;
  align-items: center;
}

.hero-copy {
  animation: fadeUp 0.72s ease both;
}

.eyebrow,
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(15, 124, 245, 0.28);
  border-radius: 8px;
  background: rgba(239, 246, 255, 0.72);
  color: var(--blue-dark);
  padding: 0.35rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 760;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .live-badge {
  background: rgba(47, 145, 255, 0.13);
}

h1 {
  max-width: 720px;
  margin: 1.55rem 0 0;
  font-size: 4.55rem;
  line-height: 1.03;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: #4e596b;
  font-size: 1.08rem;
  line-height: 1.75;
}

html[data-theme="dark"] .lead {
  color: #a9b7cc;
}

.base-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  width: min(100%, 572px);
  margin: 2rem 0 1.2rem;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  padding: 1rem;
}

html[data-theme="dark"] .base-card {
  background: rgba(14, 21, 33, 0.82);
  border-color: rgba(51, 65, 85, 0.95);
}

.base-card > span,
.info-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
}

.base-card > span {
  grid-column: 1 / -1;
}

.base-card div {
  min-width: 0;
  justify-content: space-between;
  gap: 0.8rem;
  border-radius: 8px;
  background: #f3f6fb;
  padding: 0.72rem 0.86rem;
}

html[data-theme="dark"] .base-card div {
  background: #111a2a;
}

.base-card code,
.info-panel code {
  display: block;
  overflow: hidden;
  color: #0b4f93;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .base-card code,
html[data-theme="dark"] .info-panel code {
  color: #91c5ff;
}

.base-card strong {
  flex: 0 0 auto;
  color: #005eea;
  font-size: 0.86rem;
}

html[data-theme="dark"] .base-card strong {
  color: #74b7ff;
}

.base-card button {
  border: 1px solid var(--line);
  background: #fff;
  color: #263244;
}

html[data-theme="dark"] .base-card button {
  background: #0f172a;
  color: #dbeafe;
}

.direct-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 572px);
  margin: -0.45rem 0 1.25rem;
  border: 1px solid rgba(19, 167, 121, 0.24);
  border-radius: 8px;
  background: rgba(232, 248, 241, 0.72);
  padding: 0.72rem 0.8rem;
}

html[data-theme="dark"] .direct-note {
  border-color: rgba(31, 208, 160, 0.24);
  background: rgba(16, 54, 42, 0.42);
}

.direct-note span {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.direct-note code {
  min-width: 0;
  overflow: hidden;
  color: #0b4f93;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-theme="dark"] .direct-note code {
  color: #91c5ff;
}

.direct-note button {
  min-height: 32px;
  border: 1px solid rgba(15, 159, 110, 0.28);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  padding: 0.36rem 0.68rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

html[data-theme="dark"] .direct-note button {
  background: #0f172a;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(100%, 532px);
  margin-top: 2.4rem;
}

.metric-card {
  border: 1px dashed rgba(15, 124, 245, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 1rem;
  animation: fadeUp 0.74s ease both;
}

html[data-theme="dark"] .metric-card {
  background: rgba(15, 23, 42, 0.58);
  border-color: rgba(47, 145, 255, 0.34);
}

.metric-card:nth-child(2) {
  animation-delay: 0.08s;
}

.metric-card:nth-child(3) {
  animation-delay: 0.16s;
}

.metric-card strong {
  display: block;
  margin-bottom: 0.36rem;
  font-size: 1.7rem;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
}

.control-plane {
  position: relative;
  height: 456px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  padding: 1.35rem;
  animation: panelIn 0.76s ease 0.08s both;
}

html[data-theme="dark"] .control-plane {
  background: rgba(14, 21, 33, 0.78);
  border-color: rgba(51, 65, 85, 0.95);
}

.control-plane::before,
.control-plane::after,
.model-strip::before,
.model-strip::after {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  content: "";
}

.control-plane::before,
.control-plane::after {
  right: 0;
  left: 0;
  height: 72px;
}

.control-plane::before {
  top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), transparent);
}

.control-plane::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.98), transparent);
}

html[data-theme="dark"] .control-plane::before {
  background: linear-gradient(180deg, rgba(14, 21, 33, 0.98), transparent);
}

html[data-theme="dark"] .control-plane::after {
  background: linear-gradient(0deg, rgba(14, 21, 33, 0.98), transparent);
}

.plane-track {
  display: grid;
  gap: 14px;
  animation: planeLoop 20s ease-in-out infinite;
}

.control-plane:hover .plane-track,
.model-strip:hover .ticker-track {
  animation-play-state: paused;
}

.plane-card,
.status-card,
.status-overview,
.uptime-panel,
.uptime-group,
.info-panel,
.status-tile {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.plane-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  min-height: var(--plane-card-height);
  padding: 1rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.plane-card:hover {
  border-color: rgba(15, 124, 245, 0.42);
}

.plane-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #eef2ff;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 820;
}

html[data-theme="dark"] .plane-icon {
  background: rgba(47, 145, 255, 0.14);
}

.plane-card strong,
.status-tile strong,
.status-card strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
}

.plane-card p,
.status-tile p,
.status-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.model-strip {
  position: relative;
  overflow: hidden;
  margin: -0.15rem 0 1rem;
  border-block: 1px solid rgba(226, 232, 240, 0.75);
  padding: 0.7rem 0;
}

.model-strip::before,
.model-strip::after {
  top: 0;
  bottom: 0;
  width: 96px;
}

.model-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.model-strip::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0.7rem;
  animation: tickerLoop 26s linear infinite;
}

.ticker-track span {
  flex: 0 0 auto;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #344054;
  padding: 0.48rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 680;
}

html[data-theme="dark"] .ticker-track span {
  background: rgba(15, 23, 42, 0.72);
  color: #d5e1f2;
}

.home-status,
.status-grid,
.info-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-status {
  margin-top: 1rem;
}

.status-tile {
  display: block;
  padding: 1rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.status-tile:hover {
  border-color: rgba(15, 124, 245, 0.42);
  transform: translateY(-1px);
}

html[data-theme="dark"] .plane-card,
html[data-theme="dark"] .status-card,
html[data-theme="dark"] .status-overview,
html[data-theme="dark"] .uptime-panel,
html[data-theme="dark"] .uptime-group,
html[data-theme="dark"] .info-panel,
html[data-theme="dark"] .status-tile {
  background: var(--surface);
  border-color: rgba(51, 65, 85, 0.95);
}

.live-badge {
  margin-bottom: 1.2rem;
  border-color: transparent;
  background: transparent;
  padding: 0;
}

.live-badge span,
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 167, 121, 0.13);
}

.status-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-head h1 {
  margin-top: 1rem;
}

.status-card {
  position: relative;
  padding: 1.1rem;
}

.status-card .status-dot,
.status-tile .status-dot {
  margin-bottom: 1rem;
}

.status-card.warn .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.13);
}

.status-card.error .status-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.13);
}

.status-card.muted .status-dot {
  background: #98a2b3;
  box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.14);
}

.status-dot.up {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(19, 167, 121, 0.13);
}

.status-dot.down {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.13);
}

.status-dot.pending {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.13);
}

.status-dot.maintenance {
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(83, 109, 254, 0.13);
}

.status-dot.unknown {
  background: #98a2b3;
  box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.14);
}

.status-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  gap: 1.2rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(19, 167, 121, 0.11), transparent 42%),
    var(--surface);
}

.status-overview.warn {
  background:
    linear-gradient(135deg, rgba(183, 121, 31, 0.14), transparent 42%),
    var(--surface);
}

.status-overview.error {
  background:
    linear-gradient(135deg, rgba(194, 65, 12, 0.12), transparent 42%),
    var(--surface);
}

.status-overview span,
.panel-head span,
.uptime-group header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-overview strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1.25;
}

.status-overview p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.status-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 0.9rem;
}

html[data-theme="dark"] .status-metrics div {
  background: rgba(15, 23, 42, 0.56);
}

.uptime-panel {
  margin-top: 1rem;
  padding: 1.2rem;
}

.panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-head h2 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.panel-head p {
  max-width: 680px;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-head code {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0.55rem 0.7rem;
  color: var(--blue-dark);
  font-size: 0.82rem;
}

html[data-theme="dark"] .panel-head code {
  color: #91c5ff;
}

.uptime-groups {
  display: grid;
  gap: 0.85rem;
}

.uptime-group {
  overflow: hidden;
  box-shadow: none;
}

.uptime-group header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(237, 247, 255, 0.72);
  padding: 0.9rem 1rem;
}

html[data-theme="dark"] .uptime-group header {
  background: rgba(16, 36, 61, 0.68);
}

.uptime-group h3 {
  margin: 0.28rem 0 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.uptime-monitor-list {
  display: grid;
}

.uptime-monitor {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(180px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid rgba(215, 231, 247, 0.72);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.uptime-monitor:last-child {
  border-bottom: 0;
}

.uptime-monitor:hover,
.uptime-monitor:focus-visible {
  outline: none;
  background: color-mix(in srgb, var(--blue) 7%, transparent);
}

.uptime-monitor:active {
  transform: scale(0.997);
}

.uptime-monitor.selected {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--blue) 13%, transparent), transparent 58%),
    color-mix(in srgb, var(--surface-strong) 82%, transparent);
  box-shadow: inset 3px 0 0 var(--blue);
}

.uptime-monitor.clicked::after {
  position: absolute;
  inset: 8px;
  border: 1px solid color-mix(in srgb, var(--blue) 42%, transparent);
  border-radius: 8px;
  animation: monitorPulse 0.26s ease-out both;
  content: "";
  pointer-events: none;
}

html[data-theme="dark"] .uptime-monitor {
  border-color: rgba(51, 65, 85, 0.78);
}

.monitor-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.78rem;
}

.monitor-main .status-dot {
  flex: 0 0 auto;
}

.monitor-main strong {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monitor-main small,
.monitor-history small {
  display: block;
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.monitor-history {
  min-width: 0;
}

.uptime-bars {
  display: grid;
  grid-template-columns: repeat(42, minmax(3px, 1fr));
  gap: 3px;
  align-items: end;
  height: 30px;
}

.uptime-bar {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: 3px;
  background: #98a2b3;
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

.uptime-bar:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.uptime-bar.up {
  background: var(--green);
}

.uptime-bar.down {
  background: var(--danger);
}

.uptime-bar.pending {
  background: var(--amber);
}

.uptime-bar.maintenance {
  background: var(--violet);
}

.uptime-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(152, 162, 179, 0.18);
}

.uptime-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.monitor-meta {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: flex-end;
  justify-items: end;
  gap: 0.28rem 0.7rem;
}

.monitor-sample {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 0.68rem;
  background: rgba(152, 162, 179, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.up {
  background: rgba(19, 167, 121, 0.12);
  color: #067856;
}

.status-pill.down {
  background: rgba(194, 65, 12, 0.12);
  color: #a7360a;
}

.status-pill.pending {
  background: rgba(183, 121, 31, 0.14);
  color: #965f14;
}

.status-pill.maintenance {
  background: rgba(83, 109, 254, 0.13);
  color: #4055d5;
}

html[data-theme="dark"] .status-pill.up {
  color: #63e6be;
}

html[data-theme="dark"] .status-pill.down {
  color: #ffb08e;
}

html[data-theme="dark"] .status-pill.pending {
  color: #f4c56b;
}

html[data-theme="dark"] .status-pill.maintenance {
  color: #b7c0ff;
}

.uptime-value {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.94rem;
  font-weight: 800;
  white-space: nowrap;
}

.uptime-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: rgba(237, 247, 255, 0.52);
  color: var(--muted);
  padding: 1.25rem;
  line-height: 1.65;
}

html[data-theme="dark"] .uptime-empty {
  background: rgba(16, 36, 61, 0.42);
}

.info-panel {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 1rem 0;
  padding: 1rem;
}

.info-panel div {
  min-width: 0;
}

.info-panel span {
  margin-bottom: 0.35rem;
}

.uptime-detail-panel {
  margin-top: 0.9rem;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 48%),
    color-mix(in srgb, var(--surface-strong) 88%, transparent);
  padding: 1rem;
}

.uptime-detail-panel[hidden] {
  display: none;
}

.detail-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.detail-title span,
.detail-grid span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-title strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.detail-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-strong) 68%, transparent);
  padding: 0.75rem;
}

.detail-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 0.32rem;
  color: var(--text);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateX(26px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes planeLoop {
  0%,
  16% {
    transform: translateY(0);
  }
  25%,
  41% {
    transform: translateY(var(--plane-step));
  }
  50%,
  66% {
    transform: translateY(calc(var(--plane-step) * 2));
  }
  75%,
  91% {
    transform: translateY(calc(var(--plane-step) * 3));
  }
  100% {
    transform: translateY(calc(var(--plane-step) * 4));
  }
}

@keyframes tickerLoop {
  to {
    transform: translateX(-50%);
  }
}

@keyframes monitorPulse {
  from {
    opacity: 0.9;
    transform: scale(0.985);
  }
  to {
    opacity: 0;
    transform: scale(1.018);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .control-plane {
    height: 342px;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 0 1rem;
  }

  .nav {
    display: none;
  }

  .actions .ghost {
    display: none;
  }

  .actions {
    gap: 0.4rem;
  }

  .segmented button {
    min-width: 32px;
    padding-inline: 0.46rem;
  }

  .home-status,
  .status-grid,
  .info-panel,
  .status-overview,
  .status-metrics,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .status-head {
    align-items: start;
    flex-direction: column;
  }

  .panel-head {
    align-items: start;
    flex-direction: column;
  }

  .uptime-monitor {
    grid-template-columns: 1fr;
    gap: 0.72rem;
  }

  .monitor-meta {
    grid-template-columns: auto auto;
    justify-content: space-between;
    justify-items: start;
  }

  .monitor-sample {
    justify-self: start;
  }

  .detail-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 1rem, 1088px);
    padding-top: 88px;
  }

  .brand span {
    display: none;
  }

  h1 {
    font-size: 3.25rem;
  }

  .lead {
    font-size: 1rem;
  }

  .button-row,
  .base-card,
  .base-card div,
  .direct-note {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

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

  .primary,
  .ghost,
  .base-card button,
  .direct-note button {
    width: 100%;
  }

  .actions .auth-link {
    display: none;
  }

  .actions .primary,
  .actions .ghost {
    width: auto;
  }

  .control-plane {
    height: 330px;
    padding: 1rem;
  }

  .control-plane {
    height: auto;
    overflow: visible;
  }

  .control-plane::before,
  .control-plane::after {
    display: none;
  }

  .plane-track {
    animation: none;
  }

  .plane-card[aria-hidden="true"] {
    display: none;
  }

  .plane-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.75rem;
  }

  .actions .primary {
    min-width: 88px;
  }
}

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

.landing-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 116px 0 42px;
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 3.2rem;
  align-items: center;
  min-height: 620px;
}

.hero-main {
  animation: fadeUp 0.72s ease both;
}

.hero-badge,
.access-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  padding: 0.42rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 780;
}

.hero-main h1,
.landing-section h2,
.cta-panel h2 {
  margin: 0;
  color: var(--text);
  font-family:
    "Inter", "Noto Sans SC", "Noto Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-main h1 {
  max-width: 720px;
  margin-top: 1.25rem;
  font-size: 4.35rem;
  line-height: 1.06;
  overflow-wrap: break-word;
  text-wrap: balance;
  word-break: normal;
}

.hero-main h1 span {
  display: block;
}

.hero-lead {
  max-width: 620px;
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.78;
}

.landing-base {
  margin-top: 2rem;
}

.hero-actions {
  margin-top: 1.2rem;
}

.quick-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem;
  margin-top: 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.quick-proof i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 14%, transparent);
}

.terminal-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, #18263a);
  border-radius: 16px;
  background: var(--terminal);
  box-shadow: var(--shadow-lg);
  animation: panelIn 0.76s ease 0.08s both;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 1rem;
}

.terminal-top strong {
  margin-left: 0.5rem;
  color: #8fa8c5;
  font-size: 0.8rem;
  font-weight: 720;
}

.terminal-top button {
  margin-left: auto;
  border: 1px solid rgba(148, 184, 220, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8e8ff;
  padding: 0.36rem 0.62rem;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 760;
  cursor: pointer;
}

.traffic {
  width: 11px;
  height: 11px;
  border-radius: 999px;
}

.traffic.red {
  background: #ff6b6b;
}

.traffic.yellow {
  background: #ffc857;
}

.traffic.green {
  background: #2ed29e;
}

.terminal-card pre {
  overflow-x: auto;
  margin: 0;
  padding: 1.35rem 1.25rem 1.5rem;
  color: #e7f2ff;
  font-size: 0.86rem;
  line-height: 1.9;
}

.code-comment {
  color: #6f839d;
}

.code-key {
  color: #72c7ff;
}

.code-string {
  color: #7ee5c2;
}

.model-marquee {
  margin-top: 0.4rem;
  padding: 0.8rem 0 2rem;
}

.model-marquee p {
  margin: 0 0 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0;
}

.marquee-window {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.model-marquee .ticker-track span {
  border-color: var(--line);
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.stat-band div {
  padding: 2rem 1rem;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  text-align: center;
}

.stat-band strong {
  display: block;
  color: var(--text);
  font-family:
    "Inter", "Noto Sans SC", "Noto Sans", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
}

.stat-band span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.landing-section {
  padding: 4.5rem 0 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 2rem;
  text-align: center;
}

.section-head.inline {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.section-head h2,
.cta-panel h2 {
  font-size: 2.45rem;
  line-height: 1.14;
}

.section-head p,
.cta-panel p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.section-head > a {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 780;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.model-card,
.access-card,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 88%, transparent);
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 180px;
  padding: 1.35rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.feature-card:hover,
.model-card:hover {
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
  transform: translateY(-2px);
}

.feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 850;
}

.feature-card strong {
  display: block;
  margin-top: 1rem;
  color: var(--text);
  font-size: 1rem;
}

.feature-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.model-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.model-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.model-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 860;
}

.model-card strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.model-card p {
  overflow: hidden;
  margin: 0.32rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-card em {
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 13%, transparent);
  color: var(--green);
  padding: 0.24rem 0.58rem;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 780;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4rem;
}

.access-card {
  padding: 1.8rem;
}

.access-card.accent {
  border: 0;
  background: linear-gradient(135deg, var(--blue), #0f70d9 58%, var(--cyan));
  color: var(--on-primary);
}

.access-card h3 {
  margin: 1rem 0 0;
  color: inherit;
  font-size: 1.3rem;
}

.access-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.access-card.accent p {
  color: rgba(255, 255, 255, 0.86);
}

.access-card code {
  display: inline-flex;
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--blue-dark);
  padding: 0.7rem 0.9rem;
}

.access-endpoints {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.access-endpoints code {
  display: block;
  min-width: 0;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-card.accent .access-kicker {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.access-card.accent a {
  display: inline-flex;
  margin-top: 1.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-dark);
  padding: 0.7rem 0.95rem;
  font-weight: 800;
}

.cta-panel {
  margin-top: 4rem;
  padding: 3.4rem 2rem;
  text-align: center;
}

.cta-panel .button-row {
  justify-content: center;
  margin-top: 1.5rem;
}

.landing-footer {
  display: flex;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .landing-hero,
  .access-grid,
  .model-showcase {
    grid-template-columns: 1fr;
  }

  .hero-main h1 {
    font-size: 3.8rem;
  }

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

@media (max-width: 640px) {
  .landing-shell {
    width: min(100% - 1rem, 1200px);
    padding-top: 88px;
  }

  .landing-hero {
    gap: 2rem;
    min-height: auto;
  }

  .hero-main h1 {
    font-size: 2.45rem;
    line-height: 1.14;
  }

  .section-head h2,
  .cta-panel h2 {
    font-size: 1.9rem;
  }

  .stat-band strong {
    font-size: 2.35rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .terminal-card pre {
    font-size: 0.78rem;
  }

  .quick-proof,
  .section-head.inline,
  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-grid,
  .stat-band {
    grid-template-columns: 1fr;
  }

  .model-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .model-card em {
    grid-column: 2;
    justify-self: start;
  }

  .access-card,
  .cta-panel {
    padding: 1.35rem;
  }
}

@media (max-width: 420px) {
  .hero-main h1 {
    font-size: 2.25rem;
  }
}
