:root {
  --c-bg: #0a0e27;
  --c-bg-deep: #070a1c;
  --c-bg-2: #1a1b4b;
  --c-neon: #00f0ff;
  --c-accent: #ff2e63;
  --c-ink: #e8f0ff;
  --c-muted: #b0b8c8;
  --grad-a: linear-gradient(135deg, #0a0e27 0%, #1a1b4b 100%);
  --grad-b: linear-gradient(90deg, #00f0ff 0%, #ff2e63 100%);
  --font-heading: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'JetBrains Mono', 'Roboto Mono', monospace;
  --container: min(1200px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--c-bg);
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(26, 27, 75, 0.72), transparent 60%),
    radial-gradient(900px 480px at -10% 30%, rgba(0, 240, 255, 0.07), transparent 50%),
    var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 240, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--c-ink);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--c-neon);
  text-decoration: none;
}

::selection {
  background: rgba(0, 240, 255, 0.32);
  color: var(--c-ink);
}

:focus-visible {
  outline: 3px solid rgba(0, 240, 255, 0.75);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 300;
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--grad-b);
  color: #070a1c;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
  transform: translateY(-220%);
}

.skip-link:focus {
  transform: translateY(0);
}

.main-content {
  position: relative;
  z-index: 1;
  outline: none;
}

#main-content {
  scroll-margin-top: 5.5rem;
}

.content-shell {
  width: var(--container);
  margin-inline: auto;
  padding-block: 3rem;
}

.section {
  padding-block: 3.5rem;
}

.section--tight {
  padding-block: 2rem;
}

.section--tinted {
  background: linear-gradient(180deg, rgba(26, 27, 75, 0.28), rgba(10, 14, 39, 0.28));
  border-block: 1px solid rgba(0, 240, 255, 0.07);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
}

.section-intro {
  max-width: 58ch;
  color: var(--c-muted);
  font-size: 0.875rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: fit-content;
  margin-bottom: 2.5rem;
  padding: 0.55rem 1rem;
  background: rgba(0, 240, 255, 0.045);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 999px;
  list-style: none;
}

.breadcrumb__item {
  color: var(--c-muted);
  font-size: 0.8125rem;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  margin-right: 0.45rem;
  color: rgba(0, 240, 255, 0.5);
}

.breadcrumb__link {
  color: var(--c-muted);
  transition: color 0.18s ease;
}

.breadcrumb__link:hover {
  color: var(--c-neon);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--c-neon);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--grad-b);
  color: #070a1c;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.12);
}

.btn--primary:hover {
  box-shadow: 0 10px 28px rgba(0, 240, 255, 0.2);
}

.btn--ghost {
  border-color: rgba(0, 240, 255, 0.34);
  color: var(--c-neon);
  background: rgba(0, 240, 255, 0.04);
}

.btn--ghost:hover {
  border-color: rgba(0, 240, 255, 0.5);
  background: rgba(0, 240, 255, 0.1);
}

.btn--danger {
  border-color: rgba(255, 46, 99, 0.38);
  color: var(--c-accent);
  background: rgba(255, 46, 99, 0.08);
}

.btn--danger:hover {
  border-color: rgba(255, 46, 99, 0.55);
  background: rgba(255, 46, 99, 0.16);
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(232, 240, 255, 0.07);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(26, 27, 75, 0.92), rgba(10, 14, 39, 0.94));
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(0, 240, 255, 0.12),
    0 18px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.card__text {
  color: var(--c-muted);
  font-size: 0.875rem;
}

.data-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.2rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.05);
  color: var(--c-neon);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.data-chip--alert {
  border-color: rgba(255, 46, 99, 0.34);
  background: rgba(255, 46, 99, 0.1);
  color: var(--c-accent);
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232, 240, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 46, 99, 0.05)),
    var(--c-bg);
}

.media-frame::before {
  content: "";
  display: block;
  padding-bottom: 62%;
}

.media-frame--portrait::before {
  padding-bottom: 120%;
}

.media-frame--wide::before {
  padding-bottom: 44%;
}

.media-frame > img,
.media-frame > picture,
.media-frame > canvas,
.media-frame > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame__caption {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  z-index: 2;
  max-width: calc(100% - 1.6rem);
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 28, 0.78);
  color: var(--c-ink);
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0.65rem;
  z-index: 50;
  padding: 0.65rem 1rem 1rem;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: var(--container);
  margin-inline: auto;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 999px;
  background: rgba(10, 14, 39, 0.82);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.025);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  white-space: nowrap;
}

