:root {
  --bg: #0A0A0F;
  --bg-soft: #1A0A2E;
  --bg-deep: #050508;
  --purple: #A020F0;
  --blue: #00D4FF;
  --pink: #FF6EC7;
  --pink-light: #FFB6C1;
  --text: #E0E0E0;
  --muted: #9A9A9A;
  --white: #FFFFFF;
  --metal: #2E2E3A;
  --danger: #C2185B;
  --purple-glass: rgba(160, 32, 240, 0.2);
  --blue-glass: rgba(0, 212, 255, 0.15);
  --pink-gradient: linear-gradient(135deg, #FF6EC7, #FFB6C1);
  --font-head: "Orbitron", "Michroma", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Mono CJK SC", "SFMono-Regular", Consolas, monospace;
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-purple: 0 0 30px rgba(160, 32, 240, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 250ms;
  --header-h: 5rem;
  --container: 1440px;
  --content: 1180px;
}

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

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

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 22% 12%, rgba(160, 32, 240, 0.18), transparent 38%),
    radial-gradient(circle at 78% 88%, rgba(0, 212, 255, 0.12), transparent 42%),
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  background-size: auto, auto, 44px 44px, 44px 44px;
}

body.no-scroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 750;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(160, 32, 240, 0.35);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  max-width: 65ch;
}

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

a:hover {
  color: var(--pink);
}

strong {
  color: var(--white);
}

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

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--purple);
  color: var(--white);
  font-weight: 650;
  transform: translateY(-180%);
  transition: transform var(--duration) ease;
}

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

.container {
  width: min(100% - 3rem, var(--content));
  margin-inline: auto;
}

.section {
  position: relative;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(4rem, 9vw, 7rem) 2rem;
}

.section-label {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.section-lead {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.94);
  border-bottom: 1px solid var(--metal);
}

.header-inner {
  position: relative;
  z-index: 20;
  max-width: var(--container);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 50;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  color: var(--white);
}

.brand-link:hover {
  color: var(--white);
}

.brand-mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(160, 32, 240, 0.8);
  box-shadow: var(--shadow-purple), inset 0 0 10px rgba(160, 32, 240, 0.25);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.6);
  animation: spin 20s linear infinite;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px var(--pink);
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.brand-index {
  padding-left: 0.75rem;
  border-left: 1px solid var(--metal);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--metal);
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 14px rgba(0, 212, 255, 0.12);
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.nav-toggle-box span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: transform var(--duration) ease, background var(--duration) ease, opacity var(--duration) ease;
}

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

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

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

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

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: block;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  transition: color var(--duration) ease, border-color var(--duration) ease, background var(--duration) ease, box-shadow var(--duration) ease;
}

.nav-link:hover {
  color: var(--white);
  border-color: rgba(0, 212, 255, 0.55);
  background: rgba(0, 212, 255, 0.06);
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.18);
}

.nav-link[aria-current="page"] {
  color: var(--white);
  background: var(--purple-glass);
  border-color: rgba(160, 32, 240, 0.65);
  box-shadow: 0 0 18px rgba(160, 32, 240, 0.25);
}

.site-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 10;
  width: 100%;
  height: 2px;
  pointer-events: none;
}

.site-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--pink));
  box-shadow: 0 0 14px rgba(160, 32, 240, 0.45);
}

.site-footer {
  position: relative;
  margin-top: clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-soft) 70%);
  border-top: 1px solid rgba(160, 32, 240, 0.45);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.08), transparent);
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--white);
}

.footer-brand .footer-tagline {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 28ch;
}

.footer-heading {
  margin-bottom: 1.25rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--purple);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-col ul,
.footer-contact p {
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
}

.footer-col a:hover {
  color: var(--pink);
}

.footer-contact p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--metal);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-support {
  flex-basis: 100%;
  margin-top: 0.25rem;
  color: var(--muted);
}

.breadcrumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--purple);
}

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

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

.breadcrumb-current {
  color: var(--purple);
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--duration) ease, border-color var(--duration) ease, box-shadow var(--duration) ease, color var(--duration) ease;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 0 24px rgba(160, 32, 240, 0.3);
}

.btn-primary:hover {
  background: #b537ff;
  color: var(--white);
  box-shadow: 0 0 32px rgba(160, 32, 240, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border-color: rgba(0, 212, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--white);
}

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

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

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

.card {
  padding: 1.5rem;
  border: 1px solid rgba(160, 32, 240, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(26, 10, 46, 0.65);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.media-frame {
  position: relative;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(160, 32, 240, 0.35);
  border-radius: calc(var(--radius-lg) + 6px);
  background: rgba(5, 5, 8, 0.6);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(0, 212, 255, 0.06);
}

.media-frame::after {
  content: "IMG // PLACEHOLDER";
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.media-frame > img,
.media-frame > video,
.media-frame > canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.media-frame[data-ratio="landscape"] {
  aspect-ratio: 16 / 9;
}

.media-frame[data-ratio="portrait"] {
  aspect-ratio: 3 / 4;
}

.media-frame[data-ratio="square"] {
  aspect-ratio: 1 / 1;
}

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

.path-step {
  position: relative;
  padding: 1.5rem;
  border: 1px solid rgba(160, 32, 240, 0.35);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 15, 0.75);
  transition: transform var(--duration) ease, border-color var(--duration) ease, box-shadow var(--duration) ease;
}

.path-step:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.65);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.12);
}

.path-step::before {
  content: attr(data-index);
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: rgba(160, 32, 240, 0.7);
}

html.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.js-enabled [data-reveal].revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .header-inner {
    padding: 0 1.25rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    width: min(78vw, 360px);
    height: 100vh;
    height: 100dvh;
    margin-left: 0;
    padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
    overflow-y: auto;
    background: rgba(10, 10, 15, 0.99);
    border-left: 1px solid rgba(160, 32, 240, 0.45);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.4s var(--ease), visibility 0.4s;
  }

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

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-link {
    padding: 1rem 1.25rem;
    border: 1px solid var(--metal);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.025rem;
  }

  .nav-link:hover {
    border-color: rgba(160, 32, 240, 0.7);
    background: var(--purple-glass);
  }

  .brand-index {
    display: none;
  }

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

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

@media (max-width: 640px) {
  .section {
    padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  }

  .header-inner {
    min-height: 4.5rem;
  }

  .brand-text {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }

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

  .footer-brand {
    grid-column: auto;
  }

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

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

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

  html.js-enabled [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .brand-mark::before {
    animation: none;
  }

  .site-progress span {
    box-shadow: none;
  }
}
