:root {
  color-scheme: dark;
  --bg: #07101c;
  --bg-deep: #030812;
  --panel: rgba(10, 24, 41, 0.82);
  --panel-strong: #0c1b2f;
  --text: #f5f7fb;
  --muted: #9aa9bc;
  --muted-dark: #65758a;
  --line: rgba(136, 177, 216, 0.18);
  --line-strong: rgba(136, 177, 216, 0.34);
  --brand: #f97316;
  --brand-light: #ffb16a;
  --cyan: #4fdcff;
  --green: #65e6b0;
  --font: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% -10%, rgba(36, 88, 139, 0.27), transparent 42%),
    radial-gradient(circle at 90% 15%, rgba(249, 115, 22, 0.11), transparent 32%),
    linear-gradient(140deg, var(--bg), var(--bg-deep) 74%);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: white;
  color: #07101c;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.backdrop,
.backdrop__grid,
.backdrop__beam,
.data-points {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: 0;
  overflow: hidden;
}

.backdrop__grid {
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(130, 176, 218, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 176, 218, 0.07) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.95), transparent 82%);
}

.backdrop__beam {
  width: 52%;
  background: linear-gradient(90deg, transparent, rgba(64, 164, 226, 0.045), transparent);
  transform: skewX(-17deg) translateX(-130%);
  animation: beam 11s ease-in-out infinite;
}

.data-point {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border: 1px solid rgba(79, 220, 255, 0.32);
  border-radius: 2px;
  background: rgba(79, 220, 255, 0.08);
  opacity: var(--opacity);
  box-shadow: 0 0 16px rgba(79, 220, 255, 0.14);
  animation: data-float var(--duration) var(--delay) ease-in-out infinite alternate;
}

.data-point--orange {
  border-color: rgba(249, 115, 22, 0.42);
  background: rgba(249, 115, 22, 0.1);
  box-shadow: 0 0 18px rgba(249, 115, 22, 0.18);
}

.topbar,
.layout,
.footer {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 72px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
}

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

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(249, 115, 22, 0.22);
}

.brand__name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand__slash {
  color: #485a70;
  font-family: var(--mono);
}

.brand__product {
  color: var(--brand-light);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.cabinet-label {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  color: #aeb9c7;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cabinet-label__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 17px rgba(249, 115, 22, 0.86);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(460px, 0.96fr);
  gap: clamp(52px, 7vw, 112px);
  align-items: center;
  min-height: calc(100vh - 174px);
  padding-block: 68px 92px;
}

.message {
  min-width: 0;
  max-width: 700px;
}

.overline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
  color: #6e8197;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.overline span:first-child {
  color: var(--brand-light);
}

.overline i {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 6.4vw, 91px);
  font-weight: 780;
  letter-spacing: -0.06em;
  line-height: 0.94;
  text-wrap: balance;
}

h1 span {
  display: block;
  margin-top: 9px;
  color: var(--brand);
  text-shadow: 0 0 46px rgba(249, 115, 22, 0.17);
}

.message__lead,
.message__secondary {
  max-width: 650px;
  line-height: 1.65;
}

.message__lead {
  margin: 34px 0 0;
  color: #d0d8e3;
  font-size: clamp(17px, 1.35vw, 20px);
}

.message__secondary {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.notice {
  display: flex;
  align-items: center;
  width: min(100%, 430px);
  min-height: 74px;
  gap: 15px;
  margin-top: 34px;
  padding: 12px 17px;
  border: 1px solid rgba(249, 115, 22, 0.43);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(249, 115, 22, 0.16), rgba(15, 30, 50, 0.6));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.16);
  font-size: 15px;
  font-weight: 700;
}

.notice small {
  display: block;
  margin-bottom: 4px;
  color: #93a2b5;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.notice__icon {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--brand);
  color: white;
  box-shadow: 0 9px 24px rgba(249, 115, 22, 0.28);
}

.notice__icon svg {
  width: 23px;
  height: 23px;
}

.system-card {
  position: relative;
  min-height: 622px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(27, 54, 84, 0.5), rgba(7, 16, 29, 0.77) 62%),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 40px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.system-card::before,
.system-card::after {
  content: "";
  position: absolute;
  width: 82px;
  height: 82px;
  pointer-events: none;
  border-color: rgba(249, 115, 22, 0.68);
}

.system-card::before {
  top: 15px;
  left: 15px;
  border-top: 1px solid;
  border-left: 1px solid;
  border-radius: 15px 0 0;
}

.system-card::after {
  right: 15px;
  bottom: 15px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  border-radius: 0 0 15px;
}

.system-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 30px 32px 0;
}

.system-card__code {
  color: #72859c;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.system-card h2 {
  margin: 7px 0 0;
  font-size: 19px;
}