.site-header__brand-mark {
  color: var(--c-neon);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.site-header__brand-divider {
  color: rgba(232, 240, 255, 0.35);
  font-size: 0.9rem;
}

.site-header__brand-cn {
  color: var(--c-muted);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .site-header__brand-mark,
  .site-footer__brand-mark {
    background-image: linear-gradient(90deg, var(--c-neon), var(--c-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header__nav-link {
  display: block;
  padding: 0.55rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.site-header__nav-link:hover {
  color: var(--c-ink);
  background: rgba(232, 240, 255, 0.05);
  border-color: rgba(232, 240, 255, 0.1);
}

.site-header__nav-link[aria-current="page"] {
  color: var(--c-neon);
  background: rgba(0, 240, 255, 0.07);
  border-color: rgba(0, 240, 255, 0.24);
  box-shadow: inset 0 0 18px rgba(0, 240, 255, 0.06);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(0, 240, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.05);
  color: var(--c-neon);
  font-size: 0.8125rem;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.site-header__cta:hover {
  background: var(--c-neon);
  color: #070a1c;
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.25);
  transform: translateY(-1px);
}

.site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.4rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  border-radius: 2px;
  background: var(--c-ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background 0.2s ease;
}

.site-header__toggle:hover .site-header__toggle-bar {
  background: var(--c-neon);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header__progress {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-b);
  opacity: 0.85;
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 5rem;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.92), #070a1c 100%);
  border-top: 1px solid rgba(0, 240, 255, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--c-neon), var(--c-accent));
  opacity: 0.5;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  width: var(--container);
  margin-inline: auto;
  padding: 4rem 0 2rem;
}

.site-footer__brand {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.site-footer__brand-mark {
  width: fit-content;
  color: var(--c-ink);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-footer__brand-tagline {
  color: var(--c-neon);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  letter-spacing: 0.36em;
}

.site-footer__statement {
  max-width: 42rem;
  color: var(--c-muted);
  font-size: 0.8125rem;
  line-height: 1.9;
}

.site-footer__column {
  display: grid;
  align-content: start;
  gap: 1.1rem;
}

.site-footer__heading {
  position: relative;
  margin: 0;
  padding-left: 0.8rem;
  color: var(--c-ink);
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
}

.site-footer__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.site-footer__links,
.site-footer__contact {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.site-footer__links a,
.site-footer__contact li {
  color: var(--c-muted);
  font-size: 0.8125rem;
  transition: color 0.18s ease;
}

.site-footer__links a {
  border-bottom: 1px solid transparent;
}

.site-footer__links a:hover {
  color: var(--c-neon);
  border-bottom-color: rgba(0, 240, 255, 0.35);
}

.site-footer__contact li {
  line-height: 1.6;
}

.site-footer__meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 240, 255, 0.06);
  color: rgba(176, 184, 200, 0.8);
  font-size: 0.75rem;
}

.site-footer__meta p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header__toggle {
    display: inline-flex;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: min(22rem, calc(100vw - 3rem));
    padding: 1rem;
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    background: rgba(10, 14, 39, 0.97);
    box-shadow:
      0 18px 50px rgba(0, 0, 0, 0.45),
      inset 0 1px 0 rgba(0, 240, 255, 0.06);
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
    transition:
      opacity 0.18s ease,
      transform 0.18s ease;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .site-header__nav[data-open="true"] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .site-header__nav-link {
    padding: 0.8rem 0.4rem;
    text-align: center;
    border-color: rgba(232, 240, 255, 0.07);
    background: rgba(232, 240, 255, 0.02);
  }
}

@media (min-width: 921px) {
  .site-header__nav {
    display: flex;
  }

  .site-header__toggle {
    display: none;
  }
}

@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-shell {
    padding-block: 2.25rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
    padding-top: 3rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .site-header__brand-cn,
  .site-header__brand-divider {
    display: none;
  }

  .site-header__inner {
    padding-left: 0.8rem;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__meta {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  body::before {
    background-size: 42px 42px;
  }
}

@media (hover: none) {
  .card:hover,
  .btn:hover,
  .site-header__nav-link:hover {
    transform: none;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
