:root {
  --bg-primary: #0A0E17;
  --bg-secondary: #111827;
  --bg-tertiary: #1A2332;
  --blue: #00C8FF;
  --green: #39FF14;
  --orange: #FF6A00;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --index-color: #22D3EE;
  --font-heading: Impact, 'Arial Black', sans-serif;
  --font-body: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --header-width: 300px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --shadow-glow: 0 8px 28px rgba(0, 200, 255, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

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

body {
  margin: 0;
  margin-left: var(--header-width);
  background:
    radial-gradient(circle at 85% 10%, rgba(0, 200, 255, .12), transparent 32rem),
    radial-gradient(circle at 15% 85%, rgba(255, 106, 0, .08), transparent 28rem),
    var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

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

ul, ol {
  padding: 0;
}

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

a:hover {
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(0, 200, 255, .25);
  color: var(--text-primary);
}

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

#main-content {
  display: block;
  min-height: 70vh;
  scroll-margin-top: 90px;
}

.site-main {
  display: block;
  min-height: 70vh;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: #06121e;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 12px rgba(0, 200, 255, .5);
  z-index: 1500;
  pointer-events: none;
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--header-width);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 20px 24px 28px;
  background: rgba(10, 14, 23, .94);
  border-right: 1px solid rgba(0, 200, 255, .16);
  backdrop-filter: blur(14px);
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 255, .3) transparent;
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.site-header__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  text-decoration: none;
}

.brand__index {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #0077ff);
  color: #06121e;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  transform: rotate(-6deg);
  box-shadow: 0 0 20px rgba(0, 200, 255, .35);
}

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

.brand__name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--index-color);
  letter-spacing: .2em;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(57, 255, 20, .28);
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 20, .05);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: .7rem;
}

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

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

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 200, 255, .25);
  border-radius: 14px;
  background: var(--bg-secondary);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(0, 200, 255, .08);
}

.nav-toggle__box {
  position: relative;
  width: 20px;
  height: 14px;
}

.nav-toggle__inner,
.nav-toggle__inner::before,
.nav-toggle__inner::after {
  display: block;
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform .2s var(--ease), opacity .2s var(--ease), background .2s var(--ease);
}

.nav-toggle__inner {
  top: 6px;
}

.nav-toggle__inner::before,
.nav-toggle__inner::after {
  content: "";
}

.nav-toggle__inner::before {
  top: -6px;
}

.nav-toggle__inner::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__inner {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__inner::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__inner::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  flex: 1;
  margin-top: 8px;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-list__item {
  margin: 0;
}

.nav-list__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.nav-list__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--blue);
  transition: height .2s var(--ease);
}

.nav-list__link:hover {
  color: var(--text-primary);
  background: rgba(0, 200, 255, .08);
  transform: translateX(4px);
}

.nav-list__link:hover::before {
  height: 20px;
}

.nav-list__link[aria-current="page"] {
  color: var(--bg-primary);
  background: linear-gradient(90deg, var(--blue), #00E5FF);
  box-shadow: 0 6px 20px rgba(0, 200, 255, .25);
}

.nav-list__link[aria-current="page"]::before {
  display: none;
}

.nav-list__link[aria-current="page"] .nav-list__index {
  color: #06252f;
}

.nav-list__index {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--index-color);
  transition: color .2s var(--ease);
}

.site-header__track {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  color: rgba(148, 163, 184, .5);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .16em;
}

.site-header__track-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(34, 211, 238, .6), rgba(0, 200, 255, 0));
}

.site-header__track-label {
  white-space: nowrap;
}

.site-footer {
  position: relative;
  padding: 52px 0 24px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid rgba(0, 200, 255, .15);
  overflow: hidden;
}

.site-footer::before {
  content: "CONTACT GRID // 106.2E 38.5N";
  position: absolute;
  top: 10px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: rgba(148, 163, 184, .3);
  letter-spacing: .2em;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--green));
  opacity: .6;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.5fr .8fr 1fr;
  gap: 40px;
}

