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

:root {
  --c-deep: #2c1a4d;
  --c-accent: #ff6b35;
  --c-teal: #00c9a7;
  --c-ink: #0b0512;
  --c-panel: #3a2168;
  --c-orange-soft: #ff9a76;
  --c-teal-dim: #00a98c;
  --c-text: #f2edf7;
  --c-subtle: #6a4c9e;
  --font-head: Impact, "Arial Black", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  --container-w: 1200px;
  --header-h: 76px;
  --ease: 0.25s ease;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

a:hover {
  color: var(--c-orange-soft);
}

button {
  font-family: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  border-radius: 0;
}

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

::selection {
  background: var(--c-accent);
  color: var(--c-ink);
}

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

.c-container {
  width: min(100% - 40px, var(--container-w));
  margin-inline: auto;
}

.c-skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 10px 20px;
  background: var(--c-accent);
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.c-skip:focus {
  transform: translateY(0);
  outline: none;
}

.c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.c-header.is-sunk {
  background: rgba(44, 26, 77, 0.97);
  border-bottom-color: rgba(106, 76, 158, 0.45);
  box-shadow: 0 8px 28px rgba(11, 5, 18, 0.35);
}

.c-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

.c-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--c-text);
  text-decoration: none;
  line-height: 1;
}

.c-brand:hover {
  color: var(--c-text);
}

.c-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-orange-soft));
  color: var(--c-ink);
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 900;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.c-brand__text {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.1;
}

.c-brand__text em {
  font-style: normal;
  color: var(--c-accent);
  margin-left: 0.12em;
}

.c-brand__cursor {
  display: inline-block;
  width: 3px;
  height: 17px;
  margin-left: 5px;
  background: var(--c-teal);
  animation: c-blink 1.1s step-end infinite;
}

.c-nav {
  margin-left: 12px;
  min-width: 0;
}

.c-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.c-nav__link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 247, 0.82);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  transition: color var(--ease);
}

.c-nav__link::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0) skewX(-30deg);
  transform-origin: left center;
  transition: transform var(--ease);
}

.c-nav__link:hover {
  color: var(--c-text);
}

.c-nav__link:hover::after,
.c-nav__link[aria-current="page"]::after {
  transform: scaleX(1) skewX(-30deg);
}

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

.c-nav__link[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: var(--c-teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  vertical-align: middle;
}

.c-header__aside {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.c-match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.32);
  color: var(--c-teal);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.c-match:hover {
  background: rgba(0, 201, 167, 0.18);
  border-color: var(--c-teal);
  color: var(--c-text);
}

.c-match__icon {
  display: grid;
  grid-template-columns: repeat(2, 5px);
  grid-template-rows: repeat(2, 5px);
  gap: 2px;
}

.c-match__dot {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--c-accent);
}

.c-match__dot:nth-child(2) {
  background: var(--c-teal);
}

.c-match__dot:nth-child(3) {
  background: var(--c-teal);
}

.c-match__dot:nth-child(4) {
  background: var(--c-orange-soft);
}

.c-match__label {
  line-height: 1;
}

.c-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: rgba(11, 5, 18, 0.45);
  border: 1px solid rgba(106, 76, 158, 0.5);
  transition: border-color var(--ease), background var(--ease);
}

.c-nav-toggle:hover {
  border-color: var(--c-accent);
  background: rgba(11, 5, 18, 0.65);
}

.c-nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.c-nav-toggle:hover .c-nav-toggle__bar {
  background: var(--c-accent);
}

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

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

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

.c-scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-accent), var(--c-orange-soft), var(--c-teal));
  pointer-events: none;
  z-index: 5;
  transition: width 0.1s linear;
}

.c-footer {
  position: relative;
  background: linear-gradient(180deg, var(--c-ink), rgba(44, 26, 77, 0.92));
  color: rgba(242, 237, 247, 0.7);
  font-size: 15px;
}

.c-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 107, 53, 0.03) 0, rgba(255, 107, 53, 0.03) 2px, transparent 2px, transparent 14px);
  pointer-events: none;
}

.c-footer .c-container {
  position: relative;
}

.c-footer__slant {
  height: 32px;
  background: linear-gradient(105deg, var(--c-accent) 0%, var(--c-accent) 12%, var(--c-orange-soft) 20%, transparent 32%, transparent 100%);
}

.c-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding: 64px 0 48px;
}

.c-footer__col {
  min-width: 0;
}

.c-footer__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-text);
}

.c-footer__title::after {
  content: "";
  flex: 0 0 34px;
  height: 2px;
  background: var(--c-accent);
}

.c-footer__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-footer__list a {
  display: inline-block;
  color: rgba(242, 237, 247, 0.65);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s, transform 0.2s;
}

.c-footer__list a:hover {
  color: var(--c-orange-soft);
  transform: translateX(4px);
}

.c-footer__list--contact {
  gap: 0;
}

.c-footer__contact-item {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(106, 76, 158, 0.32);
}

.c-footer__contact-item:first-child {
  padding-top: 0;
}

.c-footer__contact-label {
  flex: 0 0 58px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-subtle);
  padding-top: 2px;
}

