:root {
  --c-blue: #00BFFF;
  --c-green: #39FF14;
  --c-space: #1A1A2E;
  --c-surface: #222244;
  --c-surface-alt: #2A2A3E;
  --c-gold: #FFD700;
  --c-text: #FFFFFF;
  --c-text-dim: #B0B0C0;
  --c-alert: #FF3B30;
  --c-success: #34C759;

  --font-headline: Impact, 'Haettenschweiler', 'Arial Narrow Bold', 'SimHei', 'Heiti SC', 'Microsoft YaHei', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-data: 'SF Mono', 'Cascadia Code', Menlo, Consolas, 'Courier New', monospace;

  --header-h: 72px;
  --header-h-mobile: 60px;
  --container-w: 1200px;
  --skew: -6deg;
  --ease: 0.25s ease;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  position: relative;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-space);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(ellipse at 82% 0%, rgba(0, 191, 255, 0.09), transparent 62%),
    radial-gradient(ellipse at 8% 100%, rgba(57, 255, 20, 0.05), transparent 55%);
  background-size: 48px 48px, 48px 48px, 100% 100%, 100% 100%;
}

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

ul,
ol {
  list-style: none;
}

a {
  color: var(--c-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  font-weight: 800;
  color: var(--c-text);
}

p {
  color: var(--c-text);
  line-height: 1.75;
}

::selection {
  background: var(--c-blue);
  color: var(--c-space);
}

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

.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 3000;
  background: var(--c-gold);
  color: var(--c-space);
  padding: 14px 28px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 10px 100%);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.main-content {
  display: block;
  min-height: 60vh;
  padding-top: var(--header-h);
}

.main-content--flush {
  padding-top: 0;
}

.section {
  position: relative;
  padding-block: 72px;
}

.section--alt {
  background: var(--c-surface);
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transform: skewX(var(--skew));
  color: var(--c-text);
}

.section-title__accent {
  color: var(--c-blue);
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  padding-block: calc(var(--header-h) + 48px) 56px;
  background:
    linear-gradient(115deg, rgba(0, 191, 255, 0.10) 0%, transparent 45%),
    var(--c-space);
  border-bottom: 1px solid rgba(0, 191, 255, 0.25);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  border: 24px solid rgba(0, 191, 255, 0.07);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-hero--full {
  min-height: 100vh;
  align-items: center;
}

.page-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-data);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--c-green);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-hero__kicker::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-green);
}

.page-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 900;
  line-height: 1.02;
  transform: skewX(var(--skew));
  text-transform: uppercase;
  color: var(--c-text);
}

.page-hero__desc {
  margin-top: 18px;
  max-width: 58ch;
  color: var(--c-text-dim);
  font-size: 16px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 16px;
  font-size: 13px;
  color: var(--c-text-dim);
}

.breadcrumbs a {
  color: var(--c-blue);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  color: var(--c-green);
}

.breadcrumbs [aria-current="page"] {
  color: var(--c-gold);
  font-weight: 700;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 8px;
  color: rgba(176, 176, 192, 0.5);
}

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

.site-header[data-scrolled] {
  background: rgba(26, 26, 46, 0.97);
  border-bottom-color: rgba(0, 191, 255, 0.4);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.header-progress {
  position: absolute;
  bottom: -1px;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--c-blue), var(--c-green) 60%, var(--c-gold));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-progress[data-visible] {
  opacity: 1;
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: var(--c-blue);
  color: var(--c-gold);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -1px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transform: skewX(var(--skew));
  line-height: 1;
}

.brand-logo__text {
  font-family: var(--font-headline);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--c-text);
  white-space: nowrap;
  transform: skewX(var(--skew));
}

.brand-logo__text span {
  color: var(--c-gold);
}

.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.nav-list__item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 13px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--c-text);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--c-gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: var(--c-blue);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-text);
  font-weight: 700;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: rgba(34, 34, 68, 0.7);
  border: 1px solid rgba(0, 191, 255, 0.35);
  border-radius: 100px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.search-pill:focus-within {
  border-color: var(--c-blue);
  background: rgba(34, 34, 68, 0.95);
}

.search-pill__input {
  width: 150px;
  border: none;
  background: transparent;
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.3px;
  outline: none;
}

.search-pill__input::placeholder {
  color: rgba(176, 176, 192, 0.75);
}

.search-pill__input::-webkit-search-cancel-button {
  display: none;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 34px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--c-space);
  background-color: var(--c-green);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent var(--c-space) transparent transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 191, 255, 0.28);
  color: var(--c-space);
}

.btn--green {
  background-color: var(--c-green);
}

.btn--green:hover {
  background-color: var(--c-blue);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.35);
}

.btn--outline {
  background-color: transparent;
  border: 2px solid var(--c-blue);
  color: var(--c-blue);
}

.btn--outline::after {
  border-color: transparent var(--c-blue) transparent transparent;
}

