
.home-command-section {
  padding-top: 42px;
  padding-bottom: 26px;
}

.home-command-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.48fr);
  grid-template-areas:
    "copy visual"
    "modes modes";
  gap: clamp(20px, 3vw, 38px);
  overflow: hidden;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid rgba(173, 178, 182, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 16%, rgba(200, 184, 141, 0.34), transparent 18rem),
    radial-gradient(circle at 16% 74%, rgba(134, 200, 157, 0.08), transparent 16rem),
    linear-gradient(145deg, rgba(34, 35, 42, 0.88), rgba(5, 7, 12, 0.96));
}

.home-command-shell::before,
.home-command-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home-command-shell::before {
  background:
    linear-gradient(rgba(173, 178, 182, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 178, 182, 0.032) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.78), transparent 74%);
}

.home-command-shell::after {
  background:
    linear-gradient(135deg, transparent 0 64%, rgba(173, 178, 182, 0.12) 64.3%, transparent 65%),
    linear-gradient(135deg, transparent 0 70%, rgba(200, 184, 141, 0.28) 70.3%, transparent 71%);
  opacity: 0.55;
}

.home-command-copy,
.home-command-visual,
.home-command-modes {
  position: relative;
  z-index: 1;
}

.home-command-copy {
  grid-area: copy;
  align-self: center;
  max-width: 760px;
}

.home-command-copy h2 {
  max-width: 12ch;
  margin-top: 8px;
  font-size: clamp(2.35rem, 4.6vw, 5.2rem);
  line-height: 0.96;
}

.home-command-copy p:not(.section-kicker) {
  max-width: 42rem;
  margin: 20px 0 0;
  color: rgba(216, 220, 223, 0.78);
  font-size: clamp(1rem, 1.25vw, 1.14rem);
}

.home-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.home-command-visual {
  grid-area: visual;
  align-self: center;
}

.command-radar {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin-left: auto;
  border: 1px solid rgba(173, 178, 182, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(134, 200, 157, 0.12), transparent 18%),
    radial-gradient(circle at center, rgba(200, 184, 141, 0.26), transparent 56%),
    rgba(3, 6, 11, 0.38);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 24px 60px rgba(0, 0, 0, 0.22);
}

.command-radar-ring,
.command-radar-cross,
.command-radar-sweep,
.command-radar-node {
  position: absolute;
  pointer-events: none;
}

.command-radar-ring {
  inset: 20%;
  border: 1px solid rgba(173, 178, 182, 0.14);
  border-radius: inherit;
}

.command-radar-ring-b {
  inset: 36%;
  border-color: rgba(134, 200, 157, 0.18);
}

.command-radar-cross {
  background: linear-gradient(90deg, transparent, rgba(173, 178, 182, 0.24), transparent);
}

.command-radar-cross-x {
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
}

.command-radar-cross-y {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(173, 178, 182, 0.24), transparent);
}

.command-radar-sweep {
  inset: 8%;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(134, 200, 157, 0.22), transparent 18%, transparent 100%);
  animation: o4-radar-sweep 7.5s linear infinite;
}

.command-radar-node {
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(173, 178, 182, 0.22);
  border-radius: 999px;
  color: rgba(245, 246, 247, 0.94);
  background:
    radial-gradient(circle at 50% 25%, rgba(245, 246, 247, 0.12), transparent 42%),
    rgba(3, 6, 11, 0.72);
}

.command-radar-node .o4-ui-icon {
  width: 21px;
  height: 21px;
}

.command-radar-node-a {
  left: 12%;
  top: 43%;
}

.command-radar-node-b {
  left: 40%;
  top: 12%;
}

.command-radar-node-c {
  right: 15%;
  top: 40%;
}

.command-radar-node-d {
  left: 47%;
  bottom: 11%;
}

.home-command-modes {
  grid-area: modes;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(173, 178, 182, 0.1);
  border-radius: 16px;
  background: rgba(173, 178, 182, 0.08);
}

.home-command-mode {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(200, 184, 141, 0.16), transparent 58%),
    rgba(3, 6, 11, 0.48);
}

.home-command-mode h3 {
  margin: 0;
  font-size: 1.2rem;
}

.home-command-mode p {
  margin: 0;
  color: rgba(216, 220, 223, 0.72);
  font-size: 0.88rem;
  line-height: 1.46;
}