.c-footer__contact-text {
  font-size: 14px;
  color: rgba(242, 237, 247, 0.8);
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.c-footer__desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(242, 237, 247, 0.55);
}

.c-footer__icp {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-teal-dim);
}

.c-footer__col > .c-btn {
  margin-top: 18px;
}

.c-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding: 24px 0 32px;
  border-top: 1px solid rgba(106, 76, 158, 0.35);
}

.c-footer__copy {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(242, 237, 247, 0.55);
}

.c-footer__tagline {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-subtle);
  margin-left: auto;
}

.c-brand--footer .c-brand__mark {
  width: 26px;
  height: 26px;
  margin-right: 8px;
  font-size: 16px;
}

.c-brand--footer .c-brand__text {
  font-size: 17px;
}

.c-brand--footer .c-brand__cursor {
  height: 13px;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  background: none;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  transition: filter 0.2s, transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.c-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.c-btn:active {
  transform: translateY(0);
}

.c-btn--primary {
  background: linear-gradient(135deg, var(--c-accent), var(--c-orange-soft));
  color: var(--c-ink);
}

.c-btn--ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid rgba(242, 237, 247, 0.45);
}

.c-btn--ghost:hover {
  color: var(--c-orange-soft);
  border-color: var(--c-orange-soft);
}

.c-btn--sm {
  padding: 8px 16px;
  font-size: 13px;
}

.c-panel {
  position: relative;
  padding: 28px;
  background: var(--c-panel);
  border: 1px solid rgba(106, 76, 158, 0.4);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.c-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-teal);
  background: rgba(0, 201, 167, 0.1);
  border: 1px solid rgba(0, 201, 167, 0.3);
}

.c-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: currentColor;
  flex-shrink: 0;
}

.c-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-teal);
}

.c-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.c-status--ok {
  color: var(--c-teal);
}

.c-status--live {
  color: var(--c-accent);
}

.c-status--live::before {
  animation: c-blink 1s step-end infinite;
}

.c-metric {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.c-metric__value {
  font-family: var(--font-mono);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-accent);
}

.c-metric__value small {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--c-subtle);
  margin-left: 4px;
}

.c-metric__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--c-subtle);
}

.c-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--c-teal);
  margin-bottom: 14px;
}

.c-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.c-slash {
  display: inline-block;
  width: 15px;
  height: 2px;
  background: var(--c-accent);
  transform: rotate(-45deg);
}

.c-divider {
  display: block;
  height: 36px;
  margin: 0;
  background: linear-gradient(105deg, var(--c-accent) 0%, var(--c-accent) 14%, var(--c-orange-soft) 22%, transparent 36%, transparent 100%);
  border: none;
  pointer-events: none;
}

.c-section {
  padding: 72px 0;
}

.c-section--tight {
  padding: 40px 0;
}

.c-lead {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(242, 237, 247, 0.75);
  max-width: 62ch;
}

.c-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  font-size: 14px;
  color: var(--c-subtle);
}

.c-breadcrumb a {
  color: rgba(242, 237, 247, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.c-breadcrumb .c-slash {
  width: 10px;
  flex-shrink: 0;
}

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

.c-image {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(58, 33, 104, 0.65) 0%, rgba(11, 5, 18, 0.45) 100%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.c-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 107, 53, 0.05) 0, rgba(255, 107, 53, 0.05) 2px, transparent 2px, transparent 12px);
  pointer-events: none;
}

.c-image img,
.c-image__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

@keyframes c-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (max-width: 1023px) {
  .c-nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: block;
    margin-left: 0;
    padding: calc(var(--header-h) + 48px) clamp(28px, 7vw, 56px) 64px;
    background: linear-gradient(165deg, rgba(11, 5, 18, 0.97), rgba(44, 26, 77, 0.98) 60%, rgba(58, 33, 104, 0.97));
    overflow-y: auto;
    transform: translateY(-102%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.4s;
  }

  .c-nav[data-open="true"] {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .c-nav::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--c-accent), var(--c-orange-soft) 30%, var(--c-teal));
  }

  .c-nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.16) 0%, transparent 70%);
    pointer-events: none;
  }

  .c-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .c-nav__item {
    border-bottom: 1px dashed rgba(106, 76, 158, 0.42);
  }

  .c-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 8px;
    font-family: var(--font-head);
    font-size: 22px;
    line-height: 1.2;
    color: rgba(242, 237, 247, 0.85);
  }

  .c-nav__link::after {
    display: none;
  }

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

  .c-nav__link[aria-current="page"]::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0;
    flex-shrink: 0;
    background: var(--c-teal);
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  }

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

@media (max-width: 959px) {
  .c-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
    padding: 52px 0 40px;
  }

  .c-section {
    padding: 56px 0;
  }

  .c-section--tight {
    padding: 32px 0;
  }
}

@media (max-width: 560px) {
  .c-header__inner {
    gap: 10px;
  }

  .c-match__label {
    display: none;
  }

  .c-match {
    padding: 9px;
    gap: 0;
  }

  .c-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .c-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-footer__tagline {
    margin-left: 0;
    order: 3;
  }

  .c-metric__value {
    font-size: 34px;
  }
}

@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;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-reveal][data-revealed="true"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
