:root {
  --bg-space: #0B1026;
  --bg-purple: #7C5CBF;
  --accent-cyan: #35E0D0;
  --jewel-teal: #0F766E;
  --jewel-wine: #9F1239;
  --jewel-indigo: #312E81;
  --text-body: #E7EAF3;
  --text-muted: #9AA6C8;
  --inverse: #F8FAFC;
  --warning-gold: #F59E0B;
  --font-display: "Rajdhani", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --header-h: 68px;
  --radius: 4px;
  --shell: 1440px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-space);
}

body {
  margin: 0;
  background: var(--bg-space);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0 0 0.75em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent-cyan);
  text-decoration-thickness: 1px;
}

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

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--accent-cyan);
  color: #031013;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 200;
  background: var(--accent-cyan);
  color: #031013;
  padding: 0.5rem 0.9rem;
  font-family: var(--font-mono);
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--warning-gold));
  box-shadow: 0 0 12px rgba(53, 224, 208, 0.65);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 38, 0.97);
  border-bottom: 1px solid rgba(53, 224, 208, 0.22);
}

.site-header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 48%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan));
  pointer-events: none;
}

.header-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  position: relative;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text-body);
  flex: 0 0 auto;
}

.brand-glyph {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--bg-purple));
  border-radius: 50% 50% 8px 50%;
  transform: rotate(45deg);
  box-shadow: 0 0 16px rgba(53, 224, 208, 0.45);
  position: relative;
  flex: 0 0 auto;
}

.brand-glyph::before {
  content: "";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: var(--bg-space);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  white-space: nowrap;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.brand-lockup:hover .brand-name {
  color: var(--accent-cyan);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem;
  counter-reset: navIndex;
}

.nav-item {
  position: relative;
  counter-increment: navIndex;
}

.nav-link {
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 0.5rem 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-link::before {
  content: counter(navIndex, decimal-leading-zero);
  font-size: 0.62rem;
  color: var(--accent-cyan);
  opacity: 0.75;
  margin-right: 0.2rem;
}

.nav-link:hover {
  color: var(--text-body);
  background: rgba(124, 92, 191, 0.18);
  border-bottom-color: var(--accent-cyan);
}

.nav-link[aria-current="page"] {
  color: var(--text-body);
  background: rgba(53, 224, 208, 0.08);
  border-bottom-color: var(--accent-cyan);
}

.nav-item--cta {
  margin-left: 0.6rem;
  counter-increment: none;
}

.nav-item--cta .nav-link::before {
  content: "";
  display: none;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-cyan);
  color: #031013;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.55rem 0.7rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  box-shadow: 0 0 0 rgba(53, 224, 208, 0);
}

.header-cta:hover {
  background: #7ef3e9;
  color: #031013;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(53, 224, 208, 0.25);
}

.nav-toggle {
  display: none;
}

.site-footer {
  background: linear-gradient(160deg, rgba(124, 92, 191, 0.28) 0%, rgba(11, 16, 38, 0.92) 28%, var(--bg-space) 70%);
  border-top: 2px solid rgba(53, 224, 208, 0.25);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: -15%;
  width: 55%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(53, 224, 208, 0.08), transparent 60%);
  pointer-events: none;
}

.footer-shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 3.5rem 1.25rem 1.5rem;
  position: relative;
}

.footer-lead {
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(154, 166, 200, 0.15);
  margin-bottom: 2rem;
}

.footer-lead-mark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  opacity: 0.14;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(2.5rem, 8vw, 6.5rem);
  letter-spacing: -0.03em;
  line-height: 0.8;
  pointer-events: none;
}

.footer-tagline {
  margin: 0.5rem 0 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.7fr 1.4fr;
  gap: 2.2rem;
  margin-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-lockup {
  align-self: flex-start;
}

.footer-trust {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 38ch;
  margin: 0;
}

.footer-heading {
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin: 0 0 0.8rem;
  font-family: var(--font-mono);
}

.footer-links-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links-list a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.footer-links-list a:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.footer-contact address {
  font-style: normal;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 2;
  margin: 0;
}

.footer-meta {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(154, 166, 200, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 120;
  background: var(--warning-gold);
  color: #342101;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.75rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.3);
}

.back-to-top.is-shown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: #fbbf24;
}

.container {
  width: min(calc(100% - 2rem), var(--shell));
  margin-inline: auto;
}

.section {
  padding: 3.5rem 0;
  position: relative;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent-cyan);
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.1;
  color: #fff;
  letter-spacing: 0.01em;
}

