:root {
  --bg: #06101b;
  --surface: rgba(13, 29, 47, .92);
  --surface-2: rgba(20, 42, 68, .94);
  --line: rgba(124, 184, 255, .16);
  --text: #f4f8fc;
  --muted: #9bafc3;
  --blue: #58a9ff;
  --cyan: #55d9e9;
  --green: #48d69d;
  --amber: #ffc262;
  --red: #ff7684;
  --violet: #a088ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, .32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(
      circle at 8% 0%,
      rgba(55, 129, 255, .21),
      transparent 31%
    ),
    radial-gradient(
      circle at 96% 9%,
      rgba(142, 91, 255, .18),
      transparent 32%
    ),
    linear-gradient(145deg, #050c15, #091827);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.shell {
  max-width: 1560px;
  margin: auto;
  padding: 25px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 15px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .045);
  color: #d4dfeb;
  font-size: 12px;
  font-weight: 800;
}

.home-link:hover {
  border-color: rgba(88, 169, 255, .55);
}

.updated {
  color: var(--muted);
  font-size: 11px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(
      125deg,
      rgba(17, 56, 91, .97),
      rgba(25, 31, 66, .94)
    );
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  top: -150px;
  right: -110px;
  width: 430px;
  height: 430px;
  content: "";
  border: 70px solid rgba(88, 169, 255, .075);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 28px;
  align-items: center;
}

.project-type {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project-title {
  margin: 10px 0 9px;
  font-size: clamp(39px, 5vw, 68px);
  line-height: .95;
  letter-spacing: -.045em;
}

.project-description {
  max-width: 850px;
  color: #c1cfdd;
  font-size: 16px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 21px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--blue), #477bf4);
  box-shadow: 0 12px 30px rgba(54, 121, 240, .27);
}

.secondary-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .055);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.project-pulse {
  display: grid;
  gap: 11px;
}

.pulse {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(4, 13, 24, .35);
}

.pulse-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.pulse-value {
  margin-top: 7px;
  font-size: 22px;
  font-weight: 900;
}

.pulse-detail {
  margin-top: 5px;
  color: #aebdca;
  font-size: 10px;
  line-height: 1.45;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin: 31px 2px 14px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 135px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(
      155deg,
      rgba(27, 57, 87, .88),
      rgba(8, 21, 36, .96)
    );
  box-shadow: 0 14px 34px rgba(0, 0, 0, .21);
}

.metric-icon {
  font-size: 24px;
}

.metric-number {
  margin-top: 16px;
  font-size: 29px;
  font-weight: 900;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 16px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.panel-head span {
  color: var(--muted);
  font-size: 10px;
}

.panel-body {
  padding: 17px;
}

.path-list,
.service-list,
.action-list,
.artifact-list,
.log-list {
  display: grid;
  gap: 10px;
}

.path-row,
.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .052);
  border-radius: 15px;
  background: rgba(255, 255, 255, .03);
}

.path-row strong,
.service-row strong {
  display: block;
  font-size: 12px;
}

.path-row code,
.service-row code {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #8397aa;
  font-family: Consolas, monospace;
  font-size: 9px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.available,
.online,
.ready {
  color: #82efc1;
  background: rgba(72, 214, 157, .14);
}

.not-detected,
.offline,
.locked {
  color: #ffa2ac;
  background: rgba(255, 118, 132, .14);
}

.partial,
.pending {
  color: #ffd68d;
  background: rgba(255, 194, 98, .14);
}

.action {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .052);
  border-radius: 15px;
  background: rgba(255, 255, 255, .03);
}

.action-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(88, 169, 255, .13);
  font-size: 19px;
}

.action-title {
  font-size: 12px;
  font-weight: 850;
}

.action-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.action-button {
  min-width: 82px;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  color: #98a9ba;
  background: rgba(255, 255, 255, .065);
  font-size: 9px;
  font-weight: 900;
  cursor: not-allowed;
}

.security-note {
  margin-top: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 194, 98, .19);
  border-radius: 15px;
  color: #d5deea;
  background: rgba(255, 194, 98, .075);
  font-size: 10px;
  line-height: 1.55;
}

.artifact,
.log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-left: 3px solid var(--blue);
  border-radius: 13px;
  background: rgba(255, 255, 255, .032);
}

.artifact strong,
.log-row strong {
  display: block;
  font-size: 11px;
}

.artifact code,
.log-row code {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #8296aa;
  font-family: Consolas, monospace;
  font-size: 8px;
}

.artifact-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #a9bac9;
  font-size: 8px;
}

.log-row > span {
  color: #a9bac9;
  font-size: 8px;
}

.empty {
  padding: 17px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  font-size: 10px;
}

.footer {
  padding: 32px 4px 12px;
  color: #718398;
  text-align: center;
  font-size: 10px;
}

@media (max-width: 1150px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .shell {
    padding: 14px;
  }

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

  .hero {
    padding: 24px;
  }

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

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

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .action {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .action-button {
    grid-column: 1 / -1;
  }
}