.site-footer__brand {
  display: block;
}

.brand--footer .brand__index {
  background: linear-gradient(135deg, var(--orange), #ff9500);
  color: #1c0d00;
  box-shadow: 0 0 20px rgba(255, 106, 0, .3);
}

.brand--footer .brand__name {
  font-size: 1.4rem;
}

.site-footer__trust {
  margin-top: 16px;
  max-width: 36rem;
  color: var(--text-secondary);
  font-size: .9rem;
}

.site-footer__heading {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--index-color);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-weight: 600;
  transition: color .2s var(--ease);
}

.footer-links a::before {
  content: "→";
  color: var(--blue);
  font-family: var(--font-mono);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.site-footer__contact p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: .9rem;
}

.site-footer__fineprint {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  color: var(--text-secondary);
  font-size: .8rem;
}

.site-footer__fineprint p {
  margin: 0;
}

.site-footer__icp {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, .08);
  color: var(--index-color);
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section {
  padding: clamp(40px, 8vw, 80px) 0;
}

.section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section__kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--index-color);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: .95;
  text-transform: uppercase;
  font-style: italic;
  margin: 0;
}

.section__desc {
  max-width: 56ch;
  margin-top: 8px;
  color: var(--text-secondary);
}

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

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

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

.card {
  position: relative;
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: var(--radius-card);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity .2s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 255, .35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
}

.card:hover::before {
  opacity: 1;
}

.card__index {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--index-color);
}

.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, .2);
  border-radius: var(--radius-pill);
  background: rgba(34, 211, 238, .1);
  color: var(--index-color);
  font-family: var(--font-mono);
  font-size: .75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.btn--primary {
  background: var(--blue);
  color: #06121e;
  box-shadow: 0 4px 20px rgba(0, 200, 255, .3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 255, .45);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(0, 200, 255, .4);
  color: var(--blue);
}

.btn--ghost:hover {
  background: rgba(0, 200, 255, .08);
}

.btn--orange {
  background: var(--orange);
  color: #101828;
}

.btn--orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 106, 0, .35);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 24px 0 16px;
  font-size: .875rem;
  color: var(--text-secondary);
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--text-secondary);
}

.breadcrumb__link {
  color: var(--blue);
}

.breadcrumb__current {
  color: var(--text-secondary);
}

.media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  border: 1px solid rgba(148, 163, 184, .12);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(0, 200, 255, .08), rgba(17, 24, 39, .8));
  overflow: hidden;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 200, 255, .18), transparent 60%),
    linear-gradient(135deg, rgba(17, 24, 39, .6), rgba(10, 14, 23, .2));
  opacity: .8;
}

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

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

.media--square {
  aspect-ratio: 1;
}

.media__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose {
  max-width: 70ch;
  color: var(--text-secondary);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  margin: 1.4em 0 .5em;
  color: var(--text-primary);
  font-family: var(--font-heading);
  line-height: 1.1;
  text-transform: uppercase;
}

.prose p {
  margin: 0 0 1em;
}

.prose a {
  color: var(--blue);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

@media (max-width: 1023.98px) {
  body {
    margin-left: 0;
  }

  .site-header {
    position: sticky;
    inset: auto;
    width: 100%;
    min-height: 64px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 200, 255, .14);
    overflow: visible;
  }

  .site-header__inner {
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header__meta {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    width: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: calc(100vh - 100%);
    min-height: 300px;
    margin-top: 0;
    padding: 20px;
    background: rgba(17, 24, 39, .98);
    border-top: 1px solid rgba(0, 200, 255, .1);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s var(--ease);
    overflow-y: auto;
  }

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

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

  .live-status__text {
    display: none;
  }

  .live-status {
    padding: 8px;
  }

  .site-header__track {
    display: none;
  }

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

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

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

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

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

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

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

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

  .live-status__dot {
    animation: none;
  }
}
