:root {
  --bg-black: #000000;
  --bg-deep: #0A0E27;
  --bg-panel: #1A1A2E;
  --bg-ink: #05060F;
  --orange: #FF6B00;
  --purple: #9B30FF;
  --cyan: #00B4D8;
  --green: #39FF14;
  --gold: #FFD700;
  --white: #FFFFFF;
  --gray: #EAEAEA;
  --muted: #9AA0B0;
  --line: rgba(255, 255, 255, 0.08);
  --line-bright: rgba(155, 48, 255, 0.35);
  --font-head: "Helvetica Neue", "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 64px;
  --container: 1440px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-black);
  background-image:
    linear-gradient(rgba(155, 48, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 48, 255, 0.035) 1px, transparent 1px),
    radial-gradient(1000px 600px at 80% -10%, rgba(255, 107, 0, 0.14), transparent 60%),
    radial-gradient(900px 700px at -5% 25%, rgba(155, 48, 255, 0.10), transparent 55%);
  background-size: 40px 40px, 40px 40px, auto, auto;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.05;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--purple);
  color: var(--white);
}

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

a:focus-visible,
button:focus-visible {
  background: rgba(0, 180, 216, 0.12);
  text-decoration: none;
}

.container,
.content-shell {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.page-shell {
  padding-block: clamp(40px, 7vw, 80px);
}

#main-content {
  display: block;
  min-height: 60vh;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 3000;
  background: var(--orange);
  color: #000;
  padding: 8px 16px;
  font-weight: 800;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 6, 15, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-bright);
}

.header-progress {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 2;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 50%, var(--cyan) 100%);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, var(--container));
  min-height: var(--header-h);
  margin-inline: auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}

.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 107, 0, 0.8) 1px, transparent 1px),
    linear-gradient(rgba(255, 107, 0, 0.8) 1px, transparent 1px);
  background-size: 6px 6px;
}

.brand-bolt {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 14px;
  background: var(--orange);
  clip-path: polygon(58% 0, 100% 0, 42% 100%, 0 100%, 28% 68%, 0 68%);
  transform: translate(-50%, -48%);
}

.brand-word {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
}

.brand-code {
  padding-left: 8px;
  border-left: 1px solid var(--line-bright);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  padding: 4px 10px 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--gray);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5);
  animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(57, 255, 20, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 255, 20, 0);
  }
}

.status-text {
  letter-spacing: 0.02em;
}

.status-badge {
  padding: 1px 6px;
  background: var(--green);
  color: #000;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 2px solid transparent;
  color: var(--gray);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.nav-link .nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--purple);
}

.nav-link:hover {
  border-bottom-color: var(--purple);
  background: rgba(155, 48, 255, 0.08);
  color: var(--white);
}

.nav-link[aria-current="page"] {
  border-bottom-color: var(--orange);
  color: var(--orange);
}

.nav-link[aria-current="page"] .nav-index {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

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

.toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  width: 14px;
}

.toggle-line {
  display: block;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.nav-toggle[aria-expanded="true"] {
  border-color: var(--purple);
  background: rgba(155, 48, 255, 0.08);
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.site-footer {
  padding: 56px 0 24px;
  border-top: 2px solid rgba(155, 48, 255, 0.25);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-black) 100%);
  color: var(--gray);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr;
  gap: 40px;
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.footer-brand {
  display: grid;
  gap: 12px;
}

.footer-mark {
  width: 26px;
  height: 26px;
  flex-basis: 26px;
}

.footer-name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--white);
}

.footer-trust {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li + li {
  margin-top: 10px;
}

.footer-nav a,
.footer-legal a,
.footer-contact a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
  color: var(--orange);
}

.footer-contact p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-note {
  margin: 16px 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 12px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.footer-legal a {
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(var(--container), 100% - 48px);
  margin: 48px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.footer-coord {
  letter-spacing: 0.12em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--orange);
}

.section-label {
  margin: 0 0 18px;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  color: var(--gray);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
}

.display-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.display-title .mark {
  color: var(--orange);
}

.document-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(48px, 7vw, 80px) 0 32px;
  border-bottom: 1px solid var(--line-bright);
}