.section-desc {
  color: var(--text-muted);
  max-width: 68ch;
  margin: 0;
}

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

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: rgba(124, 92, 191, 0.12);
  border: 1px solid rgba(154, 166, 200, 0.16);
  border-left: 3px solid var(--accent-cyan);
  padding: 1.25rem;
  border-radius: 0 6px 6px 0;
}

.card-title {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  margin: 0.4rem 0;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-body {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.panel {
  background: rgba(154, 166, 200, 0.06);
  border: 1px solid rgba(154, 166, 200, 0.14);
  padding: 1.5rem;
  border-radius: 6px;
}

.panel--violet {
  background: rgba(124, 92, 191, 0.14);
  border-left: 3px solid var(--bg-purple);
}

.panel--teal {
  background: rgba(15, 118, 110, 0.2);
  border-left: 3px solid var(--jewel-teal);
}

.panel--wine {
  background: rgba(159, 18, 57, 0.2);
  border-left: 3px solid var(--jewel-wine);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  background: rgba(53, 224, 208, 0.08);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-cyan);
  color: #031013;
  border: 1px solid transparent;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(53, 224, 208, 0.2);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-outline:hover {
  background: rgba(53, 224, 208, 0.12);
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-muted);
  padding: 0.9rem 0;
  margin: 0 0 1rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--bg-purple);
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs [aria-current] {
  color: var(--text-body);
}

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--jewel-indigo), var(--bg-space));
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(53, 224, 208, 0.06), rgba(124, 92, 191, 0.22));
  z-index: 1;
  pointer-events: none;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.media-frame:hover img {
  transform: scale(1.02);
}

.media-aspect {
  aspect-ratio: 16 / 9;
}

.media-aspect--portrait {
  aspect-ratio: 3 / 4;
}

.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.index-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.85rem 0.6rem;
  background: rgba(11, 16, 38, 0.45);
  border-bottom: 1px solid rgba(154, 166, 200, 0.12);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  min-width: 2.4em;
}

.index-label {
  color: var(--text-body);
  font-weight: 600;
  flex: 1;
}

.index-meta {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.stat {
  background: linear-gradient(135deg, rgba(53, 224, 208, 0.12), rgba(11, 16, 38, 0.6));
  border: 1px solid rgba(53, 224, 208, 0.18);
  padding: 1.15rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--inverse);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.path {
  display: grid;
  gap: 1rem;
}

.path-step {
  position: relative;
  padding: 1.25rem;
  background: rgba(15, 118, 110, 0.16);
  border: 1px solid rgba(53, 224, 208, 0.14);
  border-radius: 4px;
}

.path-step::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 2px;
  transform: rotate(45deg);
}

.path-step + .path-step::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 2px;
  height: 15px;
  background: rgba(53, 224, 208, 0.4);
}

.theme-band {
  background: linear-gradient(135deg, rgba(124, 92, 191, 0.35), rgba(11, 16, 38, 0.2));
}

.theme-band--teal {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.55), rgba(11, 16, 38, 0.5));
}

.theme-band--wine {
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.5), rgba(11, 16, 38, 0.5));
}

.theme-band--indigo {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.6), rgba(11, 16, 38, 0.4));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

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

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

@media (max-width: 900px) {
  .header-shell {
    min-height: var(--header-h);
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 90;
    background: rgba(11, 16, 38, 0.99);
    padding: 1.25rem 1.5rem 3rem;
    overflow: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s var(--ease), visibility 0.3s var(--ease);
  }

  .site-nav[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-item {
    border-bottom: 1px solid rgba(154, 166, 200, 0.08);
  }

  .nav-link {
    font-size: 1.1rem;
    padding: 0.9rem 0.5rem;
    justify-content: space-between;
  }

  .nav-link::before {
    margin-right: 0.8em;
  }

  .nav-item--cta {
    margin: 1.2rem 0 0;
    border: 0;
  }

  .nav-item--cta .header-cta {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    z-index: 110;
    background: none;
    border: 1px solid rgba(154, 166, 200, 0.4);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 0.4rem 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
  }

  .nav-toggle:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
  }

  .nav-toggle-icon {
    display: block;
    width: 20px;
    height: 14px;
    position: relative;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    flex: 0 0 auto;
  }

  .nav-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    border-top: 2px solid currentColor;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

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

  .footer-meta {
    flex-direction: column;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .skip-link,
  .site-nav,
  .back-to-top {
    transition: none !important;
  }
}
