:root {
  --bg: #061018;
  --bg-2: #0a1a24;
  --panel: #0d1f2c;
  --panel-2: #102633;
  --line: #1c4150;
  --line-soft: #163544;
  --cyan: #2fd4c5;
  --cyan-dim: #1a8f86;
  --mint: #b8f3e4;
  --amber: #efc36a;
  --rose: #ef7a7a;
  --ink: #d7efe8;
  --mute: #86a8b0;
  --faint: #5b7d86;
  --paper: #f3fbf8;
  --shadow: 0 18px 40px rgba(0, 8, 14, 0.45);
  --radius: 18px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100%;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(47, 212, 197, 0.09), transparent 55%),
    radial-gradient(720px 360px at 92% 8%, rgba(239, 195, 106, 0.06), transparent 50%),
    var(--bg);
  font: 16px/1.65 system-ui, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(47, 212, 197, 0.16) 1px, transparent 1.2px),
    linear-gradient(rgba(28, 65, 80, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 65, 80, 0.22) 1px, transparent 1px);
  background-size: 28px 28px, 84px 84px, 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.25) 70%, transparent);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--mint);
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  padding: 0.55rem 0.8rem;
  background: var(--cyan);
  color: #042018;
  border-radius: 8px;
}

.skip:focus {
  top: 0.8rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(12px);
}

.mast.is-pin {
  border-bottom-color: var(--line);
}

.mast-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--line), 0 0 0 5px rgba(47, 212, 197, 0.16);
}

.brand strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: var(--mute);
  font-size: 0.72rem;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--mute);
  text-decoration: none;
  font-size: 0.92rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--paper);
}

.nav a.cta {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #042018;
  font-weight: 650;
}

.nav a.cta:hover {
  color: #042018;
  filter: brightness(1.06);
}

.hero {
  padding: 2.2rem 0 1rem;
}

.layer {
  position: relative;
  padding: 1.4rem 0 2.2rem;
}

.layer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.plane {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(47, 212, 197, 0.04), transparent 28%),
    var(--panel);
  box-shadow: var(--shadow);
}

.plane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 24, 34, 0.7);
}

.plane-head b {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 212, 197, 0.14);
}

.dot.amber {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(239, 195, 106, 0.14);
}

.dot.halt {
  background: var(--rose);
  box-shadow: 0 0 0 4px rgba(239, 122, 122, 0.14);
}

.chip {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 0.72rem;
}

.plane-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(16, 38, 51, 0.8);
  color: var(--mint);
  font-size: 0.82rem;
}

.kicker {
  margin: 0.9rem 0 0.2rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  line-height: 1.25;
  color: var(--paper);
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  margin: 0 0 1rem;
  color: var(--ink);
  max-width: 62ch;
}

.note {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border-left: 3px solid var(--cyan);
  background: rgba(47, 212, 197, 0.06);
  border-radius: 0 10px 10px 0;
}

.note.warn {
  border-left-color: var(--amber);
  background: rgba(239, 195, 106, 0.07);
}

.note.halt {
  border-left-color: var(--rose);
  background: rgba(239, 122, 122, 0.07);
}

.note h3 {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.note p {
  margin: 0;
  color: var(--mute);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 650;
}

.btn-primary {
  background: var(--cyan);
  color: #042018;
}

.btn-primary:hover {
  color: #042018;
  filter: brightness(1.05);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}

.btn-ghost:hover {
  color: var(--mint);
  border-color: var(--cyan-dim);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.metric {
  position: relative;
  padding: 0.85rem 0.8rem 0.9rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel-2);
}

.metric::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.metric b {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--paper);
  font-size: 1.25rem;
}

.metric span,
.metric em {
  display: block;
  color: var(--mute);
  font-size: 0.8rem;
  font-style: normal;
}