.document-title {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
  line-height: 0.95;
}

.document-meta {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-align: right;
}

.vertical-note {
  writing-mode: vertical-rl;
  padding-left: 8px;
  border-left: 1px solid var(--line-bright);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: #000;
}

.btn-primary:hover {
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}

.btn-outline {
  border-color: var(--purple);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn-ghost {
  border-color: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  border-color: var(--purple);
  color: var(--white);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--purple);
}

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

.breadcrumb a:hover {
  color: var(--orange);
}

.breadcrumb [aria-current="page"] {
  color: var(--white);
}

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

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

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

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

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

.badge,
.state-label,
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge {
  padding: 2px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.badge.is-orange {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.1);
  color: var(--orange);
}

.badge.is-purple {
  border-color: var(--purple);
  background: rgba(155, 48, 255, 0.1);
  color: var(--purple);
}

.badge.is-green {
  border-color: var(--green);
  background: rgba(57, 255, 20, 0.08);
  color: var(--green);
}

.state-label {
  position: relative;
  color: var(--gray);
  font-size: 12px;
}

.state-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.slant-block {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: linear-gradient(90deg, var(--orange) 0%, var(--purple) 100%);
  color: #000;
  font-weight: 900;
  transform: skewX(-12deg);
}

.slant-block > * {
  transform: skewX(12deg);
}

.data-panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(10, 14, 39, 0.75));
}

.data-panel.is-accent {
  border-top: 2px solid var(--orange);
}

.panel-title {
  margin: 0 0 12px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

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

.data-table th {
  background: rgba(155, 48, 255, 0.08);
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.entry-list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.entry-item {
  grid-column: span 4;
  padding: 24px;
  border-top: 1px solid var(--line-bright);
  background: rgba(26, 26, 46, 0.5);
}

.visual-frame {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg-deep), var(--bg-ink));
}

.visual-frame::after {
  content: "IMAGE / DATA FIELD";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.4em;
  opacity: 0.5;
  pointer-events: none;
}

.visual-frame img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  filter: saturate(0.85) contrast(1.1);
  object-fit: cover;
}

.scope-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.path-item {
  position: relative;
  padding: 20px 20px 20px 34px;
  border-left: 1px solid var(--purple);
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.6), rgba(5, 6, 15, 0.4));
}

.path-item::before {
  content: "→";
  position: absolute;
  left: 8px;
  top: 20px;
  color: var(--orange);
  font-family: var(--font-mono);
}

.path-item h3,
.path-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  transition-delay: calc(var(--reveal-order, 0) * 30ms);
}

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

@media (max-width: 1200px) {
  .nav-link {
    padding: 10px 8px;
    font-size: 12px;
  }

  .status-text {
    font-size: 10px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr 1.2fr;
    gap: 32px;
  }
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    z-index: 5;
    display: flex;
    align-items: flex-start;
    border-top: 1px solid var(--line-bright);
    background:
      linear-gradient(180deg, rgba(155, 48, 255, 0.08) 0%, transparent 40%),
      var(--bg-deep);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    overflow-y: auto;
  }

  .site-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 16px;
  }

  .nav-link {
    padding: 14px 12px;
    border: 0;
    border-left: 2px solid transparent;
    font-size: 16px;
  }

  .nav-link:hover {
    border-left-color: var(--purple);
  }

  .nav-link[aria-current="page"] {
    border-left-color: var(--orange);
    background: linear-gradient(90deg, rgba(255, 107, 0, 0.12), transparent);
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .entry-item {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .header-inner {
    gap: 8px;
    padding-inline: 16px;
  }

  .brand-word {
    font-size: 15px;
  }

  .brand-code {
    display: none;
  }

  .status-text {
    max-width: 12em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-badge {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(100% - 32px, var(--container));
  }

  .footer-bottom {
    width: min(100% - 32px, var(--container));
    flex-direction: column;
    align-items: flex-start;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .grid-12,
  .entry-list {
    grid-template-columns: 1fr;
  }

  .entry-item {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

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