.btn--outline:hover {
  background-color: var(--c-blue);
  color: var(--c-space);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-left: auto;
  z-index: 10;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-text);
  margin-block: 5px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.nav-toggle:hover .nav-toggle__line {
  background: var(--c-green);
}

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

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

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

.site-footer {
  position: relative;
  margin-top: 96px;
  background: var(--c-space);
  border-top: 3px solid var(--c-blue);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 160px;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green), var(--c-gold));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 48px;
  padding-block: 56px 36px;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--c-blue);
  color: var(--c-gold);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -1px;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  transform: skewX(var(--skew));
  line-height: 1;
}

.footer-brand__name {
  font-family: var(--font-headline);
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  transform: skewX(var(--skew));
}

.footer-brand__desc {
  margin-top: 18px;
  max-width: 38ch;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.8;
}

.footer-contact__title,
.footer-nav__title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 18px;
  position: relative;
  padding-left: 12px;
}

.footer-contact__title::before,
.footer-nav__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 3px;
  height: 14px;
  background: var(--c-blue);
  transform: skewX(-10deg);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--c-text-dim);
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(176, 176, 192, 0.6);
  text-transform: uppercase;
}

.footer-contact__note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed rgba(176, 176, 192, 0.25);
  color: rgba(176, 176, 192, 0.7);
  font-size: 12px;
}

.footer-nav__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav__list a {
  color: var(--c-text-dim);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav__list a:hover {
  color: var(--c-blue);
  padding-left: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 20px;
}

.footer-bottom p {
  color: var(--c-text-dim);
  font-size: 13px;
}

.footer-bottom__icp {
  font-family: var(--font-data);
  color: var(--c-blue);
  letter-spacing: 0.06em;
}

.hud-frame {
  position: relative;
  border: 2px solid rgba(0, 191, 255, 0.4);
  padding: 28px;
  background: rgba(34, 34, 68, 0.55);
}

.hud-frame::before,
.hud-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--c-green);
  pointer-events: none;
}

.hud-frame::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.hud-frame::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid rgba(0, 191, 255, 0.14);
  padding: 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.panel--accent {
  border-color: rgba(0, 191, 255, 0.5);
}

.panel--alt {
  background: var(--c-surface-alt);
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.bento__cell {
  grid-column: span 4;
  min-height: 180px;
}

.bento__cell--wide {
  grid-column: span 6;
}

.bento__cell--main {
  grid-column: span 8;
}

.bento__cell--full {
  grid-column: 1 / -1;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--c-surface-alt);
  background-image:
    linear-gradient(135deg, rgba(0, 191, 255, 0.07) 25%, transparent 25%),
    linear-gradient(225deg, rgba(0, 191, 255, 0.07) 25%, transparent 25%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--tall {
  aspect-ratio: 4 / 5;
}

.data-display {
  font-family: var(--font-data);
  font-size: 1.25em;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--c-green);
  line-height: 1.2;
}

.caption-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--c-text-dim);
  text-transform: uppercase;
}

.stripe-line {
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--c-blue), var(--c-green) 60%, var(--c-gold));
  border: none;
}

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

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

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

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 1023px) {
  :root {
    --header-h: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    background: var(--c-space);
    border-bottom: 3px solid var(--c-blue);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.45s ease, opacity 0.25s ease, padding 0.35s ease;
  }

  .site-nav[data-open] {
    max-height: 620px;
    opacity: 1;
    visibility: visible;
    padding-block: 20px 24px;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-link {
    display: block;
    padding: 14px 8px;
    font-size: 16px;
  }

  .nav-link::after {
    left: 8px;
    right: auto;
    bottom: 2px;
    width: 28px;
  }

  .header-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 18px;
  }

  .search-pill {
    width: 100%;
    padding: 0 18px;
  }

  .search-pill__input {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .brand-logo__mark {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .brand-logo__text {
    font-size: 18px;
  }

  .section {
    padding-block: 56px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 40px 28px;
  }

  .footer-bottom__inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .bento__cell,
  .bento__cell--wide,
  .bento__cell--main,
  .bento__cell--full {
    grid-column: auto;
  }

  .media-frame--tall {
    aspect-ratio: 16 / 10;
  }

  .page-hero {
    padding-block: calc(var(--header-h) + 32px) 40px;
  }
}

@media (max-width: 480px) {
  .brand-logo__text {
    font-size: 16px;
  }

  .search-pill {
    display: none;
  }

  .header-tools {
    align-items: stretch;
  }

  .site-nav[data-open] {
    max-height: 520px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .search-pill {
    display: none;
  }

  .nav-link {
    padding: 8px 9px;
    font-size: 13px;
  }

  .brand-logo__text {
    font-size: 17px;
  }

  .header-tools {
    margin-top: 0;
  }

  .btn {
    height: 38px;
    padding: 0 20px;
    font-size: 13px;
  }
}

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

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

  .site-nav,
  .site-nav[data-open],
  .header-progress {
    transition: none;
  }

  .skip-link {
    transition: none;
  }
}