.shot {
  margin: 0;
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.shot figcaption {
  margin-top: 0.5rem;
  color: var(--faint);
  font-size: 0.8rem;
}

.topo {
  position: relative;
  min-height: 320px;
  padding: 1rem 0.4rem 0.4rem;
}

.topo-band {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
}

.topo-band + .topo-band::before {
  content: "";
  position: absolute;
  left: 86px;
  right: 18px;
  top: 0;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}

.lane {
  align-self: center;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hops {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0;
}

.hop {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.7rem 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0b1c27;
  color: var(--paper);
  font-size: 0.82rem;
  text-decoration: none;
}

.hop:hover {
  border-color: var(--cyan-dim);
  color: var(--mint);
}

.hop i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(47, 212, 197, 0.55);
}

.hop.amber i {
  background: var(--amber);
  box-shadow: 0 0 10px rgba(239, 195, 106, 0.45);
}

.wire {
  width: 22px;
  height: 2px;
  margin: 0 2px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--line));
}

.intro {
  margin: 0 0 1rem;
  color: var(--mute);
}

.grid-4,
.grid-2 {
  display: grid;
  gap: 0.8rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.os {
  position: relative;
  display: block;
  padding: 1rem 1rem 1.05rem 1.15rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel-2);
  color: inherit;
  text-decoration: none;
}

a.card:hover,
a.os:hover {
  border-color: var(--cyan-dim);
  color: inherit;
}

.card::before,
.os::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.card .code,
.os .code {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.card p,
.os p {
  margin: 0;
  color: var(--mute);
  font-size: 0.92rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
}

.ticks {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1.2rem;
  color: var(--mute);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.crumb {
  margin: 0 0 0.7rem;
  color: var(--faint);
  font-size: 0.85rem;
}

.crumb a {
  color: var(--mute);
}

.page-hero {
  padding-top: 0.3rem;
}

.steps {
  display: grid;
  gap: 0.75rem;
}

.step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--panel-2);
}

.step b {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 212, 197, 0.12);
  color: var(--cyan);
}

.step p {
  margin: 0;
  color: var(--mute);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--mint);
  background: rgba(8, 24, 34, 0.7);
  font-weight: 600;
}

td {
  color: var(--mute);
}

tr:last-child td {
  border-bottom: 0;
}

code {
  color: var(--cyan);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 0.2rem;
  color: var(--paper);
  font-weight: 650;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--cyan);
  vertical-align: 0.1em;
}

.faq details[open] summary::before {
  background: var(--amber);
}

.faq p {
  margin: 0 0 1rem;
  color: var(--mute);
}

.foot {
  margin-top: 1rem;
  padding: 2rem 0 1.2rem;
  border-top: 1px solid var(--line);
  background: #051017;
}

.foot-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 1.2rem;
}

.foot h3 {
  font-size: 0.92rem;
}

.foot p,
.foot li {
  color: var(--mute);
  font-size: 0.9rem;
}

.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot li {
  margin: 0.35rem 0;
}

.legal {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--faint);
  font-size: 0.8rem;
}

[data-hop] {
  opacity: 1;
  transform: none;
}

.allow-motion [data-hop] {
  opacity: 0;
  transform: translateY(12px);
}

.allow-motion [data-hop].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.allow-motion .dot,
.allow-motion .hop i,
.allow-motion .metric::before,
.allow-motion .card::before,
.allow-motion .os::before {
  animation: pulse 2.4s ease-in-out infinite;
}

.allow-motion .wire {
  background-size: 200% 100%;
  animation: flow 2.8s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(47, 212, 197, 0.12);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(47, 212, 197, 0.22);
  }
}

@keyframes flow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 22px 0;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .grid-4,
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    display: none;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0b1b26;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a {
    display: block;
    padding: 0.55rem 0.3rem;
  }

  .hero-grid,
  .split,
  .grid-4,
  .grid-2,
  .foot-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .topo-band {
    grid-template-columns: 1fr;
  }

  body.nav-lock {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .allow-motion [data-hop] {
    opacity: 1;
    transform: none;
  }
}
