/* Client agent workspace — Airlines.xyz AI Agent demo */
.agent-demo {
  width: min(1200px, calc(100% - 32px));
  margin: 80px auto;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 10%, rgba(70, 120, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #07111f, #030914);
  color: #fff;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
  font-family: "Onest", system-ui, sans-serif;
}

.agent-demo-header {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 38px;
}

.agent-eyebrow,
.success-label,
.panel-label,
.ai-reasoning span,
.continue-section > span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ea7c7;
  font-weight: 700;
}

.agent-demo-header h2 {
  margin: 12px 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 500;
  text-transform: none;
}

.agent-demo-header h2 span {
  color: #8ca8d4;
}

.agent-demo-header p {
  max-width: 650px;
  margin: 0;
  color: #9aabc0;
  line-height: 1.7;
  font-size: 16px;
}

.agent-status-pill {
  white-space: nowrap;
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #b9c8db;
  font-size: 13px;
}

.dot,
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8ca8d4;
}

.pulse {
  animation: agentPulse 1.1s infinite;
}

@keyframes agentPulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.agent-workspace {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 18px;
}

.mission-panel,
.agent-results-panel {
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
}

.mission-panel {
  padding: 25px;
}

.mission-panel textarea {
  width: 100%;
  min-height: 190px;
  margin-top: 16px;
  padding: 18px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  outline: none;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font: inherit;
  line-height: 1.6;
}

.mission-panel textarea:focus {
  border-color: rgba(130, 165, 220, 0.55);
}

.mission-panel textarea::placeholder {
  color: #607087;
}

.mission-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 14px 0 18px;
}

.mission-context span,
.example-missions button,
.follow-ups button {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #9fb0c6;
  font-size: 12px;
}

.primary-agent-button {
  width: 100%;
  padding: 15px;
  border: 0;
  border-radius: 13px;
  background: #fff;
  color: #07111f;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font: inherit;
}

.primary-agent-button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.primary-agent-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.example-missions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.example-missions button,
.follow-ups button {
  cursor: pointer;
  font: inherit;
}

.example-missions button:hover,
.follow-ups button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.agent-results-panel {
  padding: 30px;
}

.agent-empty,
.agent-working {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.ai-orb,
.working-orb {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(130, 165, 220, 0.35);
  background: rgba(90, 130, 200, 0.08);
  box-shadow: 0 0 50px rgba(80, 130, 220, 0.15);
  color: #d9e6f8;
  font-size: 28px;
}

.working-orb {
  animation: orbFloat 1.8s ease-in-out infinite;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.agent-empty h3,
.agent-working h3 {
  margin: 24px 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.agent-empty p {
  max-width: 380px;
  color: #788aa1;
}

.work-steps {
  width: min(460px, 100%);
  margin-top: 25px;
  text-align: left;
}

.work-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  color: #52637a;
  font-size: 14px;
  transition: color 0.3s ease;
}

.work-step.active {
  color: #fff;
}

.work-step.done {
  color: #91a7c5;
}

.step-icon {
  width: 24px;
  text-align: center;
  font-size: 12px;
}

.mission-complete {
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.complete-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.complete-heading h3 {
  margin: 8px 0 20px;
  font-size: 28px;
  font-weight: 500;
}

.complete-heading button {
  border: 0;
  background: transparent;
  color: #7f91a9;
  cursor: pointer;
  font: inherit;
}

.recommendation-card {
  padding: 21px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.recommendation-top,
.recommendation-bottom,
.flight-details {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

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

.airline-logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: #07111f;
  font-weight: 900;
  font-size: 12px;
}

.airline-brand strong,
.airline-brand span {
  display: block;
}

.airline-brand span {
  margin-top: 4px;
  color: #778aa3;
  font-size: 12px;
}

.ai-score {
  text-align: right;
}

.ai-score span,
.ai-score strong {
  display: block;
}

.ai-score span {
  color: #71849e;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-score strong {
  margin-top: 3px;
  font-size: 22px;
}

.flight-details {
  margin: 25px 0;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.flight-details span,
.flight-details strong {
  display: block;
}

.flight-details span {
  color: #62748c;
  font-size: 10px;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flight-details strong {
  font-size: 13px;
  font-weight: 500;
}

.recommendation-bottom {
  align-items: center;
}

.recommendation-bottom span,
.recommendation-bottom strong {
  display: block;
}

.recommendation-bottom span {
  color: #62748c;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.recommendation-bottom strong {
  margin-top: 4px;
  font-size: 22px;
}

.recommendation-bottom button {
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #07111f;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.ai-reasoning {
  display: flex;
  gap: 13px;
  margin-top: 15px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 15px;
  background: rgba(80, 120, 180, 0.05);
}

.reasoning-icon {
  color: #aec4e2;
  flex-shrink: 0;
}

.ai-reasoning p {
  margin: 7px 0 0;
  color: #8fa0b6;
  font-size: 13px;
  line-height: 1.6;
}

.continue-section {
  margin-top: 22px;
}

.follow-ups {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.agent-conversation {
  margin-top: 18px;
  padding: 23px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.conversation-title {
  color: #b7c7dc;
  font-size: 13px;
  font-weight: 700;
}

.conversation-message {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}

.message-avatar {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  color: #07111f;
  font-size: 10px;
  font-weight: 900;
}

.conversation-message strong {
  font-size: 13px;
}

.conversation-message p {
  margin: 5px 0 0;
  color: #7e90a8;
  font-size: 13px;
  line-height: 1.6;
}

.agent-demo-note {
  margin-top: 18px;
  color: #607087;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .agent-demo {
    width: min(1200px, calc(100% - 24px));
    margin: 48px auto;
    padding: 28px;
  }

  .agent-workspace {
    grid-template-columns: 1fr;
  }

  .mission-panel,
  .agent-results-panel {
    min-height: auto;
  }

  .agent-empty,
  .agent-working {
    min-height: 320px;
  }
}

@media (max-width: 850px) {
  .agent-demo {
    padding: 22px;
    margin: 40px auto;
  }

  .agent-demo-header {
    flex-direction: column;
  }

  .agent-demo-header h2 {
    font-size: clamp(28px, 7vw, 42px);
  }

  .flight-details {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .agent-demo {
    width: calc(100% - 16px);
    margin: 24px auto 32px;
    padding: 16px 12px;
    border-radius: 20px;
  }

  .agent-demo-header {
    gap: 14px;
    margin-bottom: 20px;
  }

  .agent-demo-header h2 {
    font-size: clamp(24px, 8vw, 32px);
  }

  .agent-demo-header p {
    font-size: 14px;
  }

  .agent-status-pill {
    white-space: normal;
  }

  .mission-panel,
  .agent-results-panel {
    padding: 16px;
  }

  .mission-panel textarea {
    min-height: 140px;
    padding: 14px;
  }

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

  .recommendation-top,
  .recommendation-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-score {
    text-align: left;
  }

  .flight-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .recommendation-bottom button {
    width: 100%;
  }

  .agent-empty,
  .agent-working {
    min-height: 260px;
  }
}

@media (max-width: 380px) {
  .flight-details {
    grid-template-columns: 1fr;
  }

  .example-missions button,
  .follow-ups button {
    font-size: 11px;
  }
}
