:root {
  color-scheme: light;
  --accent: #155e75;
  --accent-2: #ca8a04;
  --accent-3: #7c3aed;
  --surface: #f5fafb;
  --ink: #17202a;
  --muted: #5f6b7a;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: rgba(255, 255, 255, 0.76);
  --pointer-x: 50%;
  --pointer-y: 18%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
  background: linear-gradient(180deg, var(--surface), #fff 42%, #f7f9fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 68%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), color-mix(in srgb, var(--accent) 18%, transparent), transparent 24rem),
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 20rem),
    radial-gradient(circle at 16% 78%, color-mix(in srgb, var(--accent-3) 10%, transparent), transparent 22rem);
  transition: background-position 220ms ease;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.ambient-token {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  display: block;
  color: var(--motif-color);
  opacity: var(--alpha);
  transform: translate3d(0, 0, 0) rotate(var(--rot));
  animation: ambientDrift var(--duration) linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.08));
  mix-blend-mode: multiply;
  will-change: transform;
}

.ambient-token svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ambient-token .motif-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ambient-token .motif-thin {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ambient-token .motif-fill {
  fill: color-mix(in srgb, currentColor 22%, transparent);
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.ambient-token .motif-soft {
  fill: color-mix(in srgb, var(--accent-2) 16%, transparent);
  stroke: color-mix(in srgb, currentColor 58%, transparent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.ambient-token .motif-dot {
  fill: color-mix(in srgb, var(--accent-3) 58%, #fff);
}

.ambient-token .motif-solid {
  fill: color-mix(in srgb, currentColor 34%, transparent);
}

.ambient-token[data-depth="far"] {
  filter: blur(0.4px) drop-shadow(0 12px 26px rgba(15, 23, 42, 0.05));
}

.ambient-token[data-depth="near"] {
  filter: drop-shadow(0 20px 36px rgba(15, 23, 42, 0.1));
}

.ambient-token[data-figure="sakura"] .motif-fill,
.ambient-token[data-figure="sakura-petal"] .motif-fill,
.ambient-token[data-figure="sakura-shadow"] .motif-fill {
  fill: color-mix(in srgb, currentColor 18%, #fff);
}

.ambient-token[data-figure="kangaroo"] .motif-fill,
.ambient-token[data-figure="merlion"] .motif-fill {
  fill: color-mix(in srgb, currentColor 14%, transparent);
}

.ambient-token:nth-child(3n) {
  animation-name: ambientFloat;
}

.ambient-token:nth-child(4n) {
  animation-name: ambientOrbit;
}

.interactive-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.interactive-tilt.is-tilting {
  transition: transform 80ms ease-out, box-shadow 160ms ease;
}

.resource-card {
  cursor: pointer;
}

.resource-card.is-expanded {
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background:
    linear-gradient(180deg, #fff, color-mix(in srgb, var(--accent) 5%, #fff));
}

.resource-card.is-expanded .resource-extra {
  max-height: 160px;
  opacity: 1;
  transform: translateY(0);
}

.resource-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  width: var(--progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 38%, transparent);
  pointer-events: none;
}

.burst-dot {
  position: fixed;
  z-index: 40;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  pointer-events: none;
  background: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  transform: translate(-50%, -50%);
  animation: burstOut 620ms ease-out both;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

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

.nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 6px;
  color: #334155;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

.hero,
.section,
.page-title {
  max-width: 1180px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  min-height: 680px;
  padding-top: 70px;
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 46px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(40px, 5vw, 68px);
  max-width: 820px;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
}

.lead {
  margin-top: 20px;
  max-width: 740px;
  color: #405063;
  font-size: 18px;
}

.button-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: var(--paper);
  color: #17202a;
  font-weight: 750;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button:hover,
.filter-button:hover,
.tab-button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
}

.button:active,
.filter-button:active,
.tab-button:active,
.copy-button:active {
  transform: translateY(0) scale(0.98);
}

.hero-visual {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(29, 41, 57, 0.13);
  overflow: hidden;
  animation: floatPanel 7s ease-in-out infinite;
}

.hero-visual figcaption {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.metric {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -20% 0 auto;
  width: 52%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-2));
  opacity: 0.58;
}

.metric::before {
  content: "";
  position: absolute;
  inset: -40% auto auto -40%;
  width: 88%;
  height: 88%;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%);
  animation: softSweep 8s ease-in-out infinite;
}

.metric strong {
  display: block;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 8px;
  font-weight: 750;
}

.metric small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding-top: 58px;
  padding-bottom: 58px;
}

.section-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
}

.section-header p:last-child {
  max-width: 540px;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 10px 30px rgba(29, 41, 57, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover,
.resource-card:hover {
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(29, 41, 57, 0.1);
}

.card p {
  margin-top: 10px;
  color: var(--muted);
}

.tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid color-mix(in srgb, var(--accent) 24%, #fff);
  border-radius: 999px;
  padding: 4px 9px;
  color: color-mix(in srgb, var(--accent) 78%, #111);
  background: color-mix(in srgb, var(--accent) 8%, #fff);
  font-size: 12px;
  font-weight: 700;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.search {
  width: min(100%, 360px);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font: inherit;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button,
.tab-button,
.copy-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  background: #fff;
  color: #243244;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.filter-button[aria-pressed="true"],
.tab-button[aria-selected="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.resource-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.resource-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.signal-rail {
  max-width: 1180px;
  margin: -18px auto 12px;
  padding: 0 20px;
  overflow: hidden;
}

.signal-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: ticker 34s linear infinite;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  white-space: nowrap;
}

.signal::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 18%, transparent);
}

.feature-strip {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.route-board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.route-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.route-node {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}

.route-node::before {
  content: "";
  display: block;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--accent);
}

.route-node:hover::before {
  animation: pulseBar 700ms ease both;
}

.activity-list {
  display: grid;
  gap: 12px;
}

.activity-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.activity-item:hover {
  border-color: color-mix(in srgb, var(--accent-2) 40%, var(--line));
  transform: translateX(2px);
  transition: transform 160ms ease, border-color 160ms ease;
}

.activity-time {
  color: var(--accent);
  font-weight: 850;
}

.activity-state {
  border-radius: 999px;
  padding: 4px 9px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: color-mix(in srgb, var(--accent) 82%, #111);
  font-size: 12px;
  font-weight: 800;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-panel {
  display: none;
}

.tab-panel[aria-hidden="false"] {
  display: block;
  animation: fadeUp 220ms ease both;
}

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

.mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.mini-card strong {
  display: block;
  margin-bottom: 6px;
}

.mini-card span {
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.check-dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-top: 3px;
  background:
    linear-gradient(135deg, transparent 44%, #fff 45% 55%, transparent 56%),
    var(--accent);
  flex: 0 0 auto;
}

.resource-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.summary-tile strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
}

.summary-tile span {
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 520ms ease, transform 520ms ease;
}

.status-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 18px;
}

.status-list {
  display: grid;
  gap: 12px;
}

.status-item {
  border-left: 4px solid var(--accent-2);
  padding: 14px 16px;
  background: #fff;
}

.status-item strong {
  display: block;
}

.bar {
  height: 10px;
  border-radius: 999px;
  background: #e8edf4;
  overflow: hidden;
  margin-top: 12px;
}

.bar span {
  display: block;
  height: 100%;
  width: var(--value);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  animation: drawBar 900ms ease both;
}

.slider-box {
  display: grid;
  gap: 14px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.host-list {
  display: grid;
  gap: 10px;
}

.host-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.host-row code {
  overflow-wrap: anywhere;
}

.timeline {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.timeline-item {
  position: relative;
  padding-bottom: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  left: -28px;
  top: 8px;
  background: var(--accent-2);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent-2) 20%, #fff);
}

.page-title {
  padding-top: 62px;
  padding-bottom: 20px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #f1f5f9;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin-top: 12px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 44px;
  background: #fff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

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

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes drawBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

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

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

@keyframes ambientDrift {
  from {
    transform: translate3d(-8vw, 12vh, 0) rotate(var(--rot));
  }

  50% {
    transform: translate3d(8vw, -10vh, 0) rotate(calc(var(--rot) + 90deg));
  }

  to {
    transform: translate3d(-8vw, 12vh, 0) rotate(calc(var(--rot) + 180deg));
  }
}

@keyframes ambientFloat {
  from {
    transform: translate3d(4vw, 14vh, 0) rotate(var(--rot)) scale(0.92);
  }

  50% {
    transform: translate3d(-10vw, -8vh, 0) rotate(calc(var(--rot) - 80deg)) scale(1.08);
  }

  to {
    transform: translate3d(4vw, 14vh, 0) rotate(calc(var(--rot) - 160deg)) scale(0.92);
  }
}

@keyframes ambientOrbit {
  from {
    transform: translate3d(0, 0, 0) rotate(var(--rot));
  }

  33% {
    transform: translate3d(7vw, 4vh, 0) rotate(calc(var(--rot) + 120deg));
  }

  66% {
    transform: translate3d(-5vw, -6vh, 0) rotate(calc(var(--rot) + 240deg));
  }

  to {
    transform: translate3d(0, 0, 0) rotate(calc(var(--rot) + 360deg));
  }
}

@keyframes burstOut {
  from {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(0.8);
  }

  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
  }
}

@keyframes softSweep {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(32%, 18%, 0);
  }
}

@keyframes pulseBar {
  0% {
    width: 28px;
  }

  55% {
    width: 46px;
  }

  100% {
    width: 28px;
  }
}

@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;
  }

  .ambient-scene,
  .burst-dot {
    display: none !important;
  }
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .grid.three,
  .grid.two,
  .resource-grid,
  .feature-strip,
  .route-line,
  .mini-grid,
  .resource-summary,
  .status-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

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

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .host-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .table {
    display: block;
    overflow-x: auto;
  }

  .ambient-token {
    opacity: calc(var(--alpha) * 0.72);
  }
}
