:root {
  --cc-panel: #0a1b29;
  --cc-panel-deep: #06131f;
  --cc-line: rgba(116, 164, 194, 0.2);
  --cc-line-hot: rgba(35, 213, 255, 0.52);
}

body {
  background-color: #050d16;
  background-image:
    linear-gradient(rgba(35, 213, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 213, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

.topbar {
  height: 92px;
  border-bottom-color: rgba(35, 213, 255, 0.24);
  background: rgba(4, 13, 22, 0.94);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 28%, transparent 58%, var(--gold) 78%, transparent);
  opacity: 0.7;
}

.topbar .brand {
  gap: 14px;
  min-width: 245px;
}

.brand-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(35, 213, 255, 0.22);
  padding-right: 13px;
}

.topbar .brand-symbol img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 14px rgba(35, 213, 255, 0.22));
}

.brand-wordmark {
  display: grid;
  gap: 5px;
  line-height: 1;
}

.brand-wordmark b {
  color: #fff8e8;
  font: 850 23px/1 Bahnschrift, "Arial Narrow", sans-serif;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand-wordmark small {
  color: var(--gold);
  font: 750 9px/1 Inter, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.system-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  padding-left: 22px;
  border-left: 1px solid var(--cc-line);
  color: #7890a5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.system-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55f48b;
  box-shadow: 0 0 10px rgba(85, 244, 139, 0.8);
}

.topbar nav {
  gap: 18px;
}

.topbar nav > a {
  padding: 35px 0 33px;
}

main,
footer {
  width: min(1380px, calc(100% - 56px));
}

.hero {
  min-height: 560px;
}

.hero-copy {
  position: relative;
  padding-left: 25px;
  border-left: 3px solid var(--cyan);
}

.hero-copy::before {
  content: "CONTROL / 01";
  position: absolute;
  top: -34px;
  left: 24px;
  color: rgba(139, 160, 180, 0.62);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  font-size: clamp(58px, 6.4vw, 94px);
}

.hero-visual {
  padding: 24px;
  border: 1px solid var(--cc-line);
  background: rgba(6, 19, 31, 0.72);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
}

.feature-grid,
.server-card,
.panel,
.module-card,
.stats article,
.empty {
  border-radius: 2px;
}

.feature-grid article,
.panel,
.module-card,
.stats article {
  background: rgba(8, 24, 37, 0.94);
}

.page-head {
  min-height: 190px;
  padding: 54px 0 32px;
  border-bottom: 1px solid var(--cc-line);
}

.page-head h1,
.workspace-head h1 {
  letter-spacing: 0.015em;
}

.page-head > div,
.workspace-head > div {
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
}

.server-card {
  position: relative;
  overflow: hidden;
  background: var(--cc-panel);
}

.server-card::before,
.module-card::before,
.management-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--cyan);
  opacity: 0.55;
}

.panel,
.module-card,
.management-panel {
  position: relative;
  box-shadow: 0 18px 50px rgba(1, 7, 12, 0.2);
}

.management-nav {
  top: 108px;
  padding: 0;
  gap: 0;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(5, 15, 24, 0.96);
}

.management-nav a {
  flex: 1 1 0;
  justify-content: center;
  padding: 14px 18px;
  border-right: 1px solid var(--cc-line);
  border-radius: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.management-nav a:last-child {
  border-right: 0;
}

.management-panel {
  scroll-margin-top: 180px;
  padding: 30px;
  background: linear-gradient(110deg, rgba(10, 29, 44, 0.98), rgba(5, 18, 29, 0.98));
}

.management-panel > .panel-title {
  align-items: center;
  padding-bottom: 22px;
}

.management-panel > .panel-title h2 {
  font-size: 38px;
  letter-spacing: 0.02em;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--cc-line);
  background: var(--cc-panel-deep);
}

.workflow-strip div {
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-right: 1px solid var(--cc-line);
}

.workflow-strip div:last-child {
  border-right: 0;
}

.workflow-strip b {
  color: var(--cyan);
  font: 800 12px/1 Inter, sans-serif;
  letter-spacing: 0.12em;
}

.workflow-strip span {
  color: #dce8f0;
  font-size: 11px;
  font-weight: 700;
}

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

.ticket-types li,
.link-row {
  border-radius: 2px;
  background: rgba(4, 15, 25, 0.62);
}

select,
input[type="number"],
input[type="text"],
input[type="url"],
textarea {
  border-radius: 2px;
  background: #061522;
}

.button {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button.primary {
  box-shadow: 0 10px 30px rgba(35, 213, 255, 0.12);
}

.button.danger {
  border-color: rgba(255, 54, 93, 0.45);
  color: #ff7892;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

.automation-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--cc-line);
}

.transcript-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--cc-line);
}

.transcript-block .acceptance-table {
  margin-top: 16px;
}

.transcript-block td:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acceptance-table td small + small {
  margin-top: 5px;
}

@media (max-width: 1050px) {
  .system-state {
    display: none;
  }

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

@media (max-width: 650px) {
  main,
  footer {
    width: min(100% - 26px, 1380px);
  }

  .topbar {
    height: 78px;
  }

  .topbar .brand span {
    display: grid;
  }

  .brand-symbol {
    width: 42px;
    height: 42px;
    padding-right: 9px;
  }

  .brand-wordmark b {
    font-size: 17px;
  }

  .brand-wordmark small {
    font-size: 7px;
  }

  .topbar nav > a {
    padding: 29px 0 27px;
  }

  .hero-copy {
    padding-left: 16px;
  }

  .workflow-strip,
  .ticket-types {
    grid-template-columns: 1fr;
  }

  .workflow-strip div {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--cc-line);
  }

  .workflow-strip div:last-child {
    border-bottom: 0;
  }

  .management-panel {
    padding: 20px;
  }
}