.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(101, 230, 176, 0.28);
  border-radius: 999px;
  background: rgba(101, 230, 176, 0.06);
  color: var(--green);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.mechanism {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.mechanism__rings {
  position: absolute;
  inset: 0;
}

.mechanism__rings span {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(96, 167, 216, 0.13);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.mechanism__rings span:nth-child(1) { width: 290px; height: 290px; }
.mechanism__rings span:nth-child(2) { width: 218px; height: 218px; border-style: dashed; }
.mechanism__rings span:nth-child(3) { width: 144px; height: 144px; }

.gear {
  position: absolute;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 18px currentColor);
}

.gear img {
  width: 100%;
  height: 100%;
  filter: brightness(0) saturate(100%) invert(67%) sepia(78%) saturate(3556%) hue-rotate(346deg) brightness(101%) contrast(96%);
}

.gear--large {
  top: 68px;
  left: calc(50% - 97px);
  width: 146px;
  height: 146px;
  color: rgba(249, 115, 22, 0.34);
  animation: spin 13s linear infinite;
}

.gear--medium {
  top: 167px;
  left: calc(50% + 18px);
  width: 98px;
  height: 98px;
  color: rgba(79, 220, 255, 0.28);
  animation: spin-reverse 9s linear infinite;
}

.gear--medium img {
  filter: brightness(0) saturate(100%) invert(75%) sepia(72%) saturate(1339%) hue-rotate(161deg) brightness(106%) contrast(102%);
}

.gear--small {
  top: 74px;
  left: calc(50% + 60px);
  width: 62px;
  height: 62px;
  color: rgba(255, 177, 106, 0.26);
  animation: spin-reverse 6.5s linear infinite;
}

.signal {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 15px var(--cyan);
  animation: signal-blink 2.4s ease-in-out infinite;
}

.signal--one { top: 57px; left: 28%; }
.signal--two { top: 142px; right: 23%; animation-delay: -0.8s; background: var(--brand); box-shadow: 0 0 15px var(--brand); }
.signal--three { bottom: 45px; left: 36%; animation-delay: -1.5s; }

.mechanism__caption {
  position: absolute;
  right: 32px;
  bottom: 18px;
  color: #53677f;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.stages {
  margin: 0 32px;
  border-top: 1px solid var(--line);
}

.stage {
  display: grid;
  grid-template-columns: 28px 12px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 65px;
  border-bottom: 1px solid var(--line);
}

.stage__number,
.stage__state {
  color: #60738a;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage__marker {
  width: 7px;
  height: 7px;
  border: 1px solid #53667d;
  border-radius: 50%;
}

.stage__text strong,
.stage__text small {
  display: block;
}

.stage__text strong {
  color: #9aa9ba;
  font-size: 12px;
}

.stage__text small {
  margin-top: 3px;
  color: #5d7087;
  font-size: 10px;
}

.stage--active .stage__marker {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 11px rgba(249, 115, 22, 0.8);
}

.stage--active .stage__text strong {
  color: #edf2f7;
}

.stage--active .stage__state {
  color: var(--brand-light);
}

.system-card__footer {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 51px;
  padding-inline: 32px;
  color: #43566d;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.system-card__footer i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #27435c;
  animation: node-flow 2.2s ease-in-out infinite alternate;
}

.system-card__footer i:nth-of-type(2n) { animation-delay: -0.7s; }
.system-card__footer i:nth-of-type(3n) { background: rgba(249, 115, 22, 0.5); animation-delay: -1.3s; }

.footer {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  margin-top: -70px;
  color: #55677c;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer__line {
  width: 34px;
  height: 1px;
  background: #344960;
}

@keyframes beam {
  0%, 18% { transform: skewX(-17deg) translateX(-130%); }
  80%, 100% { transform: skewX(-17deg) translateX(260%); }
}

@keyframes data-float {
  to { transform: translate(var(--drift-x), var(--drift-y)) rotate(24deg); }
}

@keyframes status-pulse {
  50% { opacity: 0.55; box-shadow: 0 0 7px rgba(249, 115, 22, 0.56); }
}

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

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

@keyframes signal-blink {
  50% { opacity: 0.23; transform: scale(0.7); }
}

@keyframes node-flow {
  to { background: rgba(79, 220, 255, 0.7); box-shadow: 0 0 10px rgba(79, 220, 255, 0.35); }
}

@media (max-width: 1040px) {
  .topbar,
  .layout,
  .footer {
    width: min(760px, calc(100% - 40px));
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 58px;
    padding-block: 64px 124px;
  }

  .message {
    max-width: 740px;
  }

  h1 {
    font-size: clamp(58px, 11vw, 88px);
  }

  .system-card {
    width: min(100%, 650px);
  }

  .footer {
    margin-top: -85px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .layout,
  .footer {
    width: min(100% - 28px, 520px);
  }

  .topbar {
    min-height: 84px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .brand__name {
    font-size: 15px;
  }

  .brand__product {
    font-size: 10px;
  }

  .cabinet-label {
    font-size: 0;
  }

  .layout {
    gap: 46px;
    padding-block: 52px 116px;
  }

  .overline {
    gap: 9px;
  }

  .overline i {
    width: 28px;
  }

  h1 {
    font-size: clamp(42px, 11.7vw, 58px);
  }

  .message__lead {
    margin-top: 27px;
    font-size: 16px;
  }

  .message__secondary {
    font-size: 14px;
  }

  .system-card {
    min-height: 592px;
    border-radius: 22px;
  }

  .system-card__head {
    padding: 25px 22px 0;
  }

  .mechanism {
    height: 294px;
  }

  .gear--large {
    left: calc(50% - 102px);
  }

  .gear--medium {
    left: calc(50% + 13px);
  }

  .gear--small {
    left: calc(50% + 54px);
  }

  .stages {
    margin-inline: 22px;
  }

  .stage {
    grid-template-columns: 25px 10px 1fr;
  }

  .stage__state {
    display: none;
  }

  .system-card__footer {
    padding-inline: 22px;
  }

  .footer {
    gap: 9px;
    font-size: 8px;
    letter-spacing: 0.06em;
  }
}

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