:root {
  color-scheme: light;
  --ink: #171a19;
  --muted: #626966;
  --line: #d7dcda;
  --paper: #f1f3f2;
  --surface: #ffffff;
  --online: #23835f;
  --offline: #bd3f3f;
  --checking: #8a918e;
  --ai: #df4b3f;
  --ai-soft: #fff0ed;
  --media: #187d77;
  --media-soft: #e7f5f3;
  --monitor: #c58b16;
  --monitor-soft: #fff5d9;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #e8edf0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

.ambient-backdrop {
  position: fixed;
  z-index: 0;
  inset: -3vh -3vw;
  background: url("/assets/ambient-bg-v2.webp") center / cover no-repeat;
  filter: saturate(0.96) contrast(1.04);
  opacity: 1;
  pointer-events: none;
  transform: scale(1.03);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.last-check {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.icon-button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: #aeb5b2;
  background: #f8f9f8;
  transform: rotate(16deg);
}

.icon-button:focus-visible,
.service-card:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(24, 125, 119, 0.32);
  outline-offset: 3px;
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

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

.hero {
  position: relative;
  height: 310px;
  overflow: hidden;
  border-radius: 8px;
  background: #142b42;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgba(8, 17, 29, 0.39);
  box-shadow: inset 0 0 80px rgba(5, 15, 28, 0.48);
  content: "";
}

.hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), 0) scale(1.045);
  filter: saturate(1.07) contrast(1.04);
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
  will-change: transform;
}

.hero:hover img {
  filter: saturate(1.14) contrast(1.06);
}

.hero-focus {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(184, 229, 249, 0.62);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.62);
  box-shadow: 0 0 0 10px rgba(145, 213, 241, 0.08), 0 0 32px rgba(126, 199, 234, 0.22), inset 0 0 24px rgba(223, 158, 190, 0.12);
  mix-blend-mode: screen;
  transition: opacity 220ms ease, transform 460ms cubic-bezier(0.16, 1, 0.3, 1), left 120ms ease-out, top 120ms ease-out;
}

.hero-focus::before,
.hero-focus::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(243, 178, 197, 0.42);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-focus::before {
  width: 56px;
  height: 56px;
}

.hero-focus::after {
  width: 148px;
  height: 148px;
  opacity: 0.55;
}

.hero-content {
  position: absolute;
  z-index: 1;
  left: 48px;
  bottom: 42px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0;
  font-size: 11px;
  font-weight: 780;
  line-height: 1.2;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.hero h1 {
  margin: 8px 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 54px;
  font-weight: 500;
  line-height: 1;
}

.hero-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 560;
}

.hero-meta {
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 20, 35, 0.7);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.pulse-dot,
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  color: #6ee1b2;
  box-shadow: 0 0 0 4px rgba(110, 225, 178, 0.14);
}

.services {
  padding: 42px 0 48px;
}

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

.section-kicker {
  margin-bottom: 6px;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.clock {
  min-width: 84px;
  margin: 0 1px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  --accent: var(--ai);
  --accent-soft: var(--ai-soft);
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 252px;
  padding: 22px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(25, 31, 29, 0.045);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  animation: reveal 420ms both;
}

.service-card:nth-child(2) {
  animation-delay: 60ms;
}

.service-card:nth-child(3) {
  animation-delay: 120ms;
}

.service-card--media {
  --accent: var(--media);
  --accent-soft: var(--media-soft);
}

.service-card--status {
  --accent: var(--monitor);
  --accent-soft: var(--monitor-soft);
}

.service-card:hover {
  border-color: #bec5c2;
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(25, 31, 29, 0.1);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 7px;
  color: var(--accent);
  background: var(--accent-soft);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.status {
  display: inline-flex;
  min-width: 86px;
  min-height: 28px;
  padding: 0 9px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  width: 6px;
  height: 6px;
}

.status--checking {
  color: var(--checking);
  background: #f7f8f7;
}

.status--online {
  color: var(--online);
  background: #eef8f3;
}

.status--offline {
  color: var(--offline);
  background: #fff1f1;
}

.card-copy {
  margin: 29px 0 24px;
}

.card-label {
  color: var(--accent);
}

.card-copy h3 {
  margin: 7px 0 7px;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.2;
}

.card-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #edf0ee;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}

.open-icon {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  transition: background-color 160ms ease, transform 160ms ease;
}

.open-icon svg {
  width: 15px;
  height: 15px;
}

.service-card:hover .open-icon {
  background: var(--accent);
  transform: translate(2px, -2px);
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: 70px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 220px;
  }
}

@media (max-width: 600px) {
  .topbar,
  .page-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    height: 62px;
  }

  .brand {
    font-size: 13px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .last-check {
    display: none;
  }

  .hero {
    height: 246px;
  }

  .hero img {
    object-position: 58% 47%;
  }

  .hero-focus {
    display: none;
  }

  .ambient-backdrop {
    opacity: 1;
  }

  .hero-content {
    left: 24px;
    bottom: 25px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-meta {
    top: 14px;
    right: 14px;
  }

  .services {
    padding: 34px 0 40px;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .service-card {
    min-height: 214px;
    padding: 19px;
  }

  .card-copy {
    margin: 23px 0 20px;
  }

  .site-footer {
    min-height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #particle-canvas {
    display: none;
  }

  .ambient-backdrop {
    filter: saturate(0.96) contrast(1.04);
    opacity: 1;
  }

  .hero img {
    transform: scale(1.045);
    transition: none;
  }

  .hero-focus {
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